diff --git a/.fern/metadata.json b/.fern/metadata.json index 3594085a7..39791a512 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -17,7 +17,8 @@ "fetchSupport": "node-fetch", "generateSubpackageExports": true, "packageManager": "yarn", - "testFramework": "jest" + "testFramework": "jest", + "enableForwardCompatibleEnums": true }, - "sdkVersion": "3.0.1" + "sdkVersion": "3.0.2" } diff --git a/reference.md b/reference.md index ccb2348b5..6be9409b3 100644 --- a/reference.md +++ b/reference.md @@ -115,12 +115,67 @@ await client.ats.accountToken.retrieve("public_token"); + + + + +
client.ats.accountToken.regenerateCreate() -> Merge.RegenerateAccountToken +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Exchange Linked Account account tokens. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.ats.accountToken.regenerateCreate(); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**requestOptions:** `AccountTokenClient.RequestOptions` + +
+
+
+
+ +
## Ats Activities -
client.ats.activities.list({ ...params }) -> Merge.PaginatedActivityList +
client.ats.activities.list({ ...params }) -> core.Page
@@ -147,11 +202,30 @@ Returns a list of `Activity` objects.
```typescript -await client.ats.activities.list({ +const pageableResponse = await client.ats.activities.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "activity_type", + remoteId: "remote_id", + showEnumOrigins: "activity_type", + userId: "user_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ats.activities.list({ createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "user", includeDeletedData: true, includeRemoteData: true, includeShellData: true, @@ -163,6 +237,12 @@ await client.ats.activities.list({ showEnumOrigins: "activity_type", userId: "user_id" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -294,7 +374,6 @@ Returns an `Activity` object with the given `id`. ```typescript await client.ats.activities.retrieve("id", { - expand: "user", includeRemoteData: true, includeShellData: true, remoteFields: "activity_type", @@ -399,7 +478,7 @@ await client.ats.activities.metaPostRetrieve();
## Ats Applications -
client.ats.applications.list({ ...params }) -> Merge.PaginatedApplicationList +
client.ats.applications.list({ ...params }) -> core.Page
@@ -426,14 +505,13 @@ Returns a list of `Application` objects.
```typescript -await client.ats.applications.list({ +const pageableResponse = await client.ats.applications.list({ candidateId: "candidate_id", createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), creditedToId: "credited_to_id", currentStageId: "current_stage_id", cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "candidate", includeDeletedData: true, includeRemoteData: true, includeShellData: true, @@ -445,6 +523,35 @@ await client.ats.applications.list({ remoteId: "remote_id", source: "source" }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ats.applications.list({ + candidateId: "candidate_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + creditedToId: "credited_to_id", + currentStageId: "current_stage_id", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + jobId: "job_id", + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + rejectReasonId: "reject_reason_id", + remoteId: "remote_id", + source: "source" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -579,7 +686,6 @@ Returns an `Application` object with the given `id`. ```typescript await client.ats.applications.retrieve("id", { - expand: "candidate", includeRemoteData: true, includeShellData: true }); @@ -896,7 +1002,7 @@ await client.ats.asyncPassthrough.retrieve("async_passthrough_receipt_id");
## Ats Attachments -
client.ats.attachments.list({ ...params }) -> Merge.PaginatedAttachmentList +
client.ats.attachments.list({ ...params }) -> core.Page
@@ -923,12 +1029,31 @@ Returns a list of `Attachment` objects.
```typescript -await client.ats.attachments.list({ +const pageableResponse = await client.ats.attachments.list({ + candidateId: "candidate_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "attachment_type", + remoteId: "remote_id", + showEnumOrigins: "attachment_type" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ats.attachments.list({ candidateId: "candidate_id", createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "candidate", includeDeletedData: true, includeRemoteData: true, includeShellData: true, @@ -939,6 +1064,12 @@ await client.ats.attachments.list({ remoteId: "remote_id", showEnumOrigins: "attachment_type" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -1070,7 +1201,6 @@ Returns an `Attachment` object with the given `id`. ```typescript await client.ats.attachments.retrieve("id", { - expand: "candidate", includeRemoteData: true, includeShellData: true, remoteFields: "attachment_type", @@ -1175,7 +1305,7 @@ await client.ats.attachments.metaPostRetrieve();
## Ats AuditTrail -
client.ats.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList +
client.ats.auditTrail.list({ ...params }) -> core.Page
@@ -1202,7 +1332,7 @@ Gets a list of audit trail events.
```typescript -await client.ats.auditTrail.list({ +const pageableResponse = await client.ats.auditTrail.list({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", endDate: "end_date", eventType: "event_type", @@ -1210,6 +1340,25 @@ await client.ats.auditTrail.list({ startDate: "start_date", userEmail: "user_email" }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ats.auditTrail.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endDate: "end_date", + eventType: "event_type", + pageSize: 1, + startDate: "start_date", + userEmail: "user_email" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -1302,7 +1451,7 @@ await client.ats.availableActions.retrieve();
## Ats Candidates -
client.ats.candidates.list({ ...params }) -> Merge.PaginatedCandidateList +
client.ats.candidates.list({ ...params }) -> core.Page
@@ -1329,12 +1478,11 @@ Returns a list of `Candidate` objects.
```typescript -await client.ats.candidates.list({ +const pageableResponse = await client.ats.candidates.list({ createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", emailAddresses: "email_addresses", - expand: "applications", firstName: "first_name", includeDeletedData: true, includeRemoteData: true, @@ -1346,6 +1494,33 @@ await client.ats.candidates.list({ remoteId: "remote_id", tags: "tags" }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ats.candidates.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + emailAddresses: "email_addresses", + firstName: "first_name", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + lastName: "last_name", + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + tags: "tags" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -1477,7 +1652,6 @@ Returns a `Candidate` object with the given `id`. ```typescript await client.ats.candidates.retrieve("id", { - expand: "applications", includeRemoteData: true, includeShellData: true }); @@ -1653,7 +1827,7 @@ await client.ats.candidates.ignoreCreate("model_id", {
-**request:** `Merge.ats.IgnoreCommonModelRequest` +**request:** `Merge.IgnoreCommonModelRequest`
@@ -2045,7 +2219,7 @@ await client.ats.deleteAccount.delete();
## Ats Departments -
client.ats.departments.list({ ...params }) -> Merge.PaginatedDepartmentList +
client.ats.departments.list({ ...params }) -> core.Page
@@ -2072,7 +2246,24 @@ Returns a list of `Department` objects.
```typescript -await client.ats.departments.list({ +const pageableResponse = await client.ats.departments.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ats.departments.list({ createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", @@ -2084,6 +2275,12 @@ await client.ats.departments.list({ pageSize: 1, remoteId: "remote_id" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -2194,7 +2391,7 @@ await client.ats.departments.retrieve("id", {
## Ats Eeocs -
client.ats.eeocs.list({ ...params }) -> Merge.PaginatedEeocList +
client.ats.eeocs.list({ ...params }) -> core.Page
@@ -2221,12 +2418,31 @@ Returns a list of `EEOC` objects.
```typescript -await client.ats.eeocs.list({ +const pageableResponse = await client.ats.eeocs.list({ + candidateId: "candidate_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "disability_status", + remoteId: "remote_id", + showEnumOrigins: "disability_status" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ats.eeocs.list({ candidateId: "candidate_id", createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "candidate", includeDeletedData: true, includeRemoteData: true, includeShellData: true, @@ -2237,6 +2453,12 @@ await client.ats.eeocs.list({ remoteId: "remote_id", showEnumOrigins: "disability_status" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -2300,7 +2522,6 @@ Returns an `EEOC` object with the given `id`. ```typescript await client.ats.eeocs.retrieve("id", { - expand: "candidate", includeRemoteData: true, includeShellData: true, remoteFields: "disability_status", @@ -2576,7 +2797,9 @@ Create or update existing Field Mappings for a Linked Account. Changes will be r
```typescript -await client.ats.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); +await client.ats.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { + remoteDataIterationCount: 1 +}); ```
@@ -2808,7 +3031,7 @@ await client.ats.generateKey.create({
## Ats Interviews -
client.ats.interviews.list({ ...params }) -> Merge.PaginatedScheduledInterviewList +
client.ats.interviews.list({ ...params }) -> core.Page
@@ -2835,12 +3058,11 @@ Returns a list of `ScheduledInterview` objects.
```typescript -await client.ats.interviews.list({ +const pageableResponse = await client.ats.interviews.list({ applicationId: "application_id", createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "application", includeDeletedData: true, includeRemoteData: true, includeShellData: true, @@ -2854,6 +3076,35 @@ await client.ats.interviews.list({ remoteId: "remote_id", showEnumOrigins: "status" }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ats.interviews.list({ + applicationId: "application_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + jobId: "job_id", + jobInterviewStageId: "job_interview_stage_id", + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + organizerId: "organizer_id", + pageSize: 1, + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -2985,7 +3236,6 @@ Returns a `ScheduledInterview` object with the given `id`. ```typescript await client.ats.interviews.retrieve("id", { - expand: "application", includeRemoteData: true, includeShellData: true, remoteFields: "status", @@ -3090,7 +3340,7 @@ await client.ats.interviews.metaPostRetrieve();
## Ats Issues -
client.ats.issues.list({ ...params }) -> Merge.PaginatedIssueList +
client.ats.issues.list({ ...params }) -> core.Page
@@ -3117,7 +3367,7 @@ Gets all issues for Organization.
```typescript -await client.ats.issues.list({ +const pageableResponse = await client.ats.issues.list({ accountToken: "account_token", cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", endDate: "end_date", @@ -3133,6 +3383,33 @@ await client.ats.issues.list({ startDate: "start_date", status: "ONGOING" }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ats.issues.list({ + accountToken: "account_token", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endDate: "end_date", + endUserOrganizationName: "end_user_organization_name", + firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + includeMuted: "include_muted", + integrationName: "integration_name", + lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + linkedAccountId: "linked_account_id", + pageSize: 1, + startDate: "start_date", + status: "ONGOING" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -3232,7 +3509,7 @@ await client.ats.issues.retrieve("id");
## Ats JobInterviewStages -
client.ats.jobInterviewStages.list({ ...params }) -> Merge.PaginatedJobInterviewStageList +
client.ats.jobInterviewStages.list({ ...params }) -> core.Page
@@ -3259,11 +3536,10 @@ Returns a list of `JobInterviewStage` objects.
```typescript -await client.ats.jobInterviewStages.list({ +const pageableResponse = await client.ats.jobInterviewStages.list({ createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "job", includeDeletedData: true, includeRemoteData: true, includeShellData: true, @@ -3273,6 +3549,30 @@ await client.ats.jobInterviewStages.list({ pageSize: 1, remoteId: "remote_id" }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ats.jobInterviewStages.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + jobId: "job_id", + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -3336,7 +3636,6 @@ Returns a `JobInterviewStage` object with the given `id`. ```typescript await client.ats.jobInterviewStages.retrieve("id", { - expand: "job", includeRemoteData: true, includeShellData: true }); @@ -3384,7 +3683,7 @@ await client.ats.jobInterviewStages.retrieve("id", {
## Ats JobPostings -
client.ats.jobPostings.list({ ...params }) -> Merge.PaginatedJobPostingList +
client.ats.jobPostings.list({ ...params }) -> core.Page
@@ -3411,11 +3710,10 @@ Returns a list of `JobPosting` objects.
```typescript -await client.ats.jobPostings.list({ +const pageableResponse = await client.ats.jobPostings.list({ createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "job", includeDeletedData: true, includeRemoteData: true, includeShellData: true, @@ -3425,6 +3723,30 @@ await client.ats.jobPostings.list({ remoteId: "remote_id", status: "CLOSED" }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ats.jobPostings.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + status: "CLOSED" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -3488,7 +3810,6 @@ Returns a `JobPosting` object with the given `id`. ```typescript await client.ats.jobPostings.retrieve("id", { - expand: "job", includeRemoteData: true, includeShellData: true }); @@ -3536,7 +3857,7 @@ await client.ats.jobPostings.retrieve("id", {
## Ats Jobs -
client.ats.jobs.list({ ...params }) -> Merge.PaginatedJobList +
client.ats.jobs.list({ ...params }) -> core.Page
@@ -3563,12 +3884,33 @@ Returns a list of `Job` objects.
```typescript -await client.ats.jobs.list({ +const pageableResponse = await client.ats.jobs.list({ + code: "code", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + offices: "offices", + pageSize: 1, + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status", + status: "ARCHIVED" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ats.jobs.list({ code: "code", createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "departments", includeDeletedData: true, includeRemoteData: true, includeShellData: true, @@ -3581,6 +3923,12 @@ await client.ats.jobs.list({ showEnumOrigins: "status", status: "ARCHIVED" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -3644,7 +3992,6 @@ Returns a `Job` object with the given `id`. ```typescript await client.ats.jobs.retrieve("id", { - expand: "departments", includeRemoteData: true, includeShellData: true, remoteFields: "status", @@ -3693,7 +4040,7 @@ await client.ats.jobs.retrieve("id", {
-
client.ats.jobs.screeningQuestionsList(job_id, { ...params }) -> Merge.PaginatedScreeningQuestionList +
client.ats.jobs.screeningQuestionsList(job_id, { ...params }) -> core.Page
@@ -3720,14 +4067,31 @@ Returns a list of `ScreeningQuestion` objects.
```typescript -await client.ats.jobs.screeningQuestionsList("job_id", { +const pageableResponse = await client.ats.jobs.screeningQuestionsList("job_id", { cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "job", includeDeletedData: true, includeRemoteData: true, includeShellData: true, pageSize: 1 }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ats.jobs.screeningQuestionsList("job_id", { + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + pageSize: 1 +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -3784,7 +4148,7 @@ await client.ats.jobs.screeningQuestionsList("job_id", {
-Creates a link token to be used when linking a new end user. +Creates a link token to be used when linking a new end user. The link token expires after single use.
@@ -3841,7 +4205,7 @@ await client.ats.linkToken.create({
## Ats LinkedAccounts -
client.ats.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList +
client.ats.linkedAccounts.list({ ...params }) -> core.Page
@@ -3868,7 +4232,7 @@ List linked accounts for your organization.
```typescript -await client.ats.linkedAccounts.list({ +const pageableResponse = await client.ats.linkedAccounts.list({ category: "accounting", cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", endUserEmailAddress: "end_user_email_address", @@ -3883,6 +4247,32 @@ await client.ats.linkedAccounts.list({ pageSize: 1, status: "status" }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ats.linkedAccounts.list({ + category: "accounting", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endUserEmailAddress: "end_user_email_address", + endUserOrganizationName: "end_user_organization_name", + endUserOriginId: "end_user_origin_id", + endUserOriginIds: "end_user_origin_ids", + id: "id", + ids: "ids", + includeDuplicates: true, + integrationName: "integration_name", + isTestAccount: "is_test_account", + pageSize: 1, + status: "status" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -3919,7 +4309,7 @@ await client.ats.linkedAccounts.list({
## Ats Offers -
client.ats.offers.list({ ...params }) -> Merge.PaginatedOfferList +
client.ats.offers.list({ ...params }) -> core.Page
@@ -3946,13 +4336,12 @@ Returns a list of `Offer` objects.
```typescript -await client.ats.offers.list({ +const pageableResponse = await client.ats.offers.list({ applicationId: "application_id", createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), creatorId: "creator_id", cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "application", includeDeletedData: true, includeRemoteData: true, includeShellData: true, @@ -3961,8 +4350,37 @@ await client.ats.offers.list({ pageSize: 1, remoteFields: "status", remoteId: "remote_id", - showEnumOrigins: "status" + showEnumOrigins: "status", + status: "APPROVAL-SENT" }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ats.offers.list({ + applicationId: "application_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + creatorId: "creator_id", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status", + status: "APPROVAL-SENT" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -4026,7 +4444,6 @@ Returns an `Offer` object with the given `id`. ```typescript await client.ats.offers.retrieve("id", { - expand: "application", includeRemoteData: true, includeShellData: true, remoteFields: "status", @@ -4076,7 +4493,7 @@ await client.ats.offers.retrieve("id", {
## Ats Offices -
client.ats.offices.list({ ...params }) -> Merge.PaginatedOfficeList +
client.ats.offices.list({ ...params }) -> core.Page
@@ -4103,7 +4520,24 @@ Returns a list of `Office` objects.
```typescript -await client.ats.offices.list({ +const pageableResponse = await client.ats.offices.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ats.offices.list({ createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", @@ -4115,6 +4549,12 @@ await client.ats.offices.list({ pageSize: 1, remoteId: "remote_id" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -4358,7 +4798,7 @@ await client.ats.regenerateKey.create({
## Ats RejectReasons -
client.ats.rejectReasons.list({ ...params }) -> Merge.PaginatedRejectReasonList +
client.ats.rejectReasons.list({ ...params }) -> core.Page
@@ -4385,7 +4825,24 @@ Returns a list of `RejectReason` objects.
```typescript -await client.ats.rejectReasons.list({ +const pageableResponse = await client.ats.rejectReasons.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ats.rejectReasons.list({ createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", @@ -4397,6 +4854,12 @@ await client.ats.rejectReasons.list({ pageSize: 1, remoteId: "remote_id" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -4507,7 +4970,7 @@ await client.ats.rejectReasons.retrieve("id", {
## Ats Scorecards -
client.ats.scorecards.list({ ...params }) -> Merge.PaginatedScorecardList +
client.ats.scorecards.list({ ...params }) -> core.Page
@@ -4534,12 +4997,11 @@ Returns a list of `Scorecard` objects.
```typescript -await client.ats.scorecards.list({ +const pageableResponse = await client.ats.scorecards.list({ applicationId: "application_id", createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "application", includeDeletedData: true, includeRemoteData: true, includeShellData: true, @@ -4552,6 +5014,34 @@ await client.ats.scorecards.list({ remoteId: "remote_id", showEnumOrigins: "overall_recommendation" }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ats.scorecards.list({ + applicationId: "application_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + interviewId: "interview_id", + interviewerId: "interviewer_id", + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "overall_recommendation", + remoteId: "remote_id", + showEnumOrigins: "overall_recommendation" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -4615,7 +5105,6 @@ Returns a `Scorecard` object with the given `id`. ```typescript await client.ats.scorecards.retrieve("id", { - expand: "application", includeRemoteData: true, includeShellData: true, remoteFields: "overall_recommendation", @@ -4665,7 +5154,7 @@ await client.ats.scorecards.retrieve("id", {
## Ats SyncStatus -
client.ats.syncStatus.list({ ...params }) -> Merge.PaginatedSyncStatusList +
client.ats.syncStatus.list({ ...params }) -> core.Page
@@ -4692,10 +5181,25 @@ Get sync status for the current sync and the most recently finished sync. `last_
```typescript -await client.ats.syncStatus.list({ +const pageableResponse = await client.ats.syncStatus.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ats.syncStatus.list({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", pageSize: 1 }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -4788,7 +5292,7 @@ await client.ats.forceResync.syncStatusResyncCreate();
## Ats Tags -
client.ats.tags.list({ ...params }) -> Merge.PaginatedTagList +
client.ats.tags.list({ ...params }) -> core.Page
@@ -4815,7 +5319,7 @@ Returns a list of `Tag` objects.
```typescript -await client.ats.tags.list({ +const pageableResponse = await client.ats.tags.list({ createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", @@ -4827,6 +5331,29 @@ await client.ats.tags.list({ pageSize: 1, remoteId: "remote_id" }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ats.tags.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -4863,7 +5390,7 @@ await client.ats.tags.list({
## Ats Users -
client.ats.users.list({ ...params }) -> Merge.PaginatedRemoteUserList +
client.ats.users.list({ ...params }) -> core.Page
@@ -4890,7 +5417,7 @@ Returns a list of `RemoteUser` objects.
```typescript -await client.ats.users.list({ +const pageableResponse = await client.ats.users.list({ createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", @@ -4905,6 +5432,32 @@ await client.ats.users.list({ remoteId: "remote_id", showEnumOrigins: "access_role" }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ats.users.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + email: "email", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "access_role", + remoteId: "remote_id", + showEnumOrigins: "access_role" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -5138,8 +5691,8 @@ await client.ats.webhookReceivers.create({
-## Crm AccountDetails -
client.crm.accountDetails.retrieve() -> Merge.AccountDetails +## Accounting AccountDetails +
client.accounting.accountDetails.retrieve() -> Merge.AccountDetails
@@ -5166,7 +5719,7 @@ Get details for a linked account.
```typescript -await client.crm.accountDetails.retrieve(); +await client.accounting.accountDetails.retrieve(); ```
@@ -5194,8 +5747,8 @@ await client.crm.accountDetails.retrieve();
-## Crm AccountToken -
client.crm.accountToken.retrieve(public_token) -> Merge.AccountToken +## Accounting AccountToken +
client.accounting.accountToken.retrieve(public_token) -> Merge.AccountToken
@@ -5222,7 +5775,7 @@ Returns the account token for the end user with the provided public token.
```typescript -await client.crm.accountToken.retrieve("public_token"); +await client.accounting.accountToken.retrieve("public_token"); ```
@@ -5258,8 +5811,7 @@ await client.crm.accountToken.retrieve("public_token");
-## Crm Accounts -
client.crm.accounts.list({ ...params }) -> Merge.PaginatedAccountList +
client.accounting.accountToken.regenerateCreate() -> Merge.RegenerateAccountToken
@@ -5271,7 +5823,7 @@ await client.crm.accountToken.retrieve("public_token");
-Returns a list of `Account` objects. +Exchange Linked Account account tokens.
@@ -5286,22 +5838,7 @@ Returns a list of `Account` objects.
```typescript -await client.crm.accounts.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "owner", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - name: "name", - ownerId: "owner_id", - pageSize: 1, - remoteId: "remote_id" -}); +await client.accounting.accountToken.regenerateCreate(); ```
@@ -5317,15 +5854,7 @@ await client.crm.accounts.list({
-**request:** `Merge.crm.AccountsListRequest` - -
-
- -
-
- -**requestOptions:** `AccountsClient.RequestOptions` +**requestOptions:** `AccountTokenClient.RequestOptions`
@@ -5337,7 +5866,8 @@ await client.crm.accounts.list({
-
client.crm.accounts.create({ ...params }) -> Merge.CrmAccountResponse +## Accounting AccountingPeriods +
client.accounting.accountingPeriods.list({ ...params }) -> core.Page
@@ -5349,7 +5879,7 @@ await client.crm.accounts.list({
-Creates an `Account` object with the given values. +Returns a list of `AccountingPeriod` objects.
@@ -5364,11 +5894,31 @@ Creates an `Account` object with the given values.
```typescript -await client.crm.accounts.create({ - isDebugMode: true, - runAsync: true, - model: {} +const pageableResponse = await client.accounting.accountingPeriods.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + pageSize: 1 }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.accountingPeriods.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + pageSize: 1 +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -5384,7 +5934,7 @@ await client.crm.accounts.create({
-**request:** `Merge.crm.CrmAccountEndpointRequest` +**request:** `Merge.accounting.AccountingPeriodsListRequest`
@@ -5392,7 +5942,7 @@ await client.crm.accounts.create({
-**requestOptions:** `AccountsClient.RequestOptions` +**requestOptions:** `AccountingPeriodsClient.RequestOptions`
@@ -5404,7 +5954,7 @@ await client.crm.accounts.create({
-
client.crm.accounts.retrieve(id, { ...params }) -> Merge.Account +
client.accounting.accountingPeriods.retrieve(id, { ...params }) -> Merge.AccountingPeriod
@@ -5416,7 +5966,7 @@ await client.crm.accounts.create({
-Returns an `Account` object with the given `id`. +Returns an `AccountingPeriod` object with the given `id`.
@@ -5431,10 +5981,8 @@ Returns an `Account` object with the given `id`.
```typescript -await client.crm.accounts.retrieve("id", { - expand: "owner", +await client.accounting.accountingPeriods.retrieve("id", { includeRemoteData: true, - includeRemoteFields: true, includeShellData: true }); @@ -5460,7 +6008,7 @@ await client.crm.accounts.retrieve("id", {
-**request:** `Merge.crm.AccountsRetrieveRequest` +**request:** `Merge.accounting.AccountingPeriodsRetrieveRequest`
@@ -5468,7 +6016,7 @@ await client.crm.accounts.retrieve("id", {
-**requestOptions:** `AccountsClient.RequestOptions` +**requestOptions:** `AccountingPeriodsClient.RequestOptions`
@@ -5480,7 +6028,8 @@ await client.crm.accounts.retrieve("id", {
-
client.crm.accounts.partialUpdate(id, { ...params }) -> Merge.CrmAccountResponse +## Accounting Accounts +
client.accounting.accounts.list({ ...params }) -> core.Page
@@ -5492,7 +6041,7 @@ await client.crm.accounts.retrieve("id", {
-Updates an `Account` object with the given `id`. +Returns a list of `Account` objects.
@@ -5507,11 +6056,55 @@ Updates an `Account` object with the given `id`.
```typescript -await client.crm.accounts.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {} +const pageableResponse = await client.accounting.accounts.list({ + accountType: "account_type", + classification: "", + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + remoteFields: "classification", + remoteId: "remote_id", + showEnumOrigins: "classification", + status: "" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.accounts.list({ + accountType: "account_type", + classification: "", + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + remoteFields: "classification", + remoteId: "remote_id", + showEnumOrigins: "classification", + status: "" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -5527,15 +6120,7 @@ await client.crm.accounts.partialUpdate("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.PatchedCrmAccountEndpointRequest` +**request:** `Merge.accounting.AccountsListRequest`
@@ -5555,7 +6140,7 @@ await client.crm.accounts.partialUpdate("id", {
-
client.crm.accounts.metaPatchRetrieve(id) -> Merge.MetaResponse +
client.accounting.accounts.create({ ...params }) -> Merge.AccountResponse
@@ -5567,7 +6152,7 @@ await client.crm.accounts.partialUpdate("id", {
-Returns metadata for `CRMAccount` PATCHs. +Creates an `Account` object with the given values.
@@ -5582,7 +6167,13 @@ Returns metadata for `CRMAccount` PATCHs.
```typescript -await client.crm.accounts.metaPatchRetrieve("id"); +await client.accounting.accounts.create({ + isDebugMode: true, + runAsync: true, + body: { + model: {} + } +}); ```
@@ -5598,7 +6189,7 @@ await client.crm.accounts.metaPatchRetrieve("id");
-**id:** `string` +**request:** `Merge.accounting.AccountsCreateRequest`
@@ -5618,7 +6209,7 @@ await client.crm.accounts.metaPatchRetrieve("id");
-
client.crm.accounts.metaPostRetrieve() -> Merge.MetaResponse +
client.accounting.accounts.retrieve(id, { ...params }) -> Merge.Account
@@ -5630,7 +6221,7 @@ await client.crm.accounts.metaPatchRetrieve("id");
-Returns metadata for `CRMAccount` POSTs. +Returns an `Account` object with the given `id`.
@@ -5645,7 +6236,12 @@ Returns metadata for `CRMAccount` POSTs.
```typescript -await client.crm.accounts.metaPostRetrieve(); +await client.accounting.accounts.retrieve("id", { + includeRemoteData: true, + includeShellData: true, + remoteFields: "classification", + showEnumOrigins: "classification" +}); ```
@@ -5661,6 +6257,22 @@ await client.crm.accounts.metaPostRetrieve();
+**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.accounting.AccountsRetrieveRequest` + +
+
+ +
+
+ **requestOptions:** `AccountsClient.RequestOptions`
@@ -5673,7 +6285,7 @@ await client.crm.accounts.metaPostRetrieve();
-
client.crm.accounts.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.accounting.accounts.batchObjectsList(batch_id, { ...params }) -> Merge.PaginatedAccountList
@@ -5685,7 +6297,7 @@ await client.crm.accounts.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Returns a list of `Account` objects.
@@ -5700,15 +6312,24 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.accounts.remoteFieldClassesList({ +await client.accounting.accounts.batchObjectsList("batch_id", { + accountType: "account_type", + classification: "", + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", includeDeletedData: true, includeRemoteData: true, - includeRemoteFields: true, includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + remoteFields: "classification", + remoteId: "remote_id", + showEnumOrigins: "classification", + status: "" }); ``` @@ -5725,7 +6346,15 @@ await client.crm.accounts.remoteFieldClassesList({
-**request:** `Merge.crm.AccountsRemoteFieldClassesListRequest` +**batch_id:** `string` + +
+
+ +
+
+ +**request:** `Merge.accounting.AccountsBatchObjectsListRequest`
@@ -5745,8 +6374,7 @@ await client.crm.accounts.remoteFieldClassesList({
-## Crm AsyncPassthrough -
client.crm.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept +
client.accounting.accounts.asyncBulkCreate({ ...params }) -> Merge.AccountResponse
@@ -5758,7 +6386,7 @@ await client.crm.accounts.remoteFieldClassesList({
-Asynchronously pull data from an endpoint not currently supported by Merge. +Creates an `Account` object with the given values.
@@ -5773,9 +6401,15 @@ Asynchronously pull data from an endpoint not currently supported by Merge.
```typescript -await client.crm.asyncPassthrough.create({ - method: "GET", - path: "/scooters" +await client.accounting.accounts.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [{ + itemId: "item_id", + payload: { + model: {} + } + }] }); ``` @@ -5792,7 +6426,7 @@ await client.crm.asyncPassthrough.create({
-**request:** `Merge.DataPassthroughRequest` +**request:** `Merge.accounting.AccountBulkRequest`
@@ -5800,7 +6434,7 @@ await client.crm.asyncPassthrough.create({
-**requestOptions:** `AsyncPassthroughClient.RequestOptions` +**requestOptions:** `AccountsClient.RequestOptions`
@@ -5812,7 +6446,7 @@ await client.crm.asyncPassthrough.create({
-
client.crm.asyncPassthrough.retrieve(async_passthrough_receipt_id) -> Merge.AsyncPassthroughRetrieveResponse +
client.accounting.accounts.metaPostRetrieve() -> Merge.MetaResponse
@@ -5824,7 +6458,7 @@ await client.crm.asyncPassthrough.create({
-Retrieves data from earlier async-passthrough POST request +Returns metadata for `Account` POSTs.
@@ -5839,7 +6473,7 @@ Retrieves data from earlier async-passthrough POST request
```typescript -await client.crm.asyncPassthrough.retrieve("async_passthrough_receipt_id"); +await client.accounting.accounts.metaPostRetrieve(); ```
@@ -5855,15 +6489,7 @@ await client.crm.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-**async_passthrough_receipt_id:** `string` - -
-
- -
-
- -**requestOptions:** `AsyncPassthroughClient.RequestOptions` +**requestOptions:** `AccountsClient.RequestOptions`
@@ -5875,8 +6501,8 @@ await client.crm.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-## Crm AuditTrail -
client.crm.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList +## Accounting Addresses +
client.accounting.addresses.retrieve(id, { ...params }) -> Merge.Address
@@ -5888,7 +6514,7 @@ await client.crm.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-Gets a list of audit trail events. +Returns an `Address` object with the given `id`.
@@ -5903,13 +6529,11 @@ Gets a list of audit trail events.
```typescript -await client.crm.auditTrail.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - eventType: "event_type", - pageSize: 1, - startDate: "start_date", - userEmail: "user_email" +await client.accounting.addresses.retrieve("id", { + includeRemoteData: true, + includeShellData: true, + remoteFields: "type", + showEnumOrigins: "type" }); ``` @@ -5926,7 +6550,7 @@ await client.crm.auditTrail.list({
-**request:** `Merge.crm.AuditTrailListRequest` +**id:** `string`
@@ -5934,63 +6558,15 @@ await client.crm.auditTrail.list({
-**requestOptions:** `AuditTrailClient.RequestOptions` +**request:** `Merge.accounting.AddressesRetrieveRequest`
-
-
- - - - -
- -## Crm AvailableActions -
client.crm.availableActions.retrieve() -> Merge.AvailableActions -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of models and actions available for an account. -
-
-
-
- -#### 🔌 Usage - -
-
-```typescript -await client.crm.availableActions.retrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `AvailableActionsClient.RequestOptions` +**requestOptions:** `AddressesClient.RequestOptions`
@@ -6002,8 +6578,8 @@ await client.crm.availableActions.retrieve();
-## Crm Contacts -
client.crm.contacts.list({ ...params }) -> Merge.PaginatedContactList +## Accounting AsyncPassthrough +
client.accounting.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept
@@ -6015,7 +6591,7 @@ await client.crm.availableActions.retrieve();
-Returns a list of `Contact` objects. +Asynchronously pull data from an endpoint not currently supported by Merge.
@@ -6030,22 +6606,9 @@ Returns a list of `Contact` objects.
```typescript -await client.crm.contacts.list({ - accountId: "account_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - emailAddresses: "email_addresses", - expand: "account", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - phoneNumbers: "phone_numbers", - remoteId: "remote_id" +await client.accounting.asyncPassthrough.create({ + method: "GET", + path: "/scooters" }); ``` @@ -6062,7 +6625,7 @@ await client.crm.contacts.list({
-**request:** `Merge.crm.ContactsListRequest` +**request:** `Merge.DataPassthroughRequest`
@@ -6070,7 +6633,7 @@ await client.crm.contacts.list({
-**requestOptions:** `ContactsClient.RequestOptions` +**requestOptions:** `AsyncPassthroughClient.RequestOptions`
@@ -6082,7 +6645,7 @@ await client.crm.contacts.list({
-
client.crm.contacts.create({ ...params }) -> Merge.CrmContactResponse +
client.accounting.asyncPassthrough.retrieve(async_passthrough_receipt_id) -> Merge.AsyncPassthroughRetrieveResponse
@@ -6094,7 +6657,7 @@ await client.crm.contacts.list({
-Creates a `Contact` object with the given values. +Retrieves data from earlier async-passthrough POST request
@@ -6109,11 +6672,7 @@ Creates a `Contact` object with the given values.
```typescript -await client.crm.contacts.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); +await client.accounting.asyncPassthrough.retrieve("async_passthrough_receipt_id"); ```
@@ -6129,7 +6688,7 @@ await client.crm.contacts.create({
-**request:** `Merge.crm.CrmContactEndpointRequest` +**async_passthrough_receipt_id:** `string`
@@ -6137,7 +6696,7 @@ await client.crm.contacts.create({
-**requestOptions:** `ContactsClient.RequestOptions` +**requestOptions:** `AsyncPassthroughClient.RequestOptions`
@@ -6149,7 +6708,8 @@ await client.crm.contacts.create({
-
client.crm.contacts.retrieve(id, { ...params }) -> Merge.Contact +## Accounting AsyncTasks +
client.accounting.asyncTasks.retrieve(id) -> Merge.AsyncPostTask
@@ -6161,7 +6721,7 @@ await client.crm.contacts.create({
-Returns a `Contact` object with the given `id`. +Returns an `AsyncPostTask` object with the given `id`.
@@ -6176,12 +6736,7 @@ Returns a `Contact` object with the given `id`.
```typescript -await client.crm.contacts.retrieve("id", { - expand: "account", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true -}); +await client.accounting.asyncTasks.retrieve("id"); ```
@@ -6205,15 +6760,7 @@ await client.crm.contacts.retrieve("id", {
-**request:** `Merge.crm.ContactsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `ContactsClient.RequestOptions` +**requestOptions:** `AsyncTasksClient.RequestOptions`
@@ -6225,7 +6772,8 @@ await client.crm.contacts.retrieve("id", {
-
client.crm.contacts.partialUpdate(id, { ...params }) -> Merge.CrmContactResponse +## Accounting Attachments +
client.accounting.attachments.list({ ...params }) -> core.Page
@@ -6237,7 +6785,7 @@ await client.crm.contacts.retrieve("id", {
-Updates a `Contact` object with the given `id`. +Returns a list of `AccountingAttachment` objects.
@@ -6252,11 +6800,43 @@ Updates a `Contact` object with the given `id`.
```typescript -await client.crm.contacts.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {} +const pageableResponse = await client.accounting.attachments.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.attachments.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -6272,15 +6852,7 @@ await client.crm.contacts.partialUpdate("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.PatchedCrmContactEndpointRequest` +**request:** `Merge.accounting.AttachmentsListRequest`
@@ -6288,7 +6860,7 @@ await client.crm.contacts.partialUpdate("id", {
-**requestOptions:** `ContactsClient.RequestOptions` +**requestOptions:** `AttachmentsClient.RequestOptions`
@@ -6300,7 +6872,7 @@ await client.crm.contacts.partialUpdate("id", {
-
client.crm.contacts.ignoreCreate(model_id, { ...params }) -> void +
client.accounting.attachments.create({ ...params }) -> Merge.AccountingAttachmentResponse
@@ -6312,7 +6884,7 @@ await client.crm.contacts.partialUpdate("id", {
-Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. +Creates an `AccountingAttachment` object with the given values.
@@ -6327,8 +6899,12 @@ Ignores a specific row based on the `model_id` in the url. These records will ha
```typescript -await client.crm.contacts.ignoreCreate("model_id", { - reason: "GENERAL_CUSTOMER_REQUEST" +await client.accounting.attachments.create({ + isDebugMode: true, + runAsync: true, + body: { + model: {} + } }); ``` @@ -6345,15 +6921,7 @@ await client.crm.contacts.ignoreCreate("model_id", {
-**model_id:** `string` - -
-
- -
-
- -**request:** `Merge.IgnoreCommonModelRequest` +**request:** `Merge.accounting.AttachmentsCreateRequest`
@@ -6361,7 +6929,7 @@ await client.crm.contacts.ignoreCreate("model_id", {
-**requestOptions:** `ContactsClient.RequestOptions` +**requestOptions:** `AttachmentsClient.RequestOptions`
@@ -6373,7 +6941,7 @@ await client.crm.contacts.ignoreCreate("model_id", {
-
client.crm.contacts.metaPatchRetrieve(id) -> Merge.MetaResponse +
client.accounting.attachments.retrieve(id, { ...params }) -> Merge.AccountingAttachment
@@ -6385,7 +6953,7 @@ await client.crm.contacts.ignoreCreate("model_id", {
-Returns metadata for `CRMContact` PATCHs. +Returns an `AccountingAttachment` object with the given `id`.
@@ -6400,7 +6968,10 @@ Returns metadata for `CRMContact` PATCHs.
```typescript -await client.crm.contacts.metaPatchRetrieve("id"); +await client.accounting.attachments.retrieve("id", { + includeRemoteData: true, + includeShellData: true +}); ```
@@ -6424,7 +6995,15 @@ await client.crm.contacts.metaPatchRetrieve("id");
-**requestOptions:** `ContactsClient.RequestOptions` +**request:** `Merge.accounting.AttachmentsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `AttachmentsClient.RequestOptions`
@@ -6436,7 +7015,7 @@ await client.crm.contacts.metaPatchRetrieve("id");
-
client.crm.contacts.metaPostRetrieve() -> Merge.MetaResponse +
client.accounting.attachments.batchObjectsList(batch_id, { ...params }) -> Merge.PaginatedAccountingAttachmentList
@@ -6448,7 +7027,7 @@ await client.crm.contacts.metaPatchRetrieve("id");
-Returns metadata for `CRMContact` POSTs. +Returns a list of `AccountingAttachment` objects.
@@ -6463,7 +7042,19 @@ Returns metadata for `CRMContact` POSTs.
```typescript -await client.crm.contacts.metaPostRetrieve(); +await client.accounting.attachments.batchObjectsList("batch_id", { + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); ```
@@ -6479,7 +7070,23 @@ await client.crm.contacts.metaPostRetrieve();
-**requestOptions:** `ContactsClient.RequestOptions` +**batch_id:** `string` + +
+
+ +
+
+ +**request:** `Merge.accounting.AttachmentsBatchObjectsListRequest` + +
+
+ +
+
+ +**requestOptions:** `AttachmentsClient.RequestOptions`
@@ -6491,7 +7098,7 @@ await client.crm.contacts.metaPostRetrieve();
-
client.crm.contacts.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.accounting.attachments.asyncBulkCreate({ ...params }) -> Merge.AccountingAttachmentResponse
@@ -6503,7 +7110,7 @@ await client.crm.contacts.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Creates an `AccountingAttachment` object with the given values.
@@ -6518,15 +7125,15 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.contacts.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 +await client.accounting.attachments.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [{ + itemId: "item_id", + payload: { + model: {} + } + }] }); ``` @@ -6543,7 +7150,7 @@ await client.crm.contacts.remoteFieldClassesList({
-**request:** `Merge.crm.ContactsRemoteFieldClassesListRequest` +**request:** `Merge.accounting.AccountingAttachmentBulkRequest`
@@ -6551,7 +7158,7 @@ await client.crm.contacts.remoteFieldClassesList({
-**requestOptions:** `ContactsClient.RequestOptions` +**requestOptions:** `AttachmentsClient.RequestOptions`
@@ -6563,8 +7170,7 @@ await client.crm.contacts.remoteFieldClassesList({
-## Crm CustomObjectClasses -
client.crm.customObjectClasses.list({ ...params }) -> Merge.PaginatedCustomObjectClassList +
client.accounting.attachments.metaPostRetrieve() -> Merge.MetaResponse
@@ -6576,7 +7182,7 @@ await client.crm.contacts.remoteFieldClassesList({
-Returns a list of `CustomObjectClass` objects. +Returns metadata for `AccountingAttachment` POSTs.
@@ -6591,19 +7197,7 @@ Returns a list of `CustomObjectClass` objects.
```typescript -await client.crm.customObjectClasses.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "fields", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id" -}); +await client.accounting.attachments.metaPostRetrieve(); ```
@@ -6619,15 +7213,7 @@ await client.crm.customObjectClasses.list({
-**request:** `Merge.crm.CustomObjectClassesListRequest` - -
-
- -
-
- -**requestOptions:** `CustomObjectClassesClient.RequestOptions` +**requestOptions:** `AttachmentsClient.RequestOptions`
@@ -6639,7 +7225,8 @@ await client.crm.customObjectClasses.list({
-
client.crm.customObjectClasses.retrieve(id, { ...params }) -> Merge.CustomObjectClass +## Accounting AuditTrail +
client.accounting.auditTrail.list({ ...params }) -> core.Page
@@ -6651,7 +7238,7 @@ await client.crm.customObjectClasses.list({
-Returns a `CustomObjectClass` object with the given `id`. +Gets a list of audit trail events.
@@ -6666,11 +7253,33 @@ Returns a `CustomObjectClass` object with the given `id`.
```typescript -await client.crm.customObjectClasses.retrieve("id", { - expand: "fields", - includeRemoteData: true, - includeShellData: true +const pageableResponse = await client.accounting.auditTrail.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endDate: "end_date", + eventType: "event_type", + pageSize: 1, + startDate: "start_date", + userEmail: "user_email" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.auditTrail.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endDate: "end_date", + eventType: "event_type", + pageSize: 1, + startDate: "start_date", + userEmail: "user_email" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -6686,15 +7295,7 @@ await client.crm.customObjectClasses.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.CustomObjectClassesRetrieveRequest` +**request:** `Merge.accounting.AuditTrailListRequest`
@@ -6702,7 +7303,7 @@ await client.crm.customObjectClasses.retrieve("id", {
-**requestOptions:** `CustomObjectClassesClient.RequestOptions` +**requestOptions:** `AuditTrailClient.RequestOptions`
@@ -6714,8 +7315,8 @@ await client.crm.customObjectClasses.retrieve("id", {
-## Crm AssociationTypes -
client.crm.associationTypes.customObjectClassesAssociationTypesList(custom_object_class_id, { ...params }) -> Merge.PaginatedAssociationTypeList +## Accounting AvailableActions +
client.accounting.availableActions.retrieve() -> Merge.AvailableActions
@@ -6727,7 +7328,7 @@ await client.crm.customObjectClasses.retrieve("id", {
-Returns a list of `AssociationType` objects. +Returns a list of models and actions available for an account.
@@ -6742,19 +7343,7 @@ Returns a list of `AssociationType` objects.
```typescript -await client.crm.associationTypes.customObjectClassesAssociationTypesList("custom_object_class_id", { - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "target_object_classes", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id" -}); +await client.accounting.availableActions.retrieve(); ```
@@ -6770,23 +7359,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesList("custo
-**custom_object_class_id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.CustomObjectClassesAssociationTypesListRequest` - -
-
- -
-
- -**requestOptions:** `AssociationTypesClient.RequestOptions` +**requestOptions:** `AvailableActionsClient.RequestOptions`
@@ -6798,7 +7371,8 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesList("custo
-
client.crm.associationTypes.customObjectClassesAssociationTypesCreate(custom_object_class_id, { ...params }) -> Merge.CrmAssociationTypeResponse +## Accounting BalanceSheets +
client.accounting.balanceSheets.list({ ...params }) -> core.Page
@@ -6810,7 +7384,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesList("custo
-Creates an `AssociationType` object with the given values. +Returns a list of `BalanceSheet` objects.
@@ -6825,21 +7399,43 @@ Creates an `AssociationType` object with the given values.
```typescript -await client.crm.associationTypes.customObjectClassesAssociationTypesCreate("custom_object_class_id", { - isDebugMode: true, - runAsync: true, - model: { - sourceObjectClass: { - id: "id", - originType: "CUSTOM_OBJECT" - }, - targetObjectClasses: [{ - id: "id", - originType: "CUSTOM_OBJECT" - }], - remoteKeyName: "remote_key_name" - } +const pageableResponse = await client.accounting.balanceSheets.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.balanceSheets.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -6855,15 +7451,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesCreate("cus
-**custom_object_class_id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.CrmAssociationTypeEndpointRequest` +**request:** `Merge.accounting.BalanceSheetsListRequest`
@@ -6871,7 +7459,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesCreate("cus
-**requestOptions:** `AssociationTypesClient.RequestOptions` +**requestOptions:** `BalanceSheetsClient.RequestOptions`
@@ -6883,7 +7471,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesCreate("cus
-
client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve(custom_object_class_id, id, { ...params }) -> Merge.AssociationType +
client.accounting.balanceSheets.retrieve(id, { ...params }) -> Merge.BalanceSheet
@@ -6895,7 +7483,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesCreate("cus
-Returns an `AssociationType` object with the given `id`. +Returns a `BalanceSheet` object with the given `id`.
@@ -6910,8 +7498,7 @@ Returns an `AssociationType` object with the given `id`.
```typescript -await client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve("custom_object_class_id", "id", { - expand: "target_object_classes", +await client.accounting.balanceSheets.retrieve("id", { includeRemoteData: true, includeShellData: true }); @@ -6930,14 +7517,6 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve("c
-**custom_object_class_id:** `string` - -
-
- -
-
- **id:** `string`
@@ -6946,7 +7525,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve("c
-**request:** `Merge.crm.CustomObjectClassesAssociationTypesRetrieveRequest` +**request:** `Merge.accounting.BalanceSheetsRetrieveRequest`
@@ -6954,7 +7533,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve("c
-**requestOptions:** `AssociationTypesClient.RequestOptions` +**requestOptions:** `BalanceSheetsClient.RequestOptions`
@@ -6966,7 +7545,8 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve("c
-
client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRetrieve(custom_object_class_id) -> Merge.MetaResponse +## Accounting BankFeedAccounts +
client.accounting.bankFeedAccounts.list({ ...params }) -> core.Page
@@ -6978,7 +7558,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve("c
-Returns metadata for `CRMAssociationType` POSTs. +Returns a list of `BankFeedAccount` objects.
@@ -6993,7 +7573,31 @@ Returns metadata for `CRMAssociationType` POSTs.
```typescript -await client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRetrieve("custom_object_class_id"); +const pageableResponse = await client.accounting.bankFeedAccounts.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.bankFeedAccounts.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + pageSize: 1 +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -7009,7 +7613,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRet
-**custom_object_class_id:** `string` +**request:** `Merge.accounting.BankFeedAccountsListRequest`
@@ -7017,7 +7621,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRet
-**requestOptions:** `AssociationTypesClient.RequestOptions` +**requestOptions:** `BankFeedAccountsClient.RequestOptions`
@@ -7029,8 +7633,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRet
-## Crm CustomObjects -
client.crm.customObjects.customObjectClassesCustomObjectsList(custom_object_class_id, { ...params }) -> Merge.PaginatedCustomObjectList +
client.accounting.bankFeedAccounts.create({ ...params }) -> Merge.BankFeedAccountResponse
@@ -7042,7 +7645,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRet
-Returns a list of `CustomObject` objects. +Creates a `BankFeedAccount` object with the given values.
@@ -7057,18 +7660,12 @@ Returns a list of `CustomObject` objects.
```typescript -await client.crm.customObjects.customObjectClassesCustomObjectsList("custom_object_class_id", { - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id" +await client.accounting.bankFeedAccounts.create({ + isDebugMode: true, + runAsync: true, + body: { + model: {} + } }); ``` @@ -7085,15 +7682,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsList("custom_obje
-**custom_object_class_id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.CustomObjectClassesCustomObjectsListRequest` +**request:** `Merge.accounting.BankFeedAccountsCreateRequest`
@@ -7101,7 +7690,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsList("custom_obje
-**requestOptions:** `CustomObjectsClient.RequestOptions` +**requestOptions:** `BankFeedAccountsClient.RequestOptions`
@@ -7113,7 +7702,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsList("custom_obje
-
client.crm.customObjects.customObjectClassesCustomObjectsCreate(custom_object_class_id, { ...params }) -> Merge.CrmCustomObjectResponse +
client.accounting.bankFeedAccounts.retrieve(id, { ...params }) -> Merge.BankFeedAccount
@@ -7125,7 +7714,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsList("custom_obje
-Creates a `CustomObject` object with the given values. +Returns a `BankFeedAccount` object with the given `id`.
@@ -7140,14 +7729,9 @@ Creates a `CustomObject` object with the given values.
```typescript -await client.crm.customObjects.customObjectClassesCustomObjectsCreate("custom_object_class_id", { - isDebugMode: true, - runAsync: true, - model: { - fields: { - "test_field": "hello" - } - } +await client.accounting.bankFeedAccounts.retrieve("id", { + includeRemoteData: true, + includeShellData: true }); ``` @@ -7164,7 +7748,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsCreate("custom_ob
-**custom_object_class_id:** `string` +**id:** `string`
@@ -7172,7 +7756,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsCreate("custom_ob
-**request:** `Merge.crm.CrmCustomObjectEndpointRequest` +**request:** `Merge.accounting.BankFeedAccountsRetrieveRequest`
@@ -7180,7 +7764,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsCreate("custom_ob
-**requestOptions:** `CustomObjectsClient.RequestOptions` +**requestOptions:** `BankFeedAccountsClient.RequestOptions`
@@ -7192,7 +7776,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsCreate("custom_ob
-
client.crm.customObjects.customObjectClassesCustomObjectsRetrieve(custom_object_class_id, id, { ...params }) -> Merge.CustomObject +
client.accounting.bankFeedAccounts.batchObjectsList(batch_id, { ...params }) -> Merge.PaginatedBankFeedAccountList
@@ -7204,7 +7788,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsCreate("custom_ob
-Returns a `CustomObject` object with the given `id`. +Returns a list of `BankFeedAccount` objects.
@@ -7219,10 +7803,12 @@ Returns a `CustomObject` object with the given `id`.
```typescript -await client.crm.customObjects.customObjectClassesCustomObjectsRetrieve("custom_object_class_id", "id", { +await client.accounting.bankFeedAccounts.batchObjectsList("batch_id", { + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true + includeShellData: true, + pageSize: 1 }); ``` @@ -7239,15 +7825,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsRetrieve("custom_
-**custom_object_class_id:** `string` - -
-
- -
-
- -**id:** `string` +**batch_id:** `string`
@@ -7255,7 +7833,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsRetrieve("custom_
-**request:** `Merge.crm.CustomObjectClassesCustomObjectsRetrieveRequest` +**request:** `Merge.accounting.BankFeedAccountsBatchObjectsListRequest`
@@ -7263,7 +7841,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsRetrieve("custom_
-**requestOptions:** `CustomObjectsClient.RequestOptions` +**requestOptions:** `BankFeedAccountsClient.RequestOptions`
@@ -7275,7 +7853,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsRetrieve("custom_
-
client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve(custom_object_class_id) -> Merge.MetaResponse +
client.accounting.bankFeedAccounts.asyncBulkCreate({ ...params }) -> Merge.BankFeedAccountResponse
@@ -7287,7 +7865,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsRetrieve("custom_
-Returns metadata for `CRMCustomObject` POSTs. +Creates a `BankFeedAccount` object with the given values.
@@ -7302,7 +7880,16 @@ Returns metadata for `CRMCustomObject` POSTs.
```typescript -await client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve("custom_object_class_id"); +await client.accounting.bankFeedAccounts.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [{ + itemId: "item_id", + payload: { + model: {} + } + }] +}); ```
@@ -7318,7 +7905,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve(
-**custom_object_class_id:** `string` +**request:** `Merge.accounting.BankFeedAccountBulkRequest`
@@ -7326,7 +7913,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve(
-**requestOptions:** `CustomObjectsClient.RequestOptions` +**requestOptions:** `BankFeedAccountsClient.RequestOptions`
@@ -7338,7 +7925,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve(
-
client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.accounting.bankFeedAccounts.metaPostRetrieve() -> Merge.MetaResponse
@@ -7350,7 +7937,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve(
-Returns a list of `RemoteFieldClass` objects. +Returns metadata for `BankFeedAccount` POSTs.
@@ -7365,16 +7952,7 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 -}); +await client.accounting.bankFeedAccounts.metaPostRetrieve(); ```
@@ -7390,15 +7968,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClasse
-**request:** `Merge.crm.CustomObjectClassesCustomObjectsRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `CustomObjectsClient.RequestOptions` +**requestOptions:** `BankFeedAccountsClient.RequestOptions`
@@ -7410,8 +7980,8 @@ await client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClasse
-## Crm Associations -
client.crm.associations.customObjectClassesCustomObjectsAssociationsList(custom_object_class_id, object_id, { ...params }) -> Merge.PaginatedAssociationList +## Accounting BankFeedTransactions +
client.accounting.bankFeedTransactions.list({ ...params }) -> core.Page
@@ -7423,7 +7993,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClasse
-Returns a list of `Association` objects. +Returns a list of `BankFeedTransaction` objects.
@@ -7438,20 +8008,43 @@ Returns a list of `Association` objects.
```typescript -await client.crm.associations.customObjectClassesCustomObjectsAssociationsList("custom_object_class_id", "object_id", { - associationTypeId: "association_type_id", +const pageableResponse = await client.accounting.bankFeedTransactions.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isProcessed: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.bankFeedTransactions.list({ createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "association_type", includeDeletedData: true, includeRemoteData: true, includeShellData: true, + isProcessed: true, modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), pageSize: 1, remoteId: "remote_id" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -7467,23 +8060,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsList("
-**custom_object_class_id:** `string` - -
-
- -
-
- -**object_id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.CustomObjectClassesCustomObjectsAssociationsListRequest` +**request:** `Merge.accounting.BankFeedTransactionsListRequest`
@@ -7491,7 +8068,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsList("
-**requestOptions:** `AssociationsClient.RequestOptions` +**requestOptions:** `BankFeedTransactionsClient.RequestOptions`
@@ -7503,7 +8080,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsList("
-
client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate(source_class_id, source_object_id, target_class_id, target_object_id, association_type_id, { ...params }) -> Merge.Association +
client.accounting.bankFeedTransactions.create({ ...params }) -> Merge.BankFeedTransactionResponse
@@ -7515,7 +8092,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsList("
-Creates an Association between `source_object_id` and `target_object_id` of type `association_type_id`. +Creates a `BankFeedTransaction` object with the given values.
@@ -7530,9 +8107,12 @@ Creates an Association between `source_object_id` and `target_object_id` of type
```typescript -await client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate("source_class_id", "source_object_id", "target_class_id", "target_object_id", "association_type_id", { +await client.accounting.bankFeedTransactions.create({ isDebugMode: true, - runAsync: true + runAsync: true, + body: { + model: {} + } }); ``` @@ -7549,7 +8129,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate
-**source_class_id:** `string` +**request:** `Merge.accounting.BankFeedTransactionsCreateRequest`
@@ -7557,31 +8137,65 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate
-**source_object_id:** `string` +**requestOptions:** `BankFeedTransactionsClient.RequestOptions`
+
+
+ + + + +
+
client.accounting.bankFeedTransactions.retrieve(id, { ...params }) -> Merge.BankFeedTransaction
-**target_class_id:** `string` - +#### 📝 Description + +
+
+ +
+
+ +Returns a `BankFeedTransaction` object with the given `id`. +
+
+#### 🔌 Usage +
-**target_object_id:** `string` - +
+
+ +```typescript +await client.accounting.bankFeedTransactions.retrieve("id", { + includeRemoteData: true, + includeShellData: true +}); + +``` +
+
+#### ⚙️ Parameters +
-**association_type_id:** `string` +
+
+ +**id:** `string`
@@ -7589,7 +8203,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate
-**request:** `Merge.crm.CustomObjectClassesCustomObjectsAssociationsUpdateRequest` +**request:** `Merge.accounting.BankFeedTransactionsRetrieveRequest`
@@ -7597,7 +8211,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate
-**requestOptions:** `AssociationsClient.RequestOptions` +**requestOptions:** `BankFeedTransactionsClient.RequestOptions`
@@ -7609,8 +8223,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate
-## Crm Scopes -
client.crm.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi +
client.accounting.bankFeedTransactions.batchObjectsList(batch_id, { ...params }) -> Merge.PaginatedBankFeedTransactionList
@@ -7622,7 +8235,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate
-Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +Returns a list of `BankFeedTransaction` objects.
@@ -7637,7 +8250,19 @@ Get the default permissions for Merge Common Models and fields across all Linked
```typescript -await client.crm.scopes.defaultScopesRetrieve(); +await client.accounting.bankFeedTransactions.batchObjectsList("batch_id", { + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isProcessed: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); ```
@@ -7653,7 +8278,23 @@ await client.crm.scopes.defaultScopesRetrieve();
-**requestOptions:** `ScopesClient.RequestOptions` +**batch_id:** `string` + +
+
+ +
+
+ +**request:** `Merge.accounting.BankFeedTransactionsBatchObjectsListRequest` + +
+
+ +
+
+ +**requestOptions:** `BankFeedTransactionsClient.RequestOptions`
@@ -7665,7 +8306,7 @@ await client.crm.scopes.defaultScopesRetrieve();
-
client.crm.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi +
client.accounting.bankFeedTransactions.asyncBulkCreate({ ...params }) -> Merge.BankFeedTransactionResponse
@@ -7677,7 +8318,7 @@ await client.crm.scopes.defaultScopesRetrieve();
-Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +Creates a `BankFeedTransaction` object with the given values.
@@ -7692,7 +8333,16 @@ Get all available permissions for Merge Common Models and fields for a single Li
```typescript -await client.crm.scopes.linkedAccountScopesRetrieve(); +await client.accounting.bankFeedTransactions.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [{ + itemId: "item_id", + payload: { + model: {} + } + }] +}); ```
@@ -7708,7 +8358,15 @@ await client.crm.scopes.linkedAccountScopesRetrieve();
-**requestOptions:** `ScopesClient.RequestOptions` +**request:** `Merge.accounting.BankFeedTransactionBulkRequest` + +
+
+ +
+
+ +**requestOptions:** `BankFeedTransactionsClient.RequestOptions`
@@ -7720,7 +8378,7 @@ await client.crm.scopes.linkedAccountScopesRetrieve();
-
client.crm.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi +
client.accounting.bankFeedTransactions.metaPostRetrieve() -> Merge.MetaResponse
@@ -7732,7 +8390,7 @@ await client.crm.scopes.linkedAccountScopesRetrieve();
-Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) +Returns metadata for `BankFeedTransaction` POSTs.
@@ -7747,30 +8405,7 @@ Update permissions for any Common Model or field for a single Linked Account. An
```typescript -await client.crm.scopes.linkedAccountScopesCreate({ - commonModels: [{ - modelName: "Employee", - modelPermissions: { - "READ": { - isEnabled: true - }, - "WRITE": { - isEnabled: false - } - }, - fieldPermissions: { - enabledFields: ["avatar", "home_location"], - disabledFields: ["work_location"] - } - }, { - modelName: "Benefit", - modelPermissions: { - "WRITE": { - isEnabled: false - } - } - }] -}); +await client.accounting.bankFeedTransactions.metaPostRetrieve(); ```
@@ -7786,15 +8421,7 @@ await client.crm.scopes.linkedAccountScopesCreate({
-**request:** `Merge.crm.LinkedAccountCommonModelScopeDeserializerRequest` - -
-
- -
-
- -**requestOptions:** `ScopesClient.RequestOptions` +**requestOptions:** `BankFeedTransactionsClient.RequestOptions`
@@ -7806,8 +8433,8 @@ await client.crm.scopes.linkedAccountScopesCreate({
-## Crm DeleteAccount -
client.crm.deleteAccount.delete() -> void +## Accounting CashFlowStatements +
client.accounting.cashFlowStatements.list({ ...params }) -> core.Page
@@ -7819,7 +8446,7 @@ await client.crm.scopes.linkedAccountScopesCreate({
-Delete a linked account. +Returns a list of `CashFlowStatement` objects.
@@ -7834,75 +8461,43 @@ Delete a linked account.
```typescript -await client.crm.deleteAccount.delete(); - -``` -
-
- - - -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `DeleteAccountClient.RequestOptions` - -
-
-
-
- - - - -
- -## Crm EngagementTypes -
client.crm.engagementTypes.list({ ...params }) -> Merge.PaginatedEngagementTypeList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `EngagementType` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
+const pageableResponse = await client.accounting.cashFlowStatements.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} -```typescript -await client.crm.engagementTypes.list({ +// Or you can manually iterate page-by-page +let page = await client.accounting.cashFlowStatements.list({ + companyId: "company_id", createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", includeDeletedData: true, includeRemoteData: true, - includeRemoteFields: true, includeShellData: true, modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), pageSize: 1, remoteId: "remote_id" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -7918,7 +8513,7 @@ await client.crm.engagementTypes.list({
-**request:** `Merge.crm.EngagementTypesListRequest` +**request:** `Merge.accounting.CashFlowStatementsListRequest`
@@ -7926,7 +8521,7 @@ await client.crm.engagementTypes.list({
-**requestOptions:** `EngagementTypesClient.RequestOptions` +**requestOptions:** `CashFlowStatementsClient.RequestOptions`
@@ -7938,7 +8533,7 @@ await client.crm.engagementTypes.list({
-
client.crm.engagementTypes.retrieve(id, { ...params }) -> Merge.EngagementType +
client.accounting.cashFlowStatements.retrieve(id, { ...params }) -> Merge.CashFlowStatement
@@ -7950,7 +8545,7 @@ await client.crm.engagementTypes.list({
-Returns an `EngagementType` object with the given `id`. +Returns a `CashFlowStatement` object with the given `id`.
@@ -7965,9 +8560,8 @@ Returns an `EngagementType` object with the given `id`.
```typescript -await client.crm.engagementTypes.retrieve("id", { +await client.accounting.cashFlowStatements.retrieve("id", { includeRemoteData: true, - includeRemoteFields: true, includeShellData: true }); @@ -7993,7 +8587,7 @@ await client.crm.engagementTypes.retrieve("id", {
-**request:** `Merge.crm.EngagementTypesRetrieveRequest` +**request:** `Merge.accounting.CashFlowStatementsRetrieveRequest`
@@ -8001,7 +8595,7 @@ await client.crm.engagementTypes.retrieve("id", {
-**requestOptions:** `EngagementTypesClient.RequestOptions` +**requestOptions:** `CashFlowStatementsClient.RequestOptions`
@@ -8013,7 +8607,8 @@ await client.crm.engagementTypes.retrieve("id", {
-
client.crm.engagementTypes.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +## Accounting CompanyInfo +
client.accounting.companyInfo.list({ ...params }) -> core.Page
@@ -8025,7 +8620,7 @@ await client.crm.engagementTypes.retrieve("id", {
-Returns a list of `RemoteFieldClass` objects. +Returns a list of `CompanyInfo` objects.
@@ -8040,16 +8635,43 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.engagementTypes.remoteFieldClassesList({ +const pageableResponse = await client.accounting.companyInfo.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", includeDeletedData: true, includeRemoteData: true, - includeRemoteFields: true, includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + remoteId: "remote_id" }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.companyInfo.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + remoteId: "remote_id" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -8065,7 +8687,7 @@ await client.crm.engagementTypes.remoteFieldClassesList({
-**request:** `Merge.crm.EngagementTypesRemoteFieldClassesListRequest` +**request:** `Merge.accounting.CompanyInfoListRequest`
@@ -8073,7 +8695,7 @@ await client.crm.engagementTypes.remoteFieldClassesList({
-**requestOptions:** `EngagementTypesClient.RequestOptions` +**requestOptions:** `CompanyInfoClient.RequestOptions`
@@ -8085,8 +8707,7 @@ await client.crm.engagementTypes.remoteFieldClassesList({
-## Crm Engagements -
client.crm.engagements.list({ ...params }) -> Merge.PaginatedEngagementList +
client.accounting.companyInfo.retrieve(id, { ...params }) -> Merge.CompanyInfo
@@ -8098,7 +8719,7 @@ await client.crm.engagementTypes.remoteFieldClassesList({
-Returns a list of `Engagement` objects. +Returns a `CompanyInfo` object with the given `id`.
@@ -8113,21 +8734,9 @@ Returns a list of `Engagement` objects.
```typescript -await client.crm.engagements.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "account", - includeDeletedData: true, +await client.accounting.companyInfo.retrieve("id", { includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - startedAfter: new Date("2024-01-15T09:30:00.000Z"), - startedBefore: new Date("2024-01-15T09:30:00.000Z") + includeShellData: true }); ``` @@ -8144,7 +8753,7 @@ await client.crm.engagements.list({
-**request:** `Merge.crm.EngagementsListRequest` +**id:** `string`
@@ -8152,7 +8761,15 @@ await client.crm.engagements.list({
-**requestOptions:** `EngagementsClient.RequestOptions` +**request:** `Merge.accounting.CompanyInfoRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `CompanyInfoClient.RequestOptions`
@@ -8164,7 +8781,8 @@ await client.crm.engagements.list({
-
client.crm.engagements.create({ ...params }) -> Merge.EngagementResponse +## Accounting Contacts +
client.accounting.contacts.list({ ...params }) -> core.Page
@@ -8176,7 +8794,7 @@ await client.crm.engagements.list({
-Creates an `Engagement` object with the given values. +Returns a list of `Contact` objects.
@@ -8191,11 +8809,59 @@ Creates an `Engagement` object with the given values.
```typescript -await client.crm.engagements.create({ - isDebugMode: true, - runAsync: true, - model: {} +const pageableResponse = await client.accounting.contacts.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + emailAddress: "email_address", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCustomer: "is_customer", + isSupplier: "is_supplier", + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status", + status: "" }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.contacts.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + emailAddress: "email_address", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCustomer: "is_customer", + isSupplier: "is_supplier", + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status", + status: "" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -8211,7 +8877,7 @@ await client.crm.engagements.create({
-**request:** `Merge.crm.EngagementEndpointRequest` +**request:** `Merge.accounting.ContactsListRequest`
@@ -8219,7 +8885,7 @@ await client.crm.engagements.create({
-**requestOptions:** `EngagementsClient.RequestOptions` +**requestOptions:** `ContactsClient.RequestOptions`
@@ -8231,7 +8897,7 @@ await client.crm.engagements.create({
-
client.crm.engagements.retrieve(id, { ...params }) -> Merge.Engagement +
client.accounting.contacts.create({ ...params }) -> Merge.ContactResponse
@@ -8243,7 +8909,7 @@ await client.crm.engagements.create({
-Returns an `Engagement` object with the given `id`. +Creates a `Contact` object with the given values.
@@ -8258,11 +8924,12 @@ Returns an `Engagement` object with the given `id`.
```typescript -await client.crm.engagements.retrieve("id", { - expand: "account", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true +await client.accounting.contacts.create({ + isDebugMode: true, + runAsync: true, + body: { + model: {} + } }); ``` @@ -8279,15 +8946,7 @@ await client.crm.engagements.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.EngagementsRetrieveRequest` +**request:** `Merge.accounting.ContactsCreateRequest`
@@ -8295,7 +8954,7 @@ await client.crm.engagements.retrieve("id", {
-**requestOptions:** `EngagementsClient.RequestOptions` +**requestOptions:** `ContactsClient.RequestOptions`
@@ -8307,7 +8966,7 @@ await client.crm.engagements.retrieve("id", {
-
client.crm.engagements.partialUpdate(id, { ...params }) -> Merge.EngagementResponse +
client.accounting.contacts.retrieve(id, { ...params }) -> Merge.Contact
@@ -8319,7 +8978,7 @@ await client.crm.engagements.retrieve("id", {
-Updates an `Engagement` object with the given `id`. +Returns a `Contact` object with the given `id`.
@@ -8334,10 +8993,12 @@ Updates an `Engagement` object with the given `id`.
```typescript -await client.crm.engagements.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {} +await client.accounting.contacts.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + remoteFields: "status", + showEnumOrigins: "status" }); ``` @@ -8362,7 +9023,7 @@ await client.crm.engagements.partialUpdate("id", {
-**request:** `Merge.crm.PatchedEngagementEndpointRequest` +**request:** `Merge.accounting.ContactsRetrieveRequest`
@@ -8370,7 +9031,7 @@ await client.crm.engagements.partialUpdate("id", {
-**requestOptions:** `EngagementsClient.RequestOptions` +**requestOptions:** `ContactsClient.RequestOptions`
@@ -8382,7 +9043,7 @@ await client.crm.engagements.partialUpdate("id", {
-
client.crm.engagements.metaPatchRetrieve(id) -> Merge.MetaResponse +
client.accounting.contacts.partialUpdate(id, { ...params }) -> Merge.ContactResponse
@@ -8394,7 +9055,7 @@ await client.crm.engagements.partialUpdate("id", {
-Returns metadata for `Engagement` PATCHs. +Updates a `Contact` object with the given `id`.
@@ -8409,7 +9070,11 @@ Returns metadata for `Engagement` PATCHs.
```typescript -await client.crm.engagements.metaPatchRetrieve("id"); +await client.accounting.contacts.partialUpdate("id", { + isDebugMode: true, + runAsync: true, + model: {} +}); ```
@@ -8433,62 +9098,15 @@ await client.crm.engagements.metaPatchRetrieve("id");
-**requestOptions:** `EngagementsClient.RequestOptions` +**request:** `Merge.accounting.PatchedContactEndpointRequest`
- -
- - - - -
- -
client.crm.engagements.metaPostRetrieve() -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
-Returns metadata for `Engagement` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.engagements.metaPostRetrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `EngagementsClient.RequestOptions` +**requestOptions:** `ContactsClient.RequestOptions`
@@ -8500,7 +9118,7 @@ await client.crm.engagements.metaPostRetrieve();
-
client.crm.engagements.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.accounting.contacts.batchObjectsList(batch_id, { ...params }) -> Merge.PaginatedContactList
@@ -8512,7 +9130,7 @@ await client.crm.engagements.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Returns a list of `Contact` objects.
@@ -8527,15 +9145,26 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.engagements.remoteFieldClassesList({ +await client.accounting.contacts.batchObjectsList("batch_id", { + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + emailAddress: "email_address", includeDeletedData: true, includeRemoteData: true, includeRemoteFields: true, includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 + isCustomer: "is_customer", + isSupplier: "is_supplier", + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status", + status: "" }); ``` @@ -8552,7 +9181,7 @@ await client.crm.engagements.remoteFieldClassesList({
-**request:** `Merge.crm.EngagementsRemoteFieldClassesListRequest` +**batch_id:** `string`
@@ -8560,65 +9189,7 @@ await client.crm.engagements.remoteFieldClassesList({
-**requestOptions:** `EngagementsClient.RequestOptions` - -
-
-
-
- - - - -
- -## Crm FieldMapping -
client.crm.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.crm.fieldMapping.fieldMappingsRetrieve({ - excludeRemoteFieldMetadata: true -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.crm.FieldMappingsRetrieveRequest` +**request:** `Merge.accounting.ContactsBatchObjectsListRequest`
@@ -8626,7 +9197,7 @@ await client.crm.fieldMapping.fieldMappingsRetrieve({
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `ContactsClient.RequestOptions`
@@ -8638,7 +9209,7 @@ await client.crm.fieldMapping.fieldMappingsRetrieve({
-
client.crm.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse +
client.accounting.contacts.asyncBulkCreate({ ...params }) -> Merge.ContactResponse
@@ -8650,7 +9221,7 @@ await client.crm.fieldMapping.fieldMappingsRetrieve({
-Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Creates a `Contact` object with the given values.
@@ -8665,14 +9236,15 @@ Create new Field Mappings that will be available after the next scheduled sync.
```typescript -await client.crm.fieldMapping.fieldMappingsCreate({ - excludeRemoteFieldMetadata: true, - targetFieldName: "example_target_field_name", - targetFieldDescription: "this is a example description of the target field", - remoteFieldTraversalPath: ["example_remote_field"], - remoteMethod: "GET", - remoteUrlPath: "/example-url-path", - commonModelName: "ExampleCommonModel" +await client.accounting.contacts.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [{ + itemId: "item_id", + payload: { + model: {} + } + }] }); ``` @@ -8689,7 +9261,7 @@ await client.crm.fieldMapping.fieldMappingsCreate({
-**request:** `Merge.crm.CreateFieldMappingRequest` +**request:** `Merge.accounting.ContactBulkRequest`
@@ -8697,7 +9269,7 @@ await client.crm.fieldMapping.fieldMappingsCreate({
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `ContactsClient.RequestOptions`
@@ -8709,7 +9281,7 @@ await client.crm.fieldMapping.fieldMappingsCreate({
-
client.crm.fieldMapping.fieldMappingsDestroy(field_mapping_id) -> Merge.FieldMappingInstanceResponse +
client.accounting.contacts.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -8721,7 +9293,7 @@ await client.crm.fieldMapping.fieldMappingsCreate({
-Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Returns metadata for `Contact` PATCHs.
@@ -8736,7 +9308,7 @@ Deletes Field Mappings for a Linked Account. All data related to this Field Mapp
```typescript -await client.crm.fieldMapping.fieldMappingsDestroy("field_mapping_id"); +await client.accounting.contacts.metaPatchRetrieve("id"); ```
@@ -8752,7 +9324,7 @@ await client.crm.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**field_mapping_id:** `string` +**id:** `string`
@@ -8760,7 +9332,7 @@ await client.crm.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `ContactsClient.RequestOptions`
@@ -8772,7 +9344,7 @@ await client.crm.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-
client.crm.fieldMapping.fieldMappingsPartialUpdate(field_mapping_id, { ...params }) -> Merge.FieldMappingInstanceResponse +
client.accounting.contacts.metaPostRetrieve() -> Merge.MetaResponse
@@ -8784,7 +9356,7 @@ await client.crm.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Returns metadata for `Contact` POSTs.
@@ -8799,7 +9371,7 @@ Create or update existing Field Mappings for a Linked Account. Changes will be r
```typescript -await client.crm.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); +await client.accounting.contacts.metaPostRetrieve(); ```
@@ -8815,23 +9387,7 @@ await client.crm.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-**field_mapping_id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.PatchedEditFieldMappingRequest` - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `ContactsClient.RequestOptions`
@@ -8843,7 +9399,7 @@ await client.crm.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-
client.crm.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse +
client.accounting.contacts.remoteFieldClassesList({ ...params }) -> core.Page
@@ -8855,7 +9411,7 @@ await client.crm.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). +Returns a list of `RemoteFieldClass` objects.
@@ -8870,10 +9426,35 @@ Get all remote fields for a Linked Account. Remote fields are third-party fields
```typescript -await client.crm.fieldMapping.remoteFieldsRetrieve({ - commonModels: "common_models", - includeExampleValues: "include_example_values" +const pageableResponse = await client.accounting.contacts.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.contacts.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -8889,7 +9470,7 @@ await client.crm.fieldMapping.remoteFieldsRetrieve({
-**request:** `Merge.crm.RemoteFieldsRetrieveRequest` +**request:** `Merge.accounting.ContactsRemoteFieldClassesListRequest`
@@ -8897,7 +9478,7 @@ await client.crm.fieldMapping.remoteFieldsRetrieve({
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `ContactsClient.RequestOptions`
@@ -8909,7 +9490,8 @@ await client.crm.fieldMapping.remoteFieldsRetrieve({
-
client.crm.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse +## Accounting CreditNotes +
client.accounting.creditNotes.list({ ...params }) -> core.Page
@@ -8921,7 +9503,7 @@ await client.crm.fieldMapping.remoteFieldsRetrieve({
-Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). +Returns a list of `CreditNote` objects.
@@ -8936,7 +9518,51 @@ Get all organization-wide Target Fields, this will not include any Linked Accoun
```typescript -await client.crm.fieldMapping.targetFieldsRetrieve(); +const pageableResponse = await client.accounting.creditNotes.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status", + transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.creditNotes.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status", + transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -8952,7 +9578,15 @@ await client.crm.fieldMapping.targetFieldsRetrieve();
-**requestOptions:** `FieldMappingClient.RequestOptions` +**request:** `Merge.accounting.CreditNotesListRequest` + +
+
+ +
+
+ +**requestOptions:** `CreditNotesClient.RequestOptions`
@@ -8964,8 +9598,7 @@ await client.crm.fieldMapping.targetFieldsRetrieve();
-## Crm GenerateKey -
client.crm.generateKey.create({ ...params }) -> Merge.RemoteKey +
client.accounting.creditNotes.create({ ...params }) -> Merge.CreditNoteResponse
@@ -8977,7 +9610,7 @@ await client.crm.fieldMapping.targetFieldsRetrieve();
-Create a remote key. +Creates a `CreditNote` object with the given values.
@@ -8992,8 +9625,12 @@ Create a remote key.
```typescript -await client.crm.generateKey.create({ - name: "Remote Deployment Key 1" +await client.accounting.creditNotes.create({ + isDebugMode: true, + runAsync: true, + body: { + model: {} + } }); ``` @@ -9010,7 +9647,7 @@ await client.crm.generateKey.create({
-**request:** `Merge.crm.GenerateRemoteKeyRequest` +**request:** `Merge.accounting.CreditNotesCreateRequest`
@@ -9018,7 +9655,7 @@ await client.crm.generateKey.create({
-**requestOptions:** `GenerateKeyClient.RequestOptions` +**requestOptions:** `CreditNotesClient.RequestOptions`
@@ -9030,8 +9667,7 @@ await client.crm.generateKey.create({
-## Crm Issues -
client.crm.issues.list({ ...params }) -> Merge.PaginatedIssueList +
client.accounting.creditNotes.retrieve(id, { ...params }) -> Merge.CreditNote
@@ -9043,7 +9679,7 @@ await client.crm.generateKey.create({
-Gets all issues for Organization. +Returns a `CreditNote` object with the given `id`.
@@ -9058,21 +9694,11 @@ Gets all issues for Organization.
```typescript -await client.crm.issues.list({ - accountToken: "account_token", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - endUserOrganizationName: "end_user_organization_name", - firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - includeMuted: "include_muted", - integrationName: "integration_name", - lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - linkedAccountId: "linked_account_id", - pageSize: 1, - startDate: "start_date", - status: "ONGOING" +await client.accounting.creditNotes.retrieve("id", { + includeRemoteData: true, + includeShellData: true, + remoteFields: "status", + showEnumOrigins: "status" }); ``` @@ -9089,7 +9715,7 @@ await client.crm.issues.list({
-**request:** `Merge.crm.IssuesListRequest` +**id:** `string`
@@ -9097,7 +9723,15 @@ await client.crm.issues.list({
-**requestOptions:** `IssuesClient.RequestOptions` +**request:** `Merge.accounting.CreditNotesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `CreditNotesClient.RequestOptions`
@@ -9109,7 +9743,7 @@ await client.crm.issues.list({
-
client.crm.issues.retrieve(id) -> Merge.Issue +
client.accounting.creditNotes.partialUpdate(id, { ...params }) -> Merge.CreditNoteResponse
@@ -9121,7 +9755,7 @@ await client.crm.issues.list({
-Get a specific issue. +Updates a `CreditNote` object with the given `id`.
@@ -9136,7 +9770,11 @@ Get a specific issue.
```typescript -await client.crm.issues.retrieve("id"); +await client.accounting.creditNotes.partialUpdate("id", { + isDebugMode: true, + runAsync: true, + model: {} +}); ```
@@ -9160,7 +9798,15 @@ await client.crm.issues.retrieve("id");
-**requestOptions:** `IssuesClient.RequestOptions` +**request:** `Merge.accounting.PatchedCreditNoteEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `CreditNotesClient.RequestOptions`
@@ -9172,8 +9818,7 @@ await client.crm.issues.retrieve("id");
-## Crm Leads -
client.crm.leads.list({ ...params }) -> Merge.PaginatedLeadList +
client.accounting.creditNotes.batchObjectsList(batch_id, { ...params }) -> Merge.PaginatedCreditNoteList
@@ -9185,7 +9830,7 @@ await client.crm.issues.retrieve("id");
-Returns a list of `Lead` objects. +Returns a list of `CreditNote` objects.
@@ -9200,24 +9845,22 @@ Returns a list of `Lead` objects.
```typescript -await client.crm.leads.list({ - convertedAccountId: "converted_account_id", - convertedContactId: "converted_contact_id", +await client.accounting.creditNotes.batchObjectsList("batch_id", { + companyId: "company_id", createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - emailAddresses: "email_addresses", - expand: "converted_account", includeDeletedData: true, includeRemoteData: true, - includeRemoteFields: true, includeShellData: true, modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - ownerId: "owner_id", pageSize: 1, - phoneNumbers: "phone_numbers", - remoteId: "remote_id" + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status", + transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") }); ``` @@ -9234,7 +9877,7 @@ await client.crm.leads.list({
-**request:** `Merge.crm.LeadsListRequest` +**batch_id:** `string`
@@ -9242,7 +9885,15 @@ await client.crm.leads.list({
-**requestOptions:** `LeadsClient.RequestOptions` +**request:** `Merge.accounting.CreditNotesBatchObjectsListRequest` + +
+
+ +
+
+ +**requestOptions:** `CreditNotesClient.RequestOptions`
@@ -9254,7 +9905,7 @@ await client.crm.leads.list({
-
client.crm.leads.create({ ...params }) -> Merge.LeadResponse +
client.accounting.creditNotes.asyncBulkCreate({ ...params }) -> Merge.CreditNoteResponse
@@ -9266,7 +9917,7 @@ await client.crm.leads.list({
-Creates a `Lead` object with the given values. +Creates a `CreditNote` object with the given values.
@@ -9281,10 +9932,15 @@ Creates a `Lead` object with the given values.
```typescript -await client.crm.leads.create({ +await client.accounting.creditNotes.asyncBulkCreate({ isDebugMode: true, runAsync: true, - model: {} + batchItems: [{ + itemId: "item_id", + payload: { + model: {} + } + }] }); ``` @@ -9301,7 +9957,7 @@ await client.crm.leads.create({
-**request:** `Merge.crm.LeadEndpointRequest` +**request:** `Merge.accounting.CreditNoteBulkRequest`
@@ -9309,7 +9965,7 @@ await client.crm.leads.create({
-**requestOptions:** `LeadsClient.RequestOptions` +**requestOptions:** `CreditNotesClient.RequestOptions`
@@ -9321,7 +9977,7 @@ await client.crm.leads.create({
-
client.crm.leads.retrieve(id, { ...params }) -> Merge.Lead +
client.accounting.creditNotes.applicationCreate(id, { ...params }) -> Merge.CreditNoteResponse
@@ -9333,7 +9989,7 @@ await client.crm.leads.create({
-Returns a `Lead` object with the given `id`. +Creates a new CreditNoteApplyLine to apply a credit note to an invoice
@@ -9348,11 +10004,11 @@ Returns a `Lead` object with the given `id`.
```typescript -await client.crm.leads.retrieve("id", { - expand: "converted_account", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true +await client.accounting.creditNotes.applicationCreate("id", { + isDebugMode: true, + runAsync: true, + appliedDate: new Date("2024-01-15T09:30:00.000Z"), + appliedAmount: "applied_amount" }); ``` @@ -9377,7 +10033,7 @@ await client.crm.leads.retrieve("id", {
-**request:** `Merge.crm.LeadsRetrieveRequest` +**request:** `Merge.accounting.ApplyCreditNoteRequest`
@@ -9385,7 +10041,7 @@ await client.crm.leads.retrieve("id", {
-**requestOptions:** `LeadsClient.RequestOptions` +**requestOptions:** `CreditNotesClient.RequestOptions`
@@ -9397,7 +10053,7 @@ await client.crm.leads.retrieve("id", {
-
client.crm.leads.metaPostRetrieve() -> Merge.MetaResponse +
client.accounting.creditNotes.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -9409,7 +10065,7 @@ await client.crm.leads.retrieve("id", {
-Returns metadata for `Lead` POSTs. +Returns metadata for `CreditNote` PATCHs.
@@ -9424,7 +10080,7 @@ Returns metadata for `Lead` POSTs.
```typescript -await client.crm.leads.metaPostRetrieve(); +await client.accounting.creditNotes.metaPatchRetrieve("id"); ```
@@ -9440,7 +10096,15 @@ await client.crm.leads.metaPostRetrieve();
-**requestOptions:** `LeadsClient.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**requestOptions:** `CreditNotesClient.RequestOptions`
@@ -9452,7 +10116,7 @@ await client.crm.leads.metaPostRetrieve();
-
client.crm.leads.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.accounting.creditNotes.metaPostRetrieve() -> Merge.MetaResponse
@@ -9464,7 +10128,7 @@ await client.crm.leads.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Returns metadata for `CreditNote` POSTs.
@@ -9479,16 +10143,7 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.leads.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 -}); +await client.accounting.creditNotes.metaPostRetrieve(); ```
@@ -9504,15 +10159,7 @@ await client.crm.leads.remoteFieldClassesList({
-**request:** `Merge.crm.LeadsRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `LeadsClient.RequestOptions` +**requestOptions:** `CreditNotesClient.RequestOptions`
@@ -9524,8 +10171,8 @@ await client.crm.leads.remoteFieldClassesList({
-## Crm LinkToken -
client.crm.linkToken.create({ ...params }) -> Merge.LinkToken +## Accounting Scopes +
client.accounting.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi
@@ -9537,7 +10184,7 @@ await client.crm.leads.remoteFieldClassesList({
-Creates a link token to be used when linking a new end user. +Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes).
@@ -9552,12 +10199,7 @@ Creates a link token to be used when linking a new end user.
```typescript -await client.crm.linkToken.create({ - endUserEmailAddress: "example@gmail.com", - endUserOrganizationName: "Test Organization", - endUserOriginId: "12345", - categories: ["hris", "ats"] -}); +await client.accounting.scopes.defaultScopesRetrieve(); ```
@@ -9573,15 +10215,62 @@ await client.crm.linkToken.create({
-**request:** `Merge.crm.EndUserDetailsRequest` +**requestOptions:** `ScopesClient.RequestOptions`
+ +
+ + + + +
+
client.accounting.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi
-**requestOptions:** `LinkTokenClient.RequestOptions` +#### 📝 Description + +
+
+ +
+
+ +Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.accounting.scopes.linkedAccountScopesRetrieve(); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**requestOptions:** `ScopesClient.RequestOptions`
@@ -9593,8 +10282,7 @@ await client.crm.linkToken.create({
-## Crm LinkedAccounts -
client.crm.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList +
client.accounting.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi
@@ -9606,7 +10294,7 @@ await client.crm.linkToken.create({
-List linked accounts for your organization. +Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes)
@@ -9621,20 +10309,29 @@ List linked accounts for your organization.
```typescript -await client.crm.linkedAccounts.list({ - category: "accounting", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endUserEmailAddress: "end_user_email_address", - endUserOrganizationName: "end_user_organization_name", - endUserOriginId: "end_user_origin_id", - endUserOriginIds: "end_user_origin_ids", - id: "id", - ids: "ids", - includeDuplicates: true, - integrationName: "integration_name", - isTestAccount: "is_test_account", - pageSize: 1, - status: "status" +await client.accounting.scopes.linkedAccountScopesCreate({ + commonModels: [{ + modelName: "Employee", + modelPermissions: { + "READ": { + isEnabled: true + }, + "WRITE": { + isEnabled: false + } + }, + fieldPermissions: { + enabledFields: ["avatar", "home_location"], + disabledFields: ["work_location"] + } + }, { + modelName: "Benefit", + modelPermissions: { + "WRITE": { + isEnabled: false + } + } + }] }); ``` @@ -9651,7 +10348,7 @@ await client.crm.linkedAccounts.list({
-**request:** `Merge.crm.LinkedAccountsListRequest` +**request:** `Merge.accounting.LinkedAccountCommonModelScopeDeserializerRequest`
@@ -9659,7 +10356,7 @@ await client.crm.linkedAccounts.list({
-**requestOptions:** `LinkedAccountsClient.RequestOptions` +**requestOptions:** `ScopesClient.RequestOptions`
@@ -9671,8 +10368,8 @@ await client.crm.linkedAccounts.list({
-## Crm Notes -
client.crm.notes.list({ ...params }) -> Merge.PaginatedNoteList +## Accounting DeleteAccount +
client.accounting.deleteAccount.delete() -> void
@@ -9684,7 +10381,7 @@ await client.crm.linkedAccounts.list({
-Returns a list of `Note` objects. +Delete a linked account.
@@ -9699,24 +10396,7 @@ Returns a list of `Note` objects.
```typescript -await client.crm.notes.list({ - accountId: "account_id", - contactId: "contact_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "account", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - opportunityId: "opportunity_id", - ownerId: "owner_id", - pageSize: 1, - remoteId: "remote_id" -}); +await client.accounting.deleteAccount.delete(); ```
@@ -9732,15 +10412,7 @@ await client.crm.notes.list({
-**request:** `Merge.crm.NotesListRequest` - -
-
- -
-
- -**requestOptions:** `NotesClient.RequestOptions` +**requestOptions:** `DeleteAccountClient.RequestOptions`
@@ -9752,7 +10424,8 @@ await client.crm.notes.list({
-
client.crm.notes.create({ ...params }) -> Merge.NoteResponse +## Accounting Employees +
client.accounting.employees.list({ ...params }) -> core.Page
@@ -9764,7 +10437,7 @@ await client.crm.notes.list({
-Creates a `Note` object with the given values. +Returns a list of `Employee` objects.
@@ -9779,11 +10452,43 @@ Creates a `Note` object with the given values.
```typescript -await client.crm.notes.create({ - isDebugMode: true, - runAsync: true, - model: {} +const pageableResponse = await client.accounting.employees.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.employees.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -9799,7 +10504,7 @@ await client.crm.notes.create({
-**request:** `Merge.crm.NoteEndpointRequest` +**request:** `Merge.accounting.EmployeesListRequest`
@@ -9807,7 +10512,7 @@ await client.crm.notes.create({
-**requestOptions:** `NotesClient.RequestOptions` +**requestOptions:** `EmployeesClient.RequestOptions`
@@ -9819,7 +10524,7 @@ await client.crm.notes.create({
-
client.crm.notes.retrieve(id, { ...params }) -> Merge.Note +
client.accounting.employees.retrieve(id, { ...params }) -> Merge.Employee
@@ -9831,7 +10536,7 @@ await client.crm.notes.create({
-Returns a `Note` object with the given `id`. +Returns an `Employee` object with the given `id`.
@@ -9846,10 +10551,8 @@ Returns a `Note` object with the given `id`.
```typescript -await client.crm.notes.retrieve("id", { - expand: "account", +await client.accounting.employees.retrieve("id", { includeRemoteData: true, - includeRemoteFields: true, includeShellData: true }); @@ -9875,7 +10578,7 @@ await client.crm.notes.retrieve("id", {
-**request:** `Merge.crm.NotesRetrieveRequest` +**request:** `Merge.accounting.EmployeesRetrieveRequest`
@@ -9883,7 +10586,7 @@ await client.crm.notes.retrieve("id", {
-**requestOptions:** `NotesClient.RequestOptions` +**requestOptions:** `EmployeesClient.RequestOptions`
@@ -9895,7 +10598,8 @@ await client.crm.notes.retrieve("id", {
-
client.crm.notes.metaPostRetrieve() -> Merge.MetaResponse +## Accounting ExpenseReports +
client.accounting.expenseReports.list({ ...params }) -> core.Page
@@ -9907,7 +10611,7 @@ await client.crm.notes.retrieve("id", {
-Returns metadata for `Note` POSTs. +Returns a list of `ExpenseReport` objects.
@@ -9922,7 +10626,45 @@ Returns metadata for `Note` POSTs.
```typescript -await client.crm.notes.metaPostRetrieve(); +const pageableResponse = await client.accounting.expenseReports.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.expenseReports.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -9938,7 +10680,15 @@ await client.crm.notes.metaPostRetrieve();
-**requestOptions:** `NotesClient.RequestOptions` +**request:** `Merge.accounting.ExpenseReportsListRequest` + +
+
+ +
+
+ +**requestOptions:** `ExpenseReportsClient.RequestOptions`
@@ -9950,7 +10700,7 @@ await client.crm.notes.metaPostRetrieve();
-
client.crm.notes.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.accounting.expenseReports.create({ ...params }) -> Merge.ExpenseReportResponse
@@ -9962,7 +10712,7 @@ await client.crm.notes.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Creates an `ExpenseReport` object with the given values.
@@ -9977,15 +10727,14 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.notes.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 +await client.accounting.expenseReports.create({ + isDebugMode: true, + runAsync: true, + body: { + model: { + trackingCategories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"] + } + } }); ``` @@ -10002,7 +10751,7 @@ await client.crm.notes.remoteFieldClassesList({
-**request:** `Merge.crm.NotesRemoteFieldClassesListRequest` +**request:** `Merge.accounting.ExpenseReportsCreateRequest`
@@ -10010,7 +10759,7 @@ await client.crm.notes.remoteFieldClassesList({
-**requestOptions:** `NotesClient.RequestOptions` +**requestOptions:** `ExpenseReportsClient.RequestOptions`
@@ -10022,8 +10771,7 @@ await client.crm.notes.remoteFieldClassesList({
-## Crm Opportunities -
client.crm.opportunities.list({ ...params }) -> Merge.PaginatedOpportunityList +
client.accounting.expenseReports.linesList(expense_report_id, { ...params }) -> core.Page
@@ -10035,7 +10783,7 @@ await client.crm.notes.remoteFieldClassesList({
-Returns a list of `Opportunity` objects. +Returns a list of `ExpenseReportLine` objects that point to a `ExpenseReport` with the given id.
@@ -10050,27 +10798,33 @@ Returns a list of `Opportunity` objects.
```typescript -await client.crm.opportunities.list({ - accountId: "account_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), +const pageableResponse = await client.accounting.expenseReports.linesList("expense_report_id", { cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "account", includeDeletedData: true, includeRemoteData: true, includeRemoteFields: true, includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - ownerId: "owner_id", - pageSize: 1, - remoteCreatedAfter: new Date("2024-01-15T09:30:00.000Z"), - remoteFields: "status", - remoteId: "remote_id", - showEnumOrigins: "status", - stageId: "stage_id", - status: "LOST" + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.expenseReports.linesList("expense_report_id", { + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + pageSize: 1 }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -10086,7 +10840,7 @@ await client.crm.opportunities.list({
-**request:** `Merge.crm.OpportunitiesListRequest` +**expense_report_id:** `string`
@@ -10094,7 +10848,15 @@ await client.crm.opportunities.list({
-**requestOptions:** `OpportunitiesClient.RequestOptions` +**request:** `Merge.accounting.ExpenseReportsLinesListRequest` + +
+
+ +
+
+ +**requestOptions:** `ExpenseReportsClient.RequestOptions`
@@ -10106,7 +10868,7 @@ await client.crm.opportunities.list({
-
client.crm.opportunities.create({ ...params }) -> Merge.OpportunityResponse +
client.accounting.expenseReports.retrieve(id, { ...params }) -> Merge.ExpenseReport
@@ -10118,7 +10880,7 @@ await client.crm.opportunities.list({
-Creates an `Opportunity` object with the given values. +Returns an `ExpenseReport` object with the given `id`.
@@ -10133,10 +10895,10 @@ Creates an `Opportunity` object with the given values.
```typescript -await client.crm.opportunities.create({ - isDebugMode: true, - runAsync: true, - model: {} +await client.accounting.expenseReports.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true }); ``` @@ -10153,7 +10915,7 @@ await client.crm.opportunities.create({
-**request:** `Merge.crm.OpportunityEndpointRequest` +**id:** `string`
@@ -10161,7 +10923,15 @@ await client.crm.opportunities.create({
-**requestOptions:** `OpportunitiesClient.RequestOptions` +**request:** `Merge.accounting.ExpenseReportsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `ExpenseReportsClient.RequestOptions`
@@ -10173,7 +10943,7 @@ await client.crm.opportunities.create({
-
client.crm.opportunities.retrieve(id, { ...params }) -> Merge.Opportunity +
client.accounting.expenseReports.batchObjectsList(batch_id, { ...params }) -> Merge.PaginatedExpenseReportList
@@ -10185,7 +10955,7 @@ await client.crm.opportunities.create({
-Returns an `Opportunity` object with the given `id`. +Returns a list of `ExpenseReport` objects.
@@ -10200,13 +10970,19 @@ Returns an `Opportunity` object with the given `id`.
```typescript -await client.crm.opportunities.retrieve("id", { - expand: "account", +await client.accounting.expenseReports.batchObjectsList("batch_id", { + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, includeRemoteData: true, includeRemoteFields: true, includeShellData: true, - remoteFields: "status", - showEnumOrigins: "status" + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" }); ``` @@ -10223,7 +10999,7 @@ await client.crm.opportunities.retrieve("id", {
-**id:** `string` +**batch_id:** `string`
@@ -10231,7 +11007,7 @@ await client.crm.opportunities.retrieve("id", {
-**request:** `Merge.crm.OpportunitiesRetrieveRequest` +**request:** `Merge.accounting.ExpenseReportsBatchObjectsListRequest`
@@ -10239,7 +11015,7 @@ await client.crm.opportunities.retrieve("id", {
-**requestOptions:** `OpportunitiesClient.RequestOptions` +**requestOptions:** `ExpenseReportsClient.RequestOptions`
@@ -10251,7 +11027,7 @@ await client.crm.opportunities.retrieve("id", {
-
client.crm.opportunities.partialUpdate(id, { ...params }) -> Merge.OpportunityResponse +
client.accounting.expenseReports.asyncBulkCreate({ ...params }) -> Merge.ExpenseReportResponse
@@ -10263,7 +11039,7 @@ await client.crm.opportunities.retrieve("id", {
-Updates an `Opportunity` object with the given `id`. +Creates an `ExpenseReport` object with the given values.
@@ -10278,10 +11054,17 @@ Updates an `Opportunity` object with the given `id`.
```typescript -await client.crm.opportunities.partialUpdate("id", { +await client.accounting.expenseReports.asyncBulkCreate({ isDebugMode: true, runAsync: true, - model: {} + batchItems: [{ + itemId: "item_id", + payload: { + model: { + trackingCategories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"] + } + } + }] }); ``` @@ -10298,15 +11081,7 @@ await client.crm.opportunities.partialUpdate("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.PatchedOpportunityEndpointRequest` +**request:** `Merge.accounting.ExpenseReportBulkRequest`
@@ -10314,7 +11089,7 @@ await client.crm.opportunities.partialUpdate("id", {
-**requestOptions:** `OpportunitiesClient.RequestOptions` +**requestOptions:** `ExpenseReportsClient.RequestOptions`
@@ -10326,7 +11101,7 @@ await client.crm.opportunities.partialUpdate("id", {
-
client.crm.opportunities.metaPatchRetrieve(id) -> Merge.MetaResponse +
client.accounting.expenseReports.linesRemoteFieldClassesList({ ...params }) -> core.Page
@@ -10338,7 +11113,7 @@ await client.crm.opportunities.partialUpdate("id", {
-Returns metadata for `Opportunity` PATCHs. +Returns a list of `RemoteFieldClass` objects.
@@ -10353,7 +11128,35 @@ Returns metadata for `Opportunity` PATCHs.
```typescript -await client.crm.opportunities.metaPatchRetrieve("id"); +const pageableResponse = await client.accounting.expenseReports.linesRemoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.expenseReports.linesRemoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -10369,7 +11172,7 @@ await client.crm.opportunities.metaPatchRetrieve("id");
-**id:** `string` +**request:** `Merge.accounting.ExpenseReportsLinesRemoteFieldClassesListRequest`
@@ -10377,7 +11180,7 @@ await client.crm.opportunities.metaPatchRetrieve("id");
-**requestOptions:** `OpportunitiesClient.RequestOptions` +**requestOptions:** `ExpenseReportsClient.RequestOptions`
@@ -10389,7 +11192,7 @@ await client.crm.opportunities.metaPatchRetrieve("id");
-
client.crm.opportunities.metaPostRetrieve() -> Merge.MetaResponse +
client.accounting.expenseReports.metaPostRetrieve() -> Merge.MetaResponse
@@ -10401,7 +11204,7 @@ await client.crm.opportunities.metaPatchRetrieve("id");
-Returns metadata for `Opportunity` POSTs. +Returns metadata for `ExpenseReport` POSTs.
@@ -10416,7 +11219,7 @@ Returns metadata for `Opportunity` POSTs.
```typescript -await client.crm.opportunities.metaPostRetrieve(); +await client.accounting.expenseReports.metaPostRetrieve(); ```
@@ -10432,7 +11235,7 @@ await client.crm.opportunities.metaPostRetrieve();
-**requestOptions:** `OpportunitiesClient.RequestOptions` +**requestOptions:** `ExpenseReportsClient.RequestOptions`
@@ -10444,7 +11247,7 @@ await client.crm.opportunities.metaPostRetrieve();
-
client.crm.opportunities.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.accounting.expenseReports.remoteFieldClassesList({ ...params }) -> core.Page
@@ -10471,16 +11274,35 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.opportunities.remoteFieldClassesList({ +const pageableResponse = await client.accounting.expenseReports.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.expenseReports.remoteFieldClassesList({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", includeDeletedData: true, includeRemoteData: true, - includeRemoteFields: true, includeShellData: true, isCommonModelField: true, isCustom: true, pageSize: 1 }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -10496,7 +11318,7 @@ await client.crm.opportunities.remoteFieldClassesList({
-**request:** `Merge.crm.OpportunitiesRemoteFieldClassesListRequest` +**request:** `Merge.accounting.ExpenseReportsRemoteFieldClassesListRequest`
@@ -10504,7 +11326,7 @@ await client.crm.opportunities.remoteFieldClassesList({
-**requestOptions:** `OpportunitiesClient.RequestOptions` +**requestOptions:** `ExpenseReportsClient.RequestOptions`
@@ -10516,8 +11338,8 @@ await client.crm.opportunities.remoteFieldClassesList({
-## Crm Passthrough -
client.crm.passthrough.create({ ...params }) -> Merge.RemoteResponse +## Accounting Expenses +
client.accounting.expenses.list({ ...params }) -> core.Page
@@ -10529,7 +11351,7 @@ await client.crm.opportunities.remoteFieldClassesList({
-Pull data from an endpoint not currently supported by Merge. +Returns a list of `Expense` objects.
@@ -10544,10 +11366,49 @@ Pull data from an endpoint not currently supported by Merge.
```typescript -await client.crm.passthrough.create({ - method: "GET", - path: "/scooters" +const pageableResponse = await client.accounting.expenses.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.expenses.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -10563,7 +11424,7 @@ await client.crm.passthrough.create({
-**request:** `Merge.DataPassthroughRequest` +**request:** `Merge.accounting.ExpensesListRequest`
@@ -10571,7 +11432,7 @@ await client.crm.passthrough.create({
-**requestOptions:** `PassthroughClient.RequestOptions` +**requestOptions:** `ExpensesClient.RequestOptions`
@@ -10583,8 +11444,7 @@ await client.crm.passthrough.create({
-## Crm RegenerateKey -
client.crm.regenerateKey.create({ ...params }) -> Merge.RemoteKey +
client.accounting.expenses.create({ ...params }) -> Merge.ExpenseResponse
@@ -10596,7 +11456,7 @@ await client.crm.passthrough.create({
-Exchange remote keys. +Creates an `Expense` object with the given values.
@@ -10611,8 +11471,12 @@ Exchange remote keys.
```typescript -await client.crm.regenerateKey.create({ - name: "Remote Deployment Key 1" +await client.accounting.expenses.create({ + isDebugMode: true, + runAsync: true, + body: { + model: {} + } }); ``` @@ -10629,7 +11493,7 @@ await client.crm.regenerateKey.create({
-**request:** `Merge.crm.RemoteKeyForRegenerationRequest` +**request:** `Merge.accounting.ExpensesCreateRequest`
@@ -10637,7 +11501,7 @@ await client.crm.regenerateKey.create({
-**requestOptions:** `RegenerateKeyClient.RequestOptions` +**requestOptions:** `ExpensesClient.RequestOptions`
@@ -10649,8 +11513,7 @@ await client.crm.regenerateKey.create({
-## Crm Stages -
client.crm.stages.list({ ...params }) -> Merge.PaginatedStageList +
client.accounting.expenses.retrieve(id, { ...params }) -> Merge.Expense
@@ -10662,7 +11525,7 @@ await client.crm.regenerateKey.create({
-Returns a list of `Stage` objects. +Returns an `Expense` object with the given `id`.
@@ -10677,18 +11540,10 @@ Returns a list of `Stage` objects.
```typescript -await client.crm.stages.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, +await client.accounting.expenses.retrieve("id", { includeRemoteData: true, includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id" + includeShellData: true }); ``` @@ -10705,7 +11560,7 @@ await client.crm.stages.list({
-**request:** `Merge.crm.StagesListRequest` +**id:** `string`
@@ -10713,7 +11568,15 @@ await client.crm.stages.list({
-**requestOptions:** `StagesClient.RequestOptions` +**request:** `Merge.accounting.ExpensesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `ExpensesClient.RequestOptions`
@@ -10725,7 +11588,7 @@ await client.crm.stages.list({
-
client.crm.stages.retrieve(id, { ...params }) -> Merge.Stage +
client.accounting.expenses.batchObjectsList(batch_id, { ...params }) -> Merge.PaginatedExpenseList
@@ -10737,7 +11600,7 @@ await client.crm.stages.list({
-Returns a `Stage` object with the given `id`. +Returns a list of `Expense` objects.
@@ -10752,10 +11615,21 @@ Returns a `Stage` object with the given `id`.
```typescript -await client.crm.stages.retrieve("id", { +await client.accounting.expenses.batchObjectsList("batch_id", { + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, includeRemoteData: true, includeRemoteFields: true, - includeShellData: true + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") }); ``` @@ -10772,7 +11646,7 @@ await client.crm.stages.retrieve("id", {
-**id:** `string` +**batch_id:** `string`
@@ -10780,7 +11654,7 @@ await client.crm.stages.retrieve("id", {
-**request:** `Merge.crm.StagesRetrieveRequest` +**request:** `Merge.accounting.ExpensesBatchObjectsListRequest`
@@ -10788,7 +11662,7 @@ await client.crm.stages.retrieve("id", {
-**requestOptions:** `StagesClient.RequestOptions` +**requestOptions:** `ExpensesClient.RequestOptions`
@@ -10800,7 +11674,7 @@ await client.crm.stages.retrieve("id", {
-
client.crm.stages.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.accounting.expenses.asyncBulkCreate({ ...params }) -> Merge.ExpenseResponse
@@ -10812,7 +11686,7 @@ await client.crm.stages.retrieve("id", {
-Returns a list of `RemoteFieldClass` objects. +Creates an `Expense` object with the given values.
@@ -10827,15 +11701,15 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.stages.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 +await client.accounting.expenses.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [{ + itemId: "item_id", + payload: { + model: {} + } + }] }); ``` @@ -10852,7 +11726,7 @@ await client.crm.stages.remoteFieldClassesList({
-**request:** `Merge.crm.StagesRemoteFieldClassesListRequest` +**request:** `Merge.accounting.ExpenseBulkRequest`
@@ -10860,7 +11734,7 @@ await client.crm.stages.remoteFieldClassesList({
-**requestOptions:** `StagesClient.RequestOptions` +**requestOptions:** `ExpensesClient.RequestOptions`
@@ -10872,8 +11746,7 @@ await client.crm.stages.remoteFieldClassesList({
-## Crm SyncStatus -
client.crm.syncStatus.list({ ...params }) -> Merge.PaginatedSyncStatusList +
client.accounting.expenses.linesRemoteFieldClassesList({ ...params }) -> core.Page
@@ -10885,7 +11758,7 @@ await client.crm.stages.remoteFieldClassesList({
-Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). +Returns a list of `RemoteFieldClass` objects.
@@ -10900,10 +11773,35 @@ Get sync status for the current sync and the most recently finished sync. `last_
```typescript -await client.crm.syncStatus.list({ +const pageableResponse = await client.accounting.expenses.linesRemoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.expenses.linesRemoteFieldClassesList({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, pageSize: 1 }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -10919,7 +11817,7 @@ await client.crm.syncStatus.list({
-**request:** `Merge.crm.SyncStatusListRequest` +**request:** `Merge.accounting.ExpensesLinesRemoteFieldClassesListRequest`
@@ -10927,7 +11825,7 @@ await client.crm.syncStatus.list({
-**requestOptions:** `SyncStatusClient.RequestOptions` +**requestOptions:** `ExpensesClient.RequestOptions`
@@ -10939,8 +11837,7 @@ await client.crm.syncStatus.list({
-## Crm ForceResync -
client.crm.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[] +
client.accounting.expenses.metaPostRetrieve() -> Merge.MetaResponse
@@ -10952,7 +11849,7 @@ await client.crm.syncStatus.list({
-Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. +Returns metadata for `Expense` POSTs.
@@ -10967,7 +11864,7 @@ Force re-sync of all models. This endpoint is available for monthly, quarterly,
```typescript -await client.crm.forceResync.syncStatusResyncCreate(); +await client.accounting.expenses.metaPostRetrieve(); ```
@@ -10983,7 +11880,7 @@ await client.crm.forceResync.syncStatusResyncCreate();
-**requestOptions:** `ForceResyncClient.RequestOptions` +**requestOptions:** `ExpensesClient.RequestOptions`
@@ -10995,8 +11892,7 @@ await client.crm.forceResync.syncStatusResyncCreate();
-## Crm Tasks -
client.crm.tasks.list({ ...params }) -> Merge.PaginatedTaskList +
client.accounting.expenses.remoteFieldClassesList({ ...params }) -> core.Page
@@ -11008,7 +11904,7 @@ await client.crm.forceResync.syncStatusResyncCreate();
-Returns a list of `Task` objects. +Returns a list of `RemoteFieldClass` objects.
@@ -11023,20 +11919,35 @@ Returns a list of `Task` objects.
```typescript -await client.crm.tasks.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), +const pageableResponse = await client.accounting.expenses.remoteFieldClassesList({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "account", includeDeletedData: true, includeRemoteData: true, - includeRemoteFields: true, includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id" + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.expenses.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -11052,7 +11963,7 @@ await client.crm.tasks.list({
-**request:** `Merge.crm.TasksListRequest` +**request:** `Merge.accounting.ExpensesRemoteFieldClassesListRequest`
@@ -11060,7 +11971,7 @@ await client.crm.tasks.list({
-**requestOptions:** `TasksClient.RequestOptions` +**requestOptions:** `ExpensesClient.RequestOptions`
@@ -11072,7 +11983,8 @@ await client.crm.tasks.list({
-
client.crm.tasks.create({ ...params }) -> Merge.TaskResponse +## Accounting FieldMapping +
client.accounting.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse
@@ -11084,7 +11996,7 @@ await client.crm.tasks.list({
-Creates a `Task` object with the given values. +Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/).
@@ -11099,10 +12011,8 @@ Creates a `Task` object with the given values.
```typescript -await client.crm.tasks.create({ - isDebugMode: true, - runAsync: true, - model: {} +await client.accounting.fieldMapping.fieldMappingsRetrieve({ + excludeRemoteFieldMetadata: true }); ``` @@ -11119,7 +12029,7 @@ await client.crm.tasks.create({
-**request:** `Merge.crm.TaskEndpointRequest` +**request:** `Merge.accounting.FieldMappingsRetrieveRequest`
@@ -11127,7 +12037,7 @@ await client.crm.tasks.create({
-**requestOptions:** `TasksClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -11139,7 +12049,7 @@ await client.crm.tasks.create({
-
client.crm.tasks.retrieve(id, { ...params }) -> Merge.Task +
client.accounting.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse
@@ -11151,7 +12061,7 @@ await client.crm.tasks.create({
-Returns a `Task` object with the given `id`. +Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -11166,11 +12076,15 @@ Returns a `Task` object with the given `id`.
```typescript -await client.crm.tasks.retrieve("id", { - expand: "account", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true +await client.accounting.fieldMapping.fieldMappingsCreate({ + excludeRemoteFieldMetadata: true, + remoteDataIterationCount: 1, + targetFieldName: "example_target_field_name", + targetFieldDescription: "this is a example description of the target field", + remoteFieldTraversalPath: ["example_remote_field"], + remoteMethod: "GET", + remoteUrlPath: "/example-url-path", + commonModelName: "ExampleCommonModel" }); ``` @@ -11187,15 +12101,7 @@ await client.crm.tasks.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.TasksRetrieveRequest` +**request:** `Merge.accounting.CreateFieldMappingRequest`
@@ -11203,7 +12109,7 @@ await client.crm.tasks.retrieve("id", {
-**requestOptions:** `TasksClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -11215,7 +12121,7 @@ await client.crm.tasks.retrieve("id", {
-
client.crm.tasks.partialUpdate(id, { ...params }) -> Merge.TaskResponse +
client.accounting.fieldMapping.fieldMappingsDestroy(field_mapping_id) -> Merge.FieldMappingInstanceResponse
@@ -11227,7 +12133,7 @@ await client.crm.tasks.retrieve("id", {
-Updates a `Task` object with the given `id`. +Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -11242,11 +12148,7 @@ Updates a `Task` object with the given `id`.
```typescript -await client.crm.tasks.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {} -}); +await client.accounting.fieldMapping.fieldMappingsDestroy("field_mapping_id"); ```
@@ -11262,15 +12164,7 @@ await client.crm.tasks.partialUpdate("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.PatchedTaskEndpointRequest` +**field_mapping_id:** `string`
@@ -11278,7 +12172,7 @@ await client.crm.tasks.partialUpdate("id", {
-**requestOptions:** `TasksClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -11290,7 +12184,7 @@ await client.crm.tasks.partialUpdate("id", {
-
client.crm.tasks.metaPatchRetrieve(id) -> Merge.MetaResponse +
client.accounting.fieldMapping.fieldMappingsPartialUpdate(field_mapping_id, { ...params }) -> Merge.FieldMappingInstanceResponse
@@ -11302,7 +12196,7 @@ await client.crm.tasks.partialUpdate("id", {
-Returns metadata for `Task` PATCHs. +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.
@@ -11317,7 +12211,9 @@ Returns metadata for `Task` PATCHs.
```typescript -await client.crm.tasks.metaPatchRetrieve("id"); +await client.accounting.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { + remoteDataIterationCount: 1 +}); ```
@@ -11333,7 +12229,7 @@ await client.crm.tasks.metaPatchRetrieve("id");
-**id:** `string` +**field_mapping_id:** `string`
@@ -11341,7 +12237,15 @@ await client.crm.tasks.metaPatchRetrieve("id");
-**requestOptions:** `TasksClient.RequestOptions` +**request:** `Merge.accounting.PatchedEditFieldMappingRequest` + +
+
+ +
+
+ +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -11353,7 +12257,7 @@ await client.crm.tasks.metaPatchRetrieve("id");
-
client.crm.tasks.metaPostRetrieve() -> Merge.MetaResponse +
client.accounting.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse
@@ -11365,7 +12269,7 @@ await client.crm.tasks.metaPatchRetrieve("id");
-Returns metadata for `Task` POSTs. +Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/).
@@ -11380,7 +12284,10 @@ Returns metadata for `Task` POSTs.
```typescript -await client.crm.tasks.metaPostRetrieve(); +await client.accounting.fieldMapping.remoteFieldsRetrieve({ + commonModels: "common_models", + includeExampleValues: "include_example_values" +}); ```
@@ -11396,7 +12303,15 @@ await client.crm.tasks.metaPostRetrieve();
-**requestOptions:** `TasksClient.RequestOptions` +**request:** `Merge.accounting.RemoteFieldsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -11408,7 +12323,7 @@ await client.crm.tasks.metaPostRetrieve();
-
client.crm.tasks.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.accounting.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse
@@ -11420,7 +12335,7 @@ await client.crm.tasks.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/).
@@ -11435,16 +12350,7 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.tasks.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 -}); +await client.accounting.fieldMapping.targetFieldsRetrieve(); ```
@@ -11460,15 +12366,7 @@ await client.crm.tasks.remoteFieldClassesList({
-**request:** `Merge.crm.TasksRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `TasksClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -11480,8 +12378,8 @@ await client.crm.tasks.remoteFieldClassesList({
-## Crm Users -
client.crm.users.list({ ...params }) -> Merge.PaginatedUserList +## Accounting GeneralLedgerTransactions +
client.accounting.generalLedgerTransactions.list({ ...params }) -> core.Page
@@ -11493,7 +12391,7 @@ await client.crm.tasks.remoteFieldClassesList({
-Returns a list of `User` objects. +Returns a list of `GeneralLedgerTransaction` objects.
@@ -11508,20 +12406,47 @@ Returns a list of `User` objects.
```typescript -await client.crm.users.list({ +const pageableResponse = await client.accounting.generalLedgerTransactions.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + postedDateAfter: new Date("2024-01-15T09:30:00.000Z"), + postedDateBefore: new Date("2024-01-15T09:30:00.000Z"), + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.generalLedgerTransactions.list({ + companyId: "company_id", createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - email: "email", includeDeletedData: true, includeRemoteData: true, - includeRemoteFields: true, includeShellData: true, modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), pageSize: 1, + postedDateAfter: new Date("2024-01-15T09:30:00.000Z"), + postedDateBefore: new Date("2024-01-15T09:30:00.000Z"), remoteId: "remote_id" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -11537,7 +12462,7 @@ await client.crm.users.list({
-**request:** `Merge.crm.UsersListRequest` +**request:** `Merge.accounting.GeneralLedgerTransactionsListRequest`
@@ -11545,7 +12470,7 @@ await client.crm.users.list({
-**requestOptions:** `UsersClient.RequestOptions` +**requestOptions:** `GeneralLedgerTransactionsClient.RequestOptions`
@@ -11557,7 +12482,7 @@ await client.crm.users.list({
-
client.crm.users.retrieve(id, { ...params }) -> Merge.User +
client.accounting.generalLedgerTransactions.retrieve(id, { ...params }) -> Merge.GeneralLedgerTransaction
@@ -11569,7 +12494,7 @@ await client.crm.users.list({
-Returns a `User` object with the given `id`. +Returns a `GeneralLedgerTransaction` object with the given `id`.
@@ -11584,9 +12509,8 @@ Returns a `User` object with the given `id`.
```typescript -await client.crm.users.retrieve("id", { +await client.accounting.generalLedgerTransactions.retrieve("id", { includeRemoteData: true, - includeRemoteFields: true, includeShellData: true }); @@ -11612,7 +12536,7 @@ await client.crm.users.retrieve("id", {
-**request:** `Merge.crm.UsersRetrieveRequest` +**request:** `Merge.accounting.GeneralLedgerTransactionsRetrieveRequest`
@@ -11620,7 +12544,7 @@ await client.crm.users.retrieve("id", {
-**requestOptions:** `UsersClient.RequestOptions` +**requestOptions:** `GeneralLedgerTransactionsClient.RequestOptions`
@@ -11632,7 +12556,8 @@ await client.crm.users.retrieve("id", {
-
client.crm.users.ignoreCreate(model_id, { ...params }) -> void +## Accounting GenerateKey +
client.accounting.generateKey.create({ ...params }) -> Merge.RemoteKey
@@ -11644,7 +12569,7 @@ await client.crm.users.retrieve("id", {
-Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. +Create a remote key.
@@ -11659,8 +12584,8 @@ Ignores a specific row based on the `model_id` in the url. These records will ha
```typescript -await client.crm.users.ignoreCreate("model_id", { - reason: "GENERAL_CUSTOMER_REQUEST" +await client.accounting.generateKey.create({ + name: "Remote Deployment Key 1" }); ``` @@ -11677,15 +12602,7 @@ await client.crm.users.ignoreCreate("model_id", {
-**model_id:** `string` - -
-
- -
-
- -**request:** `Merge.IgnoreCommonModelRequest` +**request:** `Merge.accounting.GenerateRemoteKeyRequest`
@@ -11693,7 +12610,7 @@ await client.crm.users.ignoreCreate("model_id", {
-**requestOptions:** `UsersClient.RequestOptions` +**requestOptions:** `GenerateKeyClient.RequestOptions`
@@ -11705,7 +12622,8 @@ await client.crm.users.ignoreCreate("model_id", {
-
client.crm.users.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +## Accounting IncomeStatements +
client.accounting.incomeStatements.list({ ...params }) -> core.Page
@@ -11717,7 +12635,7 @@ await client.crm.users.ignoreCreate("model_id", {
-Returns a list of `RemoteFieldClass` objects. +Returns a list of `IncomeStatement` objects.
@@ -11732,16 +12650,43 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.users.remoteFieldClassesList({ +const pageableResponse = await client.accounting.incomeStatements.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", includeDeletedData: true, includeRemoteData: true, - includeRemoteFields: true, includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.incomeStatements.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -11757,7 +12702,7 @@ await client.crm.users.remoteFieldClassesList({
-**request:** `Merge.crm.UsersRemoteFieldClassesListRequest` +**request:** `Merge.accounting.IncomeStatementsListRequest`
@@ -11765,7 +12710,7 @@ await client.crm.users.remoteFieldClassesList({
-**requestOptions:** `UsersClient.RequestOptions` +**requestOptions:** `IncomeStatementsClient.RequestOptions`
@@ -11777,8 +12722,7 @@ await client.crm.users.remoteFieldClassesList({
-## Crm WebhookReceivers -
client.crm.webhookReceivers.list() -> Merge.WebhookReceiver[] +
client.accounting.incomeStatements.retrieve(id, { ...params }) -> Merge.IncomeStatement
@@ -11790,7 +12734,7 @@ await client.crm.users.remoteFieldClassesList({
-Returns a list of `WebhookReceiver` objects. +Returns an `IncomeStatement` object with the given `id`.
@@ -11805,7 +12749,10 @@ Returns a list of `WebhookReceiver` objects.
```typescript -await client.crm.webhookReceivers.list(); +await client.accounting.incomeStatements.retrieve("id", { + includeRemoteData: true, + includeShellData: true +}); ```
@@ -11821,7 +12768,23 @@ await client.crm.webhookReceivers.list();
-**requestOptions:** `WebhookReceiversClient.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.accounting.IncomeStatementsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `IncomeStatementsClient.RequestOptions`
@@ -11833,7 +12796,8 @@ await client.crm.webhookReceivers.list();
-
client.crm.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver +## Accounting Invoices +
client.accounting.invoices.list({ ...params }) -> core.Page
@@ -11845,7 +12809,7 @@ await client.crm.webhookReceivers.list();
-Creates a `WebhookReceiver` object with the given values. +Returns a list of `Invoice` objects.
@@ -11860,10 +12824,61 @@ Creates a `WebhookReceiver` object with the given values.
```typescript -await client.crm.webhookReceivers.create({ - event: "event", - isActive: true +const pageableResponse = await client.accounting.invoices.list({ + companyId: "company_id", + contactId: "contact_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + issueDateAfter: new Date("2024-01-15T09:30:00.000Z"), + issueDateBefore: new Date("2024-01-15T09:30:00.000Z"), + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + number: "number", + pageSize: 1, + remoteFields: "type", + remoteId: "remote_id", + showEnumOrigins: "type", + status: "DRAFT", + type: "ACCOUNTS_PAYABLE" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.invoices.list({ + companyId: "company_id", + contactId: "contact_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + issueDateAfter: new Date("2024-01-15T09:30:00.000Z"), + issueDateBefore: new Date("2024-01-15T09:30:00.000Z"), + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + number: "number", + pageSize: 1, + remoteFields: "type", + remoteId: "remote_id", + showEnumOrigins: "type", + status: "DRAFT", + type: "ACCOUNTS_PAYABLE" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -11879,7 +12894,7 @@ await client.crm.webhookReceivers.create({
-**request:** `Merge.crm.WebhookReceiverRequest` +**request:** `Merge.accounting.InvoicesListRequest`
@@ -11887,7 +12902,7 @@ await client.crm.webhookReceivers.create({
-**requestOptions:** `WebhookReceiversClient.RequestOptions` +**requestOptions:** `InvoicesClient.RequestOptions`
@@ -11899,8 +12914,7 @@ await client.crm.webhookReceivers.create({
-## Filestorage AccountDetails -
client.filestorage.accountDetails.retrieve() -> Merge.AccountDetails +
client.accounting.invoices.create({ ...params }) -> Merge.InvoiceResponse
@@ -11912,7 +12926,9 @@ await client.crm.webhookReceivers.create({
-Get details for a linked account. +Creates an `Invoice` object with the given values. + Including a `PurchaseOrder` id in the `purchase_orders` property will generate an Accounts Payable Invoice from the specified Purchase Order(s). +
@@ -11927,7 +12943,13 @@ Get details for a linked account.
```typescript -await client.filestorage.accountDetails.retrieve(); +await client.accounting.invoices.create({ + isDebugMode: true, + runAsync: true, + body: { + model: {} + } +}); ```
@@ -11943,7 +12965,15 @@ await client.filestorage.accountDetails.retrieve();
-**requestOptions:** `AccountDetailsClient.RequestOptions` +**request:** `Merge.accounting.InvoicesCreateRequest` + +
+
+ +
+
+ +**requestOptions:** `InvoicesClient.RequestOptions`
@@ -11955,8 +12985,7 @@ await client.filestorage.accountDetails.retrieve();
-## Filestorage AccountToken -
client.filestorage.accountToken.retrieve(public_token) -> Merge.AccountToken +
client.accounting.invoices.retrieve(id, { ...params }) -> Merge.Invoice
@@ -11968,7 +12997,7 @@ await client.filestorage.accountDetails.retrieve();
-Returns the account token for the end user with the provided public token. +Returns an `Invoice` object with the given `id`.
@@ -11983,7 +13012,13 @@ Returns the account token for the end user with the provided public token.
```typescript -await client.filestorage.accountToken.retrieve("public_token"); +await client.accounting.invoices.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + remoteFields: "type", + showEnumOrigins: "type" +}); ```
@@ -11999,7 +13034,7 @@ await client.filestorage.accountToken.retrieve("public_token");
-**public_token:** `string` +**id:** `string`
@@ -12007,7 +13042,15 @@ await client.filestorage.accountToken.retrieve("public_token");
-**requestOptions:** `AccountTokenClient.RequestOptions` +**request:** `Merge.accounting.InvoicesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `InvoicesClient.RequestOptions`
@@ -12019,8 +13062,7 @@ await client.filestorage.accountToken.retrieve("public_token");
-## Filestorage AsyncPassthrough -
client.filestorage.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept +
client.accounting.invoices.partialUpdate(id, { ...params }) -> Merge.InvoiceResponse
@@ -12032,7 +13074,7 @@ await client.filestorage.accountToken.retrieve("public_token");
-Asynchronously pull data from an endpoint not currently supported by Merge. +Updates an `Invoice` object with the given `id`.
@@ -12047,9 +13089,10 @@ Asynchronously pull data from an endpoint not currently supported by Merge.
```typescript -await client.filestorage.asyncPassthrough.create({ - method: "GET", - path: "/scooters" +await client.accounting.invoices.partialUpdate("id", { + isDebugMode: true, + runAsync: true, + model: {} }); ``` @@ -12066,7 +13109,7 @@ await client.filestorage.asyncPassthrough.create({
-**request:** `Merge.DataPassthroughRequest` +**id:** `string`
@@ -12074,7 +13117,15 @@ await client.filestorage.asyncPassthrough.create({
-**requestOptions:** `AsyncPassthroughClient.RequestOptions` +**request:** `Merge.accounting.PatchedInvoiceEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `InvoicesClient.RequestOptions`
@@ -12086,7 +13137,7 @@ await client.filestorage.asyncPassthrough.create({
-
client.filestorage.asyncPassthrough.retrieve(async_passthrough_receipt_id) -> Merge.AsyncPassthroughRetrieveResponse +
client.accounting.invoices.batchObjectsList(batch_id, { ...params }) -> Merge.PaginatedInvoiceList
@@ -12098,7 +13149,7 @@ await client.filestorage.asyncPassthrough.create({
-Retrieves data from earlier async-passthrough POST request +Returns a list of `Invoice` objects.
@@ -12113,7 +13164,28 @@ Retrieves data from earlier async-passthrough POST request
```typescript -await client.filestorage.asyncPassthrough.retrieve("async_passthrough_receipt_id"); +await client.accounting.invoices.batchObjectsList("batch_id", { + companyId: "company_id", + contactId: "contact_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + issueDateAfter: new Date("2024-01-15T09:30:00.000Z"), + issueDateBefore: new Date("2024-01-15T09:30:00.000Z"), + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + number: "number", + pageSize: 1, + remoteFields: "type", + remoteId: "remote_id", + showEnumOrigins: "type", + status: "DRAFT", + type: "ACCOUNTS_PAYABLE" +}); ```
@@ -12129,7 +13201,7 @@ await client.filestorage.asyncPassthrough.retrieve("async_passthrough_receipt_id
-**async_passthrough_receipt_id:** `string` +**batch_id:** `string`
@@ -12137,7 +13209,15 @@ await client.filestorage.asyncPassthrough.retrieve("async_passthrough_receipt_id
-**requestOptions:** `AsyncPassthroughClient.RequestOptions` +**request:** `Merge.accounting.InvoicesBatchObjectsListRequest` + +
+
+ +
+
+ +**requestOptions:** `InvoicesClient.RequestOptions`
@@ -12149,8 +13229,7 @@ await client.filestorage.asyncPassthrough.retrieve("async_passthrough_receipt_id
-## Filestorage AuditTrail -
client.filestorage.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList +
client.accounting.invoices.asyncBulkCreate({ ...params }) -> Merge.InvoiceResponse
@@ -12162,7 +13241,9 @@ await client.filestorage.asyncPassthrough.retrieve("async_passthrough_receipt_id
-Gets a list of audit trail events. +Creates an `Invoice` object with the given values. + Including a `PurchaseOrder` id in the `purchase_orders` property will generate an Accounts Payable Invoice from the specified Purchase Order(s). +
@@ -12177,13 +13258,15 @@ Gets a list of audit trail events.
```typescript -await client.filestorage.auditTrail.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - eventType: "event_type", - pageSize: 1, - startDate: "start_date", - userEmail: "user_email" +await client.accounting.invoices.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [{ + itemId: "item_id", + payload: { + model: {} + } + }] }); ``` @@ -12200,7 +13283,7 @@ await client.filestorage.auditTrail.list({
-**request:** `Merge.filestorage.AuditTrailListRequest` +**request:** `Merge.accounting.InvoiceBulkRequest`
@@ -12208,7 +13291,7 @@ await client.filestorage.auditTrail.list({
-**requestOptions:** `AuditTrailClient.RequestOptions` +**requestOptions:** `InvoicesClient.RequestOptions`
@@ -12220,8 +13303,7 @@ await client.filestorage.auditTrail.list({
-## Filestorage AvailableActions -
client.filestorage.availableActions.retrieve() -> Merge.AvailableActions +
client.accounting.invoices.lineItemsRemoteFieldClassesList({ ...params }) -> core.Page
@@ -12233,7 +13315,7 @@ await client.filestorage.auditTrail.list({
-Returns a list of models and actions available for an account. +Returns a list of `RemoteFieldClass` objects.
@@ -12248,7 +13330,35 @@ Returns a list of models and actions available for an account.
```typescript -await client.filestorage.availableActions.retrieve(); +const pageableResponse = await client.accounting.invoices.lineItemsRemoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.invoices.lineItemsRemoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -12264,7 +13374,15 @@ await client.filestorage.availableActions.retrieve();
-**requestOptions:** `AvailableActionsClient.RequestOptions` +**request:** `Merge.accounting.InvoicesLineItemsRemoteFieldClassesListRequest` + +
+
+ +
+
+ +**requestOptions:** `InvoicesClient.RequestOptions`
@@ -12276,8 +13394,7 @@ await client.filestorage.availableActions.retrieve();
-## Filestorage Scopes -
client.filestorage.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi +
client.accounting.invoices.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -12289,7 +13406,7 @@ await client.filestorage.availableActions.retrieve();
-Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +Returns metadata for `Invoice` PATCHs.
@@ -12304,7 +13421,7 @@ Get the default permissions for Merge Common Models and fields across all Linked
```typescript -await client.filestorage.scopes.defaultScopesRetrieve(); +await client.accounting.invoices.metaPatchRetrieve("id"); ```
@@ -12320,7 +13437,15 @@ await client.filestorage.scopes.defaultScopesRetrieve();
-**requestOptions:** `ScopesClient.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**requestOptions:** `InvoicesClient.RequestOptions`
@@ -12332,7 +13457,7 @@ await client.filestorage.scopes.defaultScopesRetrieve();
-
client.filestorage.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi +
client.accounting.invoices.metaPostRetrieve() -> Merge.MetaResponse
@@ -12344,7 +13469,7 @@ await client.filestorage.scopes.defaultScopesRetrieve();
-Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +Returns metadata for `Invoice` POSTs.
@@ -12359,7 +13484,7 @@ Get all available permissions for Merge Common Models and fields for a single Li
```typescript -await client.filestorage.scopes.linkedAccountScopesRetrieve(); +await client.accounting.invoices.metaPostRetrieve(); ```
@@ -12375,7 +13500,7 @@ await client.filestorage.scopes.linkedAccountScopesRetrieve();
-**requestOptions:** `ScopesClient.RequestOptions` +**requestOptions:** `InvoicesClient.RequestOptions`
@@ -12387,7 +13512,7 @@ await client.filestorage.scopes.linkedAccountScopesRetrieve();
-
client.filestorage.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi +
client.accounting.invoices.remoteFieldClassesList({ ...params }) -> core.Page
@@ -12399,7 +13524,7 @@ await client.filestorage.scopes.linkedAccountScopesRetrieve();
-Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) +Returns a list of `RemoteFieldClass` objects.
@@ -12414,30 +13539,35 @@ Update permissions for any Common Model or field for a single Linked Account. An
```typescript -await client.filestorage.scopes.linkedAccountScopesCreate({ - commonModels: [{ - modelName: "Employee", - modelPermissions: { - "READ": { - isEnabled: true - }, - "WRITE": { - isEnabled: false - } - }, - fieldPermissions: { - enabledFields: ["avatar", "home_location"], - disabledFields: ["work_location"] - } - }, { - modelName: "Benefit", - modelPermissions: { - "WRITE": { - isEnabled: false - } - } - }] +const pageableResponse = await client.accounting.invoices.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.invoices.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -12453,7 +13583,7 @@ await client.filestorage.scopes.linkedAccountScopesCreate({
-**request:** `Merge.filestorage.LinkedAccountCommonModelScopeDeserializerRequest` +**request:** `Merge.accounting.InvoicesRemoteFieldClassesListRequest`
@@ -12461,7 +13591,7 @@ await client.filestorage.scopes.linkedAccountScopesCreate({
-**requestOptions:** `ScopesClient.RequestOptions` +**requestOptions:** `InvoicesClient.RequestOptions`
@@ -12473,8 +13603,8 @@ await client.filestorage.scopes.linkedAccountScopesCreate({
-## Filestorage DeleteAccount -
client.filestorage.deleteAccount.delete() -> void +## Accounting Issues +
client.accounting.issues.list({ ...params }) -> core.Page
@@ -12486,7 +13616,7 @@ await client.filestorage.scopes.linkedAccountScopesCreate({
-Delete a linked account. +Gets all issues for Organization.
@@ -12501,7 +13631,49 @@ Delete a linked account.
```typescript -await client.filestorage.deleteAccount.delete(); +const pageableResponse = await client.accounting.issues.list({ + accountToken: "account_token", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endDate: "end_date", + endUserOrganizationName: "end_user_organization_name", + firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + includeMuted: "include_muted", + integrationName: "integration_name", + lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + linkedAccountId: "linked_account_id", + pageSize: 1, + startDate: "start_date", + status: "ONGOING" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.issues.list({ + accountToken: "account_token", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endDate: "end_date", + endUserOrganizationName: "end_user_organization_name", + firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + includeMuted: "include_muted", + integrationName: "integration_name", + lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + linkedAccountId: "linked_account_id", + pageSize: 1, + startDate: "start_date", + status: "ONGOING" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -12517,7 +13689,15 @@ await client.filestorage.deleteAccount.delete();
-**requestOptions:** `DeleteAccountClient.RequestOptions` +**request:** `Merge.accounting.IssuesListRequest` + +
+
+ +
+
+ +**requestOptions:** `IssuesClient.RequestOptions`
@@ -12529,8 +13709,7 @@ await client.filestorage.deleteAccount.delete();
-## Filestorage Drives -
client.filestorage.drives.list({ ...params }) -> Merge.PaginatedDriveList +
client.accounting.issues.retrieve(id) -> Merge.Issue
@@ -12542,7 +13721,7 @@ await client.filestorage.deleteAccount.delete();
-Returns a list of `Drive` objects. +Get a specific issue.
@@ -12557,19 +13736,7 @@ Returns a list of `Drive` objects.
```typescript -await client.filestorage.drives.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - name: "name", - pageSize: 1, - remoteId: "remote_id" -}); +await client.accounting.issues.retrieve("id"); ```
@@ -12585,7 +13752,7 @@ await client.filestorage.drives.list({
-**request:** `Merge.filestorage.DrivesListRequest` +**id:** `string`
@@ -12593,7 +13760,7 @@ await client.filestorage.drives.list({
-**requestOptions:** `DrivesClient.RequestOptions` +**requestOptions:** `IssuesClient.RequestOptions`
@@ -12605,7 +13772,8 @@ await client.filestorage.drives.list({
-
client.filestorage.drives.retrieve(id, { ...params }) -> Merge.Drive +## Accounting ItemFulfillments +
client.accounting.itemFulfillments.list({ ...params }) -> core.Page
@@ -12617,7 +13785,7 @@ await client.filestorage.drives.list({
-Returns a `Drive` object with the given `id`. +Returns a list of `ItemFulfillment` objects.
@@ -12632,10 +13800,37 @@ Returns a `Drive` object with the given `id`.
```typescript -await client.filestorage.drives.retrieve("id", { +const pageableResponse = await client.accounting.itemFulfillments.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, includeRemoteData: true, - includeShellData: true + includeRemoteFields: true, + includeShellData: true, + pageSize: 1, + remoteFields: "status", + showEnumOrigins: "status" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.itemFulfillments.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + pageSize: 1, + remoteFields: "status", + showEnumOrigins: "status" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -12651,7 +13846,7 @@ await client.filestorage.drives.retrieve("id", {
-**id:** `string` +**request:** `Merge.accounting.ItemFulfillmentsListRequest`
@@ -12659,15 +13854,7 @@ await client.filestorage.drives.retrieve("id", {
-**request:** `Merge.filestorage.DrivesRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `DrivesClient.RequestOptions` +**requestOptions:** `ItemFulfillmentsClient.RequestOptions`
@@ -12679,8 +13866,7 @@ await client.filestorage.drives.retrieve("id", {
-## Filestorage FieldMapping -
client.filestorage.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse +
client.accounting.itemFulfillments.create({ ...params }) -> Merge.ItemFulfillmentResponse
@@ -12692,7 +13878,7 @@ await client.filestorage.drives.retrieve("id", {
-Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). +Creates an `ItemFulfillment` object with the given values.
@@ -12707,8 +13893,12 @@ Get all Field Mappings for this Linked Account. Field Mappings are mappings betw
```typescript -await client.filestorage.fieldMapping.fieldMappingsRetrieve({ - excludeRemoteFieldMetadata: true +await client.accounting.itemFulfillments.create({ + isDebugMode: true, + runAsync: true, + body: { + model: {} + } }); ``` @@ -12725,7 +13915,7 @@ await client.filestorage.fieldMapping.fieldMappingsRetrieve({
-**request:** `Merge.filestorage.FieldMappingsRetrieveRequest` +**request:** `Merge.accounting.ItemFulfillmentsCreateRequest`
@@ -12733,7 +13923,7 @@ await client.filestorage.fieldMapping.fieldMappingsRetrieve({
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `ItemFulfillmentsClient.RequestOptions`
@@ -12745,7 +13935,7 @@ await client.filestorage.fieldMapping.fieldMappingsRetrieve({
-
client.filestorage.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse +
client.accounting.itemFulfillments.retrieve(id, { ...params }) -> Merge.ItemFulfillment
@@ -12757,7 +13947,7 @@ await client.filestorage.fieldMapping.fieldMappingsRetrieve({
-Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Returns an `ItemFulfillment` object with the given `id`.
@@ -12772,14 +13962,12 @@ Create new Field Mappings that will be available after the next scheduled sync.
```typescript -await client.filestorage.fieldMapping.fieldMappingsCreate({ - excludeRemoteFieldMetadata: true, - targetFieldName: "example_target_field_name", - targetFieldDescription: "this is a example description of the target field", - remoteFieldTraversalPath: ["example_remote_field"], - remoteMethod: "GET", - remoteUrlPath: "/example-url-path", - commonModelName: "ExampleCommonModel" +await client.accounting.itemFulfillments.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + remoteFields: "status", + showEnumOrigins: "status" }); ``` @@ -12796,7 +13984,7 @@ await client.filestorage.fieldMapping.fieldMappingsCreate({
-**request:** `Merge.filestorage.CreateFieldMappingRequest` +**id:** `string`
@@ -12804,7 +13992,15 @@ await client.filestorage.fieldMapping.fieldMappingsCreate({
-**requestOptions:** `FieldMappingClient.RequestOptions` +**request:** `Merge.accounting.ItemFulfillmentsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `ItemFulfillmentsClient.RequestOptions`
@@ -12816,7 +14012,7 @@ await client.filestorage.fieldMapping.fieldMappingsCreate({
-
client.filestorage.fieldMapping.fieldMappingsDestroy(field_mapping_id) -> Merge.FieldMappingInstanceResponse +
client.accounting.itemFulfillments.batchObjectsList(batch_id, { ...params }) -> Merge.PaginatedItemFulfillmentList
@@ -12828,7 +14024,7 @@ await client.filestorage.fieldMapping.fieldMappingsCreate({
-Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Returns a list of `ItemFulfillment` objects.
@@ -12843,7 +14039,16 @@ Deletes Field Mappings for a Linked Account. All data related to this Field Mapp
```typescript -await client.filestorage.fieldMapping.fieldMappingsDestroy("field_mapping_id"); +await client.accounting.itemFulfillments.batchObjectsList("batch_id", { + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + pageSize: 1, + remoteFields: "status", + showEnumOrigins: "status" +}); ```
@@ -12859,7 +14064,7 @@ await client.filestorage.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**field_mapping_id:** `string` +**batch_id:** `string`
@@ -12867,7 +14072,15 @@ await client.filestorage.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**requestOptions:** `FieldMappingClient.RequestOptions` +**request:** `Merge.accounting.ItemFulfillmentsBatchObjectsListRequest` + +
+
+ +
+
+ +**requestOptions:** `ItemFulfillmentsClient.RequestOptions`
@@ -12879,7 +14092,7 @@ await client.filestorage.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-
client.filestorage.fieldMapping.fieldMappingsPartialUpdate(field_mapping_id, { ...params }) -> Merge.FieldMappingInstanceResponse +
client.accounting.itemFulfillments.asyncBulkCreate({ ...params }) -> Merge.ItemFulfillmentResponse
@@ -12891,7 +14104,7 @@ await client.filestorage.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Creates an `ItemFulfillment` object with the given values.
@@ -12906,7 +14119,16 @@ Create or update existing Field Mappings for a Linked Account. Changes will be r
```typescript -await client.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); +await client.accounting.itemFulfillments.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [{ + itemId: "item_id", + payload: { + model: {} + } + }] +}); ```
@@ -12922,7 +14144,7 @@ await client.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_
-**field_mapping_id:** `string` +**request:** `Merge.accounting.ItemFulfillmentBulkRequest`
@@ -12930,15 +14152,7 @@ await client.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_
-**request:** `Merge.filestorage.PatchedEditFieldMappingRequest` - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `ItemFulfillmentsClient.RequestOptions`
@@ -12950,7 +14164,7 @@ await client.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_
-
client.filestorage.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse +
client.accounting.itemFulfillments.linesRemoteFieldClassesList({ ...params }) -> core.Page
@@ -12962,7 +14176,7 @@ await client.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_
-Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). +Returns a list of `RemoteFieldClass` objects.
@@ -12977,10 +14191,35 @@ Get all remote fields for a Linked Account. Remote fields are third-party fields
```typescript -await client.filestorage.fieldMapping.remoteFieldsRetrieve({ - commonModels: "common_models", - includeExampleValues: "include_example_values" +const pageableResponse = await client.accounting.itemFulfillments.linesRemoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.itemFulfillments.linesRemoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -12996,7 +14235,7 @@ await client.filestorage.fieldMapping.remoteFieldsRetrieve({
-**request:** `Merge.filestorage.RemoteFieldsRetrieveRequest` +**request:** `Merge.accounting.ItemFulfillmentsLinesRemoteFieldClassesListRequest`
@@ -13004,7 +14243,7 @@ await client.filestorage.fieldMapping.remoteFieldsRetrieve({
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `ItemFulfillmentsClient.RequestOptions`
@@ -13016,7 +14255,7 @@ await client.filestorage.fieldMapping.remoteFieldsRetrieve({
-
client.filestorage.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse +
client.accounting.itemFulfillments.metaPostRetrieve() -> Merge.MetaResponse
@@ -13028,7 +14267,7 @@ await client.filestorage.fieldMapping.remoteFieldsRetrieve({
-Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). +Returns metadata for `ItemFulfillment` POSTs.
@@ -13043,7 +14282,7 @@ Get all organization-wide Target Fields, this will not include any Linked Accoun
```typescript -await client.filestorage.fieldMapping.targetFieldsRetrieve(); +await client.accounting.itemFulfillments.metaPostRetrieve(); ```
@@ -13059,7 +14298,7 @@ await client.filestorage.fieldMapping.targetFieldsRetrieve();
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `ItemFulfillmentsClient.RequestOptions`
@@ -13071,8 +14310,7 @@ await client.filestorage.fieldMapping.targetFieldsRetrieve();
-## Filestorage Files -
client.filestorage.files.list({ ...params }) -> Merge.PaginatedFileList +
client.accounting.itemFulfillments.remoteFieldClassesList({ ...params }) -> core.Page
@@ -13084,7 +14322,7 @@ await client.filestorage.fieldMapping.targetFieldsRetrieve();
-Returns a list of `File` objects. +Returns a list of `RemoteFieldClass` objects.
@@ -13099,26 +14337,35 @@ Returns a list of `File` objects.
```typescript -await client.filestorage.files.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), +const pageableResponse = await client.accounting.itemFulfillments.remoteFieldClassesList({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - driveId: "drive_id", - expand: "drive", - folderId: "folder_id", includeDeletedData: true, includeRemoteData: true, includeShellData: true, - mimeType: "mime_type", - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - name: "name", - orderBy: "-created_at", - pageSize: 1, - remoteCreatedAfter: new Date("2024-01-15T09:30:00.000Z"), - remoteCreatedBefore: new Date("2024-01-15T09:30:00.000Z"), - remoteId: "remote_id" + isCommonModelField: true, + isCustom: true, + pageSize: 1 }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.itemFulfillments.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -13134,7 +14381,7 @@ await client.filestorage.files.list({
-**request:** `Merge.filestorage.FilesListRequest` +**request:** `Merge.accounting.ItemFulfillmentsRemoteFieldClassesListRequest`
@@ -13142,7 +14389,7 @@ await client.filestorage.files.list({
-**requestOptions:** `FilesClient.RequestOptions` +**requestOptions:** `ItemFulfillmentsClient.RequestOptions`
@@ -13154,7 +14401,8 @@ await client.filestorage.files.list({
-
client.filestorage.files.create({ ...params }) -> Merge.FileStorageFileResponse +## Accounting Items +
client.accounting.items.list({ ...params }) -> core.Page
@@ -13166,7 +14414,7 @@ await client.filestorage.files.list({
-Creates a `File` object with the given values. +Returns a list of `Item` objects.
@@ -13181,11 +14429,49 @@ Creates a `File` object with the given values.
```typescript -await client.filestorage.files.create({ - isDebugMode: true, - runAsync: true, - model: {} +const pageableResponse = await client.accounting.items.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.items.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -13201,7 +14487,7 @@ await client.filestorage.files.create({
-**request:** `Merge.filestorage.FileStorageFileEndpointRequest` +**request:** `Merge.accounting.ItemsListRequest`
@@ -13209,7 +14495,7 @@ await client.filestorage.files.create({
-**requestOptions:** `FilesClient.RequestOptions` +**requestOptions:** `ItemsClient.RequestOptions`
@@ -13221,7 +14507,7 @@ await client.filestorage.files.create({
-
client.filestorage.files.retrieve(id, { ...params }) -> Merge.File_ +
client.accounting.items.create({ ...params }) -> Merge.ItemResponse
@@ -13233,7 +14519,7 @@ await client.filestorage.files.create({
-Returns a `File` object with the given `id`. +Creates an `Item` object with the given values.
@@ -13248,10 +14534,12 @@ Returns a `File` object with the given `id`.
```typescript -await client.filestorage.files.retrieve("id", { - expand: "drive", - includeRemoteData: true, - includeShellData: true +await client.accounting.items.create({ + isDebugMode: true, + runAsync: true, + body: { + model: {} + } }); ``` @@ -13268,15 +14556,7 @@ await client.filestorage.files.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.filestorage.FilesRetrieveRequest` +**request:** `Merge.accounting.ItemsCreateRequest`
@@ -13284,7 +14564,7 @@ await client.filestorage.files.retrieve("id", {
-**requestOptions:** `FilesClient.RequestOptions` +**requestOptions:** `ItemsClient.RequestOptions`
@@ -13296,7 +14576,7 @@ await client.filestorage.files.retrieve("id", {
-
client.filestorage.files.downloadRequestMetaRetrieve(id, { ...params }) -> Merge.DownloadRequestMeta +
client.accounting.items.retrieve(id, { ...params }) -> Merge.Item
@@ -13308,7 +14588,7 @@ await client.filestorage.files.retrieve("id", {
-Returns metadata to construct an authenticated file download request for a singular file, allowing you to download file directly from the third-party. +Returns an `Item` object with the given `id`.
@@ -13323,8 +14603,11 @@ Returns metadata to construct an authenticated file download request for a singu
```typescript -await client.filestorage.files.downloadRequestMetaRetrieve("id", { - mimeType: "mime_type" +await client.accounting.items.retrieve("id", { + includeRemoteData: true, + includeShellData: true, + remoteFields: "status", + showEnumOrigins: "status" }); ``` @@ -13349,7 +14632,7 @@ await client.filestorage.files.downloadRequestMetaRetrieve("id", {
-**request:** `Merge.filestorage.FilesDownloadRequestMetaRetrieveRequest` +**request:** `Merge.accounting.ItemsRetrieveRequest`
@@ -13357,7 +14640,7 @@ await client.filestorage.files.downloadRequestMetaRetrieve("id", {
-**requestOptions:** `FilesClient.RequestOptions` +**requestOptions:** `ItemsClient.RequestOptions`
@@ -13369,7 +14652,7 @@ await client.filestorage.files.downloadRequestMetaRetrieve("id", {
-
client.filestorage.files.downloadRequestMetaList({ ...params }) -> Merge.PaginatedDownloadRequestMetaList +
client.accounting.items.partialUpdate(id, { ...params }) -> Merge.ItemResponse
@@ -13381,7 +14664,7 @@ await client.filestorage.files.downloadRequestMetaRetrieve("id", {
-Returns metadata to construct authenticated file download requests, allowing you to download files directly from the third-party. +Updates an `Item` object with the given `id`.
@@ -13396,16 +14679,10 @@ Returns metadata to construct authenticated file download requests, allowing you
```typescript -await client.filestorage.files.downloadRequestMetaList({ - createdAfter: "created_after", - createdBefore: "created_before", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - mimeTypes: "mime_types", - modifiedAfter: "modified_after", - modifiedBefore: "modified_before", - orderBy: "-created_at", - pageSize: 1 +await client.accounting.items.partialUpdate("id", { + isDebugMode: true, + runAsync: true, + model: {} }); ``` @@ -13422,7 +14699,7 @@ await client.filestorage.files.downloadRequestMetaList({
-**request:** `Merge.filestorage.FilesDownloadRequestMetaListRequest` +**id:** `string`
@@ -13430,7 +14707,15 @@ await client.filestorage.files.downloadRequestMetaList({
-**requestOptions:** `FilesClient.RequestOptions` +**request:** `Merge.accounting.PatchedItemEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `ItemsClient.RequestOptions`
@@ -13442,7 +14727,7 @@ await client.filestorage.files.downloadRequestMetaList({
-
client.filestorage.files.metaPostRetrieve() -> Merge.MetaResponse +
client.accounting.items.batchObjectsList(batch_id, { ...params }) -> Merge.PaginatedItemList
@@ -13454,7 +14739,7 @@ await client.filestorage.files.downloadRequestMetaList({
-Returns metadata for `FileStorageFile` POSTs. +Returns a list of `Item` objects.
@@ -13469,7 +14754,22 @@ Returns metadata for `FileStorageFile` POSTs.
```typescript -await client.filestorage.files.metaPostRetrieve(); +await client.accounting.items.batchObjectsList("batch_id", { + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status" +}); ```
@@ -13485,7 +14785,23 @@ await client.filestorage.files.metaPostRetrieve();
-**requestOptions:** `FilesClient.RequestOptions` +**batch_id:** `string` + +
+
+ +
+
+ +**request:** `Merge.accounting.ItemsBatchObjectsListRequest` + +
+
+ +
+
+ +**requestOptions:** `ItemsClient.RequestOptions`
@@ -13497,8 +14813,7 @@ await client.filestorage.files.metaPostRetrieve();
-## Filestorage Folders -
client.filestorage.folders.list({ ...params }) -> Merge.PaginatedFolderList +
client.accounting.items.asyncBulkCreate({ ...params }) -> Merge.ItemResponse
@@ -13510,7 +14825,7 @@ await client.filestorage.files.metaPostRetrieve();
-Returns a list of `Folder` objects. +Creates an `Item` object with the given values.
@@ -13525,21 +14840,15 @@ Returns a list of `Folder` objects.
```typescript -await client.filestorage.folders.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - driveId: "drive_id", - expand: "drive", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - name: "name", - pageSize: 1, - parentFolderId: "parent_folder_id", - remoteId: "remote_id" +await client.accounting.items.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [{ + itemId: "item_id", + payload: { + model: {} + } + }] }); ``` @@ -13556,7 +14865,7 @@ await client.filestorage.folders.list({
-**request:** `Merge.filestorage.FoldersListRequest` +**request:** `Merge.accounting.ItemBulkRequest`
@@ -13564,7 +14873,7 @@ await client.filestorage.folders.list({
-**requestOptions:** `FoldersClient.RequestOptions` +**requestOptions:** `ItemsClient.RequestOptions`
@@ -13576,7 +14885,7 @@ await client.filestorage.folders.list({
-
client.filestorage.folders.create({ ...params }) -> Merge.FileStorageFolderResponse +
client.accounting.items.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -13588,7 +14897,7 @@ await client.filestorage.folders.list({
-Creates a `Folder` object with the given values. +Returns metadata for `Item` PATCHs.
@@ -13603,11 +14912,7 @@ Creates a `Folder` object with the given values.
```typescript -await client.filestorage.folders.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); +await client.accounting.items.metaPatchRetrieve("id"); ```
@@ -13623,7 +14928,7 @@ await client.filestorage.folders.create({
-**request:** `Merge.filestorage.FileStorageFolderEndpointRequest` +**id:** `string`
@@ -13631,7 +14936,7 @@ await client.filestorage.folders.create({
-**requestOptions:** `FoldersClient.RequestOptions` +**requestOptions:** `ItemsClient.RequestOptions`
@@ -13643,7 +14948,7 @@ await client.filestorage.folders.create({
-
client.filestorage.folders.retrieve(id, { ...params }) -> Merge.Folder +
client.accounting.items.metaPostRetrieve() -> Merge.MetaResponse
@@ -13655,7 +14960,7 @@ await client.filestorage.folders.create({
-Returns a `Folder` object with the given `id`. +Returns metadata for `Item` POSTs.
@@ -13670,11 +14975,7 @@ Returns a `Folder` object with the given `id`.
```typescript -await client.filestorage.folders.retrieve("id", { - expand: "drive", - includeRemoteData: true, - includeShellData: true -}); +await client.accounting.items.metaPostRetrieve(); ```
@@ -13690,15 +14991,105 @@ await client.filestorage.folders.retrieve("id", {
-**id:** `string` +**requestOptions:** `ItemsClient.RequestOptions`
+ +
+ + + + +
+## Accounting JournalEntries +
client.accounting.journalEntries.list({ ...params }) -> core.Page
-**request:** `Merge.filestorage.FoldersRetrieveRequest` +#### 📝 Description + +
+
+ +
+
+ +Returns a list of `JournalEntry` objects. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +const pageableResponse = await client.accounting.journalEntries.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.journalEntries.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.accounting.JournalEntriesListRequest`
@@ -13706,7 +15097,7 @@ await client.filestorage.folders.retrieve("id", {
-**requestOptions:** `FoldersClient.RequestOptions` +**requestOptions:** `JournalEntriesClient.RequestOptions`
@@ -13718,7 +15109,7 @@ await client.filestorage.folders.retrieve("id", {
-
client.filestorage.folders.metaPostRetrieve() -> Merge.MetaResponse +
client.accounting.journalEntries.create({ ...params }) -> Merge.JournalEntryResponse
@@ -13730,7 +15121,7 @@ await client.filestorage.folders.retrieve("id", {
-Returns metadata for `FileStorageFolder` POSTs. +Creates a `JournalEntry` object with the given values.
@@ -13745,7 +15136,13 @@ Returns metadata for `FileStorageFolder` POSTs.
```typescript -await client.filestorage.folders.metaPostRetrieve(); +await client.accounting.journalEntries.create({ + isDebugMode: true, + runAsync: true, + body: { + model: {} + } +}); ```
@@ -13761,7 +15158,15 @@ await client.filestorage.folders.metaPostRetrieve();
-**requestOptions:** `FoldersClient.RequestOptions` +**request:** `Merge.accounting.JournalEntriesCreateRequest` + +
+
+ +
+
+ +**requestOptions:** `JournalEntriesClient.RequestOptions`
@@ -13773,8 +15178,7 @@ await client.filestorage.folders.metaPostRetrieve();
-## Filestorage GenerateKey -
client.filestorage.generateKey.create({ ...params }) -> Merge.RemoteKey +
client.accounting.journalEntries.retrieve(id, { ...params }) -> Merge.JournalEntry
@@ -13786,7 +15190,7 @@ await client.filestorage.folders.metaPostRetrieve();
-Create a remote key. +Returns a `JournalEntry` object with the given `id`.
@@ -13801,8 +15205,10 @@ Create a remote key.
```typescript -await client.filestorage.generateKey.create({ - name: "Remote Deployment Key 1" +await client.accounting.journalEntries.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true }); ``` @@ -13819,7 +15225,7 @@ await client.filestorage.generateKey.create({
-**request:** `Merge.filestorage.GenerateRemoteKeyRequest` +**id:** `string`
@@ -13827,7 +15233,15 @@ await client.filestorage.generateKey.create({
-**requestOptions:** `GenerateKeyClient.RequestOptions` +**request:** `Merge.accounting.JournalEntriesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `JournalEntriesClient.RequestOptions`
@@ -13839,8 +15253,7 @@ await client.filestorage.generateKey.create({
-## Filestorage Groups -
client.filestorage.groups.list({ ...params }) -> Merge.PaginatedGroupList +
client.accounting.journalEntries.batchObjectsList(batch_id, { ...params }) -> Merge.PaginatedJournalEntryList
@@ -13852,7 +15265,7 @@ await client.filestorage.generateKey.create({
-Returns a list of `Group` objects. +Returns a list of `JournalEntry` objects.
@@ -13867,18 +15280,21 @@ Returns a list of `Group` objects.
```typescript -await client.filestorage.groups.list({ +await client.accounting.journalEntries.batchObjectsList("batch_id", { + companyId: "company_id", createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "child_groups", includeDeletedData: true, includeRemoteData: true, + includeRemoteFields: true, includeShellData: true, modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), pageSize: 1, - remoteId: "remote_id" + remoteId: "remote_id", + transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") }); ``` @@ -13895,7 +15311,7 @@ await client.filestorage.groups.list({
-**request:** `Merge.filestorage.GroupsListRequest` +**batch_id:** `string`
@@ -13903,7 +15319,15 @@ await client.filestorage.groups.list({
-**requestOptions:** `GroupsClient.RequestOptions` +**request:** `Merge.accounting.JournalEntriesBatchObjectsListRequest` + +
+
+ +
+
+ +**requestOptions:** `JournalEntriesClient.RequestOptions`
@@ -13915,7 +15339,7 @@ await client.filestorage.groups.list({
-
client.filestorage.groups.retrieve(id, { ...params }) -> Merge.Group +
client.accounting.journalEntries.asyncBulkCreate({ ...params }) -> Merge.JournalEntryResponse
@@ -13927,7 +15351,7 @@ await client.filestorage.groups.list({
-Returns a `Group` object with the given `id`. +Creates a `JournalEntry` object with the given values.
@@ -13942,10 +15366,15 @@ Returns a `Group` object with the given `id`.
```typescript -await client.filestorage.groups.retrieve("id", { - expand: "child_groups", - includeRemoteData: true, - includeShellData: true +await client.accounting.journalEntries.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [{ + itemId: "item_id", + payload: { + model: {} + } + }] }); ``` @@ -13962,7 +15391,7 @@ await client.filestorage.groups.retrieve("id", {
-**id:** `string` +**request:** `Merge.accounting.JournalEntryBulkRequest`
@@ -13970,15 +15399,7 @@ await client.filestorage.groups.retrieve("id", {
-**request:** `Merge.filestorage.GroupsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `GroupsClient.RequestOptions` +**requestOptions:** `JournalEntriesClient.RequestOptions`
@@ -13990,8 +15411,7 @@ await client.filestorage.groups.retrieve("id", {
-## Filestorage Issues -
client.filestorage.issues.list({ ...params }) -> Merge.PaginatedIssueList +
client.accounting.journalEntries.linesRemoteFieldClassesList({ ...params }) -> core.Page
@@ -14003,7 +15423,7 @@ await client.filestorage.groups.retrieve("id", {
-Gets all issues for Organization. +Returns a list of `RemoteFieldClass` objects.
@@ -14018,22 +15438,35 @@ Gets all issues for Organization.
```typescript -await client.filestorage.issues.list({ - accountToken: "account_token", +const pageableResponse = await client.accounting.journalEntries.linesRemoteFieldClassesList({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - endUserOrganizationName: "end_user_organization_name", - firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - includeMuted: "include_muted", - integrationName: "integration_name", - lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - linkedAccountId: "linked_account_id", - pageSize: 1, - startDate: "start_date", - status: "ONGOING" + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.journalEntries.linesRemoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -14049,7 +15482,7 @@ await client.filestorage.issues.list({
-**request:** `Merge.filestorage.IssuesListRequest` +**request:** `Merge.accounting.JournalEntriesLinesRemoteFieldClassesListRequest`
@@ -14057,7 +15490,7 @@ await client.filestorage.issues.list({
-**requestOptions:** `IssuesClient.RequestOptions` +**requestOptions:** `JournalEntriesClient.RequestOptions`
@@ -14069,7 +15502,7 @@ await client.filestorage.issues.list({
-
client.filestorage.issues.retrieve(id) -> Merge.Issue +
client.accounting.journalEntries.metaPostRetrieve() -> Merge.MetaResponse
@@ -14081,7 +15514,7 @@ await client.filestorage.issues.list({
-Get a specific issue. +Returns metadata for `JournalEntry` POSTs.
@@ -14096,7 +15529,7 @@ Get a specific issue.
```typescript -await client.filestorage.issues.retrieve("id"); +await client.accounting.journalEntries.metaPostRetrieve(); ```
@@ -14112,15 +15545,98 @@ await client.filestorage.issues.retrieve("id");
-**id:** `string` +**requestOptions:** `JournalEntriesClient.RequestOptions`
+ +
+ + + +
+ +
client.accounting.journalEntries.remoteFieldClassesList({ ...params }) -> core.Page
-**requestOptions:** `IssuesClient.RequestOptions` +#### 📝 Description + +
+
+ +
+
+ +Returns a list of `RemoteFieldClass` objects. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +const pageableResponse = await client.accounting.journalEntries.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.journalEntries.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.accounting.JournalEntriesRemoteFieldClassesListRequest` + +
+
+ +
+
+ +**requestOptions:** `JournalEntriesClient.RequestOptions`
@@ -14132,8 +15648,8 @@ await client.filestorage.issues.retrieve("id");
-## Filestorage LinkToken -
client.filestorage.linkToken.create({ ...params }) -> Merge.LinkToken +## Accounting LinkToken +
client.accounting.linkToken.create({ ...params }) -> Merge.LinkToken
@@ -14145,7 +15661,7 @@ await client.filestorage.issues.retrieve("id");
-Creates a link token to be used when linking a new end user. +Creates a link token to be used when linking a new end user. The link token expires after single use.
@@ -14160,7 +15676,7 @@ Creates a link token to be used when linking a new end user.
```typescript -await client.filestorage.linkToken.create({ +await client.accounting.linkToken.create({ endUserEmailAddress: "example@gmail.com", endUserOrganizationName: "Test Organization", endUserOriginId: "12345", @@ -14181,7 +15697,7 @@ await client.filestorage.linkToken.create({
-**request:** `Merge.filestorage.EndUserDetailsRequest` +**request:** `Merge.accounting.EndUserDetailsRequest`
@@ -14201,8 +15717,8 @@ await client.filestorage.linkToken.create({
-## Filestorage LinkedAccounts -
client.filestorage.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList +## Accounting LinkedAccounts +
client.accounting.linkedAccounts.list({ ...params }) -> core.Page
@@ -14229,7 +15745,7 @@ List linked accounts for your organization.
```typescript -await client.filestorage.linkedAccounts.list({ +const pageableResponse = await client.accounting.linkedAccounts.list({ category: "accounting", cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", endUserEmailAddress: "end_user_email_address", @@ -14244,6 +15760,32 @@ await client.filestorage.linkedAccounts.list({ pageSize: 1, status: "status" }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.linkedAccounts.list({ + category: "accounting", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endUserEmailAddress: "end_user_email_address", + endUserOrganizationName: "end_user_organization_name", + endUserOriginId: "end_user_origin_id", + endUserOriginIds: "end_user_origin_ids", + id: "id", + ids: "ids", + includeDuplicates: true, + integrationName: "integration_name", + isTestAccount: "is_test_account", + pageSize: 1, + status: "status" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -14259,7 +15801,7 @@ await client.filestorage.linkedAccounts.list({
-**request:** `Merge.filestorage.LinkedAccountsListRequest` +**request:** `Merge.accounting.LinkedAccountsListRequest`
@@ -14279,8 +15821,8 @@ await client.filestorage.linkedAccounts.list({
-## Filestorage Passthrough -
client.filestorage.passthrough.create({ ...params }) -> Merge.RemoteResponse +## Accounting Passthrough +
client.accounting.passthrough.create({ ...params }) -> Merge.RemoteResponse
@@ -14307,7 +15849,7 @@ Pull data from an endpoint not currently supported by Merge.
```typescript -await client.filestorage.passthrough.create({ +await client.accounting.passthrough.create({ method: "GET", path: "/scooters" }); @@ -14346,8 +15888,8 @@ await client.filestorage.passthrough.create({
-## Filestorage RegenerateKey -
client.filestorage.regenerateKey.create({ ...params }) -> Merge.RemoteKey +## Accounting PaymentMethods +
client.accounting.paymentMethods.list({ ...params }) -> core.Page
@@ -14359,7 +15901,7 @@ await client.filestorage.passthrough.create({
-Exchange remote keys. +Returns a list of `PaymentMethod` objects.
@@ -14374,9 +15916,31 @@ Exchange remote keys.
```typescript -await client.filestorage.regenerateKey.create({ - name: "Remote Deployment Key 1" +const pageableResponse = await client.accounting.paymentMethods.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.paymentMethods.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + pageSize: 1 }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -14392,7 +15956,7 @@ await client.filestorage.regenerateKey.create({
-**request:** `Merge.filestorage.RemoteKeyForRegenerationRequest` +**request:** `Merge.accounting.PaymentMethodsListRequest`
@@ -14400,7 +15964,7 @@ await client.filestorage.regenerateKey.create({
-**requestOptions:** `RegenerateKeyClient.RequestOptions` +**requestOptions:** `PaymentMethodsClient.RequestOptions`
@@ -14412,8 +15976,7 @@ await client.filestorage.regenerateKey.create({
-## Filestorage SyncStatus -
client.filestorage.syncStatus.list({ ...params }) -> Merge.PaginatedSyncStatusList +
client.accounting.paymentMethods.retrieve(id, { ...params }) -> Merge.PaymentMethod
@@ -14425,7 +15988,7 @@ await client.filestorage.regenerateKey.create({
-Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). +Returns a `PaymentMethod` object with the given `id`.
@@ -14440,9 +16003,9 @@ Get sync status for the current sync and the most recently finished sync. `last_
```typescript -await client.filestorage.syncStatus.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - pageSize: 1 +await client.accounting.paymentMethods.retrieve("id", { + includeRemoteData: true, + includeShellData: true }); ``` @@ -14459,7 +16022,7 @@ await client.filestorage.syncStatus.list({
-**request:** `Merge.filestorage.SyncStatusListRequest` +**id:** `string`
@@ -14467,7 +16030,15 @@ await client.filestorage.syncStatus.list({
-**requestOptions:** `SyncStatusClient.RequestOptions` +**request:** `Merge.accounting.PaymentMethodsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `PaymentMethodsClient.RequestOptions`
@@ -14479,8 +16050,8 @@ await client.filestorage.syncStatus.list({
-## Filestorage ForceResync -
client.filestorage.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[] +## Accounting PaymentTerms +
client.accounting.paymentTerms.list({ ...params }) -> core.Page
@@ -14492,7 +16063,7 @@ await client.filestorage.syncStatus.list({
-Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. +Returns a list of `PaymentTerm` objects.
@@ -14507,7 +16078,31 @@ Force re-sync of all models. This endpoint is available for monthly, quarterly,
```typescript -await client.filestorage.forceResync.syncStatusResyncCreate(); +const pageableResponse = await client.accounting.paymentTerms.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.paymentTerms.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + pageSize: 1 +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -14523,7 +16118,15 @@ await client.filestorage.forceResync.syncStatusResyncCreate();
-**requestOptions:** `ForceResyncClient.RequestOptions` +**request:** `Merge.accounting.PaymentTermsListRequest` + +
+
+ +
+
+ +**requestOptions:** `PaymentTermsClient.RequestOptions`
@@ -14535,8 +16138,7 @@ await client.filestorage.forceResync.syncStatusResyncCreate();
-## Filestorage Users -
client.filestorage.users.list({ ...params }) -> Merge.PaginatedUserList +
client.accounting.paymentTerms.retrieve(id, { ...params }) -> Merge.PaymentTerm
@@ -14548,7 +16150,7 @@ await client.filestorage.forceResync.syncStatusResyncCreate();
-Returns a list of `User` objects. +Returns a `PaymentTerm` object with the given `id`.
@@ -14563,18 +16165,9 @@ Returns a list of `User` objects.
```typescript -await client.filestorage.users.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, +await client.accounting.paymentTerms.retrieve("id", { includeRemoteData: true, - includeShellData: true, - isMe: "is_me", - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id" + includeShellData: true }); ``` @@ -14591,7 +16184,7 @@ await client.filestorage.users.list({
-**request:** `Merge.filestorage.UsersListRequest` +**id:** `string`
@@ -14599,7 +16192,15 @@ await client.filestorage.users.list({
-**requestOptions:** `UsersClient.RequestOptions` +**request:** `Merge.accounting.PaymentTermsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `PaymentTermsClient.RequestOptions`
@@ -14611,7 +16212,8 @@ await client.filestorage.users.list({
-
client.filestorage.users.retrieve(id, { ...params }) -> Merge.User +## Accounting Payments +
client.accounting.payments.list({ ...params }) -> core.Page
@@ -14623,7 +16225,7 @@ await client.filestorage.users.list({
-Returns a `User` object with the given `id`. +Returns a list of `Payment` objects.
@@ -14638,10 +16240,53 @@ Returns a `User` object with the given `id`.
```typescript -await client.filestorage.users.retrieve("id", { +const pageableResponse = await client.accounting.payments.list({ + accountId: "account_id", + companyId: "company_id", + contactId: "contact_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, includeRemoteData: true, - includeShellData: true + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.payments.list({ + accountId: "account_id", + companyId: "company_id", + contactId: "contact_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -14657,15 +16302,7 @@ await client.filestorage.users.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.filestorage.UsersRetrieveRequest` +**request:** `Merge.accounting.PaymentsListRequest`
@@ -14673,7 +16310,7 @@ await client.filestorage.users.retrieve("id", {
-**requestOptions:** `UsersClient.RequestOptions` +**requestOptions:** `PaymentsClient.RequestOptions`
@@ -14685,8 +16322,7 @@ await client.filestorage.users.retrieve("id", {
-## Filestorage WebhookReceivers -
client.filestorage.webhookReceivers.list() -> Merge.WebhookReceiver[] +
client.accounting.payments.create({ ...params }) -> Merge.PaymentResponse
@@ -14698,7 +16334,7 @@ await client.filestorage.users.retrieve("id", {
-Returns a list of `WebhookReceiver` objects. +Creates a `Payment` object with the given values.
@@ -14713,7 +16349,13 @@ Returns a list of `WebhookReceiver` objects.
```typescript -await client.filestorage.webhookReceivers.list(); +await client.accounting.payments.create({ + isDebugMode: true, + runAsync: true, + body: { + model: {} + } +}); ```
@@ -14729,7 +16371,15 @@ await client.filestorage.webhookReceivers.list();
-**requestOptions:** `WebhookReceiversClient.RequestOptions` +**request:** `Merge.accounting.PaymentsCreateRequest` + +
+
+ +
+
+ +**requestOptions:** `PaymentsClient.RequestOptions`
@@ -14741,7 +16391,7 @@ await client.filestorage.webhookReceivers.list();
-
client.filestorage.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver +
client.accounting.payments.retrieve(id, { ...params }) -> Merge.Payment
@@ -14753,7 +16403,7 @@ await client.filestorage.webhookReceivers.list();
-Creates a `WebhookReceiver` object with the given values. +Returns a `Payment` object with the given `id`.
@@ -14768,9 +16418,10 @@ Creates a `WebhookReceiver` object with the given values.
```typescript -await client.filestorage.webhookReceivers.create({ - event: "event", - isActive: true +await client.accounting.payments.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true }); ``` @@ -14787,7 +16438,7 @@ await client.filestorage.webhookReceivers.create({
-**request:** `Merge.filestorage.WebhookReceiverRequest` +**id:** `string`
@@ -14795,7 +16446,15 @@ await client.filestorage.webhookReceivers.create({
-**requestOptions:** `WebhookReceiversClient.RequestOptions` +**request:** `Merge.accounting.PaymentsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `PaymentsClient.RequestOptions`
@@ -14807,8 +16466,7 @@ await client.filestorage.webhookReceivers.create({
-## Hris AccountDetails -
client.hris.accountDetails.retrieve() -> Merge.AccountDetails +
client.accounting.payments.partialUpdate(id, { ...params }) -> Merge.PaymentResponse
@@ -14820,7 +16478,7 @@ await client.filestorage.webhookReceivers.create({
-Get details for a linked account. +Updates a `Payment` object with the given `id`.
@@ -14835,7 +16493,11 @@ Get details for a linked account.
```typescript -await client.hris.accountDetails.retrieve(); +await client.accounting.payments.partialUpdate("id", { + isDebugMode: true, + runAsync: true, + model: {} +}); ```
@@ -14851,7 +16513,23 @@ await client.hris.accountDetails.retrieve();
-**requestOptions:** `AccountDetailsClient.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.accounting.PatchedPaymentEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `PaymentsClient.RequestOptions`
@@ -14863,8 +16541,7 @@ await client.hris.accountDetails.retrieve();
-## Hris AccountToken -
client.hris.accountToken.retrieve(public_token) -> Merge.AccountToken +
client.accounting.payments.batchObjectsList(batch_id, { ...params }) -> Merge.PaginatedPaymentList
@@ -14876,7 +16553,7 @@ await client.hris.accountDetails.retrieve();
-Returns the account token for the end user with the provided public token. +Returns a list of `Payment` objects.
@@ -14891,7 +16568,24 @@ Returns the account token for the end user with the provided public token.
```typescript -await client.hris.accountToken.retrieve("public_token"); +await client.accounting.payments.batchObjectsList("batch_id", { + accountId: "account_id", + companyId: "company_id", + contactId: "contact_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") +}); ```
@@ -14907,7 +16601,7 @@ await client.hris.accountToken.retrieve("public_token");
-**public_token:** `string` +**batch_id:** `string`
@@ -14915,7 +16609,15 @@ await client.hris.accountToken.retrieve("public_token");
-**requestOptions:** `AccountTokenClient.RequestOptions` +**request:** `Merge.accounting.PaymentsBatchObjectsListRequest` + +
+
+ +
+
+ +**requestOptions:** `PaymentsClient.RequestOptions`
@@ -14927,8 +16629,7 @@ await client.hris.accountToken.retrieve("public_token");
-## Hris AsyncPassthrough -
client.hris.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept +
client.accounting.payments.asyncBulkCreate({ ...params }) -> Merge.PaymentResponse
@@ -14940,7 +16641,7 @@ await client.hris.accountToken.retrieve("public_token");
-Asynchronously pull data from an endpoint not currently supported by Merge. +Creates a `Payment` object with the given values.
@@ -14955,9 +16656,15 @@ Asynchronously pull data from an endpoint not currently supported by Merge.
```typescript -await client.hris.asyncPassthrough.create({ - method: "GET", - path: "/scooters" +await client.accounting.payments.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [{ + itemId: "item_id", + payload: { + model: {} + } + }] }); ``` @@ -14974,7 +16681,7 @@ await client.hris.asyncPassthrough.create({
-**request:** `Merge.DataPassthroughRequest` +**request:** `Merge.accounting.PaymentBulkRequest`
@@ -14982,7 +16689,7 @@ await client.hris.asyncPassthrough.create({
-**requestOptions:** `AsyncPassthroughClient.RequestOptions` +**requestOptions:** `PaymentsClient.RequestOptions`
@@ -14994,7 +16701,7 @@ await client.hris.asyncPassthrough.create({
-
client.hris.asyncPassthrough.retrieve(async_passthrough_receipt_id) -> Merge.AsyncPassthroughRetrieveResponse +
client.accounting.payments.lineItemsRemoteFieldClassesList({ ...params }) -> core.Page
@@ -15006,7 +16713,7 @@ await client.hris.asyncPassthrough.create({
-Retrieves data from earlier async-passthrough POST request +Returns a list of `RemoteFieldClass` objects.
@@ -15021,7 +16728,35 @@ Retrieves data from earlier async-passthrough POST request
```typescript -await client.hris.asyncPassthrough.retrieve("async_passthrough_receipt_id"); +const pageableResponse = await client.accounting.payments.lineItemsRemoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.payments.lineItemsRemoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -15037,7 +16772,7 @@ await client.hris.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-**async_passthrough_receipt_id:** `string` +**request:** `Merge.accounting.PaymentsLineItemsRemoteFieldClassesListRequest`
@@ -15045,7 +16780,7 @@ await client.hris.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-**requestOptions:** `AsyncPassthroughClient.RequestOptions` +**requestOptions:** `PaymentsClient.RequestOptions`
@@ -15057,8 +16792,7 @@ await client.hris.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-## Hris AuditTrail -
client.hris.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList +
client.accounting.payments.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -15070,7 +16804,7 @@ await client.hris.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-Gets a list of audit trail events. +Returns metadata for `Payment` PATCHs.
@@ -15085,14 +16819,7 @@ Gets a list of audit trail events.
```typescript -await client.hris.auditTrail.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - eventType: "event_type", - pageSize: 1, - startDate: "start_date", - userEmail: "user_email" -}); +await client.accounting.payments.metaPatchRetrieve("id"); ```
@@ -15108,7 +16835,7 @@ await client.hris.auditTrail.list({
-**request:** `Merge.hris.AuditTrailListRequest` +**id:** `string`
@@ -15116,7 +16843,7 @@ await client.hris.auditTrail.list({
-**requestOptions:** `AuditTrailClient.RequestOptions` +**requestOptions:** `PaymentsClient.RequestOptions`
@@ -15128,8 +16855,7 @@ await client.hris.auditTrail.list({
-## Hris AvailableActions -
client.hris.availableActions.retrieve() -> Merge.AvailableActions +
client.accounting.payments.metaPostRetrieve() -> Merge.MetaResponse
@@ -15141,7 +16867,7 @@ await client.hris.auditTrail.list({
-Returns a list of models and actions available for an account. +Returns metadata for `Payment` POSTs.
@@ -15156,7 +16882,7 @@ Returns a list of models and actions available for an account.
```typescript -await client.hris.availableActions.retrieve(); +await client.accounting.payments.metaPostRetrieve(); ```
@@ -15172,7 +16898,7 @@ await client.hris.availableActions.retrieve();
-**requestOptions:** `AvailableActionsClient.RequestOptions` +**requestOptions:** `PaymentsClient.RequestOptions`
@@ -15184,8 +16910,7 @@ await client.hris.availableActions.retrieve();
-## Hris BankInfo -
client.hris.bankInfo.list({ ...params }) -> Merge.PaginatedBankInfoList +
client.accounting.payments.remoteFieldClassesList({ ...params }) -> core.Page
@@ -15197,7 +16922,7 @@ await client.hris.availableActions.retrieve();
-Returns a list of `BankInfo` objects. +Returns a list of `RemoteFieldClass` objects.
@@ -15212,25 +16937,35 @@ Returns a list of `BankInfo` objects.
```typescript -await client.hris.bankInfo.list({ - accountType: "CHECKING", - bankName: "bank_name", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), +const pageableResponse = await client.accounting.payments.remoteFieldClassesList({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employeeId: "employee_id", - expand: "employee", includeDeletedData: true, includeRemoteData: true, includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - orderBy: "-remote_created_at", - pageSize: 1, - remoteFields: "account_type", - remoteId: "remote_id", - showEnumOrigins: "account_type" + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.payments.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -15246,7 +16981,7 @@ await client.hris.bankInfo.list({
-**request:** `Merge.hris.BankInfoListRequest` +**request:** `Merge.accounting.PaymentsRemoteFieldClassesListRequest`
@@ -15254,7 +16989,7 @@ await client.hris.bankInfo.list({
-**requestOptions:** `BankInfoClient.RequestOptions` +**requestOptions:** `PaymentsClient.RequestOptions`
@@ -15266,7 +17001,8 @@ await client.hris.bankInfo.list({
-
client.hris.bankInfo.retrieve(id, { ...params }) -> Merge.BankInfo +## Accounting PhoneNumbers +
client.accounting.phoneNumbers.retrieve(id, { ...params }) -> Merge.AccountingPhoneNumber
@@ -15278,7 +17014,7 @@ await client.hris.bankInfo.list({
-Returns a `BankInfo` object with the given `id`. +Returns an `AccountingPhoneNumber` object with the given `id`.
@@ -15293,12 +17029,9 @@ Returns a `BankInfo` object with the given `id`.
```typescript -await client.hris.bankInfo.retrieve("id", { - expand: "employee", +await client.accounting.phoneNumbers.retrieve("id", { includeRemoteData: true, - includeShellData: true, - remoteFields: "account_type", - showEnumOrigins: "account_type" + includeShellData: true }); ``` @@ -15323,7 +17056,7 @@ await client.hris.bankInfo.retrieve("id", {
-**request:** `Merge.hris.BankInfoRetrieveRequest` +**request:** `Merge.accounting.PhoneNumbersRetrieveRequest`
@@ -15331,7 +17064,7 @@ await client.hris.bankInfo.retrieve("id", {
-**requestOptions:** `BankInfoClient.RequestOptions` +**requestOptions:** `PhoneNumbersClient.RequestOptions`
@@ -15343,8 +17076,8 @@ await client.hris.bankInfo.retrieve("id", {
-## Hris Benefits -
client.hris.benefits.list({ ...params }) -> Merge.PaginatedBenefitList +## Accounting Projects +
client.accounting.projects.list({ ...params }) -> core.Page
@@ -15356,7 +17089,7 @@ await client.hris.bankInfo.retrieve("id", {
-Returns a list of `Benefit` objects. +Returns a list of `Project` objects.
@@ -15371,12 +17104,29 @@ Returns a list of `Benefit` objects.
```typescript -await client.hris.benefits.list({ +const pageableResponse = await client.accounting.projects.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.projects.list({ + companyId: "company_id", createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employeeId: "employee_id", - expand: "employee", includeDeletedData: true, includeRemoteData: true, includeShellData: true, @@ -15385,6 +17135,12 @@ await client.hris.benefits.list({ pageSize: 1, remoteId: "remote_id" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -15400,7 +17156,7 @@ await client.hris.benefits.list({
-**request:** `Merge.hris.BenefitsListRequest` +**request:** `Merge.accounting.ProjectsListRequest`
@@ -15408,7 +17164,7 @@ await client.hris.benefits.list({
-**requestOptions:** `BenefitsClient.RequestOptions` +**requestOptions:** `ProjectsClient.RequestOptions`
@@ -15420,7 +17176,7 @@ await client.hris.benefits.list({
-
client.hris.benefits.retrieve(id, { ...params }) -> Merge.Benefit +
client.accounting.projects.retrieve(id, { ...params }) -> Merge.Project
@@ -15432,7 +17188,7 @@ await client.hris.benefits.list({
-Returns a `Benefit` object with the given `id`. +Returns a `Project` object with the given `id`.
@@ -15447,8 +17203,7 @@ Returns a `Benefit` object with the given `id`.
```typescript -await client.hris.benefits.retrieve("id", { - expand: "employee", +await client.accounting.projects.retrieve("id", { includeRemoteData: true, includeShellData: true }); @@ -15475,7 +17230,7 @@ await client.hris.benefits.retrieve("id", {
-**request:** `Merge.hris.BenefitsRetrieveRequest` +**request:** `Merge.accounting.ProjectsRetrieveRequest`
@@ -15483,7 +17238,7 @@ await client.hris.benefits.retrieve("id", {
-**requestOptions:** `BenefitsClient.RequestOptions` +**requestOptions:** `ProjectsClient.RequestOptions`
@@ -15495,8 +17250,8 @@ await client.hris.benefits.retrieve("id", {
-## Hris Companies -
client.hris.companies.list({ ...params }) -> Merge.PaginatedCompanyList +## Accounting PurchaseOrders +
client.accounting.purchaseOrders.list({ ...params }) -> core.Page
@@ -15508,7 +17263,7 @@ await client.hris.benefits.retrieve("id", {
-Returns a list of `Company` objects. +Returns a list of `PurchaseOrder` objects.
@@ -15523,18 +17278,53 @@ Returns a list of `Company` objects.
```typescript -await client.hris.companies.list({ +const pageableResponse = await client.accounting.purchaseOrders.list({ + companyId: "company_id", createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", includeDeletedData: true, includeRemoteData: true, + includeRemoteFields: true, includeShellData: true, + issueDateAfter: new Date("2024-01-15T09:30:00.000Z"), + issueDateBefore: new Date("2024-01-15T09:30:00.000Z"), modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), pageSize: 1, - remoteId: "remote_id" + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status" }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.purchaseOrders.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + issueDateAfter: new Date("2024-01-15T09:30:00.000Z"), + issueDateBefore: new Date("2024-01-15T09:30:00.000Z"), + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -15550,7 +17340,7 @@ await client.hris.companies.list({
-**request:** `Merge.hris.CompaniesListRequest` +**request:** `Merge.accounting.PurchaseOrdersListRequest`
@@ -15558,7 +17348,7 @@ await client.hris.companies.list({
-**requestOptions:** `CompaniesClient.RequestOptions` +**requestOptions:** `PurchaseOrdersClient.RequestOptions`
@@ -15570,7 +17360,7 @@ await client.hris.companies.list({
-
client.hris.companies.retrieve(id, { ...params }) -> Merge.Company +
client.accounting.purchaseOrders.create({ ...params }) -> Merge.PurchaseOrderResponse
@@ -15582,7 +17372,7 @@ await client.hris.companies.list({
-Returns a `Company` object with the given `id`. +Creates a `PurchaseOrder` object with the given values.
@@ -15597,9 +17387,12 @@ Returns a `Company` object with the given `id`.
```typescript -await client.hris.companies.retrieve("id", { - includeRemoteData: true, - includeShellData: true +await client.accounting.purchaseOrders.create({ + isDebugMode: true, + runAsync: true, + body: { + model: {} + } }); ``` @@ -15616,7 +17409,7 @@ await client.hris.companies.retrieve("id", {
-**id:** `string` +**request:** `Merge.accounting.PurchaseOrdersCreateRequest`
@@ -15624,15 +17417,7 @@ await client.hris.companies.retrieve("id", {
-**request:** `Merge.hris.CompaniesRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `CompaniesClient.RequestOptions` +**requestOptions:** `PurchaseOrdersClient.RequestOptions`
@@ -15644,8 +17429,7 @@ await client.hris.companies.retrieve("id", {
-## Hris Scopes -
client.hris.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi +
client.accounting.purchaseOrders.retrieve(id, { ...params }) -> Merge.PurchaseOrder
@@ -15657,7 +17441,7 @@ await client.hris.companies.retrieve("id", {
-Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +Returns a `PurchaseOrder` object with the given `id`.
@@ -15672,7 +17456,13 @@ Get the default permissions for Merge Common Models and fields across all Linked
```typescript -await client.hris.scopes.defaultScopesRetrieve(); +await client.accounting.purchaseOrders.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + remoteFields: "status", + showEnumOrigins: "status" +}); ```
@@ -15688,62 +17478,23 @@ await client.hris.scopes.defaultScopesRetrieve();
-**requestOptions:** `ScopesClient.RequestOptions` +**id:** `string`
- -
- - - - -
- -
client.hris.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi -
-
- -#### 📝 Description - -
-
- -
-
- -Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). -
-
-
-
- -#### 🔌 Usage
-
-
- -```typescript -await client.hris.scopes.linkedAccountScopesRetrieve(); - -``` -
-
+**request:** `Merge.accounting.PurchaseOrdersRetrieveRequest` +
-#### ⚙️ Parameters - -
-
-
-**requestOptions:** `ScopesClient.RequestOptions` +**requestOptions:** `PurchaseOrdersClient.RequestOptions`
@@ -15755,7 +17506,7 @@ await client.hris.scopes.linkedAccountScopesRetrieve();
-
client.hris.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi +
client.accounting.purchaseOrders.batchObjectsList(batch_id, { ...params }) -> Merge.PaginatedPurchaseOrderList
@@ -15767,7 +17518,7 @@ await client.hris.scopes.linkedAccountScopesRetrieve();
-Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) +Returns a list of `PurchaseOrder` objects.
@@ -15782,29 +17533,23 @@ Update permissions for any Common Model or field for a single Linked Account. An
```typescript -await client.hris.scopes.linkedAccountScopesCreate({ - commonModels: [{ - modelName: "Employee", - modelPermissions: { - "READ": { - isEnabled: true - }, - "WRITE": { - isEnabled: false - } - }, - fieldPermissions: { - enabledFields: ["avatar", "home_location"], - disabledFields: ["work_location"] - } - }, { - modelName: "Benefit", - modelPermissions: { - "WRITE": { - isEnabled: false - } - } - }] +await client.accounting.purchaseOrders.batchObjectsList("batch_id", { + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + issueDateAfter: new Date("2024-01-15T09:30:00.000Z"), + issueDateBefore: new Date("2024-01-15T09:30:00.000Z"), + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status" }); ``` @@ -15821,7 +17566,7 @@ await client.hris.scopes.linkedAccountScopesCreate({
-**request:** `Merge.hris.LinkedAccountCommonModelScopeDeserializerRequest` +**batch_id:** `string`
@@ -15829,7 +17574,15 @@ await client.hris.scopes.linkedAccountScopesCreate({
-**requestOptions:** `ScopesClient.RequestOptions` +**request:** `Merge.accounting.PurchaseOrdersBatchObjectsListRequest` + +
+
+ +
+
+ +**requestOptions:** `PurchaseOrdersClient.RequestOptions`
@@ -15841,8 +17594,7 @@ await client.hris.scopes.linkedAccountScopesCreate({
-## Hris DeleteAccount -
client.hris.deleteAccount.delete() -> void +
client.accounting.purchaseOrders.asyncBulkCreate({ ...params }) -> Merge.PurchaseOrderResponse
@@ -15854,7 +17606,7 @@ await client.hris.scopes.linkedAccountScopesCreate({
-Delete a linked account. +Creates a `PurchaseOrder` object with the given values.
@@ -15869,7 +17621,16 @@ Delete a linked account.
```typescript -await client.hris.deleteAccount.delete(); +await client.accounting.purchaseOrders.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [{ + itemId: "item_id", + payload: { + model: {} + } + }] +}); ```
@@ -15885,7 +17646,15 @@ await client.hris.deleteAccount.delete();
-**requestOptions:** `DeleteAccountClient.RequestOptions` +**request:** `Merge.accounting.PurchaseOrderBulkRequest` + +
+
+ +
+
+ +**requestOptions:** `PurchaseOrdersClient.RequestOptions`
@@ -15897,8 +17666,7 @@ await client.hris.deleteAccount.delete();
-## Hris Dependents -
client.hris.dependents.list({ ...params }) -> Merge.PaginatedDependentList +
client.accounting.purchaseOrders.lineItemsRemoteFieldClassesList({ ...params }) -> core.Page
@@ -15910,7 +17678,7 @@ await client.hris.deleteAccount.delete();
-Returns a list of `Dependent` objects. +Returns a list of `RemoteFieldClass` objects.
@@ -15925,20 +17693,35 @@ Returns a list of `Dependent` objects.
```typescript -await client.hris.dependents.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), +const pageableResponse = await client.accounting.purchaseOrders.lineItemsRemoteFieldClassesList({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employeeId: "employee_id", includeDeletedData: true, includeRemoteData: true, - includeSensitiveFields: true, includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id" + isCommonModelField: true, + isCustom: true, + pageSize: 1 }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.purchaseOrders.lineItemsRemoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -15954,7 +17737,7 @@ await client.hris.dependents.list({
-**request:** `Merge.hris.DependentsListRequest` +**request:** `Merge.accounting.PurchaseOrdersLineItemsRemoteFieldClassesListRequest`
@@ -15962,7 +17745,7 @@ await client.hris.dependents.list({
-**requestOptions:** `DependentsClient.RequestOptions` +**requestOptions:** `PurchaseOrdersClient.RequestOptions`
@@ -15974,7 +17757,7 @@ await client.hris.dependents.list({
-
client.hris.dependents.retrieve(id, { ...params }) -> Merge.Dependent +
client.accounting.purchaseOrders.metaPostRetrieve() -> Merge.MetaResponse
@@ -15986,7 +17769,7 @@ await client.hris.dependents.list({
-Returns a `Dependent` object with the given `id`. +Returns metadata for `PurchaseOrder` POSTs.
@@ -16001,11 +17784,7 @@ Returns a `Dependent` object with the given `id`.
```typescript -await client.hris.dependents.retrieve("id", { - includeRemoteData: true, - includeSensitiveFields: true, - includeShellData: true -}); +await client.accounting.purchaseOrders.metaPostRetrieve(); ```
@@ -16021,23 +17800,7 @@ await client.hris.dependents.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.DependentsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `DependentsClient.RequestOptions` +**requestOptions:** `PurchaseOrdersClient.RequestOptions`
@@ -16049,8 +17812,7 @@ await client.hris.dependents.retrieve("id", {
-## Hris EmployeePayrollRuns -
client.hris.employeePayrollRuns.list({ ...params }) -> Merge.PaginatedEmployeePayrollRunList +
client.accounting.purchaseOrders.remoteFieldClassesList({ ...params }) -> core.Page
@@ -16062,7 +17824,7 @@ await client.hris.dependents.retrieve("id", {
-Returns a list of `EmployeePayrollRun` objects. +Returns a list of `RemoteFieldClass` objects.
@@ -16077,25 +17839,35 @@ Returns a list of `EmployeePayrollRun` objects.
```typescript -await client.hris.employeePayrollRuns.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), +const pageableResponse = await client.accounting.purchaseOrders.remoteFieldClassesList({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employeeId: "employee_id", - endedAfter: new Date("2024-01-15T09:30:00.000Z"), - endedBefore: new Date("2024-01-15T09:30:00.000Z"), - expand: "employee", includeDeletedData: true, includeRemoteData: true, includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - payrollRunId: "payroll_run_id", - remoteId: "remote_id", - startedAfter: new Date("2024-01-15T09:30:00.000Z"), - startedBefore: new Date("2024-01-15T09:30:00.000Z") + isCommonModelField: true, + isCustom: true, + pageSize: 1 }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.purchaseOrders.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -16111,7 +17883,7 @@ await client.hris.employeePayrollRuns.list({
-**request:** `Merge.hris.EmployeePayrollRunsListRequest` +**request:** `Merge.accounting.PurchaseOrdersRemoteFieldClassesListRequest`
@@ -16119,7 +17891,7 @@ await client.hris.employeePayrollRuns.list({
-**requestOptions:** `EmployeePayrollRunsClient.RequestOptions` +**requestOptions:** `PurchaseOrdersClient.RequestOptions`
@@ -16131,7 +17903,8 @@ await client.hris.employeePayrollRuns.list({
-
client.hris.employeePayrollRuns.retrieve(id, { ...params }) -> Merge.EmployeePayrollRun +## Accounting RegenerateKey +
client.accounting.regenerateKey.create({ ...params }) -> Merge.RemoteKey
@@ -16143,7 +17916,7 @@ await client.hris.employeePayrollRuns.list({
-Returns an `EmployeePayrollRun` object with the given `id`. +Exchange remote keys.
@@ -16158,10 +17931,8 @@ Returns an `EmployeePayrollRun` object with the given `id`.
```typescript -await client.hris.employeePayrollRuns.retrieve("id", { - expand: "employee", - includeRemoteData: true, - includeShellData: true +await client.accounting.regenerateKey.create({ + name: "Remote Deployment Key 1" }); ``` @@ -16178,15 +17949,7 @@ await client.hris.employeePayrollRuns.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.EmployeePayrollRunsRetrieveRequest` +**request:** `Merge.accounting.RemoteKeyForRegenerationRequest`
@@ -16194,7 +17957,7 @@ await client.hris.employeePayrollRuns.retrieve("id", {
-**requestOptions:** `EmployeePayrollRunsClient.RequestOptions` +**requestOptions:** `RegenerateKeyClient.RequestOptions`
@@ -16206,8 +17969,8 @@ await client.hris.employeePayrollRuns.retrieve("id", {
-## Hris Employees -
client.hris.employees.list({ ...params }) -> Merge.PaginatedEmployeeList +## Accounting SalesOrders +
client.accounting.salesOrders.list({ ...params }) -> core.Page
@@ -16219,7 +17982,7 @@ await client.hris.employeePayrollRuns.retrieve("id", {
-Returns a list of `Employee` objects. +Returns a list of `SalesOrder` objects.
@@ -16234,42 +17997,53 @@ Returns a list of `Employee` objects.
```typescript -await client.hris.employees.list({ +const pageableResponse = await client.accounting.salesOrders.list({ companyId: "company_id", createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - displayFullName: "display_full_name", - employeeNumber: "employee_number", - employmentStatus: "ACTIVE", - employmentType: "employment_type", - expand: "company", - firstName: "first_name", - groups: "groups", - homeLocationId: "home_location_id", includeDeletedData: true, includeRemoteData: true, - includeSensitiveFields: true, + includeRemoteFields: true, includeShellData: true, - jobTitle: "job_title", - lastName: "last_name", - managerId: "manager_id", + issueDateAfter: new Date("2024-01-15T09:30:00.000Z"), + issueDateBefore: new Date("2024-01-15T09:30:00.000Z"), modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), pageSize: 1, - payGroupId: "pay_group_id", - personalEmail: "personal_email", - remoteFields: "employment_status", + remoteFields: "status", remoteId: "remote_id", - showEnumOrigins: "employment_status", - startedAfter: new Date("2024-01-15T09:30:00.000Z"), - startedBefore: new Date("2024-01-15T09:30:00.000Z"), - teamId: "team_id", - terminatedAfter: new Date("2024-01-15T09:30:00.000Z"), - terminatedBefore: new Date("2024-01-15T09:30:00.000Z"), - workEmail: "work_email", - workLocationId: "work_location_id" + showEnumOrigins: "status" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.salesOrders.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + issueDateAfter: new Date("2024-01-15T09:30:00.000Z"), + issueDateBefore: new Date("2024-01-15T09:30:00.000Z"), + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -16285,7 +18059,7 @@ await client.hris.employees.list({
-**request:** `Merge.hris.EmployeesListRequest` +**request:** `Merge.accounting.SalesOrdersListRequest`
@@ -16293,7 +18067,7 @@ await client.hris.employees.list({
-**requestOptions:** `EmployeesClient.RequestOptions` +**requestOptions:** `SalesOrdersClient.RequestOptions`
@@ -16305,7 +18079,7 @@ await client.hris.employees.list({
-
client.hris.employees.create({ ...params }) -> Merge.EmployeeResponse +
client.accounting.salesOrders.create({ ...params }) -> Merge.SalesOrderResponse
@@ -16317,7 +18091,7 @@ await client.hris.employees.list({
-Creates an `Employee` object with the given values. +Creates a `SalesOrder` object with the given values.
@@ -16332,10 +18106,12 @@ Creates an `Employee` object with the given values.
```typescript -await client.hris.employees.create({ +await client.accounting.salesOrders.create({ isDebugMode: true, runAsync: true, - model: {} + body: { + model: {} + } }); ``` @@ -16352,7 +18128,7 @@ await client.hris.employees.create({
-**request:** `Merge.hris.EmployeeEndpointRequest` +**request:** `Merge.accounting.SalesOrdersCreateRequest`
@@ -16360,7 +18136,7 @@ await client.hris.employees.create({
-**requestOptions:** `EmployeesClient.RequestOptions` +**requestOptions:** `SalesOrdersClient.RequestOptions`
@@ -16372,7 +18148,7 @@ await client.hris.employees.create({
-
client.hris.employees.retrieve(id, { ...params }) -> Merge.Employee +
client.accounting.salesOrders.retrieve(id, { ...params }) -> Merge.SalesOrder
@@ -16384,7 +18160,7 @@ await client.hris.employees.create({
-Returns an `Employee` object with the given `id`. +Returns a `SalesOrder` object with the given `id`.
@@ -16399,13 +18175,12 @@ Returns an `Employee` object with the given `id`.
```typescript -await client.hris.employees.retrieve("id", { - expand: "company", +await client.accounting.salesOrders.retrieve("id", { includeRemoteData: true, - includeSensitiveFields: true, + includeRemoteFields: true, includeShellData: true, - remoteFields: "employment_status", - showEnumOrigins: "employment_status" + remoteFields: "status", + showEnumOrigins: "status" }); ``` @@ -16430,7 +18205,7 @@ await client.hris.employees.retrieve("id", {
-**request:** `Merge.hris.EmployeesRetrieveRequest` +**request:** `Merge.accounting.SalesOrdersRetrieveRequest`
@@ -16438,7 +18213,7 @@ await client.hris.employees.retrieve("id", {
-**requestOptions:** `EmployeesClient.RequestOptions` +**requestOptions:** `SalesOrdersClient.RequestOptions`
@@ -16450,7 +18225,7 @@ await client.hris.employees.retrieve("id", {
-
client.hris.employees.ignoreCreate(model_id, { ...params }) -> void +
client.accounting.salesOrders.batchObjectsList(batch_id, { ...params }) -> Merge.PaginatedSalesOrderList
@@ -16462,7 +18237,7 @@ await client.hris.employees.retrieve("id", {
-Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. +Returns a list of `SalesOrder` objects.
@@ -16477,8 +18252,23 @@ Ignores a specific row based on the `model_id` in the url. These records will ha
```typescript -await client.hris.employees.ignoreCreate("model_id", { - reason: "GENERAL_CUSTOMER_REQUEST" +await client.accounting.salesOrders.batchObjectsList("batch_id", { + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + issueDateAfter: new Date("2024-01-15T09:30:00.000Z"), + issueDateBefore: new Date("2024-01-15T09:30:00.000Z"), + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status" }); ``` @@ -16495,7 +18285,7 @@ await client.hris.employees.ignoreCreate("model_id", {
-**model_id:** `string` +**batch_id:** `string`
@@ -16503,7 +18293,7 @@ await client.hris.employees.ignoreCreate("model_id", {
-**request:** `Merge.hris.IgnoreCommonModelRequest` +**request:** `Merge.accounting.SalesOrdersBatchObjectsListRequest`
@@ -16511,7 +18301,7 @@ await client.hris.employees.ignoreCreate("model_id", {
-**requestOptions:** `EmployeesClient.RequestOptions` +**requestOptions:** `SalesOrdersClient.RequestOptions`
@@ -16523,7 +18313,7 @@ await client.hris.employees.ignoreCreate("model_id", {
-
client.hris.employees.metaPostRetrieve() -> Merge.MetaResponse +
client.accounting.salesOrders.asyncBulkCreate({ ...params }) -> Merge.SalesOrderResponse
@@ -16535,7 +18325,7 @@ await client.hris.employees.ignoreCreate("model_id", {
-Returns metadata for `Employee` POSTs. +Creates a `SalesOrder` object with the given values.
@@ -16550,7 +18340,16 @@ Returns metadata for `Employee` POSTs.
```typescript -await client.hris.employees.metaPostRetrieve(); +await client.accounting.salesOrders.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [{ + itemId: "item_id", + payload: { + model: {} + } + }] +}); ```
@@ -16566,7 +18365,15 @@ await client.hris.employees.metaPostRetrieve();
-**requestOptions:** `EmployeesClient.RequestOptions` +**request:** `Merge.accounting.SalesOrderBulkRequest` + +
+
+ +
+
+ +**requestOptions:** `SalesOrdersClient.RequestOptions`
@@ -16578,8 +18385,7 @@ await client.hris.employees.metaPostRetrieve();
-## Hris EmployerBenefits -
client.hris.employerBenefits.list({ ...params }) -> Merge.PaginatedEmployerBenefitList +
client.accounting.salesOrders.linesRemoteFieldClassesList({ ...params }) -> core.Page
@@ -16591,7 +18397,7 @@ await client.hris.employees.metaPostRetrieve();
-Returns a list of `EmployerBenefit` objects. +Returns a list of `RemoteFieldClass` objects.
@@ -16606,18 +18412,35 @@ Returns a list of `EmployerBenefit` objects.
```typescript -await client.hris.employerBenefits.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), +const pageableResponse = await client.accounting.salesOrders.linesRemoteFieldClassesList({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", includeDeletedData: true, includeRemoteData: true, includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id" + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.salesOrders.linesRemoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -16633,7 +18456,7 @@ await client.hris.employerBenefits.list({
-**request:** `Merge.hris.EmployerBenefitsListRequest` +**request:** `Merge.accounting.SalesOrdersLinesRemoteFieldClassesListRequest`
@@ -16641,7 +18464,7 @@ await client.hris.employerBenefits.list({
-**requestOptions:** `EmployerBenefitsClient.RequestOptions` +**requestOptions:** `SalesOrdersClient.RequestOptions`
@@ -16653,7 +18476,7 @@ await client.hris.employerBenefits.list({
-
client.hris.employerBenefits.retrieve(id, { ...params }) -> Merge.EmployerBenefit +
client.accounting.salesOrders.metaPostRetrieve() -> Merge.MetaResponse
@@ -16665,7 +18488,7 @@ await client.hris.employerBenefits.list({
-Returns an `EmployerBenefit` object with the given `id`. +Returns metadata for `SalesOrder` POSTs.
@@ -16680,10 +18503,7 @@ Returns an `EmployerBenefit` object with the given `id`.
```typescript -await client.hris.employerBenefits.retrieve("id", { - includeRemoteData: true, - includeShellData: true -}); +await client.accounting.salesOrders.metaPostRetrieve(); ```
@@ -16699,23 +18519,7 @@ await client.hris.employerBenefits.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.EmployerBenefitsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `EmployerBenefitsClient.RequestOptions` +**requestOptions:** `SalesOrdersClient.RequestOptions`
@@ -16727,8 +18531,7 @@ await client.hris.employerBenefits.retrieve("id", {
-## Hris Employments -
client.hris.employments.list({ ...params }) -> Merge.PaginatedEmploymentList +
client.accounting.salesOrders.remoteFieldClassesList({ ...params }) -> core.Page
@@ -16740,7 +18543,7 @@ await client.hris.employerBenefits.retrieve("id", {
-Returns a list of `Employment` objects. +Returns a list of `RemoteFieldClass` objects.
@@ -16755,92 +18558,35 @@ Returns a list of `Employment` objects.
```typescript -await client.hris.employments.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), +const pageableResponse = await client.accounting.salesOrders.remoteFieldClassesList({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employeeId: "employee_id", - expand: "employee", includeDeletedData: true, includeRemoteData: true, includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - orderBy: "-effective_date", - pageSize: 1, - remoteFields: "employment_type", - remoteId: "remote_id", - showEnumOrigins: "employment_type" + isCommonModelField: true, + isCustom: true, + pageSize: 1 }); +for await (const item of pageableResponse) { + console.log(item); +} -``` -
-
- - - -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.hris.EmploymentsListRequest` - -
-
- -
-
- -**requestOptions:** `EmploymentsClient.RequestOptions` - -
-
-
-
- - - - -
- -
client.hris.employments.retrieve(id, { ...params }) -> Merge.Employment -
-
- -#### 📝 Description - -
-
- -
-
- -Returns an `Employment` object with the given `id`. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.employments.retrieve("id", { - expand: "employee", +// Or you can manually iterate page-by-page +let page = await client.accounting.salesOrders.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, includeRemoteData: true, includeShellData: true, - remoteFields: "employment_type", - showEnumOrigins: "employment_type" + isCommonModelField: true, + isCustom: true, + pageSize: 1 }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -16856,7 +18602,7 @@ await client.hris.employments.retrieve("id", {
-**id:** `string` +**request:** `Merge.accounting.SalesOrdersRemoteFieldClassesListRequest`
@@ -16864,15 +18610,7 @@ await client.hris.employments.retrieve("id", {
-**request:** `Merge.hris.EmploymentsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `EmploymentsClient.RequestOptions` +**requestOptions:** `SalesOrdersClient.RequestOptions`
@@ -16884,8 +18622,8 @@ await client.hris.employments.retrieve("id", {
-## Hris FieldMapping -
client.hris.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse +## Accounting SyncStatus +
client.accounting.syncStatus.list({ ...params }) -> core.Page
@@ -16897,7 +18635,7 @@ await client.hris.employments.retrieve("id", {
-Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). +Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses).
@@ -16912,9 +18650,25 @@ Get all Field Mappings for this Linked Account. Field Mappings are mappings betw
```typescript -await client.hris.fieldMapping.fieldMappingsRetrieve({ - excludeRemoteFieldMetadata: true +const pageableResponse = await client.accounting.syncStatus.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.syncStatus.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + pageSize: 1 }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -16930,7 +18684,7 @@ await client.hris.fieldMapping.fieldMappingsRetrieve({
-**request:** `Merge.hris.FieldMappingsRetrieveRequest` +**request:** `Merge.accounting.SyncStatusListRequest`
@@ -16938,7 +18692,7 @@ await client.hris.fieldMapping.fieldMappingsRetrieve({
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `SyncStatusClient.RequestOptions`
@@ -16950,7 +18704,8 @@ await client.hris.fieldMapping.fieldMappingsRetrieve({
-
client.hris.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse +## Accounting ForceResync +
client.accounting.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[]
@@ -16962,7 +18717,7 @@ await client.hris.fieldMapping.fieldMappingsRetrieve({
-Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers.
@@ -16977,15 +18732,7 @@ Create new Field Mappings that will be available after the next scheduled sync.
```typescript -await client.hris.fieldMapping.fieldMappingsCreate({ - excludeRemoteFieldMetadata: true, - targetFieldName: "example_target_field_name", - targetFieldDescription: "this is a example description of the target field", - remoteFieldTraversalPath: ["example_remote_field"], - remoteMethod: "GET", - remoteUrlPath: "/example-url-path", - commonModelName: "ExampleCommonModel" -}); +await client.accounting.forceResync.syncStatusResyncCreate(); ```
@@ -17001,15 +18748,7 @@ await client.hris.fieldMapping.fieldMappingsCreate({
-**request:** `Merge.hris.CreateFieldMappingRequest` - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `ForceResyncClient.RequestOptions`
@@ -17021,7 +18760,8 @@ await client.hris.fieldMapping.fieldMappingsCreate({
-
client.hris.fieldMapping.fieldMappingsDestroy(field_mapping_id) -> Merge.FieldMappingInstanceResponse +## Accounting TaxRates +
client.accounting.taxRates.list({ ...params }) -> core.Page
@@ -17033,7 +18773,7 @@ await client.hris.fieldMapping.fieldMappingsCreate({
-Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Returns a list of `TaxRate` objects.
@@ -17048,7 +18788,45 @@ Deletes Field Mappings for a Linked Account. All data related to this Field Mapp
```typescript -await client.hris.fieldMapping.fieldMappingsDestroy("field_mapping_id"); +const pageableResponse = await client.accounting.taxRates.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.taxRates.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + remoteId: "remote_id" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -17064,7 +18842,7 @@ await client.hris.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**field_mapping_id:** `string` +**request:** `Merge.accounting.TaxRatesListRequest`
@@ -17072,7 +18850,7 @@ await client.hris.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `TaxRatesClient.RequestOptions`
@@ -17084,7 +18862,7 @@ await client.hris.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-
client.hris.fieldMapping.fieldMappingsPartialUpdate(field_mapping_id, { ...params }) -> Merge.FieldMappingInstanceResponse +
client.accounting.taxRates.retrieve(id, { ...params }) -> Merge.TaxRate
@@ -17096,7 +18874,7 @@ await client.hris.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Returns a `TaxRate` object with the given `id`.
@@ -17111,7 +18889,10 @@ Create or update existing Field Mappings for a Linked Account. Changes will be r
```typescript -await client.hris.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); +await client.accounting.taxRates.retrieve("id", { + includeRemoteData: true, + includeShellData: true +}); ```
@@ -17127,7 +18908,7 @@ await client.hris.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-**field_mapping_id:** `string` +**id:** `string`
@@ -17135,7 +18916,7 @@ await client.hris.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-**request:** `Merge.hris.PatchedEditFieldMappingRequest` +**request:** `Merge.accounting.TaxRatesRetrieveRequest`
@@ -17143,7 +18924,7 @@ await client.hris.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `TaxRatesClient.RequestOptions`
@@ -17155,7 +18936,8 @@ await client.hris.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-
client.hris.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse +## Accounting TrackingCategories +
client.accounting.trackingCategories.list({ ...params }) -> core.Page
@@ -17167,7 +18949,7 @@ await client.hris.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). +Returns a list of `TrackingCategory` objects.
@@ -17182,10 +18964,53 @@ Get all remote fields for a Linked Account. Remote fields are third-party fields
```typescript -await client.hris.fieldMapping.remoteFieldsRetrieve({ - commonModels: "common_models", - includeExampleValues: "include_example_values" +const pageableResponse = await client.accounting.trackingCategories.list({ + categoryType: "", + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status", + status: "" }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.trackingCategories.list({ + categoryType: "", + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status", + status: "" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -17201,7 +19026,7 @@ await client.hris.fieldMapping.remoteFieldsRetrieve({
-**request:** `Merge.hris.RemoteFieldsRetrieveRequest` +**request:** `Merge.accounting.TrackingCategoriesListRequest`
@@ -17209,7 +19034,7 @@ await client.hris.fieldMapping.remoteFieldsRetrieve({
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `TrackingCategoriesClient.RequestOptions`
@@ -17221,7 +19046,7 @@ await client.hris.fieldMapping.remoteFieldsRetrieve({
-
client.hris.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse +
client.accounting.trackingCategories.retrieve(id, { ...params }) -> Merge.TrackingCategory
@@ -17233,7 +19058,7 @@ await client.hris.fieldMapping.remoteFieldsRetrieve({
-Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). +Returns a `TrackingCategory` object with the given `id`.
@@ -17248,7 +19073,12 @@ Get all organization-wide Target Fields, this will not include any Linked Accoun
```typescript -await client.hris.fieldMapping.targetFieldsRetrieve(); +await client.accounting.trackingCategories.retrieve("id", { + includeRemoteData: true, + includeShellData: true, + remoteFields: "status", + showEnumOrigins: "status" +}); ```
@@ -17264,65 +19094,15 @@ await client.hris.fieldMapping.targetFieldsRetrieve();
-**requestOptions:** `FieldMappingClient.RequestOptions` +**id:** `string`
- -
- - - - -
- -## Hris GenerateKey -
client.hris.generateKey.create({ ...params }) -> Merge.RemoteKey -
-
- -#### 📝 Description - -
-
- -
-
- -Create a remote key. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.generateKey.create({ - name: "Remote Deployment Key 1" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
-**request:** `Merge.hris.GenerateRemoteKeyRequest` +**request:** `Merge.accounting.TrackingCategoriesRetrieveRequest`
@@ -17330,7 +19110,7 @@ await client.hris.generateKey.create({
-**requestOptions:** `GenerateKeyClient.RequestOptions` +**requestOptions:** `TrackingCategoriesClient.RequestOptions`
@@ -17342,8 +19122,8 @@ await client.hris.generateKey.create({
-## Hris Groups -
client.hris.groups.list({ ...params }) -> Merge.PaginatedGroupList +## Accounting Transactions +
client.accounting.transactions.list({ ...params }) -> core.Page
@@ -17355,7 +19135,7 @@ await client.hris.generateKey.create({
-Returns a list of `Group` objects. +Returns a list of `Transaction` objects.
@@ -17370,23 +19150,47 @@ Returns a list of `Group` objects.
```typescript -await client.hris.groups.list({ +const pageableResponse = await client.accounting.transactions.list({ + companyId: "company_id", createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", includeDeletedData: true, includeRemoteData: true, includeShellData: true, - isCommonlyUsedAsTeam: "is_commonly_used_as_team", modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - names: "names", pageSize: 1, - remoteFields: "type", remoteId: "remote_id", - showEnumOrigins: "type", - types: "types" + transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.transactions.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -17402,7 +19206,7 @@ await client.hris.groups.list({
-**request:** `Merge.hris.GroupsListRequest` +**request:** `Merge.accounting.TransactionsListRequest`
@@ -17410,7 +19214,7 @@ await client.hris.groups.list({
-**requestOptions:** `GroupsClient.RequestOptions` +**requestOptions:** `TransactionsClient.RequestOptions`
@@ -17422,7 +19226,7 @@ await client.hris.groups.list({
-
client.hris.groups.retrieve(id, { ...params }) -> Merge.Group +
client.accounting.transactions.retrieve(id, { ...params }) -> Merge.Transaction
@@ -17434,7 +19238,7 @@ await client.hris.groups.list({
-Returns a `Group` object with the given `id`. +Returns a `Transaction` object with the given `id`.
@@ -17449,11 +19253,9 @@ Returns a `Group` object with the given `id`.
```typescript -await client.hris.groups.retrieve("id", { +await client.accounting.transactions.retrieve("id", { includeRemoteData: true, - includeShellData: true, - remoteFields: "type", - showEnumOrigins: "type" + includeShellData: true }); ``` @@ -17478,7 +19280,7 @@ await client.hris.groups.retrieve("id", {
-**request:** `Merge.hris.GroupsRetrieveRequest` +**request:** `Merge.accounting.TransactionsRetrieveRequest`
@@ -17486,7 +19288,7 @@ await client.hris.groups.retrieve("id", {
-**requestOptions:** `GroupsClient.RequestOptions` +**requestOptions:** `TransactionsClient.RequestOptions`
@@ -17498,8 +19300,8 @@ await client.hris.groups.retrieve("id", {
-## Hris Issues -
client.hris.issues.list({ ...params }) -> Merge.PaginatedIssueList +## Accounting VendorCredits +
client.accounting.vendorCredits.list({ ...params }) -> core.Page
@@ -17511,7 +19313,7 @@ await client.hris.groups.retrieve("id", {
-Gets all issues for Organization. +Returns a list of `VendorCredit` objects.
@@ -17526,22 +19328,47 @@ Gets all issues for Organization.
```typescript -await client.hris.issues.list({ - accountToken: "account_token", +const pageableResponse = await client.accounting.vendorCredits.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - endUserOrganizationName: "end_user_organization_name", - firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - includeMuted: "include_muted", - integrationName: "integration_name", - lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - linkedAccountId: "linked_account_id", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), pageSize: 1, - startDate: "start_date", - status: "ONGOING" + remoteId: "remote_id", + transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.accounting.vendorCredits.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -17557,7 +19384,7 @@ await client.hris.issues.list({
-**request:** `Merge.hris.IssuesListRequest` +**request:** `Merge.accounting.VendorCreditsListRequest`
@@ -17565,7 +19392,7 @@ await client.hris.issues.list({
-**requestOptions:** `IssuesClient.RequestOptions` +**requestOptions:** `VendorCreditsClient.RequestOptions`
@@ -17577,7 +19404,7 @@ await client.hris.issues.list({
-
client.hris.issues.retrieve(id) -> Merge.Issue +
client.accounting.vendorCredits.create({ ...params }) -> Merge.VendorCreditResponse
@@ -17589,7 +19416,7 @@ await client.hris.issues.list({
-Get a specific issue. +Creates a `VendorCredit` object with the given values.
@@ -17604,7 +19431,13 @@ Get a specific issue.
```typescript -await client.hris.issues.retrieve("id"); +await client.accounting.vendorCredits.create({ + isDebugMode: true, + runAsync: true, + body: { + model: {} + } +}); ```
@@ -17620,7 +19453,7 @@ await client.hris.issues.retrieve("id");
-**id:** `string` +**request:** `Merge.accounting.VendorCreditsCreateRequest`
@@ -17628,7 +19461,7 @@ await client.hris.issues.retrieve("id");
-**requestOptions:** `IssuesClient.RequestOptions` +**requestOptions:** `VendorCreditsClient.RequestOptions`
@@ -17640,8 +19473,7 @@ await client.hris.issues.retrieve("id");
-## Hris LinkToken -
client.hris.linkToken.create({ ...params }) -> Merge.LinkToken +
client.accounting.vendorCredits.retrieve(id, { ...params }) -> Merge.VendorCredit
@@ -17653,7 +19485,7 @@ await client.hris.issues.retrieve("id");
-Creates a link token to be used when linking a new end user. +Returns a `VendorCredit` object with the given `id`.
@@ -17668,11 +19500,9 @@ Creates a link token to be used when linking a new end user.
```typescript -await client.hris.linkToken.create({ - endUserEmailAddress: "example@gmail.com", - endUserOrganizationName: "Test Organization", - endUserOriginId: "12345", - categories: ["hris", "ats"] +await client.accounting.vendorCredits.retrieve("id", { + includeRemoteData: true, + includeShellData: true }); ``` @@ -17689,7 +19519,7 @@ await client.hris.linkToken.create({
-**request:** `Merge.hris.EndUserDetailsRequest` +**id:** `string`
@@ -17697,7 +19527,15 @@ await client.hris.linkToken.create({
-**requestOptions:** `LinkTokenClient.RequestOptions` +**request:** `Merge.accounting.VendorCreditsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `VendorCreditsClient.RequestOptions`
@@ -17709,8 +19547,7 @@ await client.hris.linkToken.create({
-## Hris LinkedAccounts -
client.hris.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList +
client.accounting.vendorCredits.partialUpdate(id, { ...params }) -> Merge.VendorCreditResponse
@@ -17722,7 +19559,7 @@ await client.hris.linkToken.create({
-List linked accounts for your organization. +Updates a `VendorCredit` object with the given `id`.
@@ -17737,20 +19574,10 @@ List linked accounts for your organization.
```typescript -await client.hris.linkedAccounts.list({ - category: "accounting", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endUserEmailAddress: "end_user_email_address", - endUserOrganizationName: "end_user_organization_name", - endUserOriginId: "end_user_origin_id", - endUserOriginIds: "end_user_origin_ids", - id: "id", - ids: "ids", - includeDuplicates: true, - integrationName: "integration_name", - isTestAccount: "is_test_account", - pageSize: 1, - status: "status" +await client.accounting.vendorCredits.partialUpdate("id", { + isDebugMode: true, + runAsync: true, + model: {} }); ``` @@ -17767,7 +19594,7 @@ await client.hris.linkedAccounts.list({
-**request:** `Merge.hris.LinkedAccountsListRequest` +**id:** `string`
@@ -17775,7 +19602,15 @@ await client.hris.linkedAccounts.list({
-**requestOptions:** `LinkedAccountsClient.RequestOptions` +**request:** `Merge.accounting.PatchedVendorCreditEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `VendorCreditsClient.RequestOptions`
@@ -17787,8 +19622,7 @@ await client.hris.linkedAccounts.list({
-## Hris Locations -
client.hris.locations.list({ ...params }) -> Merge.PaginatedLocationList +
client.accounting.vendorCredits.batchObjectsList(batch_id, { ...params }) -> Merge.PaginatedVendorCreditList
@@ -17800,7 +19634,7 @@ await client.hris.linkedAccounts.list({
-Returns a list of `Location` objects. +Returns a list of `VendorCredit` objects.
@@ -17815,20 +19649,20 @@ Returns a list of `Location` objects.
```typescript -await client.hris.locations.list({ +await client.accounting.vendorCredits.batchObjectsList("batch_id", { + companyId: "company_id", createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", includeDeletedData: true, includeRemoteData: true, includeShellData: true, - locationType: "HOME", modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), pageSize: 1, - remoteFields: "country", remoteId: "remote_id", - showEnumOrigins: "country" + transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") }); ``` @@ -17845,7 +19679,7 @@ await client.hris.locations.list({
-**request:** `Merge.hris.LocationsListRequest` +**batch_id:** `string`
@@ -17853,7 +19687,15 @@ await client.hris.locations.list({
-**requestOptions:** `LocationsClient.RequestOptions` +**request:** `Merge.accounting.VendorCreditsBatchObjectsListRequest` + +
+
+ +
+
+ +**requestOptions:** `VendorCreditsClient.RequestOptions`
@@ -17865,7 +19707,7 @@ await client.hris.locations.list({
-
client.hris.locations.retrieve(id, { ...params }) -> Merge.Location +
client.accounting.vendorCredits.asyncBulkCreate({ ...params }) -> Merge.VendorCreditResponse
@@ -17877,7 +19719,7 @@ await client.hris.locations.list({
-Returns a `Location` object with the given `id`. +Creates a `VendorCredit` object with the given values.
@@ -17892,11 +19734,15 @@ Returns a `Location` object with the given `id`.
```typescript -await client.hris.locations.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - remoteFields: "country", - showEnumOrigins: "country" +await client.accounting.vendorCredits.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [{ + itemId: "item_id", + payload: { + model: {} + } + }] }); ``` @@ -17913,15 +19759,7 @@ await client.hris.locations.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.LocationsRetrieveRequest` +**request:** `Merge.accounting.VendorCreditBulkRequest`
@@ -17929,7 +19767,7 @@ await client.hris.locations.retrieve("id", {
-**requestOptions:** `LocationsClient.RequestOptions` +**requestOptions:** `VendorCreditsClient.RequestOptions`
@@ -17941,8 +19779,7 @@ await client.hris.locations.retrieve("id", {
-## Hris Passthrough -
client.hris.passthrough.create({ ...params }) -> Merge.RemoteResponse +
client.accounting.vendorCredits.applicationCreate(id, { ...params }) -> Merge.VendorCreditResponse
@@ -17954,7 +19791,7 @@ await client.hris.locations.retrieve("id", {
-Pull data from an endpoint not currently supported by Merge. +Creates a new VendorCreditApplyLine to apply a vendor credit to an invoice
@@ -17969,9 +19806,11 @@ Pull data from an endpoint not currently supported by Merge.
```typescript -await client.hris.passthrough.create({ - method: "GET", - path: "/scooters" +await client.accounting.vendorCredits.applicationCreate("id", { + isDebugMode: true, + runAsync: true, + appliedDate: new Date("2024-01-15T09:30:00.000Z"), + appliedAmount: "applied_amount" }); ``` @@ -17988,7 +19827,7 @@ await client.hris.passthrough.create({
-**request:** `Merge.DataPassthroughRequest` +**id:** `string`
@@ -17996,7 +19835,15 @@ await client.hris.passthrough.create({
-**requestOptions:** `PassthroughClient.RequestOptions` +**request:** `Merge.accounting.ApplyVendorCreditRequest` + +
+
+ +
+
+ +**requestOptions:** `VendorCreditsClient.RequestOptions`
@@ -18008,8 +19855,7 @@ await client.hris.passthrough.create({
-## Hris PayGroups -
client.hris.payGroups.list({ ...params }) -> Merge.PaginatedPayGroupList +
client.accounting.vendorCredits.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -18021,7 +19867,7 @@ await client.hris.passthrough.create({
-Returns a list of `PayGroup` objects. +Returns metadata for `VendorCredit` PATCHs.
@@ -18036,18 +19882,7 @@ Returns a list of `PayGroup` objects.
```typescript -await client.hris.payGroups.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id" -}); +await client.accounting.vendorCredits.metaPatchRetrieve("id"); ```
@@ -18063,7 +19898,7 @@ await client.hris.payGroups.list({
-**request:** `Merge.hris.PayGroupsListRequest` +**id:** `string`
@@ -18071,7 +19906,7 @@ await client.hris.payGroups.list({
-**requestOptions:** `PayGroupsClient.RequestOptions` +**requestOptions:** `VendorCreditsClient.RequestOptions`
@@ -18083,7 +19918,7 @@ await client.hris.payGroups.list({
-
client.hris.payGroups.retrieve(id, { ...params }) -> Merge.PayGroup +
client.accounting.vendorCredits.metaPostRetrieve() -> Merge.MetaResponse
@@ -18095,7 +19930,7 @@ await client.hris.payGroups.list({
-Returns a `PayGroup` object with the given `id`. +Returns metadata for `VendorCredit` POSTs.
@@ -18110,10 +19945,7 @@ Returns a `PayGroup` object with the given `id`.
```typescript -await client.hris.payGroups.retrieve("id", { - includeRemoteData: true, - includeShellData: true -}); +await client.accounting.vendorCredits.metaPostRetrieve(); ```
@@ -18129,23 +19961,63 @@ await client.hris.payGroups.retrieve("id", {
-**id:** `string` +**requestOptions:** `VendorCreditsClient.RequestOptions`
+ +
+ + + +
+ +## Accounting WebhookReceivers +
client.accounting.webhookReceivers.list() -> Merge.WebhookReceiver[]
-**request:** `Merge.hris.PayGroupsRetrieveRequest` - +#### 📝 Description + +
+
+ +
+
+ +Returns a list of `WebhookReceiver` objects. +
+
+#### 🔌 Usage +
-**requestOptions:** `PayGroupsClient.RequestOptions` +
+
+ +```typescript +await client.accounting.webhookReceivers.list(); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**requestOptions:** `WebhookReceiversClient.RequestOptions`
@@ -18157,8 +20029,7 @@ await client.hris.payGroups.retrieve("id", {
-## Hris PayrollRuns -
client.hris.payrollRuns.list({ ...params }) -> Merge.PaginatedPayrollRunList +
client.accounting.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver
@@ -18170,7 +20041,7 @@ await client.hris.payGroups.retrieve("id", {
-Returns a list of `PayrollRun` objects. +Creates a `WebhookReceiver` object with the given values.
@@ -18185,24 +20056,9 @@ Returns a list of `PayrollRun` objects.
```typescript -await client.hris.payrollRuns.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endedAfter: new Date("2024-01-15T09:30:00.000Z"), - endedBefore: new Date("2024-01-15T09:30:00.000Z"), - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteFields: "run_state", - remoteId: "remote_id", - runType: "CORRECTION", - showEnumOrigins: "run_state", - startedAfter: new Date("2024-01-15T09:30:00.000Z"), - startedBefore: new Date("2024-01-15T09:30:00.000Z") +await client.accounting.webhookReceivers.create({ + event: "event", + isActive: true }); ``` @@ -18219,7 +20075,7 @@ await client.hris.payrollRuns.list({
-**request:** `Merge.hris.PayrollRunsListRequest` +**request:** `Merge.accounting.WebhookReceiverRequest`
@@ -18227,7 +20083,7 @@ await client.hris.payrollRuns.list({
-**requestOptions:** `PayrollRunsClient.RequestOptions` +**requestOptions:** `WebhookReceiversClient.RequestOptions`
@@ -18239,7 +20095,8 @@ await client.hris.payrollRuns.list({
-
client.hris.payrollRuns.retrieve(id, { ...params }) -> Merge.PayrollRun +## Crm AccountDetails +
client.crm.accountDetails.retrieve() -> Merge.AccountDetails
@@ -18251,7 +20108,7 @@ await client.hris.payrollRuns.list({
-Returns a `PayrollRun` object with the given `id`. +Get details for a linked account.
@@ -18266,12 +20123,7 @@ Returns a `PayrollRun` object with the given `id`.
```typescript -await client.hris.payrollRuns.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - remoteFields: "run_state", - showEnumOrigins: "run_state" -}); +await client.crm.accountDetails.retrieve(); ```
@@ -18287,23 +20139,7 @@ await client.hris.payrollRuns.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.PayrollRunsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `PayrollRunsClient.RequestOptions` +**requestOptions:** `AccountDetailsClient.RequestOptions`
@@ -18315,8 +20151,8 @@ await client.hris.payrollRuns.retrieve("id", {
-## Hris RegenerateKey -
client.hris.regenerateKey.create({ ...params }) -> Merge.RemoteKey +## Crm AccountToken +
client.crm.accountToken.retrieve(public_token) -> Merge.AccountToken
@@ -18328,7 +20164,7 @@ await client.hris.payrollRuns.retrieve("id", {
-Exchange remote keys. +Returns the account token for the end user with the provided public token.
@@ -18343,9 +20179,7 @@ Exchange remote keys.
```typescript -await client.hris.regenerateKey.create({ - name: "Remote Deployment Key 1" -}); +await client.crm.accountToken.retrieve("public_token"); ```
@@ -18361,7 +20195,7 @@ await client.hris.regenerateKey.create({
-**request:** `Merge.hris.RemoteKeyForRegenerationRequest` +**public_token:** `string`
@@ -18369,7 +20203,7 @@ await client.hris.regenerateKey.create({
-**requestOptions:** `RegenerateKeyClient.RequestOptions` +**requestOptions:** `AccountTokenClient.RequestOptions`
@@ -18381,8 +20215,7 @@ await client.hris.regenerateKey.create({
-## Hris SyncStatus -
client.hris.syncStatus.list({ ...params }) -> Merge.PaginatedSyncStatusList +
client.crm.accountToken.regenerateCreate() -> Merge.RegenerateAccountToken
@@ -18394,7 +20227,7 @@ await client.hris.regenerateKey.create({
-Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). +Exchange Linked Account account tokens.
@@ -18409,10 +20242,7 @@ Get sync status for the current sync and the most recently finished sync. `last_
```typescript -await client.hris.syncStatus.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - pageSize: 1 -}); +await client.crm.accountToken.regenerateCreate(); ```
@@ -18428,15 +20258,7 @@ await client.hris.syncStatus.list({
-**request:** `Merge.hris.SyncStatusListRequest` - -
-
- -
-
- -**requestOptions:** `SyncStatusClient.RequestOptions` +**requestOptions:** `AccountTokenClient.RequestOptions`
@@ -18448,8 +20270,8 @@ await client.hris.syncStatus.list({
-## Hris ForceResync -
client.hris.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[] +## Crm Accounts +
client.crm.accounts.list({ ...params }) -> core.Page
@@ -18461,7 +20283,7 @@ await client.hris.syncStatus.list({
-Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. +Returns a list of `Account` objects.
@@ -18476,7 +20298,47 @@ Force re-sync of all models. This endpoint is available for monthly, quarterly,
```typescript -await client.hris.forceResync.syncStatusResyncCreate(); +const pageableResponse = await client.crm.accounts.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + ownerId: "owner_id", + pageSize: 1, + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.crm.accounts.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + ownerId: "owner_id", + pageSize: 1, + remoteId: "remote_id" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -18492,7 +20354,15 @@ await client.hris.forceResync.syncStatusResyncCreate();
-**requestOptions:** `ForceResyncClient.RequestOptions` +**request:** `Merge.crm.AccountsListRequest` + +
+
+ +
+
+ +**requestOptions:** `AccountsClient.RequestOptions`
@@ -18504,8 +20374,7 @@ await client.hris.forceResync.syncStatusResyncCreate();
-## Hris Teams -
client.hris.teams.list({ ...params }) -> Merge.PaginatedTeamList +
client.crm.accounts.create({ ...params }) -> Merge.CrmAccountResponse
@@ -18517,7 +20386,7 @@ await client.hris.forceResync.syncStatusResyncCreate();
-Returns a list of `Team` objects. +Creates an `Account` object with the given values.
@@ -18532,19 +20401,10 @@ Returns a list of `Team` objects.
```typescript -await client.hris.teams.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "parent_team", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - parentTeamId: "parent_team_id", - remoteId: "remote_id" +await client.crm.accounts.create({ + isDebugMode: true, + runAsync: true, + model: {} }); ``` @@ -18561,7 +20421,7 @@ await client.hris.teams.list({
-**request:** `Merge.hris.TeamsListRequest` +**request:** `Merge.crm.CrmAccountEndpointRequest`
@@ -18569,7 +20429,7 @@ await client.hris.teams.list({
-**requestOptions:** `TeamsClient.RequestOptions` +**requestOptions:** `AccountsClient.RequestOptions`
@@ -18581,7 +20441,7 @@ await client.hris.teams.list({
-
client.hris.teams.retrieve(id, { ...params }) -> Merge.Team +
client.crm.accounts.retrieve(id, { ...params }) -> Merge.Account
@@ -18593,7 +20453,7 @@ await client.hris.teams.list({
-Returns a `Team` object with the given `id`. +Returns an `Account` object with the given `id`.
@@ -18608,9 +20468,9 @@ Returns a `Team` object with the given `id`.
```typescript -await client.hris.teams.retrieve("id", { - expand: "parent_team", +await client.crm.accounts.retrieve("id", { includeRemoteData: true, + includeRemoteFields: true, includeShellData: true }); @@ -18636,7 +20496,7 @@ await client.hris.teams.retrieve("id", {
-**request:** `Merge.hris.TeamsRetrieveRequest` +**request:** `Merge.crm.AccountsRetrieveRequest`
@@ -18644,7 +20504,7 @@ await client.hris.teams.retrieve("id", {
-**requestOptions:** `TeamsClient.RequestOptions` +**requestOptions:** `AccountsClient.RequestOptions`
@@ -18656,8 +20516,7 @@ await client.hris.teams.retrieve("id", {
-## Hris TimeOff -
client.hris.timeOff.list({ ...params }) -> Merge.PaginatedTimeOffList +
client.crm.accounts.partialUpdate(id, { ...params }) -> Merge.CrmAccountResponse
@@ -18669,7 +20528,7 @@ await client.hris.teams.retrieve("id", {
-Returns a list of `TimeOff` objects. +Updates an `Account` object with the given `id`.
@@ -18684,28 +20543,10 @@ Returns a list of `TimeOff` objects.
```typescript -await client.hris.timeOff.list({ - approverId: "approver_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employeeId: "employee_id", - endedAfter: new Date("2024-01-15T09:30:00.000Z"), - endedBefore: new Date("2024-01-15T09:30:00.000Z"), - expand: "approver", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteFields: "request_type", - remoteId: "remote_id", - requestType: "BEREAVEMENT", - showEnumOrigins: "request_type", - startedAfter: new Date("2024-01-15T09:30:00.000Z"), - startedBefore: new Date("2024-01-15T09:30:00.000Z"), - status: "APPROVED" +await client.crm.accounts.partialUpdate("id", { + isDebugMode: true, + runAsync: true, + model: {} }); ``` @@ -18722,7 +20563,7 @@ await client.hris.timeOff.list({
-**request:** `Merge.hris.TimeOffListRequest` +**id:** `string`
@@ -18730,7 +20571,15 @@ await client.hris.timeOff.list({
-**requestOptions:** `TimeOffClient.RequestOptions` +**request:** `Merge.crm.PatchedCrmAccountEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `AccountsClient.RequestOptions`
@@ -18742,7 +20591,7 @@ await client.hris.timeOff.list({
-
client.hris.timeOff.create({ ...params }) -> Merge.TimeOffResponse +
client.crm.accounts.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -18754,7 +20603,7 @@ await client.hris.timeOff.list({
-Creates a `TimeOff` object with the given values. +Returns metadata for `CRMAccount` PATCHs.
@@ -18769,11 +20618,7 @@ Creates a `TimeOff` object with the given values.
```typescript -await client.hris.timeOff.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); +await client.crm.accounts.metaPatchRetrieve("id"); ```
@@ -18789,7 +20634,7 @@ await client.hris.timeOff.create({
-**request:** `Merge.hris.TimeOffEndpointRequest` +**id:** `string`
@@ -18797,7 +20642,7 @@ await client.hris.timeOff.create({
-**requestOptions:** `TimeOffClient.RequestOptions` +**requestOptions:** `AccountsClient.RequestOptions`
@@ -18809,7 +20654,7 @@ await client.hris.timeOff.create({
-
client.hris.timeOff.retrieve(id, { ...params }) -> Merge.TimeOff +
client.crm.accounts.metaPostRetrieve() -> Merge.MetaResponse
@@ -18821,7 +20666,7 @@ await client.hris.timeOff.create({
-Returns a `TimeOff` object with the given `id`. +Returns metadata for `CRMAccount` POSTs.
@@ -18836,13 +20681,7 @@ Returns a `TimeOff` object with the given `id`.
```typescript -await client.hris.timeOff.retrieve("id", { - expand: "approver", - includeRemoteData: true, - includeShellData: true, - remoteFields: "request_type", - showEnumOrigins: "request_type" -}); +await client.crm.accounts.metaPostRetrieve(); ```
@@ -18858,15 +20697,92 @@ await client.hris.timeOff.retrieve("id", {
-**id:** `string` +**requestOptions:** `AccountsClient.RequestOptions`
+ +
+ + + +
+ +
client.crm.accounts.remoteFieldClassesList({ ...params }) -> core.Page
-**request:** `Merge.hris.TimeOffRetrieveRequest` +#### 📝 Description + +
+
+ +
+
+ +Returns a list of `RemoteFieldClass` objects. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +const pageableResponse = await client.crm.accounts.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.crm.accounts.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.crm.AccountsRemoteFieldClassesListRequest`
@@ -18874,7 +20790,7 @@ await client.hris.timeOff.retrieve("id", {
-**requestOptions:** `TimeOffClient.RequestOptions` +**requestOptions:** `AccountsClient.RequestOptions`
@@ -18886,7 +20802,8 @@ await client.hris.timeOff.retrieve("id", {
-
client.hris.timeOff.metaPostRetrieve() -> Merge.MetaResponse +## Crm AsyncPassthrough +
client.crm.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept
@@ -18898,7 +20815,7 @@ await client.hris.timeOff.retrieve("id", {
-Returns metadata for `TimeOff` POSTs. +Asynchronously pull data from an endpoint not currently supported by Merge.
@@ -18913,7 +20830,10 @@ Returns metadata for `TimeOff` POSTs.
```typescript -await client.hris.timeOff.metaPostRetrieve(); +await client.crm.asyncPassthrough.create({ + method: "GET", + path: "/scooters" +}); ```
@@ -18929,7 +20849,15 @@ await client.hris.timeOff.metaPostRetrieve();
-**requestOptions:** `TimeOffClient.RequestOptions` +**request:** `Merge.DataPassthroughRequest` + +
+
+ +
+
+ +**requestOptions:** `AsyncPassthroughClient.RequestOptions`
@@ -18941,8 +20869,7 @@ await client.hris.timeOff.metaPostRetrieve();
-## Hris TimeOffBalances -
client.hris.timeOffBalances.list({ ...params }) -> Merge.PaginatedTimeOffBalanceList +
client.crm.asyncPassthrough.retrieve(async_passthrough_receipt_id) -> Merge.AsyncPassthroughRetrieveResponse
@@ -18954,7 +20881,7 @@ await client.hris.timeOff.metaPostRetrieve();
-Returns a list of `TimeOffBalance` objects. +Retrieves data from earlier async-passthrough POST request
@@ -18969,23 +20896,7 @@ Returns a list of `TimeOffBalance` objects.
```typescript -await client.hris.timeOffBalances.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employeeId: "employee_id", - expand: "employee", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - policyType: "BEREAVEMENT", - remoteFields: "policy_type", - remoteId: "remote_id", - showEnumOrigins: "policy_type" -}); +await client.crm.asyncPassthrough.retrieve("async_passthrough_receipt_id"); ```
@@ -19001,7 +20912,7 @@ await client.hris.timeOffBalances.list({
-**request:** `Merge.hris.TimeOffBalancesListRequest` +**async_passthrough_receipt_id:** `string`
@@ -19009,7 +20920,7 @@ await client.hris.timeOffBalances.list({
-**requestOptions:** `TimeOffBalancesClient.RequestOptions` +**requestOptions:** `AsyncPassthroughClient.RequestOptions`
@@ -19021,7 +20932,8 @@ await client.hris.timeOffBalances.list({
-
client.hris.timeOffBalances.retrieve(id, { ...params }) -> Merge.TimeOffBalance +## Crm AuditTrail +
client.crm.auditTrail.list({ ...params }) -> core.Page
@@ -19033,7 +20945,7 @@ await client.hris.timeOffBalances.list({
-Returns a `TimeOffBalance` object with the given `id`. +Gets a list of audit trail events.
@@ -19048,13 +20960,33 @@ Returns a `TimeOffBalance` object with the given `id`.
```typescript -await client.hris.timeOffBalances.retrieve("id", { - expand: "employee", - includeRemoteData: true, - includeShellData: true, - remoteFields: "policy_type", - showEnumOrigins: "policy_type" +const pageableResponse = await client.crm.auditTrail.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endDate: "end_date", + eventType: "event_type", + pageSize: 1, + startDate: "start_date", + userEmail: "user_email" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.crm.auditTrail.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endDate: "end_date", + eventType: "event_type", + pageSize: 1, + startDate: "start_date", + userEmail: "user_email" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -19070,7 +21002,7 @@ await client.hris.timeOffBalances.retrieve("id", {
-**id:** `string` +**request:** `Merge.crm.AuditTrailListRequest`
@@ -19078,15 +21010,63 @@ await client.hris.timeOffBalances.retrieve("id", {
-**request:** `Merge.hris.TimeOffBalancesRetrieveRequest` +**requestOptions:** `AuditTrailClient.RequestOptions`
+ +
+ + + +
+ +## Crm AvailableActions +
client.crm.availableActions.retrieve() -> Merge.AvailableActions
-**requestOptions:** `TimeOffBalancesClient.RequestOptions` +#### 📝 Description + +
+
+ +
+
+ +Returns a list of models and actions available for an account. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.crm.availableActions.retrieve(); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**requestOptions:** `AvailableActionsClient.RequestOptions`
@@ -19098,8 +21078,8 @@ await client.hris.timeOffBalances.retrieve("id", {
-## Hris TimesheetEntries -
client.hris.timesheetEntries.list({ ...params }) -> Merge.PaginatedTimesheetEntryList +## Crm Contacts +
client.crm.contacts.list({ ...params }) -> core.Page
@@ -19111,7 +21091,7 @@ await client.hris.timeOffBalances.retrieve("id", {
-Returns a list of `TimesheetEntry` objects. +Returns a list of `Contact` objects.
@@ -19126,25 +21106,49 @@ Returns a list of `TimesheetEntry` objects.
```typescript -await client.hris.timesheetEntries.list({ +const pageableResponse = await client.crm.contacts.list({ + accountId: "account_id", createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employeeId: "employee_id", - endedAfter: new Date("2024-01-15T09:30:00.000Z"), - endedBefore: new Date("2024-01-15T09:30:00.000Z"), - expand: "employee", + emailAddresses: "email_addresses", includeDeletedData: true, includeRemoteData: true, + includeRemoteFields: true, includeShellData: true, modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - orderBy: "-start_time", pageSize: 1, - remoteId: "remote_id", - startedAfter: new Date("2024-01-15T09:30:00.000Z"), - startedBefore: new Date("2024-01-15T09:30:00.000Z") + phoneNumbers: "phone_numbers", + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.crm.contacts.list({ + accountId: "account_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + emailAddresses: "email_addresses", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + phoneNumbers: "phone_numbers", + remoteId: "remote_id" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -19160,7 +21164,7 @@ await client.hris.timesheetEntries.list({
-**request:** `Merge.hris.TimesheetEntriesListRequest` +**request:** `Merge.crm.ContactsListRequest`
@@ -19168,7 +21172,7 @@ await client.hris.timesheetEntries.list({
-**requestOptions:** `TimesheetEntriesClient.RequestOptions` +**requestOptions:** `ContactsClient.RequestOptions`
@@ -19180,7 +21184,7 @@ await client.hris.timesheetEntries.list({
-
client.hris.timesheetEntries.create({ ...params }) -> Merge.TimesheetEntryResponse +
client.crm.contacts.create({ ...params }) -> Merge.CrmContactResponse
@@ -19192,7 +21196,7 @@ await client.hris.timesheetEntries.list({
-Creates a `TimesheetEntry` object with the given values. +Creates a `Contact` object with the given values.
@@ -19207,7 +21211,7 @@ Creates a `TimesheetEntry` object with the given values.
```typescript -await client.hris.timesheetEntries.create({ +await client.crm.contacts.create({ isDebugMode: true, runAsync: true, model: {} @@ -19227,7 +21231,7 @@ await client.hris.timesheetEntries.create({
-**request:** `Merge.hris.TimesheetEntryEndpointRequest` +**request:** `Merge.crm.CrmContactEndpointRequest`
@@ -19235,7 +21239,7 @@ await client.hris.timesheetEntries.create({
-**requestOptions:** `TimesheetEntriesClient.RequestOptions` +**requestOptions:** `ContactsClient.RequestOptions`
@@ -19247,7 +21251,7 @@ await client.hris.timesheetEntries.create({
-
client.hris.timesheetEntries.retrieve(id, { ...params }) -> Merge.TimesheetEntry +
client.crm.contacts.retrieve(id, { ...params }) -> Merge.Contact
@@ -19259,7 +21263,7 @@ await client.hris.timesheetEntries.create({
-Returns a `TimesheetEntry` object with the given `id`. +Returns a `Contact` object with the given `id`.
@@ -19274,9 +21278,9 @@ Returns a `TimesheetEntry` object with the given `id`.
```typescript -await client.hris.timesheetEntries.retrieve("id", { - expand: "employee", +await client.crm.contacts.retrieve("id", { includeRemoteData: true, + includeRemoteFields: true, includeShellData: true }); @@ -19302,7 +21306,7 @@ await client.hris.timesheetEntries.retrieve("id", {
-**request:** `Merge.hris.TimesheetEntriesRetrieveRequest` +**request:** `Merge.crm.ContactsRetrieveRequest`
@@ -19310,7 +21314,7 @@ await client.hris.timesheetEntries.retrieve("id", {
-**requestOptions:** `TimesheetEntriesClient.RequestOptions` +**requestOptions:** `ContactsClient.RequestOptions`
@@ -19322,7 +21326,7 @@ await client.hris.timesheetEntries.retrieve("id", {
-
client.hris.timesheetEntries.metaPostRetrieve() -> Merge.MetaResponse +
client.crm.contacts.partialUpdate(id, { ...params }) -> Merge.CrmContactResponse
@@ -19334,7 +21338,7 @@ await client.hris.timesheetEntries.retrieve("id", {
-Returns metadata for `TimesheetEntry` POSTs. +Updates a `Contact` object with the given `id`.
@@ -19349,7 +21353,11 @@ Returns metadata for `TimesheetEntry` POSTs.
```typescript -await client.hris.timesheetEntries.metaPostRetrieve(); +await client.crm.contacts.partialUpdate("id", { + isDebugMode: true, + runAsync: true, + model: {} +}); ```
@@ -19365,63 +21373,23 @@ await client.hris.timesheetEntries.metaPostRetrieve();
-**requestOptions:** `TimesheetEntriesClient.RequestOptions` +**id:** `string`
- -
- - - - -
- -## Hris WebhookReceivers -
client.hris.webhookReceivers.list() -> Merge.WebhookReceiver[] -
-
- -#### 📝 Description - -
-
-Returns a list of `WebhookReceiver` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.hris.webhookReceivers.list(); - -``` -
-
+**request:** `Merge.crm.PatchedCrmContactEndpointRequest` +
-#### ⚙️ Parameters -
-
-
- -**requestOptions:** `WebhookReceiversClient.RequestOptions` +**requestOptions:** `ContactsClient.RequestOptions`
@@ -19433,7 +21401,7 @@ await client.hris.webhookReceivers.list();
-
client.hris.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver +
client.crm.contacts.ignoreCreate(model_id, { ...params }) -> void
@@ -19445,7 +21413,7 @@ await client.hris.webhookReceivers.list();
-Creates a `WebhookReceiver` object with the given values. +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.
@@ -19460,9 +21428,8 @@ Creates a `WebhookReceiver` object with the given values.
```typescript -await client.hris.webhookReceivers.create({ - event: "event", - isActive: true +await client.crm.contacts.ignoreCreate("model_id", { + reason: "GENERAL_CUSTOMER_REQUEST" }); ``` @@ -19479,7 +21446,7 @@ await client.hris.webhookReceivers.create({
-**request:** `Merge.hris.WebhookReceiverRequest` +**model_id:** `string`
@@ -19487,63 +21454,15 @@ await client.hris.webhookReceivers.create({
-**requestOptions:** `WebhookReceiversClient.RequestOptions` +**request:** `Merge.IgnoreCommonModelRequest`
-
-
- - - - -
- -## Ticketing AccountDetails -
client.ticketing.accountDetails.retrieve() -> Merge.AccountDetails -
-
- -#### 📝 Description - -
-
- -
-
- -Get details for a linked account. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.accountDetails.retrieve(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
-**requestOptions:** `AccountDetailsClient.RequestOptions` +**requestOptions:** `ContactsClient.RequestOptions`
@@ -19555,8 +21474,7 @@ await client.ticketing.accountDetails.retrieve();
-## Ticketing AccountToken -
client.ticketing.accountToken.retrieve(public_token) -> Merge.AccountToken +
client.crm.contacts.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -19568,7 +21486,7 @@ await client.ticketing.accountDetails.retrieve();
-Returns the account token for the end user with the provided public token. +Returns metadata for `CRMContact` PATCHs.
@@ -19583,7 +21501,7 @@ Returns the account token for the end user with the provided public token.
```typescript -await client.ticketing.accountToken.retrieve("public_token"); +await client.crm.contacts.metaPatchRetrieve("id"); ```
@@ -19599,7 +21517,7 @@ await client.ticketing.accountToken.retrieve("public_token");
-**public_token:** `string` +**id:** `string`
@@ -19607,7 +21525,7 @@ await client.ticketing.accountToken.retrieve("public_token");
-**requestOptions:** `AccountTokenClient.RequestOptions` +**requestOptions:** `ContactsClient.RequestOptions`
@@ -19619,8 +21537,7 @@ await client.ticketing.accountToken.retrieve("public_token");
-## Ticketing Accounts -
client.ticketing.accounts.list({ ...params }) -> Merge.PaginatedAccountList +
client.crm.contacts.metaPostRetrieve() -> Merge.MetaResponse
@@ -19632,7 +21549,7 @@ await client.ticketing.accountToken.retrieve("public_token");
-Returns a list of `Account` objects. +Returns metadata for `CRMContact` POSTs.
@@ -19647,18 +21564,7 @@ Returns a list of `Account` objects.
```typescript -await client.ticketing.accounts.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id" -}); +await client.crm.contacts.metaPostRetrieve(); ```
@@ -19674,15 +21580,7 @@ await client.ticketing.accounts.list({
-**request:** `Merge.ticketing.AccountsListRequest` - -
-
- -
-
- -**requestOptions:** `AccountsClient.RequestOptions` +**requestOptions:** `ContactsClient.RequestOptions`
@@ -19694,7 +21592,7 @@ await client.ticketing.accounts.list({
-
client.ticketing.accounts.retrieve(id, { ...params }) -> Merge.Account +
client.crm.contacts.remoteFieldClassesList({ ...params }) -> core.Page
@@ -19706,7 +21604,7 @@ await client.ticketing.accounts.list({
-Returns an `Account` object with the given `id`. +Returns a list of `RemoteFieldClass` objects.
@@ -19721,10 +21619,37 @@ Returns an `Account` object with the given `id`.
```typescript -await client.ticketing.accounts.retrieve("id", { +const pageableResponse = await client.crm.contacts.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, includeRemoteData: true, - includeShellData: true + includeRemoteFields: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.crm.contacts.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -19740,15 +21665,7 @@ await client.ticketing.accounts.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.AccountsRetrieveRequest` +**request:** `Merge.crm.ContactsRemoteFieldClassesListRequest`
@@ -19756,7 +21673,7 @@ await client.ticketing.accounts.retrieve("id", {
-**requestOptions:** `AccountsClient.RequestOptions` +**requestOptions:** `ContactsClient.RequestOptions`
@@ -19768,8 +21685,8 @@ await client.ticketing.accounts.retrieve("id", {
-## Ticketing AsyncPassthrough -
client.ticketing.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept +## Crm CustomObjectClasses +
client.crm.customObjectClasses.list({ ...params }) -> core.Page
@@ -19781,7 +21698,7 @@ await client.ticketing.accounts.retrieve("id", {
-Asynchronously pull data from an endpoint not currently supported by Merge. +Returns a list of `CustomObjectClass` objects.
@@ -19796,10 +21713,41 @@ Asynchronously pull data from an endpoint not currently supported by Merge.
```typescript -await client.ticketing.asyncPassthrough.create({ - method: "GET", - path: "/scooters" +const pageableResponse = await client.crm.customObjectClasses.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.crm.customObjectClasses.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -19815,7 +21763,7 @@ await client.ticketing.asyncPassthrough.create({
-**request:** `Merge.DataPassthroughRequest` +**request:** `Merge.crm.CustomObjectClassesListRequest`
@@ -19823,7 +21771,7 @@ await client.ticketing.asyncPassthrough.create({
-**requestOptions:** `AsyncPassthroughClient.RequestOptions` +**requestOptions:** `CustomObjectClassesClient.RequestOptions`
@@ -19835,7 +21783,7 @@ await client.ticketing.asyncPassthrough.create({
-
client.ticketing.asyncPassthrough.retrieve(async_passthrough_receipt_id) -> Merge.AsyncPassthroughRetrieveResponse +
client.crm.customObjectClasses.retrieve(id, { ...params }) -> Merge.CustomObjectClass
@@ -19847,7 +21795,7 @@ await client.ticketing.asyncPassthrough.create({
-Retrieves data from earlier async-passthrough POST request +Returns a `CustomObjectClass` object with the given `id`.
@@ -19862,7 +21810,10 @@ Retrieves data from earlier async-passthrough POST request
```typescript -await client.ticketing.asyncPassthrough.retrieve("async_passthrough_receipt_id"); +await client.crm.customObjectClasses.retrieve("id", { + includeRemoteData: true, + includeShellData: true +}); ```
@@ -19878,7 +21829,7 @@ await client.ticketing.asyncPassthrough.retrieve("async_passthrough_receipt_id")
-**async_passthrough_receipt_id:** `string` +**id:** `string`
@@ -19886,7 +21837,15 @@ await client.ticketing.asyncPassthrough.retrieve("async_passthrough_receipt_id")
-**requestOptions:** `AsyncPassthroughClient.RequestOptions` +**request:** `Merge.crm.CustomObjectClassesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `CustomObjectClassesClient.RequestOptions`
@@ -19898,8 +21857,8 @@ await client.ticketing.asyncPassthrough.retrieve("async_passthrough_receipt_id")
-## Ticketing Attachments -
client.ticketing.attachments.list({ ...params }) -> Merge.PaginatedAttachmentList +## Crm AssociationTypes +
client.crm.associationTypes.customObjectClassesAssociationTypesList(custom_object_class_id, { ...params }) -> core.Page
@@ -19911,7 +21870,7 @@ await client.ticketing.asyncPassthrough.retrieve("async_passthrough_receipt_id")
-Returns a list of `Attachment` objects. +Returns a list of `AssociationType` objects.
@@ -19926,21 +21885,41 @@ Returns a list of `Attachment` objects.
```typescript -await client.ticketing.attachments.list({ +const pageableResponse = await client.crm.associationTypes.customObjectClassesAssociationTypesList("custom_object_class_id", { createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "ticket", includeDeletedData: true, includeRemoteData: true, includeShellData: true, modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), pageSize: 1, - remoteCreatedAfter: new Date("2024-01-15T09:30:00.000Z"), - remoteId: "remote_id", - ticketId: "ticket_id" + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.crm.associationTypes.customObjectClassesAssociationTypesList("custom_object_class_id", { + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -19956,7 +21935,7 @@ await client.ticketing.attachments.list({
-**request:** `Merge.ticketing.AttachmentsListRequest` +**custom_object_class_id:** `string`
@@ -19964,7 +21943,15 @@ await client.ticketing.attachments.list({
-**requestOptions:** `AttachmentsClient.RequestOptions` +**request:** `Merge.crm.CustomObjectClassesAssociationTypesListRequest` + +
+
+ +
+
+ +**requestOptions:** `AssociationTypesClient.RequestOptions`
@@ -19976,7 +21963,7 @@ await client.ticketing.attachments.list({
-
client.ticketing.attachments.create({ ...params }) -> Merge.TicketingAttachmentResponse +
client.crm.associationTypes.customObjectClassesAssociationTypesCreate(custom_object_class_id, { ...params }) -> Merge.CrmAssociationTypeResponse
@@ -19988,7 +21975,7 @@ await client.ticketing.attachments.list({
-Creates an `Attachment` object with the given values. +Creates an `AssociationType` object with the given values.
@@ -20003,10 +21990,20 @@ Creates an `Attachment` object with the given values.
```typescript -await client.ticketing.attachments.create({ +await client.crm.associationTypes.customObjectClassesAssociationTypesCreate("custom_object_class_id", { isDebugMode: true, runAsync: true, - model: {} + model: { + sourceObjectClass: { + id: "id", + originType: "CUSTOM_OBJECT" + }, + targetObjectClasses: [{ + id: "id", + originType: "CUSTOM_OBJECT" + }], + remoteKeyName: "remote_key_name" + } }); ``` @@ -20023,7 +22020,7 @@ await client.ticketing.attachments.create({
-**request:** `Merge.ticketing.TicketingAttachmentEndpointRequest` +**custom_object_class_id:** `string`
@@ -20031,7 +22028,15 @@ await client.ticketing.attachments.create({
-**requestOptions:** `AttachmentsClient.RequestOptions` +**request:** `Merge.crm.CrmAssociationTypeEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `AssociationTypesClient.RequestOptions`
@@ -20043,7 +22048,7 @@ await client.ticketing.attachments.create({
-
client.ticketing.attachments.retrieve(id, { ...params }) -> Merge.Attachment +
client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve(custom_object_class_id, id, { ...params }) -> Merge.AssociationType
@@ -20055,7 +22060,7 @@ await client.ticketing.attachments.create({
-Returns an `Attachment` object with the given `id`. +Returns an `AssociationType` object with the given `id`.
@@ -20070,8 +22075,7 @@ Returns an `Attachment` object with the given `id`.
```typescript -await client.ticketing.attachments.retrieve("id", { - expand: "ticket", +await client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve("custom_object_class_id", "id", { includeRemoteData: true, includeShellData: true }); @@ -20090,6 +22094,14 @@ await client.ticketing.attachments.retrieve("id", {
+**custom_object_class_id:** `string` + +
+
+ +
+
+ **id:** `string`
@@ -20098,7 +22110,7 @@ await client.ticketing.attachments.retrieve("id", {
-**request:** `Merge.ticketing.AttachmentsRetrieveRequest` +**request:** `Merge.crm.CustomObjectClassesAssociationTypesRetrieveRequest`
@@ -20106,7 +22118,7 @@ await client.ticketing.attachments.retrieve("id", {
-**requestOptions:** `AttachmentsClient.RequestOptions` +**requestOptions:** `AssociationTypesClient.RequestOptions`
@@ -20118,7 +22130,7 @@ await client.ticketing.attachments.retrieve("id", {
-
client.ticketing.attachments.metaPostRetrieve() -> Merge.MetaResponse +
client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRetrieve(custom_object_class_id) -> Merge.MetaResponse
@@ -20130,7 +22142,7 @@ await client.ticketing.attachments.retrieve("id", {
-Returns metadata for `TicketingAttachment` POSTs. +Returns metadata for `CRMAssociationType` POSTs.
@@ -20145,7 +22157,7 @@ Returns metadata for `TicketingAttachment` POSTs.
```typescript -await client.ticketing.attachments.metaPostRetrieve(); +await client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRetrieve("custom_object_class_id"); ```
@@ -20161,7 +22173,15 @@ await client.ticketing.attachments.metaPostRetrieve();
-**requestOptions:** `AttachmentsClient.RequestOptions` +**custom_object_class_id:** `string` + +
+
+ +
+
+ +**requestOptions:** `AssociationTypesClient.RequestOptions`
@@ -20173,8 +22193,8 @@ await client.ticketing.attachments.metaPostRetrieve();
-## Ticketing AuditTrail -
client.ticketing.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList +## Crm CustomObjects +
client.crm.customObjects.customObjectClassesCustomObjectsList(custom_object_class_id, { ...params }) -> core.Page
@@ -20186,7 +22206,7 @@ await client.ticketing.attachments.metaPostRetrieve();
-Gets a list of audit trail events. +Returns a list of `CustomObject` objects.
@@ -20201,14 +22221,43 @@ Gets a list of audit trail events.
```typescript -await client.ticketing.auditTrail.list({ +const pageableResponse = await client.crm.customObjects.customObjectClassesCustomObjectsList("custom_object_class_id", { + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - eventType: "event_type", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), pageSize: 1, - startDate: "start_date", - userEmail: "user_email" + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.crm.customObjects.customObjectClassesCustomObjectsList("custom_object_class_id", { + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -20224,7 +22273,7 @@ await client.ticketing.auditTrail.list({
-**request:** `Merge.ticketing.AuditTrailListRequest` +**custom_object_class_id:** `string`
@@ -20232,7 +22281,15 @@ await client.ticketing.auditTrail.list({
-**requestOptions:** `AuditTrailClient.RequestOptions` +**request:** `Merge.crm.CustomObjectClassesCustomObjectsListRequest` + +
+
+ +
+
+ +**requestOptions:** `CustomObjectsClient.RequestOptions`
@@ -20244,8 +22301,7 @@ await client.ticketing.auditTrail.list({
-## Ticketing AvailableActions -
client.ticketing.availableActions.retrieve() -> Merge.AvailableActions +
client.crm.customObjects.customObjectClassesCustomObjectsCreate(custom_object_class_id, { ...params }) -> Merge.CrmCustomObjectResponse
@@ -20257,7 +22313,7 @@ await client.ticketing.auditTrail.list({
-Returns a list of models and actions available for an account. +Creates a `CustomObject` object with the given values.
@@ -20272,7 +22328,15 @@ Returns a list of models and actions available for an account.
```typescript -await client.ticketing.availableActions.retrieve(); +await client.crm.customObjects.customObjectClassesCustomObjectsCreate("custom_object_class_id", { + isDebugMode: true, + runAsync: true, + model: { + fields: { + "test_field": "hello" + } + } +}); ```
@@ -20288,7 +22352,23 @@ await client.ticketing.availableActions.retrieve();
-**requestOptions:** `AvailableActionsClient.RequestOptions` +**custom_object_class_id:** `string` + +
+
+ +
+
+ +**request:** `Merge.crm.CrmCustomObjectEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `CustomObjectsClient.RequestOptions`
@@ -20300,8 +22380,7 @@ await client.ticketing.availableActions.retrieve();
-## Ticketing Collections -
client.ticketing.collections.list({ ...params }) -> Merge.PaginatedCollectionList +
client.crm.customObjects.customObjectClassesCustomObjectsRetrieve(custom_object_class_id, id, { ...params }) -> Merge.CustomObject
@@ -20313,7 +22392,7 @@ await client.ticketing.availableActions.retrieve();
-Returns a list of `Collection` objects. +Returns a `CustomObject` object with the given `id`.
@@ -20328,23 +22407,10 @@ Returns a list of `Collection` objects.
```typescript -await client.ticketing.collections.list({ - collectionType: "", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "parent_collection", - includeDeletedData: true, +await client.crm.customObjects.customObjectClassesCustomObjectsRetrieve("custom_object_class_id", "id", { includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - name: "name", - pageSize: 1, - parentCollectionId: "parent_collection_id", - remoteFields: "collection_type", - remoteId: "remote_id", - showEnumOrigins: "collection_type" + includeRemoteFields: true, + includeShellData: true }); ``` @@ -20361,7 +22427,7 @@ await client.ticketing.collections.list({
-**request:** `Merge.ticketing.CollectionsListRequest` +**custom_object_class_id:** `string`
@@ -20369,7 +22435,23 @@ await client.ticketing.collections.list({
-**requestOptions:** `CollectionsClient.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.crm.CustomObjectClassesCustomObjectsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `CustomObjectsClient.RequestOptions`
@@ -20381,7 +22463,7 @@ await client.ticketing.collections.list({
-
client.ticketing.collections.viewersList(collection_id, { ...params }) -> Merge.PaginatedViewerList +
client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve(custom_object_class_id) -> Merge.MetaResponse
@@ -20393,7 +22475,7 @@ await client.ticketing.collections.list({
-Returns a list of `Viewer` objects that point to a User id or Team id that is either an assignee or viewer on a `Collection` with the given id. [Learn more.](https://help.merge.dev/en/articles/10333658-ticketing-access-control-list-acls) +Returns metadata for `CRMCustomObject` POSTs.
@@ -20408,14 +22490,7 @@ Returns a list of `Viewer` objects that point to a User id or Team id that is ei
```typescript -await client.ticketing.collections.viewersList("collection_id", { - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "team", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - pageSize: 1 -}); +await client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve("custom_object_class_id"); ```
@@ -20431,15 +22506,7 @@ await client.ticketing.collections.viewersList("collection_id", {
-**collection_id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.CollectionsViewersListRequest` +**custom_object_class_id:** `string`
@@ -20447,7 +22514,7 @@ await client.ticketing.collections.viewersList("collection_id", {
-**requestOptions:** `CollectionsClient.RequestOptions` +**requestOptions:** `CustomObjectsClient.RequestOptions`
@@ -20459,7 +22526,7 @@ await client.ticketing.collections.viewersList("collection_id", {
-
client.ticketing.collections.retrieve(id, { ...params }) -> Merge.Collection +
client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClassesList({ ...params }) -> core.Page
@@ -20471,7 +22538,7 @@ await client.ticketing.collections.viewersList("collection_id", {
-Returns a `Collection` object with the given `id`. +Returns a list of `RemoteFieldClass` objects.
@@ -20486,13 +22553,37 @@ Returns a `Collection` object with the given `id`.
```typescript -await client.ticketing.collections.retrieve("id", { - expand: "parent_collection", +const pageableResponse = await client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, includeRemoteData: true, + includeRemoteFields: true, includeShellData: true, - remoteFields: "collection_type", - showEnumOrigins: "collection_type" + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -20508,15 +22599,7 @@ await client.ticketing.collections.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.CollectionsRetrieveRequest` +**request:** `Merge.crm.CustomObjectClassesCustomObjectsRemoteFieldClassesListRequest`
@@ -20524,7 +22607,7 @@ await client.ticketing.collections.retrieve("id", {
-**requestOptions:** `CollectionsClient.RequestOptions` +**requestOptions:** `CustomObjectsClient.RequestOptions`
@@ -20536,8 +22619,8 @@ await client.ticketing.collections.retrieve("id", {
-## Ticketing Comments -
client.ticketing.comments.list({ ...params }) -> Merge.PaginatedCommentList +## Crm Associations +
client.crm.associations.customObjectClassesCustomObjectsAssociationsList(custom_object_class_id, object_id, { ...params }) -> core.Page
@@ -20549,7 +22632,7 @@ await client.ticketing.collections.retrieve("id", {
-Returns a list of `Comment` objects. +Returns a list of `Association` objects.
@@ -20564,21 +22647,43 @@ Returns a list of `Comment` objects.
```typescript -await client.ticketing.comments.list({ +const pageableResponse = await client.crm.associations.customObjectClassesCustomObjectsAssociationsList("custom_object_class_id", "object_id", { + associationTypeId: "association_type_id", createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "contact", includeDeletedData: true, includeRemoteData: true, includeShellData: true, modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), pageSize: 1, - remoteCreatedAfter: new Date("2024-01-15T09:30:00.000Z"), - remoteId: "remote_id", - ticketId: "ticket_id" + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.crm.associations.customObjectClassesCustomObjectsAssociationsList("custom_object_class_id", "object_id", { + associationTypeId: "association_type_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -20594,7 +22699,7 @@ await client.ticketing.comments.list({
-**request:** `Merge.ticketing.CommentsListRequest` +**custom_object_class_id:** `string`
@@ -20602,7 +22707,23 @@ await client.ticketing.comments.list({
-**requestOptions:** `CommentsClient.RequestOptions` +**object_id:** `string` + +
+
+ +
+
+ +**request:** `Merge.crm.CustomObjectClassesCustomObjectsAssociationsListRequest` + +
+
+ +
+
+ +**requestOptions:** `AssociationsClient.RequestOptions`
@@ -20614,7 +22735,7 @@ await client.ticketing.comments.list({
-
client.ticketing.comments.create({ ...params }) -> Merge.CommentResponse +
client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate(source_class_id, source_object_id, target_class_id, target_object_id, association_type_id, { ...params }) -> Merge.Association
@@ -20626,7 +22747,7 @@ await client.ticketing.comments.list({
-Creates a `Comment` object with the given values. +Creates an Association between `source_object_id` and `target_object_id` of type `association_type_id`.
@@ -20641,10 +22762,9 @@ Creates a `Comment` object with the given values.
```typescript -await client.ticketing.comments.create({ +await client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate("source_class_id", "source_object_id", "target_class_id", "target_object_id", "association_type_id", { isDebugMode: true, - runAsync: true, - model: {} + runAsync: true }); ``` @@ -20661,7 +22781,7 @@ await client.ticketing.comments.create({
-**request:** `Merge.ticketing.CommentEndpointRequest` +**source_class_id:** `string`
@@ -20669,58 +22789,78 @@ await client.ticketing.comments.create({
-**requestOptions:** `CommentsClient.RequestOptions` +**source_object_id:** `string`
+ +
+
+ +**target_class_id:** `string` +
+
+
+**target_object_id:** `string` +
-
-
client.ticketing.comments.retrieve(id, { ...params }) -> Merge.Comment
-#### 📝 Description +**association_type_id:** `string` + +
+
+**request:** `Merge.crm.CustomObjectClassesCustomObjectsAssociationsUpdateRequest` + +
+
+
-Returns a `Comment` object with the given `id`. +**requestOptions:** `AssociationsClient.RequestOptions` +
-#### 🔌 Usage + + +
+ +## Crm Scopes +
client.crm.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi
+#### 📝 Description +
-```typescript -await client.ticketing.comments.retrieve("id", { - expand: "contact", - includeRemoteData: true, - includeShellData: true -}); +
+
-``` +Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes).
-#### ⚙️ Parameters +#### 🔌 Usage
@@ -20728,23 +22868,24 @@ await client.ticketing.comments.retrieve("id", {
-**id:** `string` - +```typescript +await client.crm.scopes.defaultScopesRetrieve(); + +``` +
+
+#### ⚙️ Parameters +
-**request:** `Merge.ticketing.CommentsRetrieveRequest` - -
-
-
-**requestOptions:** `CommentsClient.RequestOptions` +**requestOptions:** `ScopesClient.RequestOptions`
@@ -20756,7 +22897,7 @@ await client.ticketing.comments.retrieve("id", {
-
client.ticketing.comments.metaPostRetrieve() -> Merge.MetaResponse +
client.crm.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi
@@ -20768,7 +22909,7 @@ await client.ticketing.comments.retrieve("id", {
-Returns metadata for `Comment` POSTs. +Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes).
@@ -20783,7 +22924,7 @@ Returns metadata for `Comment` POSTs.
```typescript -await client.ticketing.comments.metaPostRetrieve(); +await client.crm.scopes.linkedAccountScopesRetrieve(); ```
@@ -20799,7 +22940,7 @@ await client.ticketing.comments.metaPostRetrieve();
-**requestOptions:** `CommentsClient.RequestOptions` +**requestOptions:** `ScopesClient.RequestOptions`
@@ -20811,8 +22952,7 @@ await client.ticketing.comments.metaPostRetrieve();
-## Ticketing Contacts -
client.ticketing.contacts.list({ ...params }) -> Merge.PaginatedContactList +
client.crm.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi
@@ -20824,7 +22964,7 @@ await client.ticketing.comments.metaPostRetrieve();
-Returns a list of `Contact` objects. +Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes)
@@ -20839,19 +22979,29 @@ Returns a list of `Contact` objects.
```typescript -await client.ticketing.contacts.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - emailAddress: "email_address", - expand: "account", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id" +await client.crm.scopes.linkedAccountScopesCreate({ + commonModels: [{ + modelName: "Employee", + modelPermissions: { + "READ": { + isEnabled: true + }, + "WRITE": { + isEnabled: false + } + }, + fieldPermissions: { + enabledFields: ["avatar", "home_location"], + disabledFields: ["work_location"] + } + }, { + modelName: "Benefit", + modelPermissions: { + "WRITE": { + isEnabled: false + } + } + }] }); ``` @@ -20868,7 +23018,7 @@ await client.ticketing.contacts.list({
-**request:** `Merge.ticketing.ContactsListRequest` +**request:** `Merge.crm.LinkedAccountCommonModelScopeDeserializerRequest`
@@ -20876,7 +23026,7 @@ await client.ticketing.contacts.list({
-**requestOptions:** `ContactsClient.RequestOptions` +**requestOptions:** `ScopesClient.RequestOptions`
@@ -20888,7 +23038,8 @@ await client.ticketing.contacts.list({
-
client.ticketing.contacts.create({ ...params }) -> Merge.TicketingContactResponse +## Crm DeleteAccount +
client.crm.deleteAccount.delete() -> void
@@ -20900,7 +23051,7 @@ await client.ticketing.contacts.list({
-Creates a `Contact` object with the given values. +Delete a linked account.
@@ -20915,11 +23066,7 @@ Creates a `Contact` object with the given values.
```typescript -await client.ticketing.contacts.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); +await client.crm.deleteAccount.delete(); ```
@@ -20935,15 +23082,7 @@ await client.ticketing.contacts.create({
-**request:** `Merge.ticketing.TicketingContactEndpointRequest` - -
-
- -
-
- -**requestOptions:** `ContactsClient.RequestOptions` +**requestOptions:** `DeleteAccountClient.RequestOptions`
@@ -20955,7 +23094,8 @@ await client.ticketing.contacts.create({
-
client.ticketing.contacts.retrieve(id, { ...params }) -> Merge.Contact +## Crm EngagementTypes +
client.crm.engagementTypes.list({ ...params }) -> core.Page
@@ -20967,7 +23107,7 @@ await client.ticketing.contacts.create({
-Returns a `Contact` object with the given `id`. +Returns a list of `EngagementType` objects.
@@ -20982,11 +23122,43 @@ Returns a `Contact` object with the given `id`.
```typescript -await client.ticketing.contacts.retrieve("id", { - expand: "account", +const pageableResponse = await client.crm.engagementTypes.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, includeRemoteData: true, - includeShellData: true + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.crm.engagementTypes.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -21002,15 +23174,7 @@ await client.ticketing.contacts.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.ContactsRetrieveRequest` +**request:** `Merge.crm.EngagementTypesListRequest`
@@ -21018,7 +23182,7 @@ await client.ticketing.contacts.retrieve("id", {
-**requestOptions:** `ContactsClient.RequestOptions` +**requestOptions:** `EngagementTypesClient.RequestOptions`
@@ -21030,7 +23194,7 @@ await client.ticketing.contacts.retrieve("id", {
-
client.ticketing.contacts.metaPostRetrieve() -> Merge.MetaResponse +
client.crm.engagementTypes.retrieve(id, { ...params }) -> Merge.EngagementType
@@ -21042,7 +23206,7 @@ await client.ticketing.contacts.retrieve("id", {
-Returns metadata for `TicketingContact` POSTs. +Returns an `EngagementType` object with the given `id`.
@@ -21057,7 +23221,11 @@ Returns metadata for `TicketingContact` POSTs.
```typescript -await client.ticketing.contacts.metaPostRetrieve(); +await client.crm.engagementTypes.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true +}); ```
@@ -21073,63 +23241,23 @@ await client.ticketing.contacts.metaPostRetrieve();
-**requestOptions:** `ContactsClient.RequestOptions` +**id:** `string`
- -
- - - - -
- -## Ticketing Scopes -
client.ticketing.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi -
-
- -#### 📝 Description - -
-
- -
-
- -Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). -
-
-
-
- -#### 🔌 Usage - -
-
-```typescript -await client.ticketing.scopes.defaultScopesRetrieve(); - -``` -
-
+**request:** `Merge.crm.EngagementTypesRetrieveRequest` +
-#### ⚙️ Parameters -
-
-
- -**requestOptions:** `ScopesClient.RequestOptions` +**requestOptions:** `EngagementTypesClient.RequestOptions`
@@ -21141,7 +23269,7 @@ await client.ticketing.scopes.defaultScopesRetrieve();
-
client.ticketing.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi +
client.crm.engagementTypes.remoteFieldClassesList({ ...params }) -> core.Page
@@ -21153,7 +23281,7 @@ await client.ticketing.scopes.defaultScopesRetrieve();
-Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +Returns a list of `RemoteFieldClass` objects.
@@ -21168,7 +23296,37 @@ Get all available permissions for Merge Common Models and fields for a single Li
```typescript -await client.ticketing.scopes.linkedAccountScopesRetrieve(); +const pageableResponse = await client.crm.engagementTypes.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.crm.engagementTypes.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -21184,7 +23342,15 @@ await client.ticketing.scopes.linkedAccountScopesRetrieve();
-**requestOptions:** `ScopesClient.RequestOptions` +**request:** `Merge.crm.EngagementTypesRemoteFieldClassesListRequest` + +
+
+ +
+
+ +**requestOptions:** `EngagementTypesClient.RequestOptions`
@@ -21196,7 +23362,8 @@ await client.ticketing.scopes.linkedAccountScopesRetrieve();
-
client.ticketing.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi +## Crm Engagements +
client.crm.engagements.list({ ...params }) -> core.Page
@@ -21208,7 +23375,7 @@ await client.ticketing.scopes.linkedAccountScopesRetrieve();
-Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) +Returns a list of `Engagement` objects.
@@ -21223,30 +23390,47 @@ Update permissions for any Common Model or field for a single Linked Account. An
```typescript -await client.ticketing.scopes.linkedAccountScopesCreate({ - commonModels: [{ - modelName: "Employee", - modelPermissions: { - "READ": { - isEnabled: true - }, - "WRITE": { - isEnabled: false - } - }, - fieldPermissions: { - enabledFields: ["avatar", "home_location"], - disabledFields: ["work_location"] - } - }, { - modelName: "Benefit", - modelPermissions: { - "WRITE": { - isEnabled: false - } - } - }] +const pageableResponse = await client.crm.engagements.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + startedAfter: new Date("2024-01-15T09:30:00.000Z"), + startedBefore: new Date("2024-01-15T09:30:00.000Z") }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.crm.engagements.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + startedAfter: new Date("2024-01-15T09:30:00.000Z"), + startedBefore: new Date("2024-01-15T09:30:00.000Z") +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -21262,7 +23446,7 @@ await client.ticketing.scopes.linkedAccountScopesCreate({
-**request:** `Merge.ticketing.LinkedAccountCommonModelScopeDeserializerRequest` +**request:** `Merge.crm.EngagementsListRequest`
@@ -21270,7 +23454,7 @@ await client.ticketing.scopes.linkedAccountScopesCreate({
-**requestOptions:** `ScopesClient.RequestOptions` +**requestOptions:** `EngagementsClient.RequestOptions`
@@ -21282,8 +23466,7 @@ await client.ticketing.scopes.linkedAccountScopesCreate({
-## Ticketing DeleteAccount -
client.ticketing.deleteAccount.delete() -> void +
client.crm.engagements.create({ ...params }) -> Merge.EngagementResponse
@@ -21295,7 +23478,7 @@ await client.ticketing.scopes.linkedAccountScopesCreate({
-Delete a linked account. +Creates an `Engagement` object with the given values.
@@ -21310,7 +23493,11 @@ Delete a linked account.
```typescript -await client.ticketing.deleteAccount.delete(); +await client.crm.engagements.create({ + isDebugMode: true, + runAsync: true, + model: {} +}); ```
@@ -21326,7 +23513,15 @@ await client.ticketing.deleteAccount.delete();
-**requestOptions:** `DeleteAccountClient.RequestOptions` +**request:** `Merge.crm.EngagementEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `EngagementsClient.RequestOptions`
@@ -21338,8 +23533,7 @@ await client.ticketing.deleteAccount.delete();
-## Ticketing FieldMapping -
client.ticketing.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse +
client.crm.engagements.retrieve(id, { ...params }) -> Merge.Engagement
@@ -21351,7 +23545,7 @@ await client.ticketing.deleteAccount.delete();
-Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). +Returns an `Engagement` object with the given `id`.
@@ -21366,8 +23560,10 @@ Get all Field Mappings for this Linked Account. Field Mappings are mappings betw
```typescript -await client.ticketing.fieldMapping.fieldMappingsRetrieve({ - excludeRemoteFieldMetadata: true +await client.crm.engagements.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true }); ``` @@ -21384,7 +23580,7 @@ await client.ticketing.fieldMapping.fieldMappingsRetrieve({
-**request:** `Merge.ticketing.FieldMappingsRetrieveRequest` +**id:** `string`
@@ -21392,7 +23588,15 @@ await client.ticketing.fieldMapping.fieldMappingsRetrieve({
-**requestOptions:** `FieldMappingClient.RequestOptions` +**request:** `Merge.crm.EngagementsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `EngagementsClient.RequestOptions`
@@ -21404,7 +23608,7 @@ await client.ticketing.fieldMapping.fieldMappingsRetrieve({
-
client.ticketing.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse +
client.crm.engagements.partialUpdate(id, { ...params }) -> Merge.EngagementResponse
@@ -21416,7 +23620,7 @@ await client.ticketing.fieldMapping.fieldMappingsRetrieve({
-Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Updates an `Engagement` object with the given `id`.
@@ -21431,14 +23635,10 @@ Create new Field Mappings that will be available after the next scheduled sync.
```typescript -await client.ticketing.fieldMapping.fieldMappingsCreate({ - excludeRemoteFieldMetadata: true, - targetFieldName: "example_target_field_name", - targetFieldDescription: "this is a example description of the target field", - remoteFieldTraversalPath: ["example_remote_field"], - remoteMethod: "GET", - remoteUrlPath: "/example-url-path", - commonModelName: "ExampleCommonModel" +await client.crm.engagements.partialUpdate("id", { + isDebugMode: true, + runAsync: true, + model: {} }); ``` @@ -21455,7 +23655,7 @@ await client.ticketing.fieldMapping.fieldMappingsCreate({
-**request:** `Merge.ticketing.CreateFieldMappingRequest` +**id:** `string`
@@ -21463,7 +23663,15 @@ await client.ticketing.fieldMapping.fieldMappingsCreate({
-**requestOptions:** `FieldMappingClient.RequestOptions` +**request:** `Merge.crm.PatchedEngagementEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `EngagementsClient.RequestOptions`
@@ -21475,7 +23683,7 @@ await client.ticketing.fieldMapping.fieldMappingsCreate({
-
client.ticketing.fieldMapping.fieldMappingsDestroy(field_mapping_id) -> Merge.FieldMappingInstanceResponse +
client.crm.engagements.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -21487,7 +23695,7 @@ await client.ticketing.fieldMapping.fieldMappingsCreate({
-Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Returns metadata for `Engagement` PATCHs.
@@ -21502,7 +23710,7 @@ Deletes Field Mappings for a Linked Account. All data related to this Field Mapp
```typescript -await client.ticketing.fieldMapping.fieldMappingsDestroy("field_mapping_id"); +await client.crm.engagements.metaPatchRetrieve("id"); ```
@@ -21518,7 +23726,7 @@ await client.ticketing.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**field_mapping_id:** `string` +**id:** `string`
@@ -21526,7 +23734,7 @@ await client.ticketing.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `EngagementsClient.RequestOptions`
@@ -21538,7 +23746,7 @@ await client.ticketing.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-
client.ticketing.fieldMapping.fieldMappingsPartialUpdate(field_mapping_id, { ...params }) -> Merge.FieldMappingInstanceResponse +
client.crm.engagements.metaPostRetrieve() -> Merge.MetaResponse
@@ -21550,7 +23758,7 @@ await client.ticketing.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Returns metadata for `Engagement` POSTs.
@@ -21565,7 +23773,7 @@ Create or update existing Field Mappings for a Linked Account. Changes will be r
```typescript -await client.ticketing.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); +await client.crm.engagements.metaPostRetrieve(); ```
@@ -21581,23 +23789,7 @@ await client.ticketing.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id
-**field_mapping_id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.PatchedEditFieldMappingRequest` - -
-
- -
-
- -**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `EngagementsClient.RequestOptions`
@@ -21609,7 +23801,7 @@ await client.ticketing.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id
-
client.ticketing.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse +
client.crm.engagements.remoteFieldClassesList({ ...params }) -> core.Page
@@ -21621,7 +23813,7 @@ await client.ticketing.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id
-Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). +Returns a list of `RemoteFieldClass` objects.
@@ -21636,10 +23828,37 @@ Get all remote fields for a Linked Account. Remote fields are third-party fields
```typescript -await client.ticketing.fieldMapping.remoteFieldsRetrieve({ - commonModels: "common_models", - includeExampleValues: "include_example_values" +const pageableResponse = await client.crm.engagements.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.crm.engagements.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -21655,7 +23874,7 @@ await client.ticketing.fieldMapping.remoteFieldsRetrieve({
-**request:** `Merge.ticketing.RemoteFieldsRetrieveRequest` +**request:** `Merge.crm.EngagementsRemoteFieldClassesListRequest`
@@ -21663,7 +23882,7 @@ await client.ticketing.fieldMapping.remoteFieldsRetrieve({
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `EngagementsClient.RequestOptions`
@@ -21675,7 +23894,8 @@ await client.ticketing.fieldMapping.remoteFieldsRetrieve({
-
client.ticketing.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse +## Crm FieldMapping +
client.crm.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse
@@ -21687,7 +23907,7 @@ await client.ticketing.fieldMapping.remoteFieldsRetrieve({
-Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). +Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/).
@@ -21702,7 +23922,9 @@ Get all organization-wide Target Fields, this will not include any Linked Accoun
```typescript -await client.ticketing.fieldMapping.targetFieldsRetrieve(); +await client.crm.fieldMapping.fieldMappingsRetrieve({ + excludeRemoteFieldMetadata: true +}); ```
@@ -21718,6 +23940,14 @@ await client.ticketing.fieldMapping.targetFieldsRetrieve();
+**request:** `Merge.crm.FieldMappingsRetrieveRequest` + +
+
+ +
+
+ **requestOptions:** `FieldMappingClient.RequestOptions`
@@ -21730,8 +23960,7 @@ await client.ticketing.fieldMapping.targetFieldsRetrieve();
-## Ticketing GenerateKey -
client.ticketing.generateKey.create({ ...params }) -> Merge.RemoteKey +
client.crm.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse
@@ -21743,7 +23972,7 @@ await client.ticketing.fieldMapping.targetFieldsRetrieve();
-Create a remote key. +Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -21758,8 +23987,15 @@ Create a remote key.
```typescript -await client.ticketing.generateKey.create({ - name: "Remote Deployment Key 1" +await client.crm.fieldMapping.fieldMappingsCreate({ + excludeRemoteFieldMetadata: true, + remoteDataIterationCount: 1, + targetFieldName: "example_target_field_name", + targetFieldDescription: "this is a example description of the target field", + remoteFieldTraversalPath: ["example_remote_field"], + remoteMethod: "GET", + remoteUrlPath: "/example-url-path", + commonModelName: "ExampleCommonModel" }); ``` @@ -21776,7 +24012,7 @@ await client.ticketing.generateKey.create({
-**request:** `Merge.ticketing.GenerateRemoteKeyRequest` +**request:** `Merge.crm.CreateFieldMappingRequest`
@@ -21784,7 +24020,7 @@ await client.ticketing.generateKey.create({
-**requestOptions:** `GenerateKeyClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -21796,8 +24032,7 @@ await client.ticketing.generateKey.create({
-## Ticketing Issues -
client.ticketing.issues.list({ ...params }) -> Merge.PaginatedIssueList +
client.crm.fieldMapping.fieldMappingsDestroy(field_mapping_id) -> Merge.FieldMappingInstanceResponse
@@ -21809,7 +24044,7 @@ await client.ticketing.generateKey.create({
-Gets all issues for Organization. +Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -21824,22 +24059,7 @@ Gets all issues for Organization.
```typescript -await client.ticketing.issues.list({ - accountToken: "account_token", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - endUserOrganizationName: "end_user_organization_name", - firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - includeMuted: "include_muted", - integrationName: "integration_name", - lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - linkedAccountId: "linked_account_id", - pageSize: 1, - startDate: "start_date", - status: "ONGOING" -}); +await client.crm.fieldMapping.fieldMappingsDestroy("field_mapping_id"); ```
@@ -21855,7 +24075,7 @@ await client.ticketing.issues.list({
-**request:** `Merge.ticketing.IssuesListRequest` +**field_mapping_id:** `string`
@@ -21863,7 +24083,7 @@ await client.ticketing.issues.list({
-**requestOptions:** `IssuesClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -21875,7 +24095,7 @@ await client.ticketing.issues.list({
-
client.ticketing.issues.retrieve(id) -> Merge.Issue +
client.crm.fieldMapping.fieldMappingsPartialUpdate(field_mapping_id, { ...params }) -> Merge.FieldMappingInstanceResponse
@@ -21887,7 +24107,7 @@ await client.ticketing.issues.list({
-Get a specific issue. +Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -21902,7 +24122,9 @@ Get a specific issue.
```typescript -await client.ticketing.issues.retrieve("id"); +await client.crm.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { + remoteDataIterationCount: 1 +}); ```
@@ -21918,7 +24140,7 @@ await client.ticketing.issues.retrieve("id");
-**id:** `string` +**field_mapping_id:** `string`
@@ -21926,7 +24148,15 @@ await client.ticketing.issues.retrieve("id");
-**requestOptions:** `IssuesClient.RequestOptions` +**request:** `Merge.crm.PatchedEditFieldMappingRequest` + +
+
+ +
+
+ +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -21938,8 +24168,7 @@ await client.ticketing.issues.retrieve("id");
-## Ticketing LinkToken -
client.ticketing.linkToken.create({ ...params }) -> Merge.LinkToken +
client.crm.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse
@@ -21951,7 +24180,7 @@ await client.ticketing.issues.retrieve("id");
-Creates a link token to be used when linking a new end user. +Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/).
@@ -21966,11 +24195,9 @@ Creates a link token to be used when linking a new end user.
```typescript -await client.ticketing.linkToken.create({ - endUserEmailAddress: "example@gmail.com", - endUserOrganizationName: "Test Organization", - endUserOriginId: "12345", - categories: ["hris", "ats"] +await client.crm.fieldMapping.remoteFieldsRetrieve({ + commonModels: "common_models", + includeExampleValues: "include_example_values" }); ``` @@ -21987,7 +24214,7 @@ await client.ticketing.linkToken.create({
-**request:** `Merge.ticketing.EndUserDetailsRequest` +**request:** `Merge.crm.RemoteFieldsRetrieveRequest`
@@ -21995,7 +24222,7 @@ await client.ticketing.linkToken.create({
-**requestOptions:** `LinkTokenClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -22007,8 +24234,7 @@ await client.ticketing.linkToken.create({
-## Ticketing LinkedAccounts -
client.ticketing.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList +
client.crm.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse
@@ -22020,7 +24246,7 @@ await client.ticketing.linkToken.create({
-List linked accounts for your organization. +Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/).
@@ -22035,21 +24261,7 @@ List linked accounts for your organization.
```typescript -await client.ticketing.linkedAccounts.list({ - category: "accounting", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endUserEmailAddress: "end_user_email_address", - endUserOrganizationName: "end_user_organization_name", - endUserOriginId: "end_user_origin_id", - endUserOriginIds: "end_user_origin_ids", - id: "id", - ids: "ids", - includeDuplicates: true, - integrationName: "integration_name", - isTestAccount: "is_test_account", - pageSize: 1, - status: "status" -}); +await client.crm.fieldMapping.targetFieldsRetrieve(); ```
@@ -22065,15 +24277,7 @@ await client.ticketing.linkedAccounts.list({
-**request:** `Merge.ticketing.LinkedAccountsListRequest` - -
-
- -
-
- -**requestOptions:** `LinkedAccountsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -22085,8 +24289,8 @@ await client.ticketing.linkedAccounts.list({
-## Ticketing Passthrough -
client.ticketing.passthrough.create({ ...params }) -> Merge.RemoteResponse +## Crm GenerateKey +
client.crm.generateKey.create({ ...params }) -> Merge.RemoteKey
@@ -22098,7 +24302,7 @@ await client.ticketing.linkedAccounts.list({
-Pull data from an endpoint not currently supported by Merge. +Create a remote key.
@@ -22113,9 +24317,8 @@ Pull data from an endpoint not currently supported by Merge.
```typescript -await client.ticketing.passthrough.create({ - method: "GET", - path: "/scooters" +await client.crm.generateKey.create({ + name: "Remote Deployment Key 1" }); ``` @@ -22132,7 +24335,7 @@ await client.ticketing.passthrough.create({
-**request:** `Merge.DataPassthroughRequest` +**request:** `Merge.crm.GenerateRemoteKeyRequest`
@@ -22140,7 +24343,7 @@ await client.ticketing.passthrough.create({
-**requestOptions:** `PassthroughClient.RequestOptions` +**requestOptions:** `GenerateKeyClient.RequestOptions`
@@ -22152,8 +24355,8 @@ await client.ticketing.passthrough.create({
-## Ticketing Projects -
client.ticketing.projects.list({ ...params }) -> Merge.PaginatedProjectList +## Crm Issues +
client.crm.issues.list({ ...params }) -> core.Page
@@ -22165,7 +24368,7 @@ await client.ticketing.passthrough.create({
-Returns a list of `Project` objects. +Gets all issues for Organization.
@@ -22180,18 +24383,49 @@ Returns a list of `Project` objects.
```typescript -await client.ticketing.projects.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), +const pageableResponse = await client.crm.issues.list({ + accountToken: "account_token", cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + endDate: "end_date", + endUserOrganizationName: "end_user_organization_name", + firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + includeMuted: "include_muted", + integrationName: "integration_name", + lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + linkedAccountId: "linked_account_id", pageSize: 1, - remoteId: "remote_id" + startDate: "start_date", + status: "ONGOING" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.crm.issues.list({ + accountToken: "account_token", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endDate: "end_date", + endUserOrganizationName: "end_user_organization_name", + firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + includeMuted: "include_muted", + integrationName: "integration_name", + lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + linkedAccountId: "linked_account_id", + pageSize: 1, + startDate: "start_date", + status: "ONGOING" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -22207,7 +24441,7 @@ await client.ticketing.projects.list({
-**request:** `Merge.ticketing.ProjectsListRequest` +**request:** `Merge.crm.IssuesListRequest`
@@ -22215,7 +24449,7 @@ await client.ticketing.projects.list({
-**requestOptions:** `ProjectsClient.RequestOptions` +**requestOptions:** `IssuesClient.RequestOptions`
@@ -22227,7 +24461,7 @@ await client.ticketing.projects.list({
-
client.ticketing.projects.retrieve(id, { ...params }) -> Merge.Project +
client.crm.issues.retrieve(id) -> Merge.Issue
@@ -22239,7 +24473,7 @@ await client.ticketing.projects.list({
-Returns a `Project` object with the given `id`. +Get a specific issue.
@@ -22254,10 +24488,7 @@ Returns a `Project` object with the given `id`.
```typescript -await client.ticketing.projects.retrieve("id", { - includeRemoteData: true, - includeShellData: true -}); +await client.crm.issues.retrieve("id"); ```
@@ -22281,7 +24512,4451 @@ await client.ticketing.projects.retrieve("id", {
-**request:** `Merge.ticketing.ProjectsRetrieveRequest` +**requestOptions:** `IssuesClient.RequestOptions` + +
+
+ +
+ + + + +
+ +## Crm Leads +
client.crm.leads.list({ ...params }) -> core.Page +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns a list of `Lead` objects. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +const pageableResponse = await client.crm.leads.list({ + convertedAccountId: "converted_account_id", + convertedContactId: "converted_contact_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + emailAddresses: "email_addresses", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + ownerId: "owner_id", + pageSize: 1, + phoneNumbers: "phone_numbers", + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.crm.leads.list({ + convertedAccountId: "converted_account_id", + convertedContactId: "converted_contact_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + emailAddresses: "email_addresses", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + ownerId: "owner_id", + pageSize: 1, + phoneNumbers: "phone_numbers", + remoteId: "remote_id" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.crm.LeadsListRequest` + +
+
+ +
+
+ +**requestOptions:** `LeadsClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.crm.leads.create({ ...params }) -> Merge.LeadResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Creates a `Lead` object with the given values. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.crm.leads.create({ + isDebugMode: true, + runAsync: true, + model: {} +}); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.crm.LeadEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `LeadsClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.crm.leads.retrieve(id, { ...params }) -> Merge.Lead +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns a `Lead` object with the given `id`. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.crm.leads.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true +}); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.crm.LeadsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `LeadsClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.crm.leads.metaPostRetrieve() -> Merge.MetaResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns metadata for `Lead` POSTs. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.crm.leads.metaPostRetrieve(); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**requestOptions:** `LeadsClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.crm.leads.remoteFieldClassesList({ ...params }) -> core.Page +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns a list of `RemoteFieldClass` objects. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +const pageableResponse = await client.crm.leads.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.crm.leads.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.crm.LeadsRemoteFieldClassesListRequest` + +
+
+ +
+
+ +**requestOptions:** `LeadsClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +## Crm LinkToken +
client.crm.linkToken.create({ ...params }) -> Merge.LinkToken +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Creates a link token to be used when linking a new end user. The link token expires after single use. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.crm.linkToken.create({ + endUserEmailAddress: "example@gmail.com", + endUserOrganizationName: "Test Organization", + endUserOriginId: "12345", + categories: ["hris", "ats"] +}); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.crm.EndUserDetailsRequest` + +
+
+ +
+
+ +**requestOptions:** `LinkTokenClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +## Crm LinkedAccounts +
client.crm.linkedAccounts.list({ ...params }) -> core.Page +
+
+ +#### 📝 Description + +
+
+ +
+
+ +List linked accounts for your organization. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +const pageableResponse = await client.crm.linkedAccounts.list({ + category: "accounting", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endUserEmailAddress: "end_user_email_address", + endUserOrganizationName: "end_user_organization_name", + endUserOriginId: "end_user_origin_id", + endUserOriginIds: "end_user_origin_ids", + id: "id", + ids: "ids", + includeDuplicates: true, + integrationName: "integration_name", + isTestAccount: "is_test_account", + pageSize: 1, + status: "status" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.crm.linkedAccounts.list({ + category: "accounting", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endUserEmailAddress: "end_user_email_address", + endUserOrganizationName: "end_user_organization_name", + endUserOriginId: "end_user_origin_id", + endUserOriginIds: "end_user_origin_ids", + id: "id", + ids: "ids", + includeDuplicates: true, + integrationName: "integration_name", + isTestAccount: "is_test_account", + pageSize: 1, + status: "status" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.crm.LinkedAccountsListRequest` + +
+
+ +
+
+ +**requestOptions:** `LinkedAccountsClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +## Crm Notes +
client.crm.notes.list({ ...params }) -> core.Page +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns a list of `Note` objects. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +const pageableResponse = await client.crm.notes.list({ + accountId: "account_id", + contactId: "contact_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + opportunityId: "opportunity_id", + ownerId: "owner_id", + pageSize: 1, + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.crm.notes.list({ + accountId: "account_id", + contactId: "contact_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + opportunityId: "opportunity_id", + ownerId: "owner_id", + pageSize: 1, + remoteId: "remote_id" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.crm.NotesListRequest` + +
+
+ +
+
+ +**requestOptions:** `NotesClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.crm.notes.create({ ...params }) -> Merge.NoteResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Creates a `Note` object with the given values. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.crm.notes.create({ + isDebugMode: true, + runAsync: true, + model: {} +}); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.crm.NoteEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `NotesClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.crm.notes.retrieve(id, { ...params }) -> Merge.Note +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns a `Note` object with the given `id`. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.crm.notes.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true +}); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.crm.NotesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `NotesClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.crm.notes.metaPostRetrieve() -> Merge.MetaResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns metadata for `Note` POSTs. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.crm.notes.metaPostRetrieve(); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**requestOptions:** `NotesClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.crm.notes.remoteFieldClassesList({ ...params }) -> core.Page +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns a list of `RemoteFieldClass` objects. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +const pageableResponse = await client.crm.notes.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.crm.notes.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.crm.NotesRemoteFieldClassesListRequest` + +
+
+ +
+
+ +**requestOptions:** `NotesClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +## Crm Opportunities +
client.crm.opportunities.list({ ...params }) -> core.Page +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns a list of `Opportunity` objects. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +const pageableResponse = await client.crm.opportunities.list({ + accountId: "account_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + ownerId: "owner_id", + pageSize: 1, + remoteCreatedAfter: new Date("2024-01-15T09:30:00.000Z"), + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status", + stageId: "stage_id", + status: "LOST" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.crm.opportunities.list({ + accountId: "account_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + ownerId: "owner_id", + pageSize: 1, + remoteCreatedAfter: new Date("2024-01-15T09:30:00.000Z"), + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status", + stageId: "stage_id", + status: "LOST" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.crm.OpportunitiesListRequest` + +
+
+ +
+
+ +**requestOptions:** `OpportunitiesClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.crm.opportunities.create({ ...params }) -> Merge.OpportunityResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Creates an `Opportunity` object with the given values. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.crm.opportunities.create({ + isDebugMode: true, + runAsync: true, + model: {} +}); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.crm.OpportunityEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `OpportunitiesClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.crm.opportunities.retrieve(id, { ...params }) -> Merge.Opportunity +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns an `Opportunity` object with the given `id`. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.crm.opportunities.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + remoteFields: "status", + showEnumOrigins: "status" +}); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.crm.OpportunitiesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `OpportunitiesClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.crm.opportunities.partialUpdate(id, { ...params }) -> Merge.OpportunityResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Updates an `Opportunity` object with the given `id`. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.crm.opportunities.partialUpdate("id", { + isDebugMode: true, + runAsync: true, + model: {} +}); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.crm.PatchedOpportunityEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `OpportunitiesClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.crm.opportunities.metaPatchRetrieve(id) -> Merge.MetaResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns metadata for `Opportunity` PATCHs. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.crm.opportunities.metaPatchRetrieve("id"); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `string` + +
+
+ +
+
+ +**requestOptions:** `OpportunitiesClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.crm.opportunities.metaPostRetrieve() -> Merge.MetaResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns metadata for `Opportunity` POSTs. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.crm.opportunities.metaPostRetrieve(); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**requestOptions:** `OpportunitiesClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.crm.opportunities.remoteFieldClassesList({ ...params }) -> core.Page +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns a list of `RemoteFieldClass` objects. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +const pageableResponse = await client.crm.opportunities.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.crm.opportunities.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.crm.OpportunitiesRemoteFieldClassesListRequest` + +
+
+ +
+
+ +**requestOptions:** `OpportunitiesClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +## Crm Passthrough +
client.crm.passthrough.create({ ...params }) -> Merge.RemoteResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Pull data from an endpoint not currently supported by Merge. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.crm.passthrough.create({ + method: "GET", + path: "/scooters" +}); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.DataPassthroughRequest` + +
+
+ +
+
+ +**requestOptions:** `PassthroughClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +## Crm RegenerateKey +
client.crm.regenerateKey.create({ ...params }) -> Merge.RemoteKey +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Exchange remote keys. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.crm.regenerateKey.create({ + name: "Remote Deployment Key 1" +}); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.crm.RemoteKeyForRegenerationRequest` + +
+
+ +
+
+ +**requestOptions:** `RegenerateKeyClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +## Crm Stages +
client.crm.stages.list({ ...params }) -> core.Page +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns a list of `Stage` objects. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +const pageableResponse = await client.crm.stages.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.crm.stages.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.crm.StagesListRequest` + +
+
+ +
+
+ +**requestOptions:** `StagesClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.crm.stages.retrieve(id, { ...params }) -> Merge.Stage +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns a `Stage` object with the given `id`. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.crm.stages.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true +}); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.crm.StagesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `StagesClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.crm.stages.remoteFieldClassesList({ ...params }) -> core.Page +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns a list of `RemoteFieldClass` objects. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +const pageableResponse = await client.crm.stages.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.crm.stages.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.crm.StagesRemoteFieldClassesListRequest` + +
+
+ +
+
+ +**requestOptions:** `StagesClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +## Crm SyncStatus +
client.crm.syncStatus.list({ ...params }) -> core.Page +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +const pageableResponse = await client.crm.syncStatus.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.crm.syncStatus.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + pageSize: 1 +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.crm.SyncStatusListRequest` + +
+
+ +
+
+ +**requestOptions:** `SyncStatusClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +## Crm ForceResync +
client.crm.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[] +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.crm.forceResync.syncStatusResyncCreate(); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**requestOptions:** `ForceResyncClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +## Crm Tasks +
client.crm.tasks.list({ ...params }) -> core.Page +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns a list of `Task` objects. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +const pageableResponse = await client.crm.tasks.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.crm.tasks.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.crm.TasksListRequest` + +
+
+ +
+
+ +**requestOptions:** `TasksClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.crm.tasks.create({ ...params }) -> Merge.TaskResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Creates a `Task` object with the given values. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.crm.tasks.create({ + isDebugMode: true, + runAsync: true, + model: {} +}); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.crm.TaskEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `TasksClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.crm.tasks.retrieve(id, { ...params }) -> Merge.Task +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns a `Task` object with the given `id`. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.crm.tasks.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true +}); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.crm.TasksRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `TasksClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.crm.tasks.partialUpdate(id, { ...params }) -> Merge.TaskResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Updates a `Task` object with the given `id`. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.crm.tasks.partialUpdate("id", { + isDebugMode: true, + runAsync: true, + model: {} +}); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.crm.PatchedTaskEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `TasksClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.crm.tasks.metaPatchRetrieve(id) -> Merge.MetaResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns metadata for `Task` PATCHs. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.crm.tasks.metaPatchRetrieve("id"); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `string` + +
+
+ +
+
+ +**requestOptions:** `TasksClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.crm.tasks.metaPostRetrieve() -> Merge.MetaResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns metadata for `Task` POSTs. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.crm.tasks.metaPostRetrieve(); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**requestOptions:** `TasksClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.crm.tasks.remoteFieldClassesList({ ...params }) -> core.Page +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns a list of `RemoteFieldClass` objects. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +const pageableResponse = await client.crm.tasks.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.crm.tasks.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.crm.TasksRemoteFieldClassesListRequest` + +
+
+ +
+
+ +**requestOptions:** `TasksClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +## Crm Users +
client.crm.users.list({ ...params }) -> core.Page +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns a list of `User` objects. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +const pageableResponse = await client.crm.users.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + email: "email", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.crm.users.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + email: "email", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.crm.UsersListRequest` + +
+
+ +
+
+ +**requestOptions:** `UsersClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.crm.users.retrieve(id, { ...params }) -> Merge.User +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns a `User` object with the given `id`. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.crm.users.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true +}); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.crm.UsersRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `UsersClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.crm.users.ignoreCreate(model_id, { ...params }) -> void +
+
+ +#### 📝 Description + +
+
+ +
+
+ +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. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.crm.users.ignoreCreate("model_id", { + reason: "GENERAL_CUSTOMER_REQUEST" +}); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**model_id:** `string` + +
+
+ +
+
+ +**request:** `Merge.IgnoreCommonModelRequest` + +
+
+ +
+
+ +**requestOptions:** `UsersClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.crm.users.remoteFieldClassesList({ ...params }) -> core.Page +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns a list of `RemoteFieldClass` objects. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +const pageableResponse = await client.crm.users.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.crm.users.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.crm.UsersRemoteFieldClassesListRequest` + +
+
+ +
+
+ +**requestOptions:** `UsersClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +## Crm WebhookReceivers +
client.crm.webhookReceivers.list() -> Merge.WebhookReceiver[] +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns a list of `WebhookReceiver` objects. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.crm.webhookReceivers.list(); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**requestOptions:** `WebhookReceiversClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.crm.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Creates a `WebhookReceiver` object with the given values. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.crm.webhookReceivers.create({ + event: "event", + isActive: true +}); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.crm.WebhookReceiverRequest` + +
+
+ +
+
+ +**requestOptions:** `WebhookReceiversClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +## Hris AccountDetails +
client.hris.accountDetails.retrieve() -> Merge.AccountDetails +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Get details for a linked account. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.hris.accountDetails.retrieve(); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**requestOptions:** `AccountDetailsClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +## Hris AccountToken +
client.hris.accountToken.retrieve(public_token) -> Merge.AccountToken +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns the account token for the end user with the provided public token. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.hris.accountToken.retrieve("public_token"); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**public_token:** `string` + +
+
+ +
+
+ +**requestOptions:** `AccountTokenClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.hris.accountToken.regenerateCreate() -> Merge.RegenerateAccountToken +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Exchange Linked Account account tokens. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.hris.accountToken.regenerateCreate(); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**requestOptions:** `AccountTokenClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +## Hris AsyncPassthrough +
client.hris.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Asynchronously pull data from an endpoint not currently supported by Merge. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.hris.asyncPassthrough.create({ + method: "GET", + path: "/scooters" +}); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.DataPassthroughRequest` + +
+
+ +
+
+ +**requestOptions:** `AsyncPassthroughClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.hris.asyncPassthrough.retrieve(async_passthrough_receipt_id) -> Merge.AsyncPassthroughRetrieveResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Retrieves data from earlier async-passthrough POST request +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.hris.asyncPassthrough.retrieve("async_passthrough_receipt_id"); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**async_passthrough_receipt_id:** `string` + +
+
+ +
+
+ +**requestOptions:** `AsyncPassthroughClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +## Hris AuditTrail +
client.hris.auditTrail.list({ ...params }) -> core.Page +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Gets a list of audit trail events. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +const pageableResponse = await client.hris.auditTrail.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endDate: "end_date", + eventType: "event_type", + pageSize: 1, + startDate: "start_date", + userEmail: "user_email" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.hris.auditTrail.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endDate: "end_date", + eventType: "event_type", + pageSize: 1, + startDate: "start_date", + userEmail: "user_email" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.hris.AuditTrailListRequest` + +
+
+ +
+
+ +**requestOptions:** `AuditTrailClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +## Hris AvailableActions +
client.hris.availableActions.retrieve() -> Merge.AvailableActions +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns a list of models and actions available for an account. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.hris.availableActions.retrieve(); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**requestOptions:** `AvailableActionsClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +## Hris BankInfo +
client.hris.bankInfo.list({ ...params }) -> core.Page +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns a list of `BankInfo` objects. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +const pageableResponse = await client.hris.bankInfo.list({ + accountType: "CHECKING", + bankName: "bank_name", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + employeeId: "employee_id", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + orderBy: "-remote_created_at", + pageSize: 1, + remoteFields: "account_type", + remoteId: "remote_id", + showEnumOrigins: "account_type" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.hris.bankInfo.list({ + accountType: "CHECKING", + bankName: "bank_name", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + employeeId: "employee_id", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + orderBy: "-remote_created_at", + pageSize: 1, + remoteFields: "account_type", + remoteId: "remote_id", + showEnumOrigins: "account_type" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.hris.BankInfoListRequest` + +
+
+ +
+
+ +**requestOptions:** `BankInfoClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.hris.bankInfo.retrieve(id, { ...params }) -> Merge.BankInfo +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns a `BankInfo` object with the given `id`. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.hris.bankInfo.retrieve("id", { + includeRemoteData: true, + includeShellData: true, + remoteFields: "account_type", + showEnumOrigins: "account_type" +}); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.hris.BankInfoRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `BankInfoClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +## Hris Benefits +
client.hris.benefits.list({ ...params }) -> core.Page +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns a list of `Benefit` objects. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +const pageableResponse = await client.hris.benefits.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + employeeId: "employee_id", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.hris.benefits.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + employeeId: "employee_id", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.hris.BenefitsListRequest` + +
+
+ +
+
+ +**requestOptions:** `BenefitsClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.hris.benefits.retrieve(id, { ...params }) -> Merge.Benefit +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns a `Benefit` object with the given `id`. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.hris.benefits.retrieve("id", { + includeRemoteData: true, + includeShellData: true +}); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.hris.BenefitsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `BenefitsClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +## Hris Companies +
client.hris.companies.list({ ...params }) -> core.Page +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns a list of `Company` objects. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +const pageableResponse = await client.hris.companies.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.hris.companies.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.hris.CompaniesListRequest` + +
+
+ +
+
+ +**requestOptions:** `CompaniesClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.hris.companies.retrieve(id, { ...params }) -> Merge.Company +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns a `Company` object with the given `id`. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.hris.companies.retrieve("id", { + includeRemoteData: true, + includeShellData: true +}); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.hris.CompaniesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `CompaniesClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +## Hris Scopes +
client.hris.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.hris.scopes.defaultScopesRetrieve(); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**requestOptions:** `ScopesClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.hris.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.hris.scopes.linkedAccountScopesRetrieve(); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**requestOptions:** `ScopesClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.hris.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.hris.scopes.linkedAccountScopesCreate({ + commonModels: [{ + modelName: "Employee", + modelPermissions: { + "READ": { + isEnabled: true + }, + "WRITE": { + isEnabled: false + } + }, + fieldPermissions: { + enabledFields: ["avatar", "home_location"], + disabledFields: ["work_location"] + } + }, { + modelName: "Benefit", + modelPermissions: { + "WRITE": { + isEnabled: false + } + } + }] +}); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.hris.LinkedAccountCommonModelScopeDeserializerRequest` + +
+
+ +
+
+ +**requestOptions:** `ScopesClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +## Hris DeleteAccount +
client.hris.deleteAccount.delete() -> void +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Delete a linked account. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.hris.deleteAccount.delete(); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**requestOptions:** `DeleteAccountClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +## Hris Dependents +
client.hris.dependents.list({ ...params }) -> core.Page +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns a list of `Dependent` objects. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +const pageableResponse = await client.hris.dependents.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + employeeId: "employee_id", + includeDeletedData: true, + includeRemoteData: true, + includeSensitiveFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.hris.dependents.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + employeeId: "employee_id", + includeDeletedData: true, + includeRemoteData: true, + includeSensitiveFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.hris.DependentsListRequest` + +
+
+ +
+
+ +**requestOptions:** `DependentsClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.hris.dependents.retrieve(id, { ...params }) -> Merge.Dependent +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns a `Dependent` object with the given `id`. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.hris.dependents.retrieve("id", { + includeRemoteData: true, + includeSensitiveFields: true, + includeShellData: true +}); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `string`
@@ -22289,7 +28964,15 @@ await client.ticketing.projects.retrieve("id", {
-**requestOptions:** `ProjectsClient.RequestOptions` +**request:** `Merge.hris.DependentsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `DependentsClient.RequestOptions`
@@ -22301,7 +28984,8 @@ await client.ticketing.projects.retrieve("id", {
-
client.ticketing.projects.usersList(parent_id, { ...params }) -> Merge.PaginatedUserList +## Hris EmployeePayrollRuns +
client.hris.employeePayrollRuns.list({ ...params }) -> core.Page
@@ -22313,7 +28997,7 @@ await client.ticketing.projects.retrieve("id", {
-Returns a list of `User` objects. +Returns a list of `EmployeePayrollRun` objects.
@@ -22328,14 +29012,53 @@ Returns a list of `User` objects.
```typescript -await client.ticketing.projects.usersList("parent_id", { +const pageableResponse = await client.hris.employeePayrollRuns.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "roles", + employeeId: "employee_id", + endedAfter: new Date("2024-01-15T09:30:00.000Z"), + endedBefore: new Date("2024-01-15T09:30:00.000Z"), includeDeletedData: true, includeRemoteData: true, includeShellData: true, - pageSize: 1 + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + payrollRunId: "payroll_run_id", + remoteId: "remote_id", + startedAfter: new Date("2024-01-15T09:30:00.000Z"), + startedBefore: new Date("2024-01-15T09:30:00.000Z") +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.hris.employeePayrollRuns.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + employeeId: "employee_id", + endedAfter: new Date("2024-01-15T09:30:00.000Z"), + endedBefore: new Date("2024-01-15T09:30:00.000Z"), + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + payrollRunId: "payroll_run_id", + remoteId: "remote_id", + startedAfter: new Date("2024-01-15T09:30:00.000Z"), + startedBefore: new Date("2024-01-15T09:30:00.000Z") }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -22351,15 +29074,7 @@ await client.ticketing.projects.usersList("parent_id", {
-**parent_id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.ProjectsUsersListRequest` +**request:** `Merge.hris.EmployeePayrollRunsListRequest`
@@ -22367,7 +29082,7 @@ await client.ticketing.projects.usersList("parent_id", {
-**requestOptions:** `ProjectsClient.RequestOptions` +**requestOptions:** `EmployeePayrollRunsClient.RequestOptions`
@@ -22379,8 +29094,7 @@ await client.ticketing.projects.usersList("parent_id", {
-## Ticketing RegenerateKey -
client.ticketing.regenerateKey.create({ ...params }) -> Merge.RemoteKey +
client.hris.employeePayrollRuns.retrieve(id, { ...params }) -> Merge.EmployeePayrollRun
@@ -22392,7 +29106,7 @@ await client.ticketing.projects.usersList("parent_id", {
-Exchange remote keys. +Returns an `EmployeePayrollRun` object with the given `id`.
@@ -22407,8 +29121,9 @@ Exchange remote keys.
```typescript -await client.ticketing.regenerateKey.create({ - name: "Remote Deployment Key 1" +await client.hris.employeePayrollRuns.retrieve("id", { + includeRemoteData: true, + includeShellData: true }); ``` @@ -22425,7 +29140,7 @@ await client.ticketing.regenerateKey.create({
-**request:** `Merge.ticketing.RemoteKeyForRegenerationRequest` +**id:** `string`
@@ -22433,7 +29148,15 @@ await client.ticketing.regenerateKey.create({
-**requestOptions:** `RegenerateKeyClient.RequestOptions` +**request:** `Merge.hris.EmployeePayrollRunsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `EmployeePayrollRunsClient.RequestOptions`
@@ -22445,8 +29168,8 @@ await client.ticketing.regenerateKey.create({
-## Ticketing Roles -
client.ticketing.roles.list({ ...params }) -> Merge.PaginatedRoleList +## Hris Employees +
client.hris.employees.list({ ...params }) -> core.Page
@@ -22458,7 +29181,7 @@ await client.ticketing.regenerateKey.create({
-Returns a list of `Role` objects. +Returns a list of `Employee` objects.
@@ -22473,18 +29196,87 @@ Returns a list of `Role` objects.
```typescript -await client.ticketing.roles.list({ +const pageableResponse = await client.hris.employees.list({ + companyId: "company_id", createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + displayFullName: "display_full_name", + employeeNumber: "employee_number", + employmentStatus: "ACTIVE", + employmentType: "employment_type", + firstName: "first_name", + groups: "groups", + homeLocationId: "home_location_id", includeDeletedData: true, includeRemoteData: true, + includeSensitiveFields: true, includeShellData: true, + jobTitle: "job_title", + lastName: "last_name", + managerId: "manager_id", modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), pageSize: 1, - remoteId: "remote_id" + payGroupId: "pay_group_id", + personalEmail: "personal_email", + remoteFields: "employment_status", + remoteId: "remote_id", + showEnumOrigins: "employment_status", + startedAfter: new Date("2024-01-15T09:30:00.000Z"), + startedBefore: new Date("2024-01-15T09:30:00.000Z"), + teamId: "team_id", + terminatedAfter: new Date("2024-01-15T09:30:00.000Z"), + terminatedBefore: new Date("2024-01-15T09:30:00.000Z"), + workEmail: "work_email", + workLocationId: "work_location_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.hris.employees.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + displayFullName: "display_full_name", + employeeNumber: "employee_number", + employmentStatus: "ACTIVE", + employmentType: "employment_type", + firstName: "first_name", + groups: "groups", + homeLocationId: "home_location_id", + includeDeletedData: true, + includeRemoteData: true, + includeSensitiveFields: true, + includeShellData: true, + jobTitle: "job_title", + lastName: "last_name", + managerId: "manager_id", + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + payGroupId: "pay_group_id", + personalEmail: "personal_email", + remoteFields: "employment_status", + remoteId: "remote_id", + showEnumOrigins: "employment_status", + startedAfter: new Date("2024-01-15T09:30:00.000Z"), + startedBefore: new Date("2024-01-15T09:30:00.000Z"), + teamId: "team_id", + terminatedAfter: new Date("2024-01-15T09:30:00.000Z"), + terminatedBefore: new Date("2024-01-15T09:30:00.000Z"), + workEmail: "work_email", + workLocationId: "work_location_id" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -22500,7 +29292,7 @@ await client.ticketing.roles.list({
-**request:** `Merge.ticketing.RolesListRequest` +**request:** `Merge.hris.EmployeesListRequest`
@@ -22508,7 +29300,7 @@ await client.ticketing.roles.list({
-**requestOptions:** `RolesClient.RequestOptions` +**requestOptions:** `EmployeesClient.RequestOptions`
@@ -22520,7 +29312,7 @@ await client.ticketing.roles.list({
-
client.ticketing.roles.retrieve(id, { ...params }) -> Merge.Role +
client.hris.employees.create({ ...params }) -> Merge.EmployeeResponse
@@ -22532,7 +29324,7 @@ await client.ticketing.roles.list({
-Returns a `Role` object with the given `id`. +Creates an `Employee` object with the given values.
@@ -22547,9 +29339,79 @@ Returns a `Role` object with the given `id`.
```typescript -await client.ticketing.roles.retrieve("id", { +await client.hris.employees.create({ + isDebugMode: true, + runAsync: true, + model: {} +}); + +``` +
+
+ + + +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.hris.EmployeeEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `EmployeesClient.RequestOptions` + +
+
+
+
+ + + + +
+ +
client.hris.employees.retrieve(id, { ...params }) -> Merge.Employee +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns an `Employee` object with the given `id`. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.hris.employees.retrieve("id", { includeRemoteData: true, - includeShellData: true + includeSensitiveFields: true, + includeShellData: true, + remoteFields: "employment_status", + showEnumOrigins: "employment_status" }); ``` @@ -22574,7 +29436,7 @@ await client.ticketing.roles.retrieve("id", {
-**request:** `Merge.ticketing.RolesRetrieveRequest` +**request:** `Merge.hris.EmployeesRetrieveRequest`
@@ -22582,7 +29444,7 @@ await client.ticketing.roles.retrieve("id", {
-**requestOptions:** `RolesClient.RequestOptions` +**requestOptions:** `EmployeesClient.RequestOptions`
@@ -22594,8 +29456,7 @@ await client.ticketing.roles.retrieve("id", {
-## Ticketing SyncStatus -
client.ticketing.syncStatus.list({ ...params }) -> Merge.PaginatedSyncStatusList +
client.hris.employees.ignoreCreate(model_id, { ...params }) -> void
@@ -22607,7 +29468,7 @@ await client.ticketing.roles.retrieve("id", {
-Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). +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.
@@ -22622,9 +29483,8 @@ Get sync status for the current sync and the most recently finished sync. `last_
```typescript -await client.ticketing.syncStatus.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - pageSize: 1 +await client.hris.employees.ignoreCreate("model_id", { + reason: "GENERAL_CUSTOMER_REQUEST" }); ``` @@ -22641,7 +29501,7 @@ await client.ticketing.syncStatus.list({
-**request:** `Merge.ticketing.SyncStatusListRequest` +**model_id:** `string`
@@ -22649,7 +29509,15 @@ await client.ticketing.syncStatus.list({
-**requestOptions:** `SyncStatusClient.RequestOptions` +**request:** `Merge.IgnoreCommonModelRequest` + +
+
+ +
+
+ +**requestOptions:** `EmployeesClient.RequestOptions`
@@ -22661,8 +29529,7 @@ await client.ticketing.syncStatus.list({
-## Ticketing ForceResync -
client.ticketing.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[] +
client.hris.employees.metaPostRetrieve() -> Merge.MetaResponse
@@ -22674,7 +29541,7 @@ await client.ticketing.syncStatus.list({
-Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. +Returns metadata for `Employee` POSTs.
@@ -22689,7 +29556,7 @@ Force re-sync of all models. This endpoint is available for monthly, quarterly,
```typescript -await client.ticketing.forceResync.syncStatusResyncCreate(); +await client.hris.employees.metaPostRetrieve(); ```
@@ -22705,7 +29572,7 @@ await client.ticketing.forceResync.syncStatusResyncCreate();
-**requestOptions:** `ForceResyncClient.RequestOptions` +**requestOptions:** `EmployeesClient.RequestOptions`
@@ -22717,8 +29584,8 @@ await client.ticketing.forceResync.syncStatusResyncCreate();
-## Ticketing Tags -
client.ticketing.tags.list({ ...params }) -> Merge.PaginatedTagList +## Hris EmployerBenefits +
client.hris.employerBenefits.list({ ...params }) -> core.Page
@@ -22730,7 +29597,7 @@ await client.ticketing.forceResync.syncStatusResyncCreate();
-Returns a list of `Tag` objects. +Returns a list of `EmployerBenefit` objects.
@@ -22745,7 +29612,24 @@ Returns a list of `Tag` objects.
```typescript -await client.ticketing.tags.list({ +const pageableResponse = await client.hris.employerBenefits.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.hris.employerBenefits.list({ createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", @@ -22757,6 +29641,12 @@ await client.ticketing.tags.list({ pageSize: 1, remoteId: "remote_id" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -22772,7 +29662,7 @@ await client.ticketing.tags.list({
-**request:** `Merge.ticketing.TagsListRequest` +**request:** `Merge.hris.EmployerBenefitsListRequest`
@@ -22780,7 +29670,7 @@ await client.ticketing.tags.list({
-**requestOptions:** `TagsClient.RequestOptions` +**requestOptions:** `EmployerBenefitsClient.RequestOptions`
@@ -22792,7 +29682,7 @@ await client.ticketing.tags.list({
-
client.ticketing.tags.retrieve(id, { ...params }) -> Merge.Tag +
client.hris.employerBenefits.retrieve(id, { ...params }) -> Merge.EmployerBenefit
@@ -22804,7 +29694,7 @@ await client.ticketing.tags.list({
-Returns a `Tag` object with the given `id`. +Returns an `EmployerBenefit` object with the given `id`.
@@ -22819,7 +29709,7 @@ Returns a `Tag` object with the given `id`.
```typescript -await client.ticketing.tags.retrieve("id", { +await client.hris.employerBenefits.retrieve("id", { includeRemoteData: true, includeShellData: true }); @@ -22846,7 +29736,189 @@ await client.ticketing.tags.retrieve("id", {
-**request:** `Merge.ticketing.TagsRetrieveRequest` +**request:** `Merge.hris.EmployerBenefitsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `EmployerBenefitsClient.RequestOptions` + +
+
+
+
+ + + + +
+ +## Hris Employments +
client.hris.employments.list({ ...params }) -> core.Page +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns a list of `Employment` objects. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +const pageableResponse = await client.hris.employments.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + employeeId: "employee_id", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + orderBy: "-effective_date", + pageSize: 1, + remoteFields: "employment_type", + remoteId: "remote_id", + showEnumOrigins: "employment_type" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.hris.employments.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + employeeId: "employee_id", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + orderBy: "-effective_date", + pageSize: 1, + remoteFields: "employment_type", + remoteId: "remote_id", + showEnumOrigins: "employment_type" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.hris.EmploymentsListRequest` + +
+
+ +
+
+ +**requestOptions:** `EmploymentsClient.RequestOptions` + +
+
+
+
+ + +
+
+
+ +
client.hris.employments.retrieve(id, { ...params }) -> Merge.Employment +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns an `Employment` object with the given `id`. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.hris.employments.retrieve("id", { + includeRemoteData: true, + includeShellData: true, + remoteFields: "employment_type", + showEnumOrigins: "employment_type" +}); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.hris.EmploymentsRetrieveRequest`
@@ -22854,7 +29926,7 @@ await client.ticketing.tags.retrieve("id", {
-**requestOptions:** `TagsClient.RequestOptions` +**requestOptions:** `EmploymentsClient.RequestOptions`
@@ -22866,8 +29938,8 @@ await client.ticketing.tags.retrieve("id", {
-## Ticketing Teams -
client.ticketing.teams.list({ ...params }) -> Merge.PaginatedTeamList +## Hris FieldMapping +
client.hris.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse
@@ -22879,7 +29951,7 @@ await client.ticketing.tags.retrieve("id", {
-Returns a list of `Team` objects. +Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/).
@@ -22894,17 +29966,8 @@ Returns a list of `Team` objects.
```typescript -await client.ticketing.teams.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id" +await client.hris.fieldMapping.fieldMappingsRetrieve({ + excludeRemoteFieldMetadata: true }); ``` @@ -22921,7 +29984,7 @@ await client.ticketing.teams.list({
-**request:** `Merge.ticketing.TeamsListRequest` +**request:** `Merge.hris.FieldMappingsRetrieveRequest`
@@ -22929,7 +29992,7 @@ await client.ticketing.teams.list({
-**requestOptions:** `TeamsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -22941,7 +30004,7 @@ await client.ticketing.teams.list({
-
client.ticketing.teams.retrieve(id, { ...params }) -> Merge.Team +
client.hris.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse
@@ -22953,7 +30016,7 @@ await client.ticketing.teams.list({
-Returns a `Team` object with the given `id`. +Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -22968,9 +30031,14 @@ Returns a `Team` object with the given `id`.
```typescript -await client.ticketing.teams.retrieve("id", { - includeRemoteData: true, - includeShellData: true +await client.hris.fieldMapping.fieldMappingsCreate({ + excludeRemoteFieldMetadata: true, + targetFieldName: "example_target_field_name", + targetFieldDescription: "this is a example description of the target field", + remoteFieldTraversalPath: ["example_remote_field"], + remoteMethod: "GET", + remoteUrlPath: "/example-url-path", + commonModelName: "ExampleCommonModel" }); ``` @@ -22987,15 +30055,7 @@ await client.ticketing.teams.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.TeamsRetrieveRequest` +**request:** `Merge.hris.CreateFieldMappingRequest`
@@ -23003,7 +30063,7 @@ await client.ticketing.teams.retrieve("id", {
-**requestOptions:** `TeamsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -23015,8 +30075,7 @@ await client.ticketing.teams.retrieve("id", {
-## Ticketing Tickets -
client.ticketing.tickets.list({ ...params }) -> Merge.PaginatedTicketList +
client.hris.fieldMapping.fieldMappingsDestroy(field_mapping_id) -> Merge.FieldMappingInstanceResponse
@@ -23028,7 +30087,7 @@ await client.ticketing.teams.retrieve("id", {
-Returns a list of `Ticket` objects. +Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -23043,43 +30102,7 @@ Returns a list of `Ticket` objects.
```typescript -await client.ticketing.tickets.list({ - accountId: "account_id", - assigneeIds: "assignee_ids", - collectionIds: "collection_ids", - completedAfter: new Date("2024-01-15T09:30:00.000Z"), - completedBefore: new Date("2024-01-15T09:30:00.000Z"), - contactId: "contact_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - creatorId: "creator_id", - creatorIds: "creator_ids", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - dueAfter: new Date("2024-01-15T09:30:00.000Z"), - dueBefore: new Date("2024-01-15T09:30:00.000Z"), - expand: "account", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - name: "name", - pageSize: 1, - parentTicketId: "parent_ticket_id", - priority: "HIGH", - remoteCreatedAfter: new Date("2024-01-15T09:30:00.000Z"), - remoteCreatedBefore: new Date("2024-01-15T09:30:00.000Z"), - remoteFields: "priority", - remoteId: "remote_id", - remoteUpdatedAfter: new Date("2024-01-15T09:30:00.000Z"), - remoteUpdatedBefore: new Date("2024-01-15T09:30:00.000Z"), - showEnumOrigins: "priority", - status: "", - tags: "tags", - ticketType: "ticket_type", - ticketUrl: "ticket_url" -}); +await client.hris.fieldMapping.fieldMappingsDestroy("field_mapping_id"); ```
@@ -23095,7 +30118,7 @@ await client.ticketing.tickets.list({
-**request:** `Merge.ticketing.TicketsListRequest` +**field_mapping_id:** `string`
@@ -23103,7 +30126,7 @@ await client.ticketing.tickets.list({
-**requestOptions:** `TicketsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -23115,7 +30138,7 @@ await client.ticketing.tickets.list({
-
client.ticketing.tickets.create({ ...params }) -> Merge.TicketResponse +
client.hris.fieldMapping.fieldMappingsPartialUpdate(field_mapping_id, { ...params }) -> Merge.FieldMappingInstanceResponse
@@ -23127,7 +30150,7 @@ await client.ticketing.tickets.list({
-Creates a `Ticket` object with the given values. +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.
@@ -23142,10 +30165,8 @@ Creates a `Ticket` object with the given values.
```typescript -await client.ticketing.tickets.create({ - isDebugMode: true, - runAsync: true, - model: {} +await client.hris.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { + remoteDataIterationCount: 1 }); ``` @@ -23162,7 +30183,7 @@ await client.ticketing.tickets.create({
-**request:** `Merge.ticketing.TicketEndpointRequest` +**field_mapping_id:** `string`
@@ -23170,7 +30191,15 @@ await client.ticketing.tickets.create({
-**requestOptions:** `TicketsClient.RequestOptions` +**request:** `Merge.hris.PatchedEditFieldMappingRequest` + +
+
+ +
+
+ +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -23182,7 +30211,7 @@ await client.ticketing.tickets.create({
-
client.ticketing.tickets.retrieve(id, { ...params }) -> Merge.Ticket +
client.hris.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse
@@ -23194,7 +30223,7 @@ await client.ticketing.tickets.create({
-Returns a `Ticket` object with the given `id`. +Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/).
@@ -23209,13 +30238,9 @@ Returns a `Ticket` object with the given `id`.
```typescript -await client.ticketing.tickets.retrieve("id", { - expand: "account", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - remoteFields: "priority", - showEnumOrigins: "priority" +await client.hris.fieldMapping.remoteFieldsRetrieve({ + commonModels: "common_models", + includeExampleValues: "include_example_values" }); ``` @@ -23232,15 +30257,7 @@ await client.ticketing.tickets.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.TicketsRetrieveRequest` +**request:** `Merge.hris.RemoteFieldsRetrieveRequest`
@@ -23248,7 +30265,7 @@ await client.ticketing.tickets.retrieve("id", {
-**requestOptions:** `TicketsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -23260,7 +30277,7 @@ await client.ticketing.tickets.retrieve("id", {
-
client.ticketing.tickets.partialUpdate(id, { ...params }) -> Merge.TicketResponse +
client.hris.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse
@@ -23272,7 +30289,7 @@ await client.ticketing.tickets.retrieve("id", {
-Updates a `Ticket` object with the given `id`. +Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/).
@@ -23287,11 +30304,7 @@ Updates a `Ticket` object with the given `id`.
```typescript -await client.ticketing.tickets.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {} -}); +await client.hris.fieldMapping.targetFieldsRetrieve(); ```
@@ -23307,23 +30320,7 @@ await client.ticketing.tickets.partialUpdate("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.PatchedTicketEndpointRequest` - -
-
- -
-
- -**requestOptions:** `TicketsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -23335,7 +30332,8 @@ await client.ticketing.tickets.partialUpdate("id", {
-
client.ticketing.tickets.viewersList(ticket_id, { ...params }) -> Merge.PaginatedViewerList +## Hris GenerateKey +
client.hris.generateKey.create({ ...params }) -> Merge.RemoteKey
@@ -23347,7 +30345,7 @@ await client.ticketing.tickets.partialUpdate("id", {
-Returns a list of `Viewer` objects that point to a User id or Team id that is either an assignee or viewer on a `Ticket` with the given id. [Learn more.](https://help.merge.dev/en/articles/10333658-ticketing-access-control-list-acls) +Create a remote key.
@@ -23362,13 +30360,8 @@ Returns a list of `Viewer` objects that point to a User id or Team id that is ei
```typescript -await client.ticketing.tickets.viewersList("ticket_id", { - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "team", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - pageSize: 1 +await client.hris.generateKey.create({ + name: "Remote Deployment Key 1" }); ``` @@ -23385,15 +30378,7 @@ await client.ticketing.tickets.viewersList("ticket_id", {
-**ticket_id:** `string` - -
-
- -
-
- -**request:** `Merge.ticketing.TicketsViewersListRequest` +**request:** `Merge.hris.GenerateRemoteKeyRequest`
@@ -23401,7 +30386,7 @@ await client.ticketing.tickets.viewersList("ticket_id", {
-**requestOptions:** `TicketsClient.RequestOptions` +**requestOptions:** `GenerateKeyClient.RequestOptions`
@@ -23413,7 +30398,8 @@ await client.ticketing.tickets.viewersList("ticket_id", {
-
client.ticketing.tickets.metaPatchRetrieve(id) -> Merge.MetaResponse +## Hris Groups +
client.hris.groups.list({ ...params }) -> core.Page
@@ -23425,7 +30411,7 @@ await client.ticketing.tickets.viewersList("ticket_id", {
-Returns metadata for `Ticket` PATCHs. +Returns a list of `Group` objects.
@@ -23440,7 +30426,51 @@ Returns metadata for `Ticket` PATCHs.
```typescript -await client.ticketing.tickets.metaPatchRetrieve("id"); +const pageableResponse = await client.hris.groups.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonlyUsedAsTeam: "is_commonly_used_as_team", + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + names: "names", + pageSize: 1, + remoteFields: "type", + remoteId: "remote_id", + showEnumOrigins: "type", + types: "types" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.hris.groups.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonlyUsedAsTeam: "is_commonly_used_as_team", + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + names: "names", + pageSize: 1, + remoteFields: "type", + remoteId: "remote_id", + showEnumOrigins: "type", + types: "types" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -23456,7 +30486,7 @@ await client.ticketing.tickets.metaPatchRetrieve("id");
-**id:** `string` +**request:** `Merge.hris.GroupsListRequest`
@@ -23464,7 +30494,7 @@ await client.ticketing.tickets.metaPatchRetrieve("id");
-**requestOptions:** `TicketsClient.RequestOptions` +**requestOptions:** `GroupsClient.RequestOptions`
@@ -23476,7 +30506,7 @@ await client.ticketing.tickets.metaPatchRetrieve("id");
-
client.ticketing.tickets.metaPostRetrieve({ ...params }) -> Merge.MetaResponse +
client.hris.groups.retrieve(id, { ...params }) -> Merge.Group
@@ -23488,7 +30518,7 @@ await client.ticketing.tickets.metaPatchRetrieve("id");
-Returns metadata for `Ticket` POSTs. +Returns a `Group` object with the given `id`.
@@ -23503,9 +30533,11 @@ Returns metadata for `Ticket` POSTs.
```typescript -await client.ticketing.tickets.metaPostRetrieve({ - collectionId: "collection_id", - ticketType: "ticket_type" +await client.hris.groups.retrieve("id", { + includeRemoteData: true, + includeShellData: true, + remoteFields: "type", + showEnumOrigins: "type" }); ``` @@ -23522,7 +30554,7 @@ await client.ticketing.tickets.metaPostRetrieve({
-**request:** `Merge.ticketing.TicketsMetaPostRetrieveRequest` +**id:** `string`
@@ -23530,7 +30562,15 @@ await client.ticketing.tickets.metaPostRetrieve({
-**requestOptions:** `TicketsClient.RequestOptions` +**request:** `Merge.hris.GroupsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `GroupsClient.RequestOptions`
@@ -23542,7 +30582,7 @@ await client.ticketing.tickets.metaPostRetrieve({
-
client.ticketing.tickets.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.hris.groups.typesList({ ...params }) -> Merge.GroupsTypesListResponse
@@ -23554,7 +30594,7 @@ await client.ticketing.tickets.metaPostRetrieve({
-Returns a list of `RemoteFieldClass` objects. +Returns a list of distinct group type values from the Groups common model.
@@ -23569,15 +30609,9 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.ticketing.tickets.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - ids: "ids", +await client.hris.groups.typesList({ includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 + showEnumOrigins: "show_enum_origins" }); ``` @@ -23594,7 +30628,7 @@ await client.ticketing.tickets.remoteFieldClassesList({
-**request:** `Merge.ticketing.TicketsRemoteFieldClassesListRequest` +**request:** `Merge.hris.GroupsTypesListRequest`
@@ -23602,7 +30636,7 @@ await client.ticketing.tickets.remoteFieldClassesList({
-**requestOptions:** `TicketsClient.RequestOptions` +**requestOptions:** `GroupsClient.RequestOptions`
@@ -23614,8 +30648,8 @@ await client.ticketing.tickets.remoteFieldClassesList({
-## Ticketing Users -
client.ticketing.users.list({ ...params }) -> Merge.PaginatedUserList +## Hris Issues +
client.hris.issues.list({ ...params }) -> core.Page
@@ -23627,7 +30661,7 @@ await client.ticketing.tickets.remoteFieldClassesList({
-Returns a list of `User` objects. +Gets all issues for Organization.
@@ -23642,21 +30676,49 @@ Returns a list of `User` objects.
```typescript -await client.ticketing.users.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), +const pageableResponse = await client.hris.issues.list({ + accountToken: "account_token", cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - emailAddress: "email_address", - expand: "roles", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + endDate: "end_date", + endUserOrganizationName: "end_user_organization_name", + firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + includeMuted: "include_muted", + integrationName: "integration_name", + lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + linkedAccountId: "linked_account_id", pageSize: 1, - remoteId: "remote_id", - team: "team" + startDate: "start_date", + status: "ONGOING" }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.hris.issues.list({ + accountToken: "account_token", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endDate: "end_date", + endUserOrganizationName: "end_user_organization_name", + firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + includeMuted: "include_muted", + integrationName: "integration_name", + lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + linkedAccountId: "linked_account_id", + pageSize: 1, + startDate: "start_date", + status: "ONGOING" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -23672,7 +30734,7 @@ await client.ticketing.users.list({
-**request:** `Merge.ticketing.UsersListRequest` +**request:** `Merge.hris.IssuesListRequest`
@@ -23680,7 +30742,7 @@ await client.ticketing.users.list({
-**requestOptions:** `UsersClient.RequestOptions` +**requestOptions:** `IssuesClient.RequestOptions`
@@ -23692,7 +30754,7 @@ await client.ticketing.users.list({
-
client.ticketing.users.retrieve(id, { ...params }) -> Merge.User +
client.hris.issues.retrieve(id) -> Merge.Issue
@@ -23704,7 +30766,7 @@ await client.ticketing.users.list({
-Returns a `User` object with the given `id`. +Get a specific issue.
@@ -23719,11 +30781,7 @@ Returns a `User` object with the given `id`.
```typescript -await client.ticketing.users.retrieve("id", { - expand: "roles", - includeRemoteData: true, - includeShellData: true -}); +await client.hris.issues.retrieve("id"); ```
@@ -23747,71 +30805,7 @@ await client.ticketing.users.retrieve("id", {
-**request:** `Merge.ticketing.UsersRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `UsersClient.RequestOptions` - -
-
- -
- - - - -
- -## Ticketing WebhookReceivers -
client.ticketing.webhookReceivers.list() -> Merge.WebhookReceiver[] -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `WebhookReceiver` objects. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.ticketing.webhookReceivers.list(); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `WebhookReceiversClient.RequestOptions` +**requestOptions:** `IssuesClient.RequestOptions`
@@ -23823,7 +30817,8 @@ await client.ticketing.webhookReceivers.list();
-
client.ticketing.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver +## Hris LinkToken +
client.hris.linkToken.create({ ...params }) -> Merge.LinkToken
@@ -23835,7 +30830,7 @@ await client.ticketing.webhookReceivers.list();
-Creates a `WebhookReceiver` object with the given values. +Creates a link token to be used when linking a new end user. The link token expires after single use.
@@ -23850,9 +30845,11 @@ Creates a `WebhookReceiver` object with the given values.
```typescript -await client.ticketing.webhookReceivers.create({ - event: "event", - isActive: true +await client.hris.linkToken.create({ + endUserEmailAddress: "example@gmail.com", + endUserOrganizationName: "Test Organization", + endUserOriginId: "12345", + categories: ["hris", "ats"] }); ``` @@ -23869,7 +30866,7 @@ await client.ticketing.webhookReceivers.create({
-**request:** `Merge.ticketing.WebhookReceiverRequest` +**request:** `Merge.hris.EndUserDetailsRequest`
@@ -23877,7 +30874,7 @@ await client.ticketing.webhookReceivers.create({
-**requestOptions:** `WebhookReceiversClient.RequestOptions` +**requestOptions:** `LinkTokenClient.RequestOptions`
@@ -23889,8 +30886,8 @@ await client.ticketing.webhookReceivers.create({
-## Accounting AccountDetails -
client.accounting.accountDetails.retrieve() -> Merge.AccountDetails +## Hris LinkedAccounts +
client.hris.linkedAccounts.list({ ...params }) -> core.Page
@@ -23902,7 +30899,7 @@ await client.ticketing.webhookReceivers.create({
-Get details for a linked account. +List linked accounts for your organization.
@@ -23917,63 +30914,47 @@ Get details for a linked account.
```typescript -await client.accounting.accountDetails.retrieve(); - -``` -
-
- - - -#### ⚙️ Parameters - -
-
- -
-
- -**requestOptions:** `AccountDetailsClient.RequestOptions` - -
-
-
-
- - - - -
- -## Accounting AccountToken -
client.accounting.accountToken.retrieve(public_token) -> Merge.AccountToken -
-
- -#### 📝 Description - -
-
- -
-
- -Returns the account token for the end user with the provided public token. -
-
-
-
- -#### 🔌 Usage - -
-
+const pageableResponse = await client.hris.linkedAccounts.list({ + category: "accounting", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endUserEmailAddress: "end_user_email_address", + endUserOrganizationName: "end_user_organization_name", + endUserOriginId: "end_user_origin_id", + endUserOriginIds: "end_user_origin_ids", + id: "id", + ids: "ids", + includeDuplicates: true, + integrationName: "integration_name", + isTestAccount: "is_test_account", + pageSize: 1, + status: "status" +}); +for await (const item of pageableResponse) { + console.log(item); +} -
-
+// Or you can manually iterate page-by-page +let page = await client.hris.linkedAccounts.list({ + category: "accounting", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endUserEmailAddress: "end_user_email_address", + endUserOrganizationName: "end_user_organization_name", + endUserOriginId: "end_user_origin_id", + endUserOriginIds: "end_user_origin_ids", + id: "id", + ids: "ids", + includeDuplicates: true, + integrationName: "integration_name", + isTestAccount: "is_test_account", + pageSize: 1, + status: "status" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} -```typescript -await client.accounting.accountToken.retrieve("public_token"); +// You can also access the underlying response +const response = page.response; ```
@@ -23989,7 +30970,7 @@ await client.accounting.accountToken.retrieve("public_token");
-**public_token:** `string` +**request:** `Merge.hris.LinkedAccountsListRequest`
@@ -23997,7 +30978,7 @@ await client.accounting.accountToken.retrieve("public_token");
-**requestOptions:** `AccountTokenClient.RequestOptions` +**requestOptions:** `LinkedAccountsClient.RequestOptions`
@@ -24009,8 +30990,8 @@ await client.accounting.accountToken.retrieve("public_token");
-## Accounting AccountingPeriods -
client.accounting.accountingPeriods.list({ ...params }) -> Merge.PaginatedAccountingPeriodList +## Hris Locations +
client.hris.locations.list({ ...params }) -> core.Page
@@ -24022,7 +31003,7 @@ await client.accounting.accountToken.retrieve("public_token");
-Returns a list of `AccountingPeriod` objects. +Returns a list of `Location` objects.
@@ -24037,13 +31018,47 @@ Returns a list of `AccountingPeriod` objects.
```typescript -await client.accounting.accountingPeriods.list({ +const pageableResponse = await client.hris.locations.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", includeDeletedData: true, includeRemoteData: true, includeShellData: true, - pageSize: 1 + locationType: "HOME", + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "country", + remoteId: "remote_id", + showEnumOrigins: "country" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.hris.locations.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + locationType: "HOME", + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "country", + remoteId: "remote_id", + showEnumOrigins: "country" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -24059,7 +31074,7 @@ await client.accounting.accountingPeriods.list({
-**request:** `Merge.accounting.AccountingPeriodsListRequest` +**request:** `Merge.hris.LocationsListRequest`
@@ -24067,7 +31082,7 @@ await client.accounting.accountingPeriods.list({
-**requestOptions:** `AccountingPeriodsClient.RequestOptions` +**requestOptions:** `LocationsClient.RequestOptions`
@@ -24079,7 +31094,7 @@ await client.accounting.accountingPeriods.list({
-
client.accounting.accountingPeriods.retrieve(id, { ...params }) -> Merge.AccountingPeriod +
client.hris.locations.retrieve(id, { ...params }) -> Merge.Location
@@ -24091,7 +31106,7 @@ await client.accounting.accountingPeriods.list({
-Returns an `AccountingPeriod` object with the given `id`. +Returns a `Location` object with the given `id`.
@@ -24106,9 +31121,11 @@ Returns an `AccountingPeriod` object with the given `id`.
```typescript -await client.accounting.accountingPeriods.retrieve("id", { +await client.hris.locations.retrieve("id", { includeRemoteData: true, - includeShellData: true + includeShellData: true, + remoteFields: "country", + showEnumOrigins: "country" }); ``` @@ -24133,7 +31150,7 @@ await client.accounting.accountingPeriods.retrieve("id", {
-**request:** `Merge.accounting.AccountingPeriodsRetrieveRequest` +**request:** `Merge.hris.LocationsRetrieveRequest`
@@ -24141,7 +31158,7 @@ await client.accounting.accountingPeriods.retrieve("id", {
-**requestOptions:** `AccountingPeriodsClient.RequestOptions` +**requestOptions:** `LocationsClient.RequestOptions`
@@ -24153,8 +31170,8 @@ await client.accounting.accountingPeriods.retrieve("id", {
-## Accounting Accounts -
client.accounting.accounts.list({ ...params }) -> Merge.PaginatedAccountList +## Hris Passthrough +
client.hris.passthrough.create({ ...params }) -> Merge.RemoteResponse
@@ -24166,7 +31183,7 @@ await client.accounting.accountingPeriods.retrieve("id", {
-Returns a list of `Account` objects. +Pull data from an endpoint not currently supported by Merge.
@@ -24181,25 +31198,9 @@ Returns a list of `Account` objects.
```typescript -await client.accounting.accounts.list({ - accountType: "account_type", - classification: "", - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "company", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - name: "name", - pageSize: 1, - remoteFields: "classification", - remoteId: "remote_id", - showEnumOrigins: "classification", - status: "" +await client.hris.passthrough.create({ + method: "GET", + path: "/scooters" }); ``` @@ -24216,7 +31217,7 @@ await client.accounting.accounts.list({
-**request:** `Merge.accounting.AccountsListRequest` +**request:** `Merge.DataPassthroughRequest`
@@ -24224,7 +31225,7 @@ await client.accounting.accounts.list({
-**requestOptions:** `AccountsClient.RequestOptions` +**requestOptions:** `PassthroughClient.RequestOptions`
@@ -24236,7 +31237,8 @@ await client.accounting.accounts.list({
-
client.accounting.accounts.create({ ...params }) -> Merge.AccountResponse +## Hris PayGroups +
client.hris.payGroups.list({ ...params }) -> core.Page
@@ -24248,7 +31250,7 @@ await client.accounting.accounts.list({
-Creates an `Account` object with the given values. +Returns a list of `PayGroup` objects.
@@ -24263,11 +31265,41 @@ Creates an `Account` object with the given values.
```typescript -await client.accounting.accounts.create({ - isDebugMode: true, - runAsync: true, - model: {} +const pageableResponse = await client.hris.payGroups.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.hris.payGroups.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -24283,7 +31315,7 @@ await client.accounting.accounts.create({
-**request:** `Merge.accounting.AccountEndpointRequest` +**request:** `Merge.hris.PayGroupsListRequest`
@@ -24291,7 +31323,7 @@ await client.accounting.accounts.create({
-**requestOptions:** `AccountsClient.RequestOptions` +**requestOptions:** `PayGroupsClient.RequestOptions`
@@ -24303,7 +31335,7 @@ await client.accounting.accounts.create({
-
client.accounting.accounts.retrieve(id, { ...params }) -> Merge.Account +
client.hris.payGroups.retrieve(id, { ...params }) -> Merge.PayGroup
@@ -24315,7 +31347,7 @@ await client.accounting.accounts.create({
-Returns an `Account` object with the given `id`. +Returns a `PayGroup` object with the given `id`.
@@ -24330,12 +31362,9 @@ Returns an `Account` object with the given `id`.
```typescript -await client.accounting.accounts.retrieve("id", { - expand: "company", +await client.hris.payGroups.retrieve("id", { includeRemoteData: true, - includeShellData: true, - remoteFields: "classification", - showEnumOrigins: "classification" + includeShellData: true }); ``` @@ -24360,7 +31389,7 @@ await client.accounting.accounts.retrieve("id", {
-**request:** `Merge.accounting.AccountsRetrieveRequest` +**request:** `Merge.hris.PayGroupsRetrieveRequest`
@@ -24368,7 +31397,7 @@ await client.accounting.accounts.retrieve("id", {
-**requestOptions:** `AccountsClient.RequestOptions` +**requestOptions:** `PayGroupsClient.RequestOptions`
@@ -24380,7 +31409,8 @@ await client.accounting.accounts.retrieve("id", {
-
client.accounting.accounts.metaPostRetrieve() -> Merge.MetaResponse +## Hris PayrollRuns +
client.hris.payrollRuns.list({ ...params }) -> core.Page
@@ -24392,7 +31422,7 @@ await client.accounting.accounts.retrieve("id", {
-Returns metadata for `Account` POSTs. +Returns a list of `PayrollRun` objects.
@@ -24407,7 +31437,55 @@ Returns metadata for `Account` POSTs.
```typescript -await client.accounting.accounts.metaPostRetrieve(); +const pageableResponse = await client.hris.payrollRuns.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endedAfter: new Date("2024-01-15T09:30:00.000Z"), + endedBefore: new Date("2024-01-15T09:30:00.000Z"), + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "run_state", + remoteId: "remote_id", + runType: "CORRECTION", + showEnumOrigins: "run_state", + startedAfter: new Date("2024-01-15T09:30:00.000Z"), + startedBefore: new Date("2024-01-15T09:30:00.000Z") +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.hris.payrollRuns.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endedAfter: new Date("2024-01-15T09:30:00.000Z"), + endedBefore: new Date("2024-01-15T09:30:00.000Z"), + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "run_state", + remoteId: "remote_id", + runType: "CORRECTION", + showEnumOrigins: "run_state", + startedAfter: new Date("2024-01-15T09:30:00.000Z"), + startedBefore: new Date("2024-01-15T09:30:00.000Z") +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -24423,7 +31501,15 @@ await client.accounting.accounts.metaPostRetrieve();
-**requestOptions:** `AccountsClient.RequestOptions` +**request:** `Merge.hris.PayrollRunsListRequest` + +
+
+ +
+
+ +**requestOptions:** `PayrollRunsClient.RequestOptions`
@@ -24435,8 +31521,7 @@ await client.accounting.accounts.metaPostRetrieve();
-## Accounting Addresses -
client.accounting.addresses.retrieve(id, { ...params }) -> Merge.Address +
client.hris.payrollRuns.retrieve(id, { ...params }) -> Merge.PayrollRun
@@ -24448,7 +31533,7 @@ await client.accounting.accounts.metaPostRetrieve();
-Returns an `Address` object with the given `id`. +Returns a `PayrollRun` object with the given `id`.
@@ -24463,11 +31548,11 @@ Returns an `Address` object with the given `id`.
```typescript -await client.accounting.addresses.retrieve("id", { +await client.hris.payrollRuns.retrieve("id", { includeRemoteData: true, includeShellData: true, - remoteFields: "type", - showEnumOrigins: "type" + remoteFields: "run_state", + showEnumOrigins: "run_state" }); ``` @@ -24492,7 +31577,7 @@ await client.accounting.addresses.retrieve("id", {
-**request:** `Merge.accounting.AddressesRetrieveRequest` +**request:** `Merge.hris.PayrollRunsRetrieveRequest`
@@ -24500,7 +31585,7 @@ await client.accounting.addresses.retrieve("id", {
-**requestOptions:** `AddressesClient.RequestOptions` +**requestOptions:** `PayrollRunsClient.RequestOptions`
@@ -24512,8 +31597,8 @@ await client.accounting.addresses.retrieve("id", {
-## Accounting AsyncPassthrough -
client.accounting.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept +## Hris RegenerateKey +
client.hris.regenerateKey.create({ ...params }) -> Merge.RemoteKey
@@ -24525,7 +31610,7 @@ await client.accounting.addresses.retrieve("id", {
-Asynchronously pull data from an endpoint not currently supported by Merge. +Exchange remote keys.
@@ -24540,9 +31625,8 @@ Asynchronously pull data from an endpoint not currently supported by Merge.
```typescript -await client.accounting.asyncPassthrough.create({ - method: "GET", - path: "/scooters" +await client.hris.regenerateKey.create({ + name: "Remote Deployment Key 1" }); ``` @@ -24559,7 +31643,7 @@ await client.accounting.asyncPassthrough.create({
-**request:** `Merge.DataPassthroughRequest` +**request:** `Merge.hris.RemoteKeyForRegenerationRequest`
@@ -24567,7 +31651,7 @@ await client.accounting.asyncPassthrough.create({
-**requestOptions:** `AsyncPassthroughClient.RequestOptions` +**requestOptions:** `RegenerateKeyClient.RequestOptions`
@@ -24579,7 +31663,8 @@ await client.accounting.asyncPassthrough.create({
-
client.accounting.asyncPassthrough.retrieve(async_passthrough_receipt_id) -> Merge.AsyncPassthroughRetrieveResponse +## Hris SyncStatus +
client.hris.syncStatus.list({ ...params }) -> core.Page
@@ -24591,7 +31676,7 @@ await client.accounting.asyncPassthrough.create({
-Retrieves data from earlier async-passthrough POST request +Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses).
@@ -24606,7 +31691,25 @@ Retrieves data from earlier async-passthrough POST request
```typescript -await client.accounting.asyncPassthrough.retrieve("async_passthrough_receipt_id"); +const pageableResponse = await client.hris.syncStatus.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.hris.syncStatus.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + pageSize: 1 +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -24622,7 +31725,7 @@ await client.accounting.asyncPassthrough.retrieve("async_passthrough_receipt_id"
-**async_passthrough_receipt_id:** `string` +**request:** `Merge.hris.SyncStatusListRequest`
@@ -24630,7 +31733,7 @@ await client.accounting.asyncPassthrough.retrieve("async_passthrough_receipt_id"
-**requestOptions:** `AsyncPassthroughClient.RequestOptions` +**requestOptions:** `SyncStatusClient.RequestOptions`
@@ -24642,8 +31745,8 @@ await client.accounting.asyncPassthrough.retrieve("async_passthrough_receipt_id"
-## Accounting AsyncTasks -
client.accounting.asyncTasks.retrieve(id) -> Merge.AsyncPostTask +## Hris ForceResync +
client.hris.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[]
@@ -24655,7 +31758,7 @@ await client.accounting.asyncPassthrough.retrieve("async_passthrough_receipt_id"
-Returns an `AsyncPostTask` object with the given `id`. +Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers.
@@ -24670,7 +31773,7 @@ Returns an `AsyncPostTask` object with the given `id`.
```typescript -await client.accounting.asyncTasks.retrieve("id"); +await client.hris.forceResync.syncStatusResyncCreate(); ```
@@ -24686,15 +31789,7 @@ await client.accounting.asyncTasks.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**requestOptions:** `AsyncTasksClient.RequestOptions` +**requestOptions:** `ForceResyncClient.RequestOptions`
@@ -24706,8 +31801,8 @@ await client.accounting.asyncTasks.retrieve("id");
-## Accounting Attachments -
client.accounting.attachments.list({ ...params }) -> Merge.PaginatedAccountingAttachmentList +## Hris Teams +
client.hris.teams.list({ ...params }) -> core.Page
@@ -24719,7 +31814,7 @@ await client.accounting.asyncTasks.retrieve("id");
-Returns a list of `AccountingAttachment` objects. +Returns a list of `Team` objects.
@@ -24734,8 +31829,25 @@ Returns a list of `AccountingAttachment` objects.
```typescript -await client.accounting.attachments.list({ - companyId: "company_id", +const pageableResponse = await client.hris.teams.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + parentTeamId: "parent_team_id", + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.hris.teams.list({ createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", @@ -24745,8 +31857,15 @@ await client.accounting.attachments.list({ modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), pageSize: 1, + parentTeamId: "parent_team_id", remoteId: "remote_id" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -24762,7 +31881,7 @@ await client.accounting.attachments.list({
-**request:** `Merge.accounting.AttachmentsListRequest` +**request:** `Merge.hris.TeamsListRequest`
@@ -24770,7 +31889,7 @@ await client.accounting.attachments.list({
-**requestOptions:** `AttachmentsClient.RequestOptions` +**requestOptions:** `TeamsClient.RequestOptions`
@@ -24782,7 +31901,7 @@ await client.accounting.attachments.list({
-
client.accounting.attachments.create({ ...params }) -> Merge.AccountingAttachmentResponse +
client.hris.teams.retrieve(id, { ...params }) -> Merge.Team
@@ -24794,7 +31913,7 @@ await client.accounting.attachments.list({
-Creates an `AccountingAttachment` object with the given values. +Returns a `Team` object with the given `id`.
@@ -24809,10 +31928,9 @@ Creates an `AccountingAttachment` object with the given values.
```typescript -await client.accounting.attachments.create({ - isDebugMode: true, - runAsync: true, - model: {} +await client.hris.teams.retrieve("id", { + includeRemoteData: true, + includeShellData: true }); ``` @@ -24829,7 +31947,15 @@ await client.accounting.attachments.create({
-**request:** `Merge.accounting.AccountingAttachmentEndpointRequest` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.hris.TeamsRetrieveRequest`
@@ -24837,7 +31963,7 @@ await client.accounting.attachments.create({
-**requestOptions:** `AttachmentsClient.RequestOptions` +**requestOptions:** `TeamsClient.RequestOptions`
@@ -24849,7 +31975,8 @@ await client.accounting.attachments.create({
-
client.accounting.attachments.retrieve(id, { ...params }) -> Merge.AccountingAttachment +## Hris TimeOff +
client.hris.timeOff.list({ ...params }) -> core.Page
@@ -24861,7 +31988,7 @@ await client.accounting.attachments.create({
-Returns an `AccountingAttachment` object with the given `id`. +Returns a list of `TimeOff` objects.
@@ -24876,10 +32003,61 @@ Returns an `AccountingAttachment` object with the given `id`.
```typescript -await client.accounting.attachments.retrieve("id", { +const pageableResponse = await client.hris.timeOff.list({ + approverId: "approver_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + employeeId: "employee_id", + endedAfter: new Date("2024-01-15T09:30:00.000Z"), + endedBefore: new Date("2024-01-15T09:30:00.000Z"), + includeDeletedData: true, includeRemoteData: true, - includeShellData: true + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "request_type", + remoteId: "remote_id", + requestType: "BEREAVEMENT", + showEnumOrigins: "request_type", + startedAfter: new Date("2024-01-15T09:30:00.000Z"), + startedBefore: new Date("2024-01-15T09:30:00.000Z"), + status: "APPROVED" }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.hris.timeOff.list({ + approverId: "approver_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + employeeId: "employee_id", + endedAfter: new Date("2024-01-15T09:30:00.000Z"), + endedBefore: new Date("2024-01-15T09:30:00.000Z"), + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "request_type", + remoteId: "remote_id", + requestType: "BEREAVEMENT", + showEnumOrigins: "request_type", + startedAfter: new Date("2024-01-15T09:30:00.000Z"), + startedBefore: new Date("2024-01-15T09:30:00.000Z"), + status: "APPROVED" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -24895,15 +32073,7 @@ await client.accounting.attachments.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.AttachmentsRetrieveRequest` +**request:** `Merge.hris.TimeOffListRequest`
@@ -24911,7 +32081,7 @@ await client.accounting.attachments.retrieve("id", {
-**requestOptions:** `AttachmentsClient.RequestOptions` +**requestOptions:** `TimeOffClient.RequestOptions`
@@ -24923,7 +32093,7 @@ await client.accounting.attachments.retrieve("id", {
-
client.accounting.attachments.metaPostRetrieve() -> Merge.MetaResponse +
client.hris.timeOff.create({ ...params }) -> Merge.TimeOffResponse
@@ -24935,7 +32105,7 @@ await client.accounting.attachments.retrieve("id", {
-Returns metadata for `AccountingAttachment` POSTs. +Creates a `TimeOff` object with the given values.
@@ -24950,7 +32120,11 @@ Returns metadata for `AccountingAttachment` POSTs.
```typescript -await client.accounting.attachments.metaPostRetrieve(); +await client.hris.timeOff.create({ + isDebugMode: true, + runAsync: true, + model: {} +}); ```
@@ -24966,7 +32140,15 @@ await client.accounting.attachments.metaPostRetrieve();
-**requestOptions:** `AttachmentsClient.RequestOptions` +**request:** `Merge.hris.TimeOffEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `TimeOffClient.RequestOptions`
@@ -24978,8 +32160,7 @@ await client.accounting.attachments.metaPostRetrieve();
-## Accounting AuditTrail -
client.accounting.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList +
client.hris.timeOff.retrieve(id, { ...params }) -> Merge.TimeOff
@@ -24991,7 +32172,7 @@ await client.accounting.attachments.metaPostRetrieve();
-Gets a list of audit trail events. +Returns a `TimeOff` object with the given `id`.
@@ -25006,13 +32187,11 @@ Gets a list of audit trail events.
```typescript -await client.accounting.auditTrail.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - eventType: "event_type", - pageSize: 1, - startDate: "start_date", - userEmail: "user_email" +await client.hris.timeOff.retrieve("id", { + includeRemoteData: true, + includeShellData: true, + remoteFields: "request_type", + showEnumOrigins: "request_type" }); ``` @@ -25029,7 +32208,7 @@ await client.accounting.auditTrail.list({
-**request:** `Merge.accounting.AuditTrailListRequest` +**id:** `string`
@@ -25037,7 +32216,15 @@ await client.accounting.auditTrail.list({
-**requestOptions:** `AuditTrailClient.RequestOptions` +**request:** `Merge.hris.TimeOffRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `TimeOffClient.RequestOptions`
@@ -25049,8 +32236,7 @@ await client.accounting.auditTrail.list({
-## Accounting AvailableActions -
client.accounting.availableActions.retrieve() -> Merge.AvailableActions +
client.hris.timeOff.metaPostRetrieve() -> Merge.MetaResponse
@@ -25062,7 +32248,7 @@ await client.accounting.auditTrail.list({
-Returns a list of models and actions available for an account. +Returns metadata for `TimeOff` POSTs.
@@ -25077,7 +32263,7 @@ Returns a list of models and actions available for an account.
```typescript -await client.accounting.availableActions.retrieve(); +await client.hris.timeOff.metaPostRetrieve(); ```
@@ -25093,7 +32279,7 @@ await client.accounting.availableActions.retrieve();
-**requestOptions:** `AvailableActionsClient.RequestOptions` +**requestOptions:** `TimeOffClient.RequestOptions`
@@ -25105,8 +32291,8 @@ await client.accounting.availableActions.retrieve();
-## Accounting BalanceSheets -
client.accounting.balanceSheets.list({ ...params }) -> Merge.PaginatedBalanceSheetList +## Hris TimeOffBalances +
client.hris.timeOffBalances.list({ ...params }) -> core.Page
@@ -25118,7 +32304,7 @@ await client.accounting.availableActions.retrieve();
-Returns a list of `BalanceSheet` objects. +Returns a list of `TimeOffBalance` objects.
@@ -25133,20 +32319,49 @@ Returns a list of `BalanceSheet` objects.
```typescript -await client.accounting.balanceSheets.list({ - companyId: "company_id", +const pageableResponse = await client.hris.timeOffBalances.list({ createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "company", + employeeId: "employee_id", includeDeletedData: true, includeRemoteData: true, includeShellData: true, modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), pageSize: 1, - remoteId: "remote_id" + policyType: "BEREAVEMENT", + remoteFields: "policy_type", + remoteId: "remote_id", + showEnumOrigins: "policy_type" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.hris.timeOffBalances.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + employeeId: "employee_id", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + policyType: "BEREAVEMENT", + remoteFields: "policy_type", + remoteId: "remote_id", + showEnumOrigins: "policy_type" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -25162,7 +32377,7 @@ await client.accounting.balanceSheets.list({
-**request:** `Merge.accounting.BalanceSheetsListRequest` +**request:** `Merge.hris.TimeOffBalancesListRequest`
@@ -25170,7 +32385,7 @@ await client.accounting.balanceSheets.list({
-**requestOptions:** `BalanceSheetsClient.RequestOptions` +**requestOptions:** `TimeOffBalancesClient.RequestOptions`
@@ -25182,7 +32397,7 @@ await client.accounting.balanceSheets.list({
-
client.accounting.balanceSheets.retrieve(id, { ...params }) -> Merge.BalanceSheet +
client.hris.timeOffBalances.retrieve(id, { ...params }) -> Merge.TimeOffBalance
@@ -25194,7 +32409,7 @@ await client.accounting.balanceSheets.list({
-Returns a `BalanceSheet` object with the given `id`. +Returns a `TimeOffBalance` object with the given `id`.
@@ -25209,10 +32424,11 @@ Returns a `BalanceSheet` object with the given `id`.
```typescript -await client.accounting.balanceSheets.retrieve("id", { - expand: "company", +await client.hris.timeOffBalances.retrieve("id", { includeRemoteData: true, - includeShellData: true + includeShellData: true, + remoteFields: "policy_type", + showEnumOrigins: "policy_type" }); ``` @@ -25237,7 +32453,7 @@ await client.accounting.balanceSheets.retrieve("id", {
-**request:** `Merge.accounting.BalanceSheetsRetrieveRequest` +**request:** `Merge.hris.TimeOffBalancesRetrieveRequest`
@@ -25245,7 +32461,7 @@ await client.accounting.balanceSheets.retrieve("id", {
-**requestOptions:** `BalanceSheetsClient.RequestOptions` +**requestOptions:** `TimeOffBalancesClient.RequestOptions`
@@ -25257,8 +32473,8 @@ await client.accounting.balanceSheets.retrieve("id", {
-## Accounting BankFeedAccounts -
client.accounting.bankFeedAccounts.list({ ...params }) -> Merge.PaginatedBankFeedAccountList +## Hris TimesheetEntries +
client.hris.timesheetEntries.list({ ...params }) -> core.Page
@@ -25270,7 +32486,7 @@ await client.accounting.balanceSheets.retrieve("id", {
-Returns a list of `BankFeedAccount` objects. +Returns a list of `TimesheetEntry` objects.
@@ -25285,13 +32501,53 @@ Returns a list of `BankFeedAccount` objects.
```typescript -await client.accounting.bankFeedAccounts.list({ +const pageableResponse = await client.hris.timesheetEntries.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + employeeId: "employee_id", + endedAfter: new Date("2024-01-15T09:30:00.000Z"), + endedBefore: new Date("2024-01-15T09:30:00.000Z"), includeDeletedData: true, includeRemoteData: true, includeShellData: true, - pageSize: 1 + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + orderBy: "-start_time", + pageSize: 1, + remoteId: "remote_id", + startedAfter: new Date("2024-01-15T09:30:00.000Z"), + startedBefore: new Date("2024-01-15T09:30:00.000Z") +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.hris.timesheetEntries.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + employeeId: "employee_id", + endedAfter: new Date("2024-01-15T09:30:00.000Z"), + endedBefore: new Date("2024-01-15T09:30:00.000Z"), + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + orderBy: "-start_time", + pageSize: 1, + remoteId: "remote_id", + startedAfter: new Date("2024-01-15T09:30:00.000Z"), + startedBefore: new Date("2024-01-15T09:30:00.000Z") }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -25307,7 +32563,7 @@ await client.accounting.bankFeedAccounts.list({
-**request:** `Merge.accounting.BankFeedAccountsListRequest` +**request:** `Merge.hris.TimesheetEntriesListRequest`
@@ -25315,7 +32571,7 @@ await client.accounting.bankFeedAccounts.list({
-**requestOptions:** `BankFeedAccountsClient.RequestOptions` +**requestOptions:** `TimesheetEntriesClient.RequestOptions`
@@ -25327,7 +32583,7 @@ await client.accounting.bankFeedAccounts.list({
-
client.accounting.bankFeedAccounts.create({ ...params }) -> Merge.BankFeedAccountResponse +
client.hris.timesheetEntries.create({ ...params }) -> Merge.TimesheetEntryResponse
@@ -25339,7 +32595,7 @@ await client.accounting.bankFeedAccounts.list({
-Creates a `BankFeedAccount` object with the given values. +Creates a `TimesheetEntry` object with the given values.
@@ -25354,7 +32610,7 @@ Creates a `BankFeedAccount` object with the given values.
```typescript -await client.accounting.bankFeedAccounts.create({ +await client.hris.timesheetEntries.create({ isDebugMode: true, runAsync: true, model: {} @@ -25374,7 +32630,7 @@ await client.accounting.bankFeedAccounts.create({
-**request:** `Merge.accounting.BankFeedAccountEndpointRequest` +**request:** `Merge.hris.TimesheetEntryEndpointRequest`
@@ -25382,7 +32638,7 @@ await client.accounting.bankFeedAccounts.create({
-**requestOptions:** `BankFeedAccountsClient.RequestOptions` +**requestOptions:** `TimesheetEntriesClient.RequestOptions`
@@ -25394,7 +32650,7 @@ await client.accounting.bankFeedAccounts.create({
-
client.accounting.bankFeedAccounts.retrieve(id, { ...params }) -> Merge.BankFeedAccount +
client.hris.timesheetEntries.retrieve(id, { ...params }) -> Merge.TimesheetEntry
@@ -25406,7 +32662,7 @@ await client.accounting.bankFeedAccounts.create({
-Returns a `BankFeedAccount` object with the given `id`. +Returns a `TimesheetEntry` object with the given `id`.
@@ -25421,7 +32677,7 @@ Returns a `BankFeedAccount` object with the given `id`.
```typescript -await client.accounting.bankFeedAccounts.retrieve("id", { +await client.hris.timesheetEntries.retrieve("id", { includeRemoteData: true, includeShellData: true }); @@ -25448,7 +32704,7 @@ await client.accounting.bankFeedAccounts.retrieve("id", {
-**request:** `Merge.accounting.BankFeedAccountsRetrieveRequest` +**request:** `Merge.hris.TimesheetEntriesRetrieveRequest`
@@ -25456,7 +32712,7 @@ await client.accounting.bankFeedAccounts.retrieve("id", {
-**requestOptions:** `BankFeedAccountsClient.RequestOptions` +**requestOptions:** `TimesheetEntriesClient.RequestOptions`
@@ -25468,7 +32724,7 @@ await client.accounting.bankFeedAccounts.retrieve("id", {
-
client.accounting.bankFeedAccounts.metaPostRetrieve() -> Merge.MetaResponse +
client.hris.timesheetEntries.metaPostRetrieve() -> Merge.MetaResponse
@@ -25480,7 +32736,7 @@ await client.accounting.bankFeedAccounts.retrieve("id", {
-Returns metadata for `BankFeedAccount` POSTs. +Returns metadata for `TimesheetEntry` POSTs.
@@ -25495,7 +32751,7 @@ Returns metadata for `BankFeedAccount` POSTs.
```typescript -await client.accounting.bankFeedAccounts.metaPostRetrieve(); +await client.hris.timesheetEntries.metaPostRetrieve(); ```
@@ -25511,7 +32767,7 @@ await client.accounting.bankFeedAccounts.metaPostRetrieve();
-**requestOptions:** `BankFeedAccountsClient.RequestOptions` +**requestOptions:** `TimesheetEntriesClient.RequestOptions`
@@ -25523,8 +32779,8 @@ await client.accounting.bankFeedAccounts.metaPostRetrieve();
-## Accounting BankFeedTransactions -
client.accounting.bankFeedTransactions.list({ ...params }) -> Merge.PaginatedBankFeedTransactionList +## Hris WebhookReceivers +
client.hris.webhookReceivers.list() -> Merge.WebhookReceiver[]
@@ -25536,7 +32792,7 @@ await client.accounting.bankFeedAccounts.metaPostRetrieve();
-Returns a list of `BankFeedTransaction` objects. +Returns a list of `WebhookReceiver` objects.
@@ -25551,20 +32807,7 @@ Returns a list of `BankFeedTransaction` objects.
```typescript -await client.accounting.bankFeedTransactions.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "bank_feed_account", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isProcessed: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id" -}); +await client.hris.webhookReceivers.list(); ```
@@ -25580,15 +32823,7 @@ await client.accounting.bankFeedTransactions.list({
-**request:** `Merge.accounting.BankFeedTransactionsListRequest` - -
-
- -
-
- -**requestOptions:** `BankFeedTransactionsClient.RequestOptions` +**requestOptions:** `WebhookReceiversClient.RequestOptions`
@@ -25600,7 +32835,7 @@ await client.accounting.bankFeedTransactions.list({
-
client.accounting.bankFeedTransactions.create({ ...params }) -> Merge.BankFeedTransactionResponse +
client.hris.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver
@@ -25612,7 +32847,7 @@ await client.accounting.bankFeedTransactions.list({
-Creates a `BankFeedTransaction` object with the given values. +Creates a `WebhookReceiver` object with the given values.
@@ -25627,10 +32862,9 @@ Creates a `BankFeedTransaction` object with the given values.
```typescript -await client.accounting.bankFeedTransactions.create({ - isDebugMode: true, - runAsync: true, - model: {} +await client.hris.webhookReceivers.create({ + event: "event", + isActive: true }); ``` @@ -25647,7 +32881,7 @@ await client.accounting.bankFeedTransactions.create({
-**request:** `Merge.accounting.BankFeedTransactionEndpointRequest` +**request:** `Merge.hris.WebhookReceiverRequest`
@@ -25655,7 +32889,7 @@ await client.accounting.bankFeedTransactions.create({
-**requestOptions:** `BankFeedTransactionsClient.RequestOptions` +**requestOptions:** `WebhookReceiversClient.RequestOptions`
@@ -25667,7 +32901,8 @@ await client.accounting.bankFeedTransactions.create({
-
client.accounting.bankFeedTransactions.retrieve(id, { ...params }) -> Merge.BankFeedTransaction +## Ticketing AccountDetails +
client.ticketing.accountDetails.retrieve() -> Merge.AccountDetails
@@ -25679,7 +32914,7 @@ await client.accounting.bankFeedTransactions.create({
-Returns a `BankFeedTransaction` object with the given `id`. +Get details for a linked account.
@@ -25694,11 +32929,7 @@ Returns a `BankFeedTransaction` object with the given `id`.
```typescript -await client.accounting.bankFeedTransactions.retrieve("id", { - expand: "bank_feed_account", - includeRemoteData: true, - includeShellData: true -}); +await client.ticketing.accountDetails.retrieve(); ```
@@ -25714,15 +32945,63 @@ await client.accounting.bankFeedTransactions.retrieve("id", {
-**id:** `string` +**requestOptions:** `AccountDetailsClient.RequestOptions`
+ +
+ + + + +
+ +## Ticketing AccountToken +
client.ticketing.accountToken.retrieve(public_token) -> Merge.AccountToken +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns the account token for the end user with the provided public token. +
+
+
+
+ +#### 🔌 Usage
-**request:** `Merge.accounting.BankFeedTransactionsRetrieveRequest` +
+
+ +```typescript +await client.ticketing.accountToken.retrieve("public_token"); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**public_token:** `string`
@@ -25730,7 +33009,7 @@ await client.accounting.bankFeedTransactions.retrieve("id", {
-**requestOptions:** `BankFeedTransactionsClient.RequestOptions` +**requestOptions:** `AccountTokenClient.RequestOptions`
@@ -25742,7 +33021,7 @@ await client.accounting.bankFeedTransactions.retrieve("id", {
-
client.accounting.bankFeedTransactions.metaPostRetrieve() -> Merge.MetaResponse +
client.ticketing.accountToken.regenerateCreate() -> Merge.RegenerateAccountToken
@@ -25754,7 +33033,7 @@ await client.accounting.bankFeedTransactions.retrieve("id", {
-Returns metadata for `BankFeedTransaction` POSTs. +Exchange Linked Account account tokens.
@@ -25769,7 +33048,7 @@ Returns metadata for `BankFeedTransaction` POSTs.
```typescript -await client.accounting.bankFeedTransactions.metaPostRetrieve(); +await client.ticketing.accountToken.regenerateCreate(); ```
@@ -25785,7 +33064,7 @@ await client.accounting.bankFeedTransactions.metaPostRetrieve();
-**requestOptions:** `BankFeedTransactionsClient.RequestOptions` +**requestOptions:** `AccountTokenClient.RequestOptions`
@@ -25797,8 +33076,8 @@ await client.accounting.bankFeedTransactions.metaPostRetrieve();
-## Accounting CashFlowStatements -
client.accounting.cashFlowStatements.list({ ...params }) -> Merge.PaginatedCashFlowStatementList +## Ticketing Accounts +
client.ticketing.accounts.list({ ...params }) -> core.Page
@@ -25810,7 +33089,7 @@ await client.accounting.bankFeedTransactions.metaPostRetrieve();
-Returns a list of `CashFlowStatement` objects. +Returns a list of `Account` objects.
@@ -25825,12 +33104,10 @@ Returns a list of `CashFlowStatement` objects.
```typescript -await client.accounting.cashFlowStatements.list({ - companyId: "company_id", +const pageableResponse = await client.ticketing.accounts.list({ createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "company", includeDeletedData: true, includeRemoteData: true, includeShellData: true, @@ -25839,6 +33116,29 @@ await client.accounting.cashFlowStatements.list({ pageSize: 1, remoteId: "remote_id" }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ticketing.accounts.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -25854,7 +33154,7 @@ await client.accounting.cashFlowStatements.list({
-**request:** `Merge.accounting.CashFlowStatementsListRequest` +**request:** `Merge.ticketing.AccountsListRequest`
@@ -25862,7 +33162,7 @@ await client.accounting.cashFlowStatements.list({
-**requestOptions:** `CashFlowStatementsClient.RequestOptions` +**requestOptions:** `AccountsClient.RequestOptions`
@@ -25874,7 +33174,7 @@ await client.accounting.cashFlowStatements.list({
-
client.accounting.cashFlowStatements.retrieve(id, { ...params }) -> Merge.CashFlowStatement +
client.ticketing.accounts.retrieve(id, { ...params }) -> Merge.Account
@@ -25886,7 +33186,7 @@ await client.accounting.cashFlowStatements.list({
-Returns a `CashFlowStatement` object with the given `id`. +Returns an `Account` object with the given `id`.
@@ -25901,8 +33201,7 @@ Returns a `CashFlowStatement` object with the given `id`.
```typescript -await client.accounting.cashFlowStatements.retrieve("id", { - expand: "company", +await client.ticketing.accounts.retrieve("id", { includeRemoteData: true, includeShellData: true }); @@ -25929,7 +33228,7 @@ await client.accounting.cashFlowStatements.retrieve("id", {
-**request:** `Merge.accounting.CashFlowStatementsRetrieveRequest` +**request:** `Merge.ticketing.AccountsRetrieveRequest`
@@ -25937,7 +33236,7 @@ await client.accounting.cashFlowStatements.retrieve("id", {
-**requestOptions:** `CashFlowStatementsClient.RequestOptions` +**requestOptions:** `AccountsClient.RequestOptions`
@@ -25949,8 +33248,8 @@ await client.accounting.cashFlowStatements.retrieve("id", {
-## Accounting CompanyInfo -
client.accounting.companyInfo.list({ ...params }) -> Merge.PaginatedCompanyInfoList +## Ticketing AsyncPassthrough +
client.ticketing.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept
@@ -25962,7 +33261,7 @@ await client.accounting.cashFlowStatements.retrieve("id", {
-Returns a list of `CompanyInfo` objects. +Asynchronously pull data from an endpoint not currently supported by Merge.
@@ -25977,18 +33276,9 @@ Returns a list of `CompanyInfo` objects.
```typescript -await client.accounting.companyInfo.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "addresses", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id" +await client.ticketing.asyncPassthrough.create({ + method: "GET", + path: "/scooters" }); ``` @@ -26005,7 +33295,7 @@ await client.accounting.companyInfo.list({
-**request:** `Merge.accounting.CompanyInfoListRequest` +**request:** `Merge.DataPassthroughRequest`
@@ -26013,7 +33303,7 @@ await client.accounting.companyInfo.list({
-**requestOptions:** `CompanyInfoClient.RequestOptions` +**requestOptions:** `AsyncPassthroughClient.RequestOptions`
@@ -26025,7 +33315,7 @@ await client.accounting.companyInfo.list({
-
client.accounting.companyInfo.retrieve(id, { ...params }) -> Merge.CompanyInfo +
client.ticketing.asyncPassthrough.retrieve(async_passthrough_receipt_id) -> Merge.AsyncPassthroughRetrieveResponse
@@ -26037,7 +33327,7 @@ await client.accounting.companyInfo.list({
-Returns a `CompanyInfo` object with the given `id`. +Retrieves data from earlier async-passthrough POST request
@@ -26052,11 +33342,7 @@ Returns a `CompanyInfo` object with the given `id`.
```typescript -await client.accounting.companyInfo.retrieve("id", { - expand: "addresses", - includeRemoteData: true, - includeShellData: true -}); +await client.ticketing.asyncPassthrough.retrieve("async_passthrough_receipt_id"); ```
@@ -26072,15 +33358,7 @@ await client.accounting.companyInfo.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.CompanyInfoRetrieveRequest` +**async_passthrough_receipt_id:** `string`
@@ -26088,7 +33366,7 @@ await client.accounting.companyInfo.retrieve("id", {
-**requestOptions:** `CompanyInfoClient.RequestOptions` +**requestOptions:** `AsyncPassthroughClient.RequestOptions`
@@ -26100,8 +33378,8 @@ await client.accounting.companyInfo.retrieve("id", {
-## Accounting Contacts -
client.accounting.contacts.list({ ...params }) -> Merge.PaginatedContactList +## Ticketing Attachments +
client.ticketing.attachments.list({ ...params }) -> core.Page
@@ -26113,7 +33391,7 @@ await client.accounting.companyInfo.retrieve("id", {
-Returns a list of `Contact` objects. +Returns a list of `Attachment` objects.
@@ -26128,28 +33406,45 @@ Returns a list of `Contact` objects.
```typescript -await client.accounting.contacts.list({ - companyId: "company_id", +const pageableResponse = await client.ticketing.attachments.list({ createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - emailAddress: "email_address", - expand: "addresses", includeDeletedData: true, includeRemoteData: true, - includeRemoteFields: true, includeShellData: true, - isCustomer: "is_customer", - isSupplier: "is_supplier", modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - name: "name", pageSize: 1, - remoteFields: "status", + remoteCreatedAfter: new Date("2024-01-15T09:30:00.000Z"), remoteId: "remote_id", - showEnumOrigins: "status", - status: "" + ticketId: "ticket_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ticketing.attachments.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteCreatedAfter: new Date("2024-01-15T09:30:00.000Z"), + remoteId: "remote_id", + ticketId: "ticket_id" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -26165,7 +33460,7 @@ await client.accounting.contacts.list({
-**request:** `Merge.accounting.ContactsListRequest` +**request:** `Merge.ticketing.AttachmentsListRequest`
@@ -26173,7 +33468,7 @@ await client.accounting.contacts.list({
-**requestOptions:** `ContactsClient.RequestOptions` +**requestOptions:** `AttachmentsClient.RequestOptions`
@@ -26185,7 +33480,7 @@ await client.accounting.contacts.list({
-
client.accounting.contacts.create({ ...params }) -> Merge.ContactResponse +
client.ticketing.attachments.create({ ...params }) -> Merge.TicketingAttachmentResponse
@@ -26197,7 +33492,7 @@ await client.accounting.contacts.list({
-Creates a `Contact` object with the given values. +Creates an `Attachment` object with the given values.
@@ -26212,7 +33507,7 @@ Creates a `Contact` object with the given values.
```typescript -await client.accounting.contacts.create({ +await client.ticketing.attachments.create({ isDebugMode: true, runAsync: true, model: {} @@ -26232,7 +33527,7 @@ await client.accounting.contacts.create({
-**request:** `Merge.accounting.ContactEndpointRequest` +**request:** `Merge.ticketing.TicketingAttachmentEndpointRequest`
@@ -26240,7 +33535,7 @@ await client.accounting.contacts.create({
-**requestOptions:** `ContactsClient.RequestOptions` +**requestOptions:** `AttachmentsClient.RequestOptions`
@@ -26252,7 +33547,7 @@ await client.accounting.contacts.create({
-
client.accounting.contacts.retrieve(id, { ...params }) -> Merge.Contact +
client.ticketing.attachments.retrieve(id, { ...params }) -> Merge.Attachment
@@ -26264,7 +33559,7 @@ await client.accounting.contacts.create({
-Returns a `Contact` object with the given `id`. +Returns an `Attachment` object with the given `id`.
@@ -26279,13 +33574,9 @@ Returns a `Contact` object with the given `id`.
```typescript -await client.accounting.contacts.retrieve("id", { - expand: "addresses", +await client.ticketing.attachments.retrieve("id", { includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - remoteFields: "status", - showEnumOrigins: "status" + includeShellData: true }); ``` @@ -26310,7 +33601,7 @@ await client.accounting.contacts.retrieve("id", {
-**request:** `Merge.accounting.ContactsRetrieveRequest` +**request:** `Merge.ticketing.AttachmentsRetrieveRequest`
@@ -26318,7 +33609,7 @@ await client.accounting.contacts.retrieve("id", {
-**requestOptions:** `ContactsClient.RequestOptions` +**requestOptions:** `AttachmentsClient.RequestOptions`
@@ -26330,7 +33621,7 @@ await client.accounting.contacts.retrieve("id", {
-
client.accounting.contacts.partialUpdate(id, { ...params }) -> Merge.ContactResponse +
client.ticketing.attachments.metaPostRetrieve() -> Merge.MetaResponse
@@ -26342,7 +33633,7 @@ await client.accounting.contacts.retrieve("id", {
-Updates a `Contact` object with the given `id`. +Returns metadata for `TicketingAttachment` POSTs.
@@ -26357,11 +33648,7 @@ Updates a `Contact` object with the given `id`.
```typescript -await client.accounting.contacts.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {} -}); +await client.ticketing.attachments.metaPostRetrieve(); ```
@@ -26377,15 +33664,89 @@ await client.accounting.contacts.partialUpdate("id", {
-**id:** `string` +**requestOptions:** `AttachmentsClient.RequestOptions`
+ +
+ + + + +
+ +## Ticketing AuditTrail +
client.ticketing.auditTrail.list({ ...params }) -> core.Page +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Gets a list of audit trail events. +
+
+
+
+ +#### 🔌 Usage
-**request:** `Merge.accounting.PatchedContactEndpointRequest` +
+
+ +```typescript +const pageableResponse = await client.ticketing.auditTrail.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endDate: "end_date", + eventType: "event_type", + pageSize: 1, + startDate: "start_date", + userEmail: "user_email" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ticketing.auditTrail.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endDate: "end_date", + eventType: "event_type", + pageSize: 1, + startDate: "start_date", + userEmail: "user_email" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `Merge.ticketing.AuditTrailListRequest`
@@ -26393,7 +33754,7 @@ await client.accounting.contacts.partialUpdate("id", {
-**requestOptions:** `ContactsClient.RequestOptions` +**requestOptions:** `AuditTrailClient.RequestOptions`
@@ -26405,7 +33766,8 @@ await client.accounting.contacts.partialUpdate("id", {
-
client.accounting.contacts.metaPatchRetrieve(id) -> Merge.MetaResponse +## Ticketing AvailableActions +
client.ticketing.availableActions.retrieve() -> Merge.AvailableActions
@@ -26417,7 +33779,7 @@ await client.accounting.contacts.partialUpdate("id", {
-Returns metadata for `Contact` PATCHs. +Returns a list of models and actions available for an account.
@@ -26432,7 +33794,7 @@ Returns metadata for `Contact` PATCHs.
```typescript -await client.accounting.contacts.metaPatchRetrieve("id"); +await client.ticketing.availableActions.retrieve(); ```
@@ -26448,15 +33810,7 @@ await client.accounting.contacts.metaPatchRetrieve("id");
-**id:** `string` - -
-
- -
-
- -**requestOptions:** `ContactsClient.RequestOptions` +**requestOptions:** `AvailableActionsClient.RequestOptions`
@@ -26468,7 +33822,8 @@ await client.accounting.contacts.metaPatchRetrieve("id");
-
client.accounting.contacts.metaPostRetrieve() -> Merge.MetaResponse +## Ticketing Collections +
client.ticketing.collections.list({ ...params }) -> core.Page
@@ -26480,7 +33835,7 @@ await client.accounting.contacts.metaPatchRetrieve("id");
-Returns metadata for `Contact` POSTs. +Returns a list of `Collection` objects.
@@ -26495,7 +33850,51 @@ Returns metadata for `Contact` POSTs.
```typescript -await client.accounting.contacts.metaPostRetrieve(); +const pageableResponse = await client.ticketing.collections.list({ + collectionType: "", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + parentCollectionId: "parent_collection_id", + remoteFields: "collection_type", + remoteId: "remote_id", + showEnumOrigins: "collection_type" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ticketing.collections.list({ + collectionType: "", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + parentCollectionId: "parent_collection_id", + remoteFields: "collection_type", + remoteId: "remote_id", + showEnumOrigins: "collection_type" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -26511,7 +33910,15 @@ await client.accounting.contacts.metaPostRetrieve();
-**requestOptions:** `ContactsClient.RequestOptions` +**request:** `Merge.ticketing.CollectionsListRequest` + +
+
+ +
+
+ +**requestOptions:** `CollectionsClient.RequestOptions`
@@ -26523,7 +33930,7 @@ await client.accounting.contacts.metaPostRetrieve();
-
client.accounting.contacts.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.ticketing.collections.viewersList(collection_id, { ...params }) -> core.Page
@@ -26535,7 +33942,7 @@ await client.accounting.contacts.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Returns a list of `Viewer` objects that point to a User id or Team id that is either an assignee or viewer on a `Collection` with the given id. [Learn more.](https://help.merge.dev/en/articles/10333658-ticketing-access-control-list-acls)
@@ -26550,15 +33957,31 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.accounting.contacts.remoteFieldClassesList({ +const pageableResponse = await client.ticketing.collections.viewersList("collection_id", { + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ticketing.collections.viewersList("collection_id", { cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", includeDeletedData: true, includeRemoteData: true, includeShellData: true, - isCommonModelField: true, - isCustom: true, pageSize: 1 }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -26574,7 +33997,7 @@ await client.accounting.contacts.remoteFieldClassesList({
-**request:** `Merge.accounting.ContactsRemoteFieldClassesListRequest` +**collection_id:** `string`
@@ -26582,7 +34005,15 @@ await client.accounting.contacts.remoteFieldClassesList({
-**requestOptions:** `ContactsClient.RequestOptions` +**request:** `Merge.ticketing.CollectionsViewersListRequest` + +
+
+ +
+
+ +**requestOptions:** `CollectionsClient.RequestOptions`
@@ -26594,8 +34025,7 @@ await client.accounting.contacts.remoteFieldClassesList({
-## Accounting CreditNotes -
client.accounting.creditNotes.list({ ...params }) -> Merge.PaginatedCreditNoteList +
client.ticketing.collections.retrieve(id, { ...params }) -> Merge.Collection
@@ -26607,7 +34037,7 @@ await client.accounting.contacts.remoteFieldClassesList({
-Returns a list of `CreditNote` objects. +Returns a `Collection` object with the given `id`.
@@ -26622,23 +34052,11 @@ Returns a list of `CreditNote` objects.
```typescript -await client.accounting.creditNotes.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "accounting_period", - includeDeletedData: true, +await client.ticketing.collections.retrieve("id", { includeRemoteData: true, includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteFields: "status", - remoteId: "remote_id", - showEnumOrigins: "status", - transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), - transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") + remoteFields: "collection_type", + showEnumOrigins: "collection_type" }); ``` @@ -26655,7 +34073,7 @@ await client.accounting.creditNotes.list({
-**request:** `Merge.accounting.CreditNotesListRequest` +**id:** `string`
@@ -26663,7 +34081,15 @@ await client.accounting.creditNotes.list({
-**requestOptions:** `CreditNotesClient.RequestOptions` +**request:** `Merge.ticketing.CollectionsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `CollectionsClient.RequestOptions`
@@ -26675,7 +34101,8 @@ await client.accounting.creditNotes.list({
-
client.accounting.creditNotes.create({ ...params }) -> Merge.CreditNoteResponse +## Ticketing Comments +
client.ticketing.comments.list({ ...params }) -> core.Page
@@ -26687,7 +34114,7 @@ await client.accounting.creditNotes.list({
-Creates a `CreditNote` object with the given values. +Returns a list of `Comment` objects.
@@ -26702,11 +34129,45 @@ Creates a `CreditNote` object with the given values.
```typescript -await client.accounting.creditNotes.create({ - isDebugMode: true, - runAsync: true, - model: {} +const pageableResponse = await client.ticketing.comments.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteCreatedAfter: new Date("2024-01-15T09:30:00.000Z"), + remoteId: "remote_id", + ticketId: "ticket_id" }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ticketing.comments.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteCreatedAfter: new Date("2024-01-15T09:30:00.000Z"), + remoteId: "remote_id", + ticketId: "ticket_id" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -26722,7 +34183,7 @@ await client.accounting.creditNotes.create({
-**request:** `Merge.accounting.CreditNoteEndpointRequest` +**request:** `Merge.ticketing.CommentsListRequest`
@@ -26730,7 +34191,7 @@ await client.accounting.creditNotes.create({
-**requestOptions:** `CreditNotesClient.RequestOptions` +**requestOptions:** `CommentsClient.RequestOptions`
@@ -26742,7 +34203,7 @@ await client.accounting.creditNotes.create({
-
client.accounting.creditNotes.retrieve(id, { ...params }) -> Merge.CreditNote +
client.ticketing.comments.create({ ...params }) -> Merge.CommentResponse
@@ -26754,7 +34215,7 @@ await client.accounting.creditNotes.create({
-Returns a `CreditNote` object with the given `id`. +Creates a `Comment` object with the given values.
@@ -26769,12 +34230,10 @@ Returns a `CreditNote` object with the given `id`.
```typescript -await client.accounting.creditNotes.retrieve("id", { - expand: "accounting_period", - includeRemoteData: true, - includeShellData: true, - remoteFields: "status", - showEnumOrigins: "status" +await client.ticketing.comments.create({ + isDebugMode: true, + runAsync: true, + model: {} }); ``` @@ -26791,15 +34250,7 @@ await client.accounting.creditNotes.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.CreditNotesRetrieveRequest` +**request:** `Merge.ticketing.CommentEndpointRequest`
@@ -26807,7 +34258,7 @@ await client.accounting.creditNotes.retrieve("id", {
-**requestOptions:** `CreditNotesClient.RequestOptions` +**requestOptions:** `CommentsClient.RequestOptions`
@@ -26819,7 +34270,7 @@ await client.accounting.creditNotes.retrieve("id", {
-
client.accounting.creditNotes.metaPostRetrieve() -> Merge.MetaResponse +
client.ticketing.comments.retrieve(id, { ...params }) -> Merge.Comment
@@ -26831,7 +34282,7 @@ await client.accounting.creditNotes.retrieve("id", {
-Returns metadata for `CreditNote` POSTs. +Returns a `Comment` object with the given `id`.
@@ -26846,7 +34297,10 @@ Returns metadata for `CreditNote` POSTs.
```typescript -await client.accounting.creditNotes.metaPostRetrieve(); +await client.ticketing.comments.retrieve("id", { + includeRemoteData: true, + includeShellData: true +}); ```
@@ -26862,7 +34316,23 @@ await client.accounting.creditNotes.metaPostRetrieve();
-**requestOptions:** `CreditNotesClient.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.ticketing.CommentsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `CommentsClient.RequestOptions`
@@ -26874,8 +34344,7 @@ await client.accounting.creditNotes.metaPostRetrieve();
-## Accounting Scopes -
client.accounting.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi +
client.ticketing.comments.metaPostRetrieve() -> Merge.MetaResponse
@@ -26887,7 +34356,7 @@ await client.accounting.creditNotes.metaPostRetrieve();
-Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +Returns metadata for `Comment` POSTs.
@@ -26902,7 +34371,7 @@ Get the default permissions for Merge Common Models and fields across all Linked
```typescript -await client.accounting.scopes.defaultScopesRetrieve(); +await client.ticketing.comments.metaPostRetrieve(); ```
@@ -26918,7 +34387,7 @@ await client.accounting.scopes.defaultScopesRetrieve();
-**requestOptions:** `ScopesClient.RequestOptions` +**requestOptions:** `CommentsClient.RequestOptions`
@@ -26930,7 +34399,8 @@ await client.accounting.scopes.defaultScopesRetrieve();
-
client.accounting.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi +## Ticketing Contacts +
client.ticketing.contacts.list({ ...params }) -> core.Page
@@ -26942,7 +34412,7 @@ await client.accounting.scopes.defaultScopesRetrieve();
-Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +Returns a list of `Contact` objects.
@@ -26957,7 +34427,43 @@ Get all available permissions for Merge Common Models and fields for a single Li
```typescript -await client.accounting.scopes.linkedAccountScopesRetrieve(); +const pageableResponse = await client.ticketing.contacts.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + emailAddress: "email_address", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ticketing.contacts.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + emailAddress: "email_address", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -26973,7 +34479,15 @@ await client.accounting.scopes.linkedAccountScopesRetrieve();
-**requestOptions:** `ScopesClient.RequestOptions` +**request:** `Merge.ticketing.ContactsListRequest` + +
+
+ +
+
+ +**requestOptions:** `ContactsClient.RequestOptions`
@@ -26985,7 +34499,7 @@ await client.accounting.scopes.linkedAccountScopesRetrieve();
-
client.accounting.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi +
client.ticketing.contacts.create({ ...params }) -> Merge.TicketingContactResponse
@@ -26997,7 +34511,7 @@ await client.accounting.scopes.linkedAccountScopesRetrieve();
-Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) +Creates a `Contact` object with the given values.
@@ -27012,29 +34526,10 @@ Update permissions for any Common Model or field for a single Linked Account. An
```typescript -await client.accounting.scopes.linkedAccountScopesCreate({ - commonModels: [{ - modelName: "Employee", - modelPermissions: { - "READ": { - isEnabled: true - }, - "WRITE": { - isEnabled: false - } - }, - fieldPermissions: { - enabledFields: ["avatar", "home_location"], - disabledFields: ["work_location"] - } - }, { - modelName: "Benefit", - modelPermissions: { - "WRITE": { - isEnabled: false - } - } - }] +await client.ticketing.contacts.create({ + isDebugMode: true, + runAsync: true, + model: {} }); ``` @@ -27051,7 +34546,7 @@ await client.accounting.scopes.linkedAccountScopesCreate({
-**request:** `Merge.accounting.LinkedAccountCommonModelScopeDeserializerRequest` +**request:** `Merge.ticketing.TicketingContactEndpointRequest`
@@ -27059,7 +34554,7 @@ await client.accounting.scopes.linkedAccountScopesCreate({
-**requestOptions:** `ScopesClient.RequestOptions` +**requestOptions:** `ContactsClient.RequestOptions`
@@ -27071,8 +34566,7 @@ await client.accounting.scopes.linkedAccountScopesCreate({
-## Accounting DeleteAccount -
client.accounting.deleteAccount.delete() -> void +
client.ticketing.contacts.retrieve(id, { ...params }) -> Merge.Contact
@@ -27084,7 +34578,7 @@ await client.accounting.scopes.linkedAccountScopesCreate({
-Delete a linked account. +Returns a `Contact` object with the given `id`.
@@ -27099,7 +34593,10 @@ Delete a linked account.
```typescript -await client.accounting.deleteAccount.delete(); +await client.ticketing.contacts.retrieve("id", { + includeRemoteData: true, + includeShellData: true +}); ```
@@ -27115,7 +34612,23 @@ await client.accounting.deleteAccount.delete();
-**requestOptions:** `DeleteAccountClient.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.ticketing.ContactsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `ContactsClient.RequestOptions`
@@ -27127,8 +34640,7 @@ await client.accounting.deleteAccount.delete();
-## Accounting Employees -
client.accounting.employees.list({ ...params }) -> Merge.PaginatedEmployeeList +
client.ticketing.contacts.metaPostRetrieve() -> Merge.MetaResponse
@@ -27140,7 +34652,7 @@ await client.accounting.deleteAccount.delete();
-Returns a list of `Employee` objects. +Returns metadata for `TicketingContact` POSTs.
@@ -27155,20 +34667,7 @@ Returns a list of `Employee` objects.
```typescript -await client.accounting.employees.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "company", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id" -}); +await client.ticketing.contacts.metaPostRetrieve(); ```
@@ -27184,15 +34683,7 @@ await client.accounting.employees.list({
-**request:** `Merge.accounting.EmployeesListRequest` - -
-
- -
-
- -**requestOptions:** `EmployeesClient.RequestOptions` +**requestOptions:** `ContactsClient.RequestOptions`
@@ -27204,7 +34695,8 @@ await client.accounting.employees.list({
-
client.accounting.employees.retrieve(id, { ...params }) -> Merge.Employee +## Ticketing Scopes +
client.ticketing.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi
@@ -27216,7 +34708,7 @@ await client.accounting.employees.list({
-Returns an `Employee` object with the given `id`. +Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes).
@@ -27231,11 +34723,7 @@ Returns an `Employee` object with the given `id`.
```typescript -await client.accounting.employees.retrieve("id", { - expand: "company", - includeRemoteData: true, - includeShellData: true -}); +await client.ticketing.scopes.defaultScopesRetrieve(); ```
@@ -27245,29 +34733,13 @@ await client.accounting.employees.retrieve("id", { #### ⚙️ Parameters -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.EmployeesRetrieveRequest` - -
-
+
+
-**requestOptions:** `EmployeesClient.RequestOptions` +**requestOptions:** `ScopesClient.RequestOptions`
@@ -27279,8 +34751,7 @@ await client.accounting.employees.retrieve("id", {
-## Accounting ExpenseReports -
client.accounting.expenseReports.list({ ...params }) -> Merge.PaginatedExpenseReportList +
client.ticketing.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi
@@ -27292,7 +34763,7 @@ await client.accounting.employees.retrieve("id", {
-Returns a list of `ExpenseReport` objects. +Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes).
@@ -27307,21 +34778,7 @@ Returns a list of `ExpenseReport` objects.
```typescript -await client.accounting.expenseReports.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "accounting_period", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id" -}); +await client.ticketing.scopes.linkedAccountScopesRetrieve(); ```
@@ -27337,15 +34794,7 @@ await client.accounting.expenseReports.list({
-**request:** `Merge.accounting.ExpenseReportsListRequest` - -
-
- -
-
- -**requestOptions:** `ExpenseReportsClient.RequestOptions` +**requestOptions:** `ScopesClient.RequestOptions`
@@ -27357,7 +34806,7 @@ await client.accounting.expenseReports.list({
-
client.accounting.expenseReports.create({ ...params }) -> Merge.ExpenseReportResponse +
client.ticketing.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi
@@ -27369,7 +34818,7 @@ await client.accounting.expenseReports.list({
-Creates an `ExpenseReport` object with the given values. +Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes)
@@ -27384,12 +34833,29 @@ Creates an `ExpenseReport` object with the given values.
```typescript -await client.accounting.expenseReports.create({ - isDebugMode: true, - runAsync: true, - model: { - trackingCategories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"] - } +await client.ticketing.scopes.linkedAccountScopesCreate({ + commonModels: [{ + modelName: "Employee", + modelPermissions: { + "READ": { + isEnabled: true + }, + "WRITE": { + isEnabled: false + } + }, + fieldPermissions: { + enabledFields: ["avatar", "home_location"], + disabledFields: ["work_location"] + } + }, { + modelName: "Benefit", + modelPermissions: { + "WRITE": { + isEnabled: false + } + } + }] }); ``` @@ -27406,7 +34872,7 @@ await client.accounting.expenseReports.create({
-**request:** `Merge.accounting.ExpenseReportEndpointRequest` +**request:** `Merge.ticketing.LinkedAccountCommonModelScopeDeserializerRequest`
@@ -27414,7 +34880,7 @@ await client.accounting.expenseReports.create({
-**requestOptions:** `ExpenseReportsClient.RequestOptions` +**requestOptions:** `ScopesClient.RequestOptions`
@@ -27426,7 +34892,8 @@ await client.accounting.expenseReports.create({
-
client.accounting.expenseReports.linesList(expense_report_id, { ...params }) -> Merge.PaginatedExpenseReportLineList +## Ticketing DeleteAccount +
client.ticketing.deleteAccount.delete() -> void
@@ -27438,7 +34905,7 @@ await client.accounting.expenseReports.create({
-Returns a list of `ExpenseReportLine` objects that point to a `ExpenseReport` with the given id. +Delete a linked account.
@@ -27453,15 +34920,7 @@ Returns a list of `ExpenseReportLine` objects that point to a `ExpenseReport` wi
```typescript -await client.accounting.expenseReports.linesList("expense_report_id", { - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "account", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - pageSize: 1 -}); +await client.ticketing.deleteAccount.delete(); ```
@@ -27477,23 +34936,7 @@ await client.accounting.expenseReports.linesList("expense_report_id", {
-**expense_report_id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.ExpenseReportsLinesListRequest` - -
-
- -
-
- -**requestOptions:** `ExpenseReportsClient.RequestOptions` +**requestOptions:** `DeleteAccountClient.RequestOptions`
@@ -27505,7 +34948,8 @@ await client.accounting.expenseReports.linesList("expense_report_id", {
-
client.accounting.expenseReports.retrieve(id, { ...params }) -> Merge.ExpenseReport +## Ticketing FieldMapping +
client.ticketing.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse
@@ -27517,7 +34961,7 @@ await client.accounting.expenseReports.linesList("expense_report_id", {
-Returns an `ExpenseReport` object with the given `id`. +Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/).
@@ -27532,11 +34976,8 @@ Returns an `ExpenseReport` object with the given `id`.
```typescript -await client.accounting.expenseReports.retrieve("id", { - expand: "accounting_period", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true +await client.ticketing.fieldMapping.fieldMappingsRetrieve({ + excludeRemoteFieldMetadata: true }); ``` @@ -27553,15 +34994,7 @@ await client.accounting.expenseReports.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.ExpenseReportsRetrieveRequest` +**request:** `Merge.ticketing.FieldMappingsRetrieveRequest`
@@ -27569,7 +35002,7 @@ await client.accounting.expenseReports.retrieve("id", {
-**requestOptions:** `ExpenseReportsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -27581,7 +35014,7 @@ await client.accounting.expenseReports.retrieve("id", {
-
client.accounting.expenseReports.linesRemoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.ticketing.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse
@@ -27593,7 +35026,7 @@ await client.accounting.expenseReports.retrieve("id", {
-Returns a list of `RemoteFieldClass` objects. +Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -27608,14 +35041,15 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.accounting.expenseReports.linesRemoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 +await client.ticketing.fieldMapping.fieldMappingsCreate({ + excludeRemoteFieldMetadata: true, + remoteDataIterationCount: 1, + targetFieldName: "example_target_field_name", + targetFieldDescription: "this is a example description of the target field", + remoteFieldTraversalPath: ["example_remote_field"], + remoteMethod: "GET", + remoteUrlPath: "/example-url-path", + commonModelName: "ExampleCommonModel" }); ``` @@ -27632,7 +35066,7 @@ await client.accounting.expenseReports.linesRemoteFieldClassesList({
-**request:** `Merge.accounting.ExpenseReportsLinesRemoteFieldClassesListRequest` +**request:** `Merge.ticketing.CreateFieldMappingRequest`
@@ -27640,7 +35074,7 @@ await client.accounting.expenseReports.linesRemoteFieldClassesList({
-**requestOptions:** `ExpenseReportsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -27652,7 +35086,7 @@ await client.accounting.expenseReports.linesRemoteFieldClassesList({
-
client.accounting.expenseReports.metaPostRetrieve() -> Merge.MetaResponse +
client.ticketing.fieldMapping.fieldMappingsDestroy(field_mapping_id) -> Merge.FieldMappingInstanceResponse
@@ -27664,7 +35098,7 @@ await client.accounting.expenseReports.linesRemoteFieldClassesList({
-Returns metadata for `ExpenseReport` POSTs. +Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -27679,7 +35113,7 @@ Returns metadata for `ExpenseReport` POSTs.
```typescript -await client.accounting.expenseReports.metaPostRetrieve(); +await client.ticketing.fieldMapping.fieldMappingsDestroy("field_mapping_id"); ```
@@ -27695,7 +35129,15 @@ await client.accounting.expenseReports.metaPostRetrieve();
-**requestOptions:** `ExpenseReportsClient.RequestOptions` +**field_mapping_id:** `string` + +
+
+ +
+
+ +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -27707,7 +35149,7 @@ await client.accounting.expenseReports.metaPostRetrieve();
-
client.accounting.expenseReports.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.ticketing.fieldMapping.fieldMappingsPartialUpdate(field_mapping_id, { ...params }) -> Merge.FieldMappingInstanceResponse
@@ -27719,7 +35161,7 @@ await client.accounting.expenseReports.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -27734,14 +35176,8 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.accounting.expenseReports.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 +await client.ticketing.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { + remoteDataIterationCount: 1 }); ``` @@ -27758,7 +35194,7 @@ await client.accounting.expenseReports.remoteFieldClassesList({
-**request:** `Merge.accounting.ExpenseReportsRemoteFieldClassesListRequest` +**field_mapping_id:** `string`
@@ -27766,7 +35202,15 @@ await client.accounting.expenseReports.remoteFieldClassesList({
-**requestOptions:** `ExpenseReportsClient.RequestOptions` +**request:** `Merge.ticketing.PatchedEditFieldMappingRequest` + +
+
+ +
+
+ +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -27778,8 +35222,7 @@ await client.accounting.expenseReports.remoteFieldClassesList({
-## Accounting Expenses -
client.accounting.expenses.list({ ...params }) -> Merge.PaginatedExpenseList +
client.ticketing.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse
@@ -27791,7 +35234,7 @@ await client.accounting.expenseReports.remoteFieldClassesList({
-Returns a list of `Expense` objects. +Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/).
@@ -27806,22 +35249,9 @@ Returns a list of `Expense` objects.
```typescript -await client.accounting.expenses.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "account", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), - transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") +await client.ticketing.fieldMapping.remoteFieldsRetrieve({ + commonModels: "common_models", + includeExampleValues: "include_example_values" }); ``` @@ -27838,7 +35268,7 @@ await client.accounting.expenses.list({
-**request:** `Merge.accounting.ExpensesListRequest` +**request:** `Merge.ticketing.RemoteFieldsRetrieveRequest`
@@ -27846,7 +35276,7 @@ await client.accounting.expenses.list({
-**requestOptions:** `ExpensesClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -27858,7 +35288,7 @@ await client.accounting.expenses.list({
-
client.accounting.expenses.create({ ...params }) -> Merge.ExpenseResponse +
client.ticketing.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse
@@ -27870,7 +35300,7 @@ await client.accounting.expenses.list({
-Creates an `Expense` object with the given values. +Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/).
@@ -27885,11 +35315,7 @@ Creates an `Expense` object with the given values.
```typescript -await client.accounting.expenses.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); +await client.ticketing.fieldMapping.targetFieldsRetrieve(); ```
@@ -27905,15 +35331,7 @@ await client.accounting.expenses.create({
-**request:** `Merge.accounting.ExpenseEndpointRequest` - -
-
- -
-
- -**requestOptions:** `ExpensesClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -27925,7 +35343,8 @@ await client.accounting.expenses.create({
-
client.accounting.expenses.retrieve(id, { ...params }) -> Merge.Expense +## Ticketing GenerateKey +
client.ticketing.generateKey.create({ ...params }) -> Merge.RemoteKey
@@ -27937,7 +35356,7 @@ await client.accounting.expenses.create({
-Returns an `Expense` object with the given `id`. +Create a remote key.
@@ -27952,11 +35371,8 @@ Returns an `Expense` object with the given `id`.
```typescript -await client.accounting.expenses.retrieve("id", { - expand: "account", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true +await client.ticketing.generateKey.create({ + name: "Remote Deployment Key 1" }); ``` @@ -27973,15 +35389,7 @@ await client.accounting.expenses.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.ExpensesRetrieveRequest` +**request:** `Merge.ticketing.GenerateRemoteKeyRequest`
@@ -27989,7 +35397,7 @@ await client.accounting.expenses.retrieve("id", {
-**requestOptions:** `ExpensesClient.RequestOptions` +**requestOptions:** `GenerateKeyClient.RequestOptions`
@@ -28001,7 +35409,8 @@ await client.accounting.expenses.retrieve("id", {
-
client.accounting.expenses.linesRemoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +## Ticketing Issues +
client.ticketing.issues.list({ ...params }) -> core.Page
@@ -28013,7 +35422,7 @@ await client.accounting.expenses.retrieve("id", {
-Returns a list of `RemoteFieldClass` objects. +Gets all issues for Organization.
@@ -28028,15 +35437,49 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.accounting.expenses.linesRemoteFieldClassesList({ +const pageableResponse = await client.ticketing.issues.list({ + accountToken: "account_token", cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 + endDate: "end_date", + endUserOrganizationName: "end_user_organization_name", + firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + includeMuted: "include_muted", + integrationName: "integration_name", + lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + linkedAccountId: "linked_account_id", + pageSize: 1, + startDate: "start_date", + status: "ONGOING" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ticketing.issues.list({ + accountToken: "account_token", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endDate: "end_date", + endUserOrganizationName: "end_user_organization_name", + firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + includeMuted: "include_muted", + integrationName: "integration_name", + lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + linkedAccountId: "linked_account_id", + pageSize: 1, + startDate: "start_date", + status: "ONGOING" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -28052,7 +35495,7 @@ await client.accounting.expenses.linesRemoteFieldClassesList({
-**request:** `Merge.accounting.ExpensesLinesRemoteFieldClassesListRequest` +**request:** `Merge.ticketing.IssuesListRequest`
@@ -28060,7 +35503,7 @@ await client.accounting.expenses.linesRemoteFieldClassesList({
-**requestOptions:** `ExpensesClient.RequestOptions` +**requestOptions:** `IssuesClient.RequestOptions`
@@ -28072,7 +35515,7 @@ await client.accounting.expenses.linesRemoteFieldClassesList({
-
client.accounting.expenses.metaPostRetrieve() -> Merge.MetaResponse +
client.ticketing.issues.retrieve(id) -> Merge.Issue
@@ -28084,7 +35527,7 @@ await client.accounting.expenses.linesRemoteFieldClassesList({
-Returns metadata for `Expense` POSTs. +Get a specific issue.
@@ -28099,7 +35542,7 @@ Returns metadata for `Expense` POSTs.
```typescript -await client.accounting.expenses.metaPostRetrieve(); +await client.ticketing.issues.retrieve("id"); ```
@@ -28115,7 +35558,15 @@ await client.accounting.expenses.metaPostRetrieve();
-**requestOptions:** `ExpensesClient.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**requestOptions:** `IssuesClient.RequestOptions`
@@ -28127,7 +35578,8 @@ await client.accounting.expenses.metaPostRetrieve();
-
client.accounting.expenses.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +## Ticketing LinkToken +
client.ticketing.linkToken.create({ ...params }) -> Merge.LinkToken
@@ -28139,7 +35591,7 @@ await client.accounting.expenses.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Creates a link token to be used when linking a new end user. The link token expires after single use.
@@ -28154,14 +35606,11 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.accounting.expenses.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 +await client.ticketing.linkToken.create({ + endUserEmailAddress: "example@gmail.com", + endUserOrganizationName: "Test Organization", + endUserOriginId: "12345", + categories: ["hris", "ats"] }); ``` @@ -28178,7 +35627,7 @@ await client.accounting.expenses.remoteFieldClassesList({
-**request:** `Merge.accounting.ExpensesRemoteFieldClassesListRequest` +**request:** `Merge.ticketing.EndUserDetailsRequest`
@@ -28186,7 +35635,7 @@ await client.accounting.expenses.remoteFieldClassesList({
-**requestOptions:** `ExpensesClient.RequestOptions` +**requestOptions:** `LinkTokenClient.RequestOptions`
@@ -28198,8 +35647,8 @@ await client.accounting.expenses.remoteFieldClassesList({
-## Accounting FieldMapping -
client.accounting.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse +## Ticketing LinkedAccounts +
client.ticketing.linkedAccounts.list({ ...params }) -> core.Page
@@ -28211,7 +35660,7 @@ await client.accounting.expenses.remoteFieldClassesList({
-Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). +List linked accounts for your organization.
@@ -28226,9 +35675,47 @@ Get all Field Mappings for this Linked Account. Field Mappings are mappings betw
```typescript -await client.accounting.fieldMapping.fieldMappingsRetrieve({ - excludeRemoteFieldMetadata: true +const pageableResponse = await client.ticketing.linkedAccounts.list({ + category: "accounting", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endUserEmailAddress: "end_user_email_address", + endUserOrganizationName: "end_user_organization_name", + endUserOriginId: "end_user_origin_id", + endUserOriginIds: "end_user_origin_ids", + id: "id", + ids: "ids", + includeDuplicates: true, + integrationName: "integration_name", + isTestAccount: "is_test_account", + pageSize: 1, + status: "status" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ticketing.linkedAccounts.list({ + category: "accounting", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endUserEmailAddress: "end_user_email_address", + endUserOrganizationName: "end_user_organization_name", + endUserOriginId: "end_user_origin_id", + endUserOriginIds: "end_user_origin_ids", + id: "id", + ids: "ids", + includeDuplicates: true, + integrationName: "integration_name", + isTestAccount: "is_test_account", + pageSize: 1, + status: "status" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -28244,7 +35731,7 @@ await client.accounting.fieldMapping.fieldMappingsRetrieve({
-**request:** `Merge.accounting.FieldMappingsRetrieveRequest` +**request:** `Merge.ticketing.LinkedAccountsListRequest`
@@ -28252,7 +35739,7 @@ await client.accounting.fieldMapping.fieldMappingsRetrieve({
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `LinkedAccountsClient.RequestOptions`
@@ -28264,7 +35751,8 @@ await client.accounting.fieldMapping.fieldMappingsRetrieve({
-
client.accounting.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse +## Ticketing Passthrough +
client.ticketing.passthrough.create({ ...params }) -> Merge.RemoteResponse
@@ -28276,7 +35764,7 @@ await client.accounting.fieldMapping.fieldMappingsRetrieve({
-Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Pull data from an endpoint not currently supported by Merge.
@@ -28291,14 +35779,9 @@ Create new Field Mappings that will be available after the next scheduled sync.
```typescript -await client.accounting.fieldMapping.fieldMappingsCreate({ - excludeRemoteFieldMetadata: true, - targetFieldName: "example_target_field_name", - targetFieldDescription: "this is a example description of the target field", - remoteFieldTraversalPath: ["example_remote_field"], - remoteMethod: "GET", - remoteUrlPath: "/example-url-path", - commonModelName: "ExampleCommonModel" +await client.ticketing.passthrough.create({ + method: "GET", + path: "/scooters" }); ``` @@ -28315,7 +35798,7 @@ await client.accounting.fieldMapping.fieldMappingsCreate({
-**request:** `Merge.accounting.CreateFieldMappingRequest` +**request:** `Merge.DataPassthroughRequest`
@@ -28323,7 +35806,7 @@ await client.accounting.fieldMapping.fieldMappingsCreate({
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `PassthroughClient.RequestOptions`
@@ -28335,7 +35818,8 @@ await client.accounting.fieldMapping.fieldMappingsCreate({
-
client.accounting.fieldMapping.fieldMappingsDestroy(field_mapping_id) -> Merge.FieldMappingInstanceResponse +## Ticketing Projects +
client.ticketing.projects.list({ ...params }) -> core.Page
@@ -28347,7 +35831,7 @@ await client.accounting.fieldMapping.fieldMappingsCreate({
-Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Returns a list of `Project` objects.
@@ -28362,7 +35846,41 @@ Deletes Field Mappings for a Linked Account. All data related to this Field Mapp
```typescript -await client.accounting.fieldMapping.fieldMappingsDestroy("field_mapping_id"); +const pageableResponse = await client.ticketing.projects.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ticketing.projects.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -28378,7 +35896,7 @@ await client.accounting.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**field_mapping_id:** `string` +**request:** `Merge.ticketing.ProjectsListRequest`
@@ -28386,7 +35904,7 @@ await client.accounting.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `ProjectsClient.RequestOptions`
@@ -28398,7 +35916,7 @@ await client.accounting.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-
client.accounting.fieldMapping.fieldMappingsPartialUpdate(field_mapping_id, { ...params }) -> Merge.FieldMappingInstanceResponse +
client.ticketing.projects.retrieve(id, { ...params }) -> Merge.Project
@@ -28410,7 +35928,7 @@ await client.accounting.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Returns a `Project` object with the given `id`.
@@ -28425,7 +35943,10 @@ Create or update existing Field Mappings for a Linked Account. Changes will be r
```typescript -await client.accounting.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); +await client.ticketing.projects.retrieve("id", { + includeRemoteData: true, + includeShellData: true +}); ```
@@ -28441,7 +35962,7 @@ await client.accounting.fieldMapping.fieldMappingsPartialUpdate("field_mapping_i
-**field_mapping_id:** `string` +**id:** `string`
@@ -28449,7 +35970,7 @@ await client.accounting.fieldMapping.fieldMappingsPartialUpdate("field_mapping_i
-**request:** `Merge.accounting.PatchedEditFieldMappingRequest` +**request:** `Merge.ticketing.ProjectsRetrieveRequest`
@@ -28457,7 +35978,7 @@ await client.accounting.fieldMapping.fieldMappingsPartialUpdate("field_mapping_i
-**requestOptions:** `FieldMappingClient.RequestOptions` +**requestOptions:** `ProjectsClient.RequestOptions`
@@ -28469,7 +35990,7 @@ await client.accounting.fieldMapping.fieldMappingsPartialUpdate("field_mapping_i
-
client.accounting.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse +
client.ticketing.projects.usersList(parent_id, { ...params }) -> core.Page
@@ -28481,7 +36002,7 @@ await client.accounting.fieldMapping.fieldMappingsPartialUpdate("field_mapping_i
-Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). +Returns a list of `User` objects.
@@ -28496,10 +36017,31 @@ Get all remote fields for a Linked Account. Remote fields are third-party fields
```typescript -await client.accounting.fieldMapping.remoteFieldsRetrieve({ - commonModels: "common_models", - includeExampleValues: "include_example_values" +const pageableResponse = await client.ticketing.projects.usersList("parent_id", { + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ticketing.projects.usersList("parent_id", { + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + pageSize: 1 }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -28515,7 +36057,7 @@ await client.accounting.fieldMapping.remoteFieldsRetrieve({
-**request:** `Merge.accounting.RemoteFieldsRetrieveRequest` +**parent_id:** `string`
@@ -28523,7 +36065,15 @@ await client.accounting.fieldMapping.remoteFieldsRetrieve({
-**requestOptions:** `FieldMappingClient.RequestOptions` +**request:** `Merge.ticketing.ProjectsUsersListRequest` + +
+
+ +
+
+ +**requestOptions:** `ProjectsClient.RequestOptions`
@@ -28535,7 +36085,8 @@ await client.accounting.fieldMapping.remoteFieldsRetrieve({
-
client.accounting.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse +## Ticketing RegenerateKey +
client.ticketing.regenerateKey.create({ ...params }) -> Merge.RemoteKey
@@ -28547,7 +36098,7 @@ await client.accounting.fieldMapping.remoteFieldsRetrieve({
-Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). +Exchange remote keys.
@@ -28562,7 +36113,9 @@ Get all organization-wide Target Fields, this will not include any Linked Accoun
```typescript -await client.accounting.fieldMapping.targetFieldsRetrieve(); +await client.ticketing.regenerateKey.create({ + name: "Remote Deployment Key 1" +}); ```
@@ -28578,7 +36131,15 @@ await client.accounting.fieldMapping.targetFieldsRetrieve();
-**requestOptions:** `FieldMappingClient.RequestOptions` +**request:** `Merge.ticketing.RemoteKeyForRegenerationRequest` + +
+
+ +
+
+ +**requestOptions:** `RegenerateKeyClient.RequestOptions`
@@ -28590,8 +36151,8 @@ await client.accounting.fieldMapping.targetFieldsRetrieve();
-## Accounting GeneralLedgerTransactions -
client.accounting.generalLedgerTransactions.list({ ...params }) -> Merge.PaginatedGeneralLedgerTransactionList +## Ticketing Roles +
client.ticketing.roles.list({ ...params }) -> core.Page
@@ -28603,7 +36164,7 @@ await client.accounting.fieldMapping.targetFieldsRetrieve();
-Returns a list of `GeneralLedgerTransaction` objects. +Returns a list of `Role` objects.
@@ -28618,22 +36179,41 @@ Returns a list of `GeneralLedgerTransaction` objects.
```typescript -await client.accounting.generalLedgerTransactions.list({ - companyId: "company_id", +const pageableResponse = await client.ticketing.roles.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ticketing.roles.list({ createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "accounting_period", includeDeletedData: true, includeRemoteData: true, includeShellData: true, modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), pageSize: 1, - postedDateAfter: new Date("2024-01-15T09:30:00.000Z"), - postedDateBefore: new Date("2024-01-15T09:30:00.000Z"), remoteId: "remote_id" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -28649,7 +36229,7 @@ await client.accounting.generalLedgerTransactions.list({
-**request:** `Merge.accounting.GeneralLedgerTransactionsListRequest` +**request:** `Merge.ticketing.RolesListRequest`
@@ -28657,7 +36237,7 @@ await client.accounting.generalLedgerTransactions.list({
-**requestOptions:** `GeneralLedgerTransactionsClient.RequestOptions` +**requestOptions:** `RolesClient.RequestOptions`
@@ -28669,7 +36249,7 @@ await client.accounting.generalLedgerTransactions.list({
-
client.accounting.generalLedgerTransactions.retrieve(id, { ...params }) -> Merge.GeneralLedgerTransaction +
client.ticketing.roles.retrieve(id, { ...params }) -> Merge.Role
@@ -28681,7 +36261,7 @@ await client.accounting.generalLedgerTransactions.list({
-Returns a `GeneralLedgerTransaction` object with the given `id`. +Returns a `Role` object with the given `id`.
@@ -28696,8 +36276,7 @@ Returns a `GeneralLedgerTransaction` object with the given `id`.
```typescript -await client.accounting.generalLedgerTransactions.retrieve("id", { - expand: "accounting_period", +await client.ticketing.roles.retrieve("id", { includeRemoteData: true, includeShellData: true }); @@ -28724,7 +36303,7 @@ await client.accounting.generalLedgerTransactions.retrieve("id", {
-**request:** `Merge.accounting.GeneralLedgerTransactionsRetrieveRequest` +**request:** `Merge.ticketing.RolesRetrieveRequest`
@@ -28732,7 +36311,7 @@ await client.accounting.generalLedgerTransactions.retrieve("id", {
-**requestOptions:** `GeneralLedgerTransactionsClient.RequestOptions` +**requestOptions:** `RolesClient.RequestOptions`
@@ -28744,8 +36323,8 @@ await client.accounting.generalLedgerTransactions.retrieve("id", {
-## Accounting GenerateKey -
client.accounting.generateKey.create({ ...params }) -> Merge.RemoteKey +## Ticketing SyncStatus +
client.ticketing.syncStatus.list({ ...params }) -> core.Page
@@ -28757,7 +36336,7 @@ await client.accounting.generalLedgerTransactions.retrieve("id", {
-Create a remote key. +Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses).
@@ -28772,9 +36351,25 @@ Create a remote key.
```typescript -await client.accounting.generateKey.create({ - name: "Remote Deployment Key 1" +const pageableResponse = await client.ticketing.syncStatus.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ticketing.syncStatus.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + pageSize: 1 }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -28790,7 +36385,7 @@ await client.accounting.generateKey.create({
-**request:** `Merge.accounting.GenerateRemoteKeyRequest` +**request:** `Merge.ticketing.SyncStatusListRequest`
@@ -28798,7 +36393,7 @@ await client.accounting.generateKey.create({
-**requestOptions:** `GenerateKeyClient.RequestOptions` +**requestOptions:** `SyncStatusClient.RequestOptions`
@@ -28810,8 +36405,8 @@ await client.accounting.generateKey.create({
-## Accounting IncomeStatements -
client.accounting.incomeStatements.list({ ...params }) -> Merge.PaginatedIncomeStatementList +## Ticketing ForceResync +
client.ticketing.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[]
@@ -28823,7 +36418,7 @@ await client.accounting.generateKey.create({
-Returns a list of `IncomeStatement` objects. +Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers.
@@ -28838,20 +36433,7 @@ Returns a list of `IncomeStatement` objects.
```typescript -await client.accounting.incomeStatements.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "company", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id" -}); +await client.ticketing.forceResync.syncStatusResyncCreate(); ```
@@ -28867,15 +36449,7 @@ await client.accounting.incomeStatements.list({
-**request:** `Merge.accounting.IncomeStatementsListRequest` - -
-
- -
-
- -**requestOptions:** `IncomeStatementsClient.RequestOptions` +**requestOptions:** `ForceResyncClient.RequestOptions`
@@ -28887,7 +36461,8 @@ await client.accounting.incomeStatements.list({
-
client.accounting.incomeStatements.retrieve(id, { ...params }) -> Merge.IncomeStatement +## Ticketing Tags +
client.ticketing.tags.list({ ...params }) -> core.Page
@@ -28899,7 +36474,7 @@ await client.accounting.incomeStatements.list({
-Returns an `IncomeStatement` object with the given `id`. +Returns a list of `Tag` objects.
@@ -28914,11 +36489,41 @@ Returns an `IncomeStatement` object with the given `id`.
```typescript -await client.accounting.incomeStatements.retrieve("id", { - expand: "company", +const pageableResponse = await client.ticketing.tags.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, includeRemoteData: true, - includeShellData: true + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ticketing.tags.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -28934,15 +36539,7 @@ await client.accounting.incomeStatements.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.IncomeStatementsRetrieveRequest` +**request:** `Merge.ticketing.TagsListRequest`
@@ -28950,7 +36547,7 @@ await client.accounting.incomeStatements.retrieve("id", {
-**requestOptions:** `IncomeStatementsClient.RequestOptions` +**requestOptions:** `TagsClient.RequestOptions`
@@ -28962,8 +36559,7 @@ await client.accounting.incomeStatements.retrieve("id", {
-## Accounting Invoices -
client.accounting.invoices.list({ ...params }) -> Merge.PaginatedInvoiceList +
client.ticketing.tags.retrieve(id, { ...params }) -> Merge.Tag
@@ -28975,7 +36571,7 @@ await client.accounting.incomeStatements.retrieve("id", {
-Returns a list of `Invoice` objects. +Returns a `Tag` object with the given `id`.
@@ -28990,28 +36586,9 @@ Returns a list of `Invoice` objects.
```typescript -await client.accounting.invoices.list({ - companyId: "company_id", - contactId: "contact_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "accounting_period", - includeDeletedData: true, +await client.ticketing.tags.retrieve("id", { includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - issueDateAfter: new Date("2024-01-15T09:30:00.000Z"), - issueDateBefore: new Date("2024-01-15T09:30:00.000Z"), - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - number: "number", - pageSize: 1, - remoteFields: "type", - remoteId: "remote_id", - showEnumOrigins: "type", - status: "DRAFT", - type: "ACCOUNTS_PAYABLE" + includeShellData: true }); ``` @@ -29028,7 +36605,7 @@ await client.accounting.invoices.list({
-**request:** `Merge.accounting.InvoicesListRequest` +**id:** `string`
@@ -29036,7 +36613,15 @@ await client.accounting.invoices.list({
-**requestOptions:** `InvoicesClient.RequestOptions` +**request:** `Merge.ticketing.TagsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `TagsClient.RequestOptions`
@@ -29048,7 +36633,8 @@ await client.accounting.invoices.list({
-
client.accounting.invoices.create({ ...params }) -> Merge.InvoiceResponse +## Ticketing Teams +
client.ticketing.teams.list({ ...params }) -> core.Page
@@ -29060,9 +36646,7 @@ await client.accounting.invoices.list({
-Creates an `Invoice` object with the given values. - Including a `PurchaseOrder` id in the `purchase_orders` property will generate an Accounts Payable Invoice from the specified Purchase Order(s). - +Returns a list of `Team` objects.
@@ -29077,11 +36661,41 @@ Creates an `Invoice` object with the given values.
```typescript -await client.accounting.invoices.create({ - isDebugMode: true, - runAsync: true, - model: {} +const pageableResponse = await client.ticketing.teams.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ticketing.teams.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -29097,7 +36711,7 @@ await client.accounting.invoices.create({
-**request:** `Merge.accounting.InvoiceEndpointRequest` +**request:** `Merge.ticketing.TeamsListRequest`
@@ -29105,7 +36719,7 @@ await client.accounting.invoices.create({
-**requestOptions:** `InvoicesClient.RequestOptions` +**requestOptions:** `TeamsClient.RequestOptions`
@@ -29117,7 +36731,7 @@ await client.accounting.invoices.create({
-
client.accounting.invoices.retrieve(id, { ...params }) -> Merge.Invoice +
client.ticketing.teams.retrieve(id, { ...params }) -> Merge.Team
@@ -29129,7 +36743,7 @@ await client.accounting.invoices.create({
-Returns an `Invoice` object with the given `id`. +Returns a `Team` object with the given `id`.
@@ -29144,13 +36758,9 @@ Returns an `Invoice` object with the given `id`.
```typescript -await client.accounting.invoices.retrieve("id", { - expand: "accounting_period", +await client.ticketing.teams.retrieve("id", { includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - remoteFields: "type", - showEnumOrigins: "type" + includeShellData: true }); ``` @@ -29175,7 +36785,7 @@ await client.accounting.invoices.retrieve("id", {
-**request:** `Merge.accounting.InvoicesRetrieveRequest` +**request:** `Merge.ticketing.TeamsRetrieveRequest`
@@ -29183,7 +36793,7 @@ await client.accounting.invoices.retrieve("id", {
-**requestOptions:** `InvoicesClient.RequestOptions` +**requestOptions:** `TeamsClient.RequestOptions`
@@ -29195,7 +36805,8 @@ await client.accounting.invoices.retrieve("id", {
-
client.accounting.invoices.partialUpdate(id, { ...params }) -> Merge.InvoiceResponse +## Ticketing Tickets +
client.ticketing.tickets.list({ ...params }) -> core.Page
@@ -29207,7 +36818,7 @@ await client.accounting.invoices.retrieve("id", {
-Updates an `Invoice` object with the given `id`. +Returns a list of `Ticket` objects.
@@ -29222,11 +36833,91 @@ Updates an `Invoice` object with the given `id`.
```typescript -await client.accounting.invoices.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {} +const pageableResponse = await client.ticketing.tickets.list({ + accountId: "account_id", + assigneeIds: "assignee_ids", + collectionIds: "collection_ids", + completedAfter: new Date("2024-01-15T09:30:00.000Z"), + completedBefore: new Date("2024-01-15T09:30:00.000Z"), + contactId: "contact_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + creatorId: "creator_id", + creatorIds: "creator_ids", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + dueAfter: new Date("2024-01-15T09:30:00.000Z"), + dueBefore: new Date("2024-01-15T09:30:00.000Z"), + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + parentTicketId: "parent_ticket_id", + priority: "HIGH", + remoteCreatedAfter: new Date("2024-01-15T09:30:00.000Z"), + remoteCreatedBefore: new Date("2024-01-15T09:30:00.000Z"), + remoteFields: "priority", + remoteId: "remote_id", + remoteIds: "remote_ids", + remoteUpdatedAfter: new Date("2024-01-15T09:30:00.000Z"), + remoteUpdatedBefore: new Date("2024-01-15T09:30:00.000Z"), + showEnumOrigins: "priority", + status: "", + tags: "tags", + ticketType: "ticket_type", + ticketUrl: "ticket_url" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ticketing.tickets.list({ + accountId: "account_id", + assigneeIds: "assignee_ids", + collectionIds: "collection_ids", + completedAfter: new Date("2024-01-15T09:30:00.000Z"), + completedBefore: new Date("2024-01-15T09:30:00.000Z"), + contactId: "contact_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + creatorId: "creator_id", + creatorIds: "creator_ids", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + dueAfter: new Date("2024-01-15T09:30:00.000Z"), + dueBefore: new Date("2024-01-15T09:30:00.000Z"), + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + parentTicketId: "parent_ticket_id", + priority: "HIGH", + remoteCreatedAfter: new Date("2024-01-15T09:30:00.000Z"), + remoteCreatedBefore: new Date("2024-01-15T09:30:00.000Z"), + remoteFields: "priority", + remoteId: "remote_id", + remoteIds: "remote_ids", + remoteUpdatedAfter: new Date("2024-01-15T09:30:00.000Z"), + remoteUpdatedBefore: new Date("2024-01-15T09:30:00.000Z"), + showEnumOrigins: "priority", + status: "", + tags: "tags", + ticketType: "ticket_type", + ticketUrl: "ticket_url" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -29242,15 +36933,7 @@ await client.accounting.invoices.partialUpdate("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.PatchedInvoiceEndpointRequest` +**request:** `Merge.ticketing.TicketsListRequest`
@@ -29258,7 +36941,7 @@ await client.accounting.invoices.partialUpdate("id", {
-**requestOptions:** `InvoicesClient.RequestOptions` +**requestOptions:** `TicketsClient.RequestOptions`
@@ -29270,7 +36953,7 @@ await client.accounting.invoices.partialUpdate("id", {
-
client.accounting.invoices.lineItemsRemoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.ticketing.tickets.create({ ...params }) -> Merge.TicketResponse
@@ -29282,7 +36965,7 @@ await client.accounting.invoices.partialUpdate("id", {
-Returns a list of `RemoteFieldClass` objects. +Creates a `Ticket` object with the given values.
@@ -29297,14 +36980,10 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.accounting.invoices.lineItemsRemoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 +await client.ticketing.tickets.create({ + isDebugMode: true, + runAsync: true, + model: {} }); ``` @@ -29321,7 +37000,7 @@ await client.accounting.invoices.lineItemsRemoteFieldClassesList({
-**request:** `Merge.accounting.InvoicesLineItemsRemoteFieldClassesListRequest` +**request:** `Merge.ticketing.TicketEndpointRequest`
@@ -29329,7 +37008,7 @@ await client.accounting.invoices.lineItemsRemoteFieldClassesList({
-**requestOptions:** `InvoicesClient.RequestOptions` +**requestOptions:** `TicketsClient.RequestOptions`
@@ -29341,7 +37020,7 @@ await client.accounting.invoices.lineItemsRemoteFieldClassesList({
-
client.accounting.invoices.metaPatchRetrieve(id) -> Merge.MetaResponse +
client.ticketing.tickets.retrieve(id, { ...params }) -> Merge.Ticket
@@ -29353,7 +37032,7 @@ await client.accounting.invoices.lineItemsRemoteFieldClassesList({
-Returns metadata for `Invoice` PATCHs. +Returns a `Ticket` object with the given `id`.
@@ -29368,7 +37047,13 @@ Returns metadata for `Invoice` PATCHs.
```typescript -await client.accounting.invoices.metaPatchRetrieve("id"); +await client.ticketing.tickets.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + remoteFields: "priority", + showEnumOrigins: "priority" +}); ```
@@ -29392,7 +37077,15 @@ await client.accounting.invoices.metaPatchRetrieve("id");
-**requestOptions:** `InvoicesClient.RequestOptions` +**request:** `Merge.ticketing.TicketsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `TicketsClient.RequestOptions`
@@ -29404,7 +37097,7 @@ await client.accounting.invoices.metaPatchRetrieve("id");
-
client.accounting.invoices.metaPostRetrieve() -> Merge.MetaResponse +
client.ticketing.tickets.partialUpdate(id, { ...params }) -> Merge.TicketResponse
@@ -29416,7 +37109,7 @@ await client.accounting.invoices.metaPatchRetrieve("id");
-Returns metadata for `Invoice` POSTs. +Updates a `Ticket` object with the given `id`.
@@ -29431,7 +37124,11 @@ Returns metadata for `Invoice` POSTs.
```typescript -await client.accounting.invoices.metaPostRetrieve(); +await client.ticketing.tickets.partialUpdate("id", { + isDebugMode: true, + runAsync: true, + model: {} +}); ```
@@ -29447,7 +37144,23 @@ await client.accounting.invoices.metaPostRetrieve();
-**requestOptions:** `InvoicesClient.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.ticketing.PatchedTicketEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `TicketsClient.RequestOptions`
@@ -29459,7 +37172,7 @@ await client.accounting.invoices.metaPostRetrieve();
-
client.accounting.invoices.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.ticketing.tickets.viewersList(ticket_id, { ...params }) -> core.Page
@@ -29471,7 +37184,7 @@ await client.accounting.invoices.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Returns a list of `Viewer` objects that point to a User id or Team id that is either an assignee or viewer on a `Ticket` with the given id. [Learn more.](https://help.merge.dev/en/articles/10333658-ticketing-access-control-list-acls)
@@ -29486,15 +37199,31 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.accounting.invoices.remoteFieldClassesList({ +const pageableResponse = await client.ticketing.tickets.viewersList("ticket_id", { + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ticketing.tickets.viewersList("ticket_id", { cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", includeDeletedData: true, includeRemoteData: true, includeShellData: true, - isCommonModelField: true, - isCustom: true, pageSize: 1 }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -29510,86 +37239,15 @@ await client.accounting.invoices.remoteFieldClassesList({
-**request:** `Merge.accounting.InvoicesRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `InvoicesClient.RequestOptions` +**ticket_id:** `string`
- -
- - - - -
- -## Accounting Issues -
client.accounting.issues.list({ ...params }) -> Merge.PaginatedIssueList -
-
- -#### 📝 Description - -
-
-Gets all issues for Organization. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.issues.list({ - accountToken: "account_token", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - endUserOrganizationName: "end_user_organization_name", - firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - includeMuted: "include_muted", - integrationName: "integration_name", - lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - linkedAccountId: "linked_account_id", - pageSize: 1, - startDate: "start_date", - status: "ONGOING" -}); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.IssuesListRequest` +**request:** `Merge.ticketing.TicketsViewersListRequest`
@@ -29597,7 +37255,7 @@ await client.accounting.issues.list({
-**requestOptions:** `IssuesClient.RequestOptions` +**requestOptions:** `TicketsClient.RequestOptions`
@@ -29609,7 +37267,7 @@ await client.accounting.issues.list({
-
client.accounting.issues.retrieve(id) -> Merge.Issue +
client.ticketing.tickets.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -29621,7 +37279,7 @@ await client.accounting.issues.list({
-Get a specific issue. +Returns metadata for `Ticket` PATCHs.
@@ -29636,7 +37294,7 @@ Get a specific issue.
```typescript -await client.accounting.issues.retrieve("id"); +await client.ticketing.tickets.metaPatchRetrieve("id"); ```
@@ -29660,7 +37318,7 @@ await client.accounting.issues.retrieve("id");
-**requestOptions:** `IssuesClient.RequestOptions` +**requestOptions:** `TicketsClient.RequestOptions`
@@ -29672,8 +37330,7 @@ await client.accounting.issues.retrieve("id");
-## Accounting Items -
client.accounting.items.list({ ...params }) -> Merge.PaginatedItemList +
client.ticketing.tickets.metaPostRetrieve({ ...params }) -> Merge.MetaResponse
@@ -29685,7 +37342,7 @@ await client.accounting.issues.retrieve("id");
-Returns a list of `Item` objects. +Returns metadata for `Ticket` POSTs.
@@ -29700,21 +37357,9 @@ Returns a list of `Item` objects.
```typescript -await client.accounting.items.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "company", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteFields: "status", - remoteId: "remote_id", - showEnumOrigins: "status" +await client.ticketing.tickets.metaPostRetrieve({ + collectionId: "collection_id", + ticketType: "ticket_type" }); ``` @@ -29731,7 +37376,7 @@ await client.accounting.items.list({
-**request:** `Merge.accounting.ItemsListRequest` +**request:** `Merge.ticketing.TicketsMetaPostRetrieveRequest`
@@ -29739,7 +37384,7 @@ await client.accounting.items.list({
-**requestOptions:** `ItemsClient.RequestOptions` +**requestOptions:** `TicketsClient.RequestOptions`
@@ -29751,7 +37396,7 @@ await client.accounting.items.list({
-
client.accounting.items.create({ ...params }) -> Merge.ItemResponse +
client.ticketing.tickets.remoteFieldClassesList({ ...params }) -> core.Page
@@ -29763,7 +37408,7 @@ await client.accounting.items.list({
-Creates an `Item` object with the given values. +Returns a list of `RemoteFieldClass` objects.
@@ -29778,11 +37423,37 @@ Creates an `Item` object with the given values.
```typescript -await client.accounting.items.create({ - isDebugMode: true, - runAsync: true, - model: {} +const pageableResponse = await client.ticketing.tickets.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + ids: "ids", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ticketing.tickets.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + ids: "ids", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1 }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -29798,7 +37469,7 @@ await client.accounting.items.create({
-**request:** `Merge.accounting.ItemEndpointRequest` +**request:** `Merge.ticketing.TicketsRemoteFieldClassesListRequest`
@@ -29806,7 +37477,7 @@ await client.accounting.items.create({
-**requestOptions:** `ItemsClient.RequestOptions` +**requestOptions:** `TicketsClient.RequestOptions`
@@ -29818,7 +37489,8 @@ await client.accounting.items.create({
-
client.accounting.items.retrieve(id, { ...params }) -> Merge.Item +## Ticketing Users +
client.ticketing.users.list({ ...params }) -> core.Page
@@ -29830,7 +37502,7 @@ await client.accounting.items.create({
-Returns an `Item` object with the given `id`. +Returns a list of `User` objects.
@@ -29845,13 +37517,51 @@ Returns an `Item` object with the given `id`.
```typescript -await client.accounting.items.retrieve("id", { - expand: "company", +const pageableResponse = await client.ticketing.users.list({ + collections: "collections", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + emailAddress: "email_address", + includeDeletedData: true, includeRemoteData: true, includeShellData: true, - remoteFields: "status", - showEnumOrigins: "status" + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + roles: "roles", + team: "team", + teams: "teams" }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.ticketing.users.list({ + collections: "collections", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + emailAddress: "email_address", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + roles: "roles", + team: "team", + teams: "teams" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -29867,15 +37577,7 @@ await client.accounting.items.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.ItemsRetrieveRequest` +**request:** `Merge.ticketing.UsersListRequest`
@@ -29883,7 +37585,7 @@ await client.accounting.items.retrieve("id", {
-**requestOptions:** `ItemsClient.RequestOptions` +**requestOptions:** `UsersClient.RequestOptions`
@@ -29895,7 +37597,7 @@ await client.accounting.items.retrieve("id", {
-
client.accounting.items.partialUpdate(id, { ...params }) -> Merge.ItemResponse +
client.ticketing.users.retrieve(id, { ...params }) -> Merge.User
@@ -29907,7 +37609,7 @@ await client.accounting.items.retrieve("id", {
-Updates an `Item` object with the given `id`. +Returns a `User` object with the given `id`.
@@ -29922,10 +37624,9 @@ Updates an `Item` object with the given `id`.
```typescript -await client.accounting.items.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {} +await client.ticketing.users.retrieve("id", { + includeRemoteData: true, + includeShellData: true }); ``` @@ -29950,70 +37651,7 @@ await client.accounting.items.partialUpdate("id", {
-**request:** `Merge.accounting.PatchedItemEndpointRequest` - -
-
- -
-
- -**requestOptions:** `ItemsClient.RequestOptions` - -
-
-
-
- - - - -
- -
client.accounting.items.metaPatchRetrieve(id) -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `Item` PATCHs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.items.metaPatchRetrieve("id"); - -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `string` +**request:** `Merge.ticketing.UsersRetrieveRequest`
@@ -30021,7 +37659,7 @@ await client.accounting.items.metaPatchRetrieve("id");
-**requestOptions:** `ItemsClient.RequestOptions` +**requestOptions:** `UsersClient.RequestOptions`
@@ -30033,7 +37671,8 @@ await client.accounting.items.metaPatchRetrieve("id");
-
client.accounting.items.metaPostRetrieve() -> Merge.MetaResponse +## Ticketing WebhookReceivers +
client.ticketing.webhookReceivers.list() -> Merge.WebhookReceiver[]
@@ -30045,7 +37684,7 @@ await client.accounting.items.metaPatchRetrieve("id");
-Returns metadata for `Item` POSTs. +Returns a list of `WebhookReceiver` objects.
@@ -30060,7 +37699,7 @@ Returns metadata for `Item` POSTs.
```typescript -await client.accounting.items.metaPostRetrieve(); +await client.ticketing.webhookReceivers.list(); ```
@@ -30076,7 +37715,7 @@ await client.accounting.items.metaPostRetrieve();
-**requestOptions:** `ItemsClient.RequestOptions` +**requestOptions:** `WebhookReceiversClient.RequestOptions`
@@ -30088,8 +37727,7 @@ await client.accounting.items.metaPostRetrieve();
-## Accounting JournalEntries -
client.accounting.journalEntries.list({ ...params }) -> Merge.PaginatedJournalEntryList +
client.ticketing.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver
@@ -30101,7 +37739,7 @@ await client.accounting.items.metaPostRetrieve();
-Returns a list of `JournalEntry` objects. +Creates a `WebhookReceiver` object with the given values.
@@ -30116,22 +37754,9 @@ Returns a list of `JournalEntry` objects.
```typescript -await client.accounting.journalEntries.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "accounting_period", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), - transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") +await client.ticketing.webhookReceivers.create({ + event: "event", + isActive: true }); ``` @@ -30148,7 +37773,7 @@ await client.accounting.journalEntries.list({
-**request:** `Merge.accounting.JournalEntriesListRequest` +**request:** `Merge.ticketing.WebhookReceiverRequest`
@@ -30156,7 +37781,7 @@ await client.accounting.journalEntries.list({
-**requestOptions:** `JournalEntriesClient.RequestOptions` +**requestOptions:** `WebhookReceiversClient.RequestOptions`
@@ -30168,7 +37793,8 @@ await client.accounting.journalEntries.list({
-
client.accounting.journalEntries.create({ ...params }) -> Merge.JournalEntryResponse +## Filestorage AccountDetails +
client.filestorage.accountDetails.retrieve() -> Merge.AccountDetails
@@ -30180,7 +37806,7 @@ await client.accounting.journalEntries.list({
-Creates a `JournalEntry` object with the given values. +Get details for a linked account.
@@ -30195,11 +37821,7 @@ Creates a `JournalEntry` object with the given values.
```typescript -await client.accounting.journalEntries.create({ - isDebugMode: true, - runAsync: true, - model: {} -}); +await client.filestorage.accountDetails.retrieve(); ```
@@ -30215,15 +37837,7 @@ await client.accounting.journalEntries.create({
-**request:** `Merge.accounting.JournalEntryEndpointRequest` - -
-
- -
-
- -**requestOptions:** `JournalEntriesClient.RequestOptions` +**requestOptions:** `AccountDetailsClient.RequestOptions`
@@ -30235,7 +37849,8 @@ await client.accounting.journalEntries.create({
-
client.accounting.journalEntries.retrieve(id, { ...params }) -> Merge.JournalEntry +## Filestorage AccountToken +
client.filestorage.accountToken.retrieve(public_token) -> Merge.AccountToken
@@ -30247,7 +37862,7 @@ await client.accounting.journalEntries.create({
-Returns a `JournalEntry` object with the given `id`. +Returns the account token for the end user with the provided public token.
@@ -30262,12 +37877,7 @@ Returns a `JournalEntry` object with the given `id`.
```typescript -await client.accounting.journalEntries.retrieve("id", { - expand: "accounting_period", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true -}); +await client.filestorage.accountToken.retrieve("public_token"); ```
@@ -30283,15 +37893,7 @@ await client.accounting.journalEntries.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.JournalEntriesRetrieveRequest` +**public_token:** `string`
@@ -30299,7 +37901,7 @@ await client.accounting.journalEntries.retrieve("id", {
-**requestOptions:** `JournalEntriesClient.RequestOptions` +**requestOptions:** `AccountTokenClient.RequestOptions`
@@ -30311,7 +37913,7 @@ await client.accounting.journalEntries.retrieve("id", {
-
client.accounting.journalEntries.linesRemoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.filestorage.accountToken.regenerateCreate() -> Merge.RegenerateAccountToken
@@ -30323,7 +37925,7 @@ await client.accounting.journalEntries.retrieve("id", {
-Returns a list of `RemoteFieldClass` objects. +Exchange Linked Account account tokens.
@@ -30338,15 +37940,7 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.accounting.journalEntries.linesRemoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 -}); +await client.filestorage.accountToken.regenerateCreate(); ```
@@ -30362,15 +37956,7 @@ await client.accounting.journalEntries.linesRemoteFieldClassesList({
-**request:** `Merge.accounting.JournalEntriesLinesRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `JournalEntriesClient.RequestOptions` +**requestOptions:** `AccountTokenClient.RequestOptions`
@@ -30382,7 +37968,8 @@ await client.accounting.journalEntries.linesRemoteFieldClassesList({
-
client.accounting.journalEntries.metaPostRetrieve() -> Merge.MetaResponse +## Filestorage AsyncPassthrough +
client.filestorage.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept
@@ -30394,7 +37981,7 @@ await client.accounting.journalEntries.linesRemoteFieldClassesList({
-Returns metadata for `JournalEntry` POSTs. +Asynchronously pull data from an endpoint not currently supported by Merge.
@@ -30409,7 +37996,10 @@ Returns metadata for `JournalEntry` POSTs.
```typescript -await client.accounting.journalEntries.metaPostRetrieve(); +await client.filestorage.asyncPassthrough.create({ + method: "GET", + path: "/scooters" +}); ```
@@ -30425,7 +38015,15 @@ await client.accounting.journalEntries.metaPostRetrieve();
-**requestOptions:** `JournalEntriesClient.RequestOptions` +**request:** `Merge.DataPassthroughRequest` + +
+
+ +
+
+ +**requestOptions:** `AsyncPassthroughClient.RequestOptions`
@@ -30437,7 +38035,7 @@ await client.accounting.journalEntries.metaPostRetrieve();
-
client.accounting.journalEntries.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.filestorage.asyncPassthrough.retrieve(async_passthrough_receipt_id) -> Merge.AsyncPassthroughRetrieveResponse
@@ -30449,7 +38047,7 @@ await client.accounting.journalEntries.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Retrieves data from earlier async-passthrough POST request
@@ -30464,15 +38062,7 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.accounting.journalEntries.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 -}); +await client.filestorage.asyncPassthrough.retrieve("async_passthrough_receipt_id"); ```
@@ -30488,7 +38078,7 @@ await client.accounting.journalEntries.remoteFieldClassesList({
-**request:** `Merge.accounting.JournalEntriesRemoteFieldClassesListRequest` +**async_passthrough_receipt_id:** `string`
@@ -30496,7 +38086,7 @@ await client.accounting.journalEntries.remoteFieldClassesList({
-**requestOptions:** `JournalEntriesClient.RequestOptions` +**requestOptions:** `AsyncPassthroughClient.RequestOptions`
@@ -30508,8 +38098,8 @@ await client.accounting.journalEntries.remoteFieldClassesList({
-## Accounting LinkToken -
client.accounting.linkToken.create({ ...params }) -> Merge.LinkToken +## Filestorage AuditTrail +
client.filestorage.auditTrail.list({ ...params }) -> core.Page
@@ -30521,7 +38111,7 @@ await client.accounting.journalEntries.remoteFieldClassesList({
-Creates a link token to be used when linking a new end user. +Gets a list of audit trail events.
@@ -30536,12 +38126,33 @@ Creates a link token to be used when linking a new end user.
```typescript -await client.accounting.linkToken.create({ - endUserEmailAddress: "example@gmail.com", - endUserOrganizationName: "Test Organization", - endUserOriginId: "12345", - categories: ["hris", "ats"] +const pageableResponse = await client.filestorage.auditTrail.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endDate: "end_date", + eventType: "event_type", + pageSize: 1, + startDate: "start_date", + userEmail: "user_email" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.filestorage.auditTrail.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endDate: "end_date", + eventType: "event_type", + pageSize: 1, + startDate: "start_date", + userEmail: "user_email" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -30557,7 +38168,7 @@ await client.accounting.linkToken.create({
-**request:** `Merge.accounting.EndUserDetailsRequest` +**request:** `Merge.filestorage.AuditTrailListRequest`
@@ -30565,7 +38176,7 @@ await client.accounting.linkToken.create({
-**requestOptions:** `LinkTokenClient.RequestOptions` +**requestOptions:** `AuditTrailClient.RequestOptions`
@@ -30577,8 +38188,8 @@ await client.accounting.linkToken.create({
-## Accounting LinkedAccounts -
client.accounting.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList +## Filestorage AvailableActions +
client.filestorage.availableActions.retrieve() -> Merge.AvailableActions
@@ -30590,7 +38201,7 @@ await client.accounting.linkToken.create({
-List linked accounts for your organization. +Returns a list of models and actions available for an account.
@@ -30605,21 +38216,7 @@ List linked accounts for your organization.
```typescript -await client.accounting.linkedAccounts.list({ - category: "accounting", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endUserEmailAddress: "end_user_email_address", - endUserOrganizationName: "end_user_organization_name", - endUserOriginId: "end_user_origin_id", - endUserOriginIds: "end_user_origin_ids", - id: "id", - ids: "ids", - includeDuplicates: true, - integrationName: "integration_name", - isTestAccount: "is_test_account", - pageSize: 1, - status: "status" -}); +await client.filestorage.availableActions.retrieve(); ```
@@ -30635,15 +38232,7 @@ await client.accounting.linkedAccounts.list({
-**request:** `Merge.accounting.LinkedAccountsListRequest` - -
-
- -
-
- -**requestOptions:** `LinkedAccountsClient.RequestOptions` +**requestOptions:** `AvailableActionsClient.RequestOptions`
@@ -30655,8 +38244,8 @@ await client.accounting.linkedAccounts.list({
-## Accounting Passthrough -
client.accounting.passthrough.create({ ...params }) -> Merge.RemoteResponse +## Filestorage Scopes +
client.filestorage.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi
@@ -30668,7 +38257,7 @@ await client.accounting.linkedAccounts.list({
-Pull data from an endpoint not currently supported by Merge. +Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes).
@@ -30683,10 +38272,7 @@ Pull data from an endpoint not currently supported by Merge.
```typescript -await client.accounting.passthrough.create({ - method: "GET", - path: "/scooters" -}); +await client.filestorage.scopes.defaultScopesRetrieve(); ```
@@ -30702,15 +38288,7 @@ await client.accounting.passthrough.create({
-**request:** `Merge.DataPassthroughRequest` - -
-
- -
-
- -**requestOptions:** `PassthroughClient.RequestOptions` +**requestOptions:** `ScopesClient.RequestOptions`
@@ -30722,8 +38300,7 @@ await client.accounting.passthrough.create({
-## Accounting PaymentMethods -
client.accounting.paymentMethods.list({ ...params }) -> Merge.PaginatedPaymentMethodList +
client.filestorage.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi
@@ -30735,7 +38312,7 @@ await client.accounting.passthrough.create({
-Returns a list of `PaymentMethod` objects. +Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes).
@@ -30750,13 +38327,7 @@ Returns a list of `PaymentMethod` objects.
```typescript -await client.accounting.paymentMethods.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - pageSize: 1 -}); +await client.filestorage.scopes.linkedAccountScopesRetrieve(); ```
@@ -30772,15 +38343,7 @@ await client.accounting.paymentMethods.list({
-**request:** `Merge.accounting.PaymentMethodsListRequest` - -
-
- -
-
- -**requestOptions:** `PaymentMethodsClient.RequestOptions` +**requestOptions:** `ScopesClient.RequestOptions`
@@ -30792,7 +38355,7 @@ await client.accounting.paymentMethods.list({
-
client.accounting.paymentMethods.retrieve(id, { ...params }) -> Merge.PaymentMethod +
client.filestorage.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi
@@ -30804,7 +38367,7 @@ await client.accounting.paymentMethods.list({
-Returns a `PaymentMethod` object with the given `id`. +Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes)
@@ -30819,9 +38382,29 @@ Returns a `PaymentMethod` object with the given `id`.
```typescript -await client.accounting.paymentMethods.retrieve("id", { - includeRemoteData: true, - includeShellData: true +await client.filestorage.scopes.linkedAccountScopesCreate({ + commonModels: [{ + modelName: "Employee", + modelPermissions: { + "READ": { + isEnabled: true + }, + "WRITE": { + isEnabled: false + } + }, + fieldPermissions: { + enabledFields: ["avatar", "home_location"], + disabledFields: ["work_location"] + } + }, { + modelName: "Benefit", + modelPermissions: { + "WRITE": { + isEnabled: false + } + } + }] }); ``` @@ -30838,7 +38421,7 @@ await client.accounting.paymentMethods.retrieve("id", {
-**id:** `string` +**request:** `Merge.filestorage.LinkedAccountCommonModelScopeDeserializerRequest`
@@ -30846,15 +38429,63 @@ await client.accounting.paymentMethods.retrieve("id", {
-**request:** `Merge.accounting.PaymentMethodsRetrieveRequest` +**requestOptions:** `ScopesClient.RequestOptions`
+
+
+ + + +
+ +## Filestorage DeleteAccount +
client.filestorage.deleteAccount.delete() -> void
-**requestOptions:** `PaymentMethodsClient.RequestOptions` +#### 📝 Description + +
+
+ +
+
+ +Delete a linked account. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.filestorage.deleteAccount.delete(); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**requestOptions:** `DeleteAccountClient.RequestOptions`
@@ -30866,8 +38497,8 @@ await client.accounting.paymentMethods.retrieve("id", {
-## Accounting PaymentTerms -
client.accounting.paymentTerms.list({ ...params }) -> Merge.PaginatedPaymentTermList +## Filestorage Drives +
client.filestorage.drives.list({ ...params }) -> core.Page
@@ -30879,7 +38510,7 @@ await client.accounting.paymentMethods.retrieve("id", {
-Returns a list of `PaymentTerm` objects. +Returns a list of `Drive` objects.
@@ -30894,14 +38525,43 @@ Returns a list of `PaymentTerm` objects.
```typescript -await client.accounting.paymentTerms.list({ +const pageableResponse = await client.filestorage.drives.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "company", includeDeletedData: true, includeRemoteData: true, includeShellData: true, - pageSize: 1 + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.filestorage.drives.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + remoteId: "remote_id" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -30917,7 +38577,7 @@ await client.accounting.paymentTerms.list({
-**request:** `Merge.accounting.PaymentTermsListRequest` +**request:** `Merge.filestorage.DrivesListRequest`
@@ -30925,7 +38585,7 @@ await client.accounting.paymentTerms.list({
-**requestOptions:** `PaymentTermsClient.RequestOptions` +**requestOptions:** `DrivesClient.RequestOptions`
@@ -30937,7 +38597,7 @@ await client.accounting.paymentTerms.list({
-
client.accounting.paymentTerms.retrieve(id, { ...params }) -> Merge.PaymentTerm +
client.filestorage.drives.retrieve(id, { ...params }) -> Merge.Drive
@@ -30949,7 +38609,7 @@ await client.accounting.paymentTerms.list({
-Returns a `PaymentTerm` object with the given `id`. +Returns a `Drive` object with the given `id`.
@@ -30964,8 +38624,7 @@ Returns a `PaymentTerm` object with the given `id`.
```typescript -await client.accounting.paymentTerms.retrieve("id", { - expand: "company", +await client.filestorage.drives.retrieve("id", { includeRemoteData: true, includeShellData: true }); @@ -30992,7 +38651,7 @@ await client.accounting.paymentTerms.retrieve("id", {
-**request:** `Merge.accounting.PaymentTermsRetrieveRequest` +**request:** `Merge.filestorage.DrivesRetrieveRequest`
@@ -31000,7 +38659,7 @@ await client.accounting.paymentTerms.retrieve("id", {
-**requestOptions:** `PaymentTermsClient.RequestOptions` +**requestOptions:** `DrivesClient.RequestOptions`
@@ -31012,8 +38671,8 @@ await client.accounting.paymentTerms.retrieve("id", {
-## Accounting Payments -
client.accounting.payments.list({ ...params }) -> Merge.PaginatedPaymentList +## Filestorage FieldMapping +
client.filestorage.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse
@@ -31025,7 +38684,7 @@ await client.accounting.paymentTerms.retrieve("id", {
-Returns a list of `Payment` objects. +Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/).
@@ -31040,24 +38699,8 @@ Returns a list of `Payment` objects.
```typescript -await client.accounting.payments.list({ - accountId: "account_id", - companyId: "company_id", - contactId: "contact_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "account", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), - transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") +await client.filestorage.fieldMapping.fieldMappingsRetrieve({ + excludeRemoteFieldMetadata: true }); ``` @@ -31074,7 +38717,7 @@ await client.accounting.payments.list({
-**request:** `Merge.accounting.PaymentsListRequest` +**request:** `Merge.filestorage.FieldMappingsRetrieveRequest`
@@ -31082,7 +38725,7 @@ await client.accounting.payments.list({
-**requestOptions:** `PaymentsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -31094,7 +38737,7 @@ await client.accounting.payments.list({
-
client.accounting.payments.create({ ...params }) -> Merge.PaymentResponse +
client.filestorage.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse
@@ -31106,7 +38749,7 @@ await client.accounting.payments.list({
-Creates a `Payment` object with the given values. +Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -31121,10 +38764,15 @@ Creates a `Payment` object with the given values.
```typescript -await client.accounting.payments.create({ - isDebugMode: true, - runAsync: true, - model: {} +await client.filestorage.fieldMapping.fieldMappingsCreate({ + excludeRemoteFieldMetadata: true, + remoteDataIterationCount: 1, + targetFieldName: "example_target_field_name", + targetFieldDescription: "this is a example description of the target field", + remoteFieldTraversalPath: ["example_remote_field"], + remoteMethod: "GET", + remoteUrlPath: "/example-url-path", + commonModelName: "ExampleCommonModel" }); ``` @@ -31141,7 +38789,7 @@ await client.accounting.payments.create({
-**request:** `Merge.accounting.PaymentEndpointRequest` +**request:** `Merge.filestorage.CreateFieldMappingRequest`
@@ -31149,7 +38797,7 @@ await client.accounting.payments.create({
-**requestOptions:** `PaymentsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -31161,7 +38809,7 @@ await client.accounting.payments.create({
-
client.accounting.payments.retrieve(id, { ...params }) -> Merge.Payment +
client.filestorage.fieldMapping.fieldMappingsDestroy(field_mapping_id) -> Merge.FieldMappingInstanceResponse
@@ -31173,7 +38821,7 @@ await client.accounting.payments.create({
-Returns a `Payment` object with the given `id`. +Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -31188,12 +38836,7 @@ Returns a `Payment` object with the given `id`.
```typescript -await client.accounting.payments.retrieve("id", { - expand: "account", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true -}); +await client.filestorage.fieldMapping.fieldMappingsDestroy("field_mapping_id"); ```
@@ -31209,15 +38852,7 @@ await client.accounting.payments.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.PaymentsRetrieveRequest` +**field_mapping_id:** `string`
@@ -31225,7 +38860,7 @@ await client.accounting.payments.retrieve("id", {
-**requestOptions:** `PaymentsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -31237,7 +38872,7 @@ await client.accounting.payments.retrieve("id", {
-
client.accounting.payments.partialUpdate(id, { ...params }) -> Merge.PaymentResponse +
client.filestorage.fieldMapping.fieldMappingsPartialUpdate(field_mapping_id, { ...params }) -> Merge.FieldMappingInstanceResponse
@@ -31249,7 +38884,7 @@ await client.accounting.payments.retrieve("id", {
-Updates a `Payment` object with the given `id`. +Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -31264,10 +38899,8 @@ Updates a `Payment` object with the given `id`.
```typescript -await client.accounting.payments.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {} +await client.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { + remoteDataIterationCount: 1 }); ``` @@ -31284,7 +38917,7 @@ await client.accounting.payments.partialUpdate("id", {
-**id:** `string` +**field_mapping_id:** `string`
@@ -31292,7 +38925,7 @@ await client.accounting.payments.partialUpdate("id", {
-**request:** `Merge.accounting.PatchedPaymentEndpointRequest` +**request:** `Merge.filestorage.PatchedEditFieldMappingRequest`
@@ -31300,7 +38933,7 @@ await client.accounting.payments.partialUpdate("id", {
-**requestOptions:** `PaymentsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -31312,7 +38945,7 @@ await client.accounting.payments.partialUpdate("id", {
-
client.accounting.payments.lineItemsRemoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.filestorage.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse
@@ -31324,7 +38957,7 @@ await client.accounting.payments.partialUpdate("id", {
-Returns a list of `RemoteFieldClass` objects. +Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/).
@@ -31339,14 +38972,9 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.accounting.payments.lineItemsRemoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 +await client.filestorage.fieldMapping.remoteFieldsRetrieve({ + commonModels: "common_models", + includeExampleValues: "include_example_values" }); ``` @@ -31363,7 +38991,7 @@ await client.accounting.payments.lineItemsRemoteFieldClassesList({
-**request:** `Merge.accounting.PaymentsLineItemsRemoteFieldClassesListRequest` +**request:** `Merge.filestorage.RemoteFieldsRetrieveRequest`
@@ -31371,7 +38999,7 @@ await client.accounting.payments.lineItemsRemoteFieldClassesList({
-**requestOptions:** `PaymentsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -31383,7 +39011,7 @@ await client.accounting.payments.lineItemsRemoteFieldClassesList({
-
client.accounting.payments.metaPatchRetrieve(id) -> Merge.MetaResponse +
client.filestorage.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse
@@ -31395,7 +39023,7 @@ await client.accounting.payments.lineItemsRemoteFieldClassesList({
-Returns metadata for `Payment` PATCHs. +Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/).
@@ -31410,7 +39038,7 @@ Returns metadata for `Payment` PATCHs.
```typescript -await client.accounting.payments.metaPatchRetrieve("id"); +await client.filestorage.fieldMapping.targetFieldsRetrieve(); ```
@@ -31426,15 +39054,7 @@ await client.accounting.payments.metaPatchRetrieve("id");
-**id:** `string` - -
-
- -
-
- -**requestOptions:** `PaymentsClient.RequestOptions` +**requestOptions:** `FieldMappingClient.RequestOptions`
@@ -31446,7 +39066,8 @@ await client.accounting.payments.metaPatchRetrieve("id");
-
client.accounting.payments.metaPostRetrieve() -> Merge.MetaResponse +## Filestorage Files +
client.filestorage.files.list({ ...params }) -> core.Page
@@ -31458,7 +39079,7 @@ await client.accounting.payments.metaPatchRetrieve("id");
-Returns metadata for `Payment` POSTs. +Returns a list of `File` objects.
@@ -31473,7 +39094,55 @@ Returns metadata for `Payment` POSTs.
```typescript -await client.accounting.payments.metaPostRetrieve(); +const pageableResponse = await client.filestorage.files.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + driveId: "drive_id", + folderId: "folder_id", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + mimeType: "mime_type", + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + orderBy: "-created_at", + pageSize: 1, + remoteCreatedAfter: new Date("2024-01-15T09:30:00.000Z"), + remoteCreatedBefore: new Date("2024-01-15T09:30:00.000Z"), + remoteId: "remote_id" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.filestorage.files.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + driveId: "drive_id", + folderId: "folder_id", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + mimeType: "mime_type", + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + orderBy: "-created_at", + pageSize: 1, + remoteCreatedAfter: new Date("2024-01-15T09:30:00.000Z"), + remoteCreatedBefore: new Date("2024-01-15T09:30:00.000Z"), + remoteId: "remote_id" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -31489,7 +39158,15 @@ await client.accounting.payments.metaPostRetrieve();
-**requestOptions:** `PaymentsClient.RequestOptions` +**request:** `Merge.filestorage.FilesListRequest` + +
+
+ +
+
+ +**requestOptions:** `FilesClient.RequestOptions`
@@ -31501,7 +39178,7 @@ await client.accounting.payments.metaPostRetrieve();
-
client.accounting.payments.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.filestorage.files.create({ ...params }) -> Merge.FileStorageFileResponse
@@ -31513,7 +39190,7 @@ await client.accounting.payments.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Creates a `File` object with the given values.
@@ -31528,14 +39205,10 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.accounting.payments.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 +await client.filestorage.files.create({ + isDebugMode: true, + runAsync: true, + model: {} }); ``` @@ -31552,7 +39225,7 @@ await client.accounting.payments.remoteFieldClassesList({
-**request:** `Merge.accounting.PaymentsRemoteFieldClassesListRequest` +**request:** `Merge.filestorage.FileStorageFileEndpointRequest`
@@ -31560,7 +39233,7 @@ await client.accounting.payments.remoteFieldClassesList({
-**requestOptions:** `PaymentsClient.RequestOptions` +**requestOptions:** `FilesClient.RequestOptions`
@@ -31572,8 +39245,7 @@ await client.accounting.payments.remoteFieldClassesList({
-## Accounting PhoneNumbers -
client.accounting.phoneNumbers.retrieve(id, { ...params }) -> Merge.AccountingPhoneNumber +
client.filestorage.files.retrieve(id, { ...params }) -> Merge.File_
@@ -31585,7 +39257,7 @@ await client.accounting.payments.remoteFieldClassesList({
-Returns an `AccountingPhoneNumber` object with the given `id`. +Returns a `File` object with the given `id`.
@@ -31600,7 +39272,7 @@ Returns an `AccountingPhoneNumber` object with the given `id`.
```typescript -await client.accounting.phoneNumbers.retrieve("id", { +await client.filestorage.files.retrieve("id", { includeRemoteData: true, includeShellData: true }); @@ -31627,7 +39299,7 @@ await client.accounting.phoneNumbers.retrieve("id", {
-**request:** `Merge.accounting.PhoneNumbersRetrieveRequest` +**request:** `Merge.filestorage.FilesRetrieveRequest`
@@ -31635,7 +39307,7 @@ await client.accounting.phoneNumbers.retrieve("id", {
-**requestOptions:** `PhoneNumbersClient.RequestOptions` +**requestOptions:** `FilesClient.RequestOptions`
@@ -31647,8 +39319,7 @@ await client.accounting.phoneNumbers.retrieve("id", {
-## Accounting Projects -
client.accounting.projects.list({ ...params }) -> Merge.PaginatedProjectList +
client.filestorage.files.downloadRequestMetaRetrieve(id, { ...params }) -> Merge.DownloadRequestMeta
@@ -31660,7 +39331,7 @@ await client.accounting.phoneNumbers.retrieve("id", {
-Returns a list of `Project` objects. +Returns metadata to construct an authenticated file download request for a singular file, allowing you to download file directly from the third-party. For information on our download process please refer to our direct file download help center article.
@@ -31675,19 +39346,8 @@ Returns a list of `Project` objects.
```typescript -await client.accounting.projects.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "company", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id" +await client.filestorage.files.downloadRequestMetaRetrieve("id", { + mimeType: "mime_type" }); ``` @@ -31704,7 +39364,7 @@ await client.accounting.projects.list({
-**request:** `Merge.accounting.ProjectsListRequest` +**id:** `string`
@@ -31712,7 +39372,15 @@ await client.accounting.projects.list({
-**requestOptions:** `ProjectsClient.RequestOptions` +**request:** `Merge.filestorage.FilesDownloadRequestMetaRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `FilesClient.RequestOptions`
@@ -31724,7 +39392,7 @@ await client.accounting.projects.list({
-
client.accounting.projects.retrieve(id, { ...params }) -> Merge.Project +
client.filestorage.files.downloadRequestMetaList({ ...params }) -> core.Page
@@ -31736,7 +39404,7 @@ await client.accounting.projects.list({
-Returns a `Project` object with the given `id`. +Returns metadata to construct authenticated file download requests, allowing you to download files directly from the third-party.
@@ -31751,11 +39419,39 @@ Returns a `Project` object with the given `id`.
```typescript -await client.accounting.projects.retrieve("id", { - expand: "company", - includeRemoteData: true, - includeShellData: true +const pageableResponse = await client.filestorage.files.downloadRequestMetaList({ + createdAfter: "created_after", + createdBefore: "created_before", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + mimeTypes: "mime_types", + modifiedAfter: "modified_after", + modifiedBefore: "modified_before", + orderBy: "-created_at", + pageSize: 1 }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.filestorage.files.downloadRequestMetaList({ + createdAfter: "created_after", + createdBefore: "created_before", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + mimeTypes: "mime_types", + modifiedAfter: "modified_after", + modifiedBefore: "modified_before", + orderBy: "-created_at", + pageSize: 1 +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -31771,7 +39467,7 @@ await client.accounting.projects.retrieve("id", {
-**id:** `string` +**request:** `Merge.filestorage.FilesDownloadRequestMetaListRequest`
@@ -31779,15 +39475,62 @@ await client.accounting.projects.retrieve("id", {
-**request:** `Merge.accounting.ProjectsRetrieveRequest` +**requestOptions:** `FilesClient.RequestOptions`
+ +
+ + + +
+ +
client.filestorage.files.metaPostRetrieve() -> Merge.MetaResponse
-**requestOptions:** `ProjectsClient.RequestOptions` +#### 📝 Description + +
+
+ +
+
+ +Returns metadata for `FileStorageFile` POSTs. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.filestorage.files.metaPostRetrieve(); + +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**requestOptions:** `FilesClient.RequestOptions`
@@ -31799,8 +39542,8 @@ await client.accounting.projects.retrieve("id", {
-## Accounting PurchaseOrders -
client.accounting.purchaseOrders.list({ ...params }) -> Merge.PaginatedPurchaseOrderList +## Filestorage Folders +
client.filestorage.folders.list({ ...params }) -> core.Page
@@ -31812,7 +39555,7 @@ await client.accounting.projects.retrieve("id", {
-Returns a list of `PurchaseOrder` objects. +Returns a list of `Folder` objects.
@@ -31827,25 +39570,47 @@ Returns a list of `PurchaseOrder` objects.
```typescript -await client.accounting.purchaseOrders.list({ - companyId: "company_id", +const pageableResponse = await client.filestorage.folders.list({ createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "accounting_period", + driveId: "drive_id", includeDeletedData: true, includeRemoteData: true, - includeRemoteFields: true, includeShellData: true, - issueDateAfter: new Date("2024-01-15T09:30:00.000Z"), - issueDateBefore: new Date("2024-01-15T09:30:00.000Z"), modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", pageSize: 1, - remoteFields: "status", - remoteId: "remote_id", - showEnumOrigins: "status" + parentFolderId: "parent_folder_id", + remoteId: "remote_id" }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.filestorage.folders.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + driveId: "drive_id", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + parentFolderId: "parent_folder_id", + remoteId: "remote_id" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -31861,7 +39626,7 @@ await client.accounting.purchaseOrders.list({
-**request:** `Merge.accounting.PurchaseOrdersListRequest` +**request:** `Merge.filestorage.FoldersListRequest`
@@ -31869,7 +39634,7 @@ await client.accounting.purchaseOrders.list({
-**requestOptions:** `PurchaseOrdersClient.RequestOptions` +**requestOptions:** `FoldersClient.RequestOptions`
@@ -31881,7 +39646,7 @@ await client.accounting.purchaseOrders.list({
-
client.accounting.purchaseOrders.create({ ...params }) -> Merge.PurchaseOrderResponse +
client.filestorage.folders.create({ ...params }) -> Merge.FileStorageFolderResponse
@@ -31893,7 +39658,7 @@ await client.accounting.purchaseOrders.list({
-Creates a `PurchaseOrder` object with the given values. +Creates a `Folder` object with the given values.
@@ -31908,7 +39673,7 @@ Creates a `PurchaseOrder` object with the given values.
```typescript -await client.accounting.purchaseOrders.create({ +await client.filestorage.folders.create({ isDebugMode: true, runAsync: true, model: {} @@ -31928,7 +39693,7 @@ await client.accounting.purchaseOrders.create({
-**request:** `Merge.accounting.PurchaseOrderEndpointRequest` +**request:** `Merge.filestorage.FileStorageFolderEndpointRequest`
@@ -31936,7 +39701,7 @@ await client.accounting.purchaseOrders.create({
-**requestOptions:** `PurchaseOrdersClient.RequestOptions` +**requestOptions:** `FoldersClient.RequestOptions`
@@ -31948,7 +39713,7 @@ await client.accounting.purchaseOrders.create({
-
client.accounting.purchaseOrders.retrieve(id, { ...params }) -> Merge.PurchaseOrder +
client.filestorage.folders.retrieve(id, { ...params }) -> Merge.Folder
@@ -31960,7 +39725,7 @@ await client.accounting.purchaseOrders.create({
-Returns a `PurchaseOrder` object with the given `id`. +Returns a `Folder` object with the given `id`.
@@ -31975,13 +39740,9 @@ Returns a `PurchaseOrder` object with the given `id`.
```typescript -await client.accounting.purchaseOrders.retrieve("id", { - expand: "accounting_period", +await client.filestorage.folders.retrieve("id", { includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - remoteFields: "status", - showEnumOrigins: "status" + includeShellData: true }); ``` @@ -32006,7 +39767,7 @@ await client.accounting.purchaseOrders.retrieve("id", {
-**request:** `Merge.accounting.PurchaseOrdersRetrieveRequest` +**request:** `Merge.filestorage.FoldersRetrieveRequest`
@@ -32014,7 +39775,7 @@ await client.accounting.purchaseOrders.retrieve("id", {
-**requestOptions:** `PurchaseOrdersClient.RequestOptions` +**requestOptions:** `FoldersClient.RequestOptions`
@@ -32026,7 +39787,7 @@ await client.accounting.purchaseOrders.retrieve("id", {
-
client.accounting.purchaseOrders.lineItemsRemoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.filestorage.folders.metaPostRetrieve() -> Merge.MetaResponse
@@ -32038,7 +39799,7 @@ await client.accounting.purchaseOrders.retrieve("id", {
-Returns a list of `RemoteFieldClass` objects. +Returns metadata for `FileStorageFolder` POSTs.
@@ -32053,15 +39814,7 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.accounting.purchaseOrders.lineItemsRemoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 -}); +await client.filestorage.folders.metaPostRetrieve(); ```
@@ -32077,15 +39830,7 @@ await client.accounting.purchaseOrders.lineItemsRemoteFieldClassesList({
-**request:** `Merge.accounting.PurchaseOrdersLineItemsRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `PurchaseOrdersClient.RequestOptions` +**requestOptions:** `FoldersClient.RequestOptions`
@@ -32097,7 +39842,8 @@ await client.accounting.purchaseOrders.lineItemsRemoteFieldClassesList({
-
client.accounting.purchaseOrders.metaPostRetrieve() -> Merge.MetaResponse +## Filestorage GenerateKey +
client.filestorage.generateKey.create({ ...params }) -> Merge.RemoteKey
@@ -32109,7 +39855,7 @@ await client.accounting.purchaseOrders.lineItemsRemoteFieldClassesList({
-Returns metadata for `PurchaseOrder` POSTs. +Create a remote key.
@@ -32124,7 +39870,9 @@ Returns metadata for `PurchaseOrder` POSTs.
```typescript -await client.accounting.purchaseOrders.metaPostRetrieve(); +await client.filestorage.generateKey.create({ + name: "Remote Deployment Key 1" +}); ```
@@ -32140,7 +39888,15 @@ await client.accounting.purchaseOrders.metaPostRetrieve();
-**requestOptions:** `PurchaseOrdersClient.RequestOptions` +**request:** `Merge.filestorage.GenerateRemoteKeyRequest` + +
+
+ +
+
+ +**requestOptions:** `GenerateKeyClient.RequestOptions`
@@ -32152,7 +39908,8 @@ await client.accounting.purchaseOrders.metaPostRetrieve();
-
client.accounting.purchaseOrders.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +## Filestorage Groups +
client.filestorage.groups.list({ ...params }) -> core.Page
@@ -32164,7 +39921,7 @@ await client.accounting.purchaseOrders.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Returns a list of `Group` objects.
@@ -32179,15 +39936,41 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.accounting.purchaseOrders.remoteFieldClassesList({ +const pageableResponse = await client.filestorage.groups.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", includeDeletedData: true, includeRemoteData: true, includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1 + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.filestorage.groups.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -32203,7 +39986,7 @@ await client.accounting.purchaseOrders.remoteFieldClassesList({
-**request:** `Merge.accounting.PurchaseOrdersRemoteFieldClassesListRequest` +**request:** `Merge.filestorage.GroupsListRequest`
@@ -32211,7 +39994,7 @@ await client.accounting.purchaseOrders.remoteFieldClassesList({
-**requestOptions:** `PurchaseOrdersClient.RequestOptions` +**requestOptions:** `GroupsClient.RequestOptions`
@@ -32223,8 +40006,7 @@ await client.accounting.purchaseOrders.remoteFieldClassesList({
-## Accounting RegenerateKey -
client.accounting.regenerateKey.create({ ...params }) -> Merge.RemoteKey +
client.filestorage.groups.retrieve(id, { ...params }) -> Merge.Group
@@ -32236,7 +40018,7 @@ await client.accounting.purchaseOrders.remoteFieldClassesList({
-Exchange remote keys. +Returns a `Group` object with the given `id`.
@@ -32251,8 +40033,9 @@ Exchange remote keys.
```typescript -await client.accounting.regenerateKey.create({ - name: "Remote Deployment Key 1" +await client.filestorage.groups.retrieve("id", { + includeRemoteData: true, + includeShellData: true }); ``` @@ -32269,7 +40052,7 @@ await client.accounting.regenerateKey.create({
-**request:** `Merge.accounting.RemoteKeyForRegenerationRequest` +**id:** `string`
@@ -32277,7 +40060,15 @@ await client.accounting.regenerateKey.create({
-**requestOptions:** `RegenerateKeyClient.RequestOptions` +**request:** `Merge.filestorage.GroupsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `GroupsClient.RequestOptions`
@@ -32289,8 +40080,8 @@ await client.accounting.regenerateKey.create({
-## Accounting SyncStatus -
client.accounting.syncStatus.list({ ...params }) -> Merge.PaginatedSyncStatusList +## Filestorage Issues +
client.filestorage.issues.list({ ...params }) -> core.Page
@@ -32302,7 +40093,7 @@ await client.accounting.regenerateKey.create({
-Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). +Gets all issues for Organization.
@@ -32317,10 +40108,49 @@ Get sync status for the current sync and the most recently finished sync. `last_
```typescript -await client.accounting.syncStatus.list({ +const pageableResponse = await client.filestorage.issues.list({ + accountToken: "account_token", cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - pageSize: 1 + endDate: "end_date", + endUserOrganizationName: "end_user_organization_name", + firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + includeMuted: "include_muted", + integrationName: "integration_name", + lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + linkedAccountId: "linked_account_id", + pageSize: 1, + startDate: "start_date", + status: "ONGOING" +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.filestorage.issues.list({ + accountToken: "account_token", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endDate: "end_date", + endUserOrganizationName: "end_user_organization_name", + firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + includeMuted: "include_muted", + integrationName: "integration_name", + lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + linkedAccountId: "linked_account_id", + pageSize: 1, + startDate: "start_date", + status: "ONGOING" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -32336,7 +40166,7 @@ await client.accounting.syncStatus.list({
-**request:** `Merge.accounting.SyncStatusListRequest` +**request:** `Merge.filestorage.IssuesListRequest`
@@ -32344,7 +40174,7 @@ await client.accounting.syncStatus.list({
-**requestOptions:** `SyncStatusClient.RequestOptions` +**requestOptions:** `IssuesClient.RequestOptions`
@@ -32356,8 +40186,7 @@ await client.accounting.syncStatus.list({
-## Accounting ForceResync -
client.accounting.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[] +
client.filestorage.issues.retrieve(id) -> Merge.Issue
@@ -32369,7 +40198,7 @@ await client.accounting.syncStatus.list({
-Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. +Get a specific issue.
@@ -32384,7 +40213,7 @@ Force re-sync of all models. This endpoint is available for monthly, quarterly,
```typescript -await client.accounting.forceResync.syncStatusResyncCreate(); +await client.filestorage.issues.retrieve("id"); ```
@@ -32400,7 +40229,15 @@ await client.accounting.forceResync.syncStatusResyncCreate();
-**requestOptions:** `ForceResyncClient.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**requestOptions:** `IssuesClient.RequestOptions`
@@ -32412,8 +40249,8 @@ await client.accounting.forceResync.syncStatusResyncCreate();
-## Accounting TaxRates -
client.accounting.taxRates.list({ ...params }) -> Merge.PaginatedTaxRateList +## Filestorage LinkToken +
client.filestorage.linkToken.create({ ...params }) -> Merge.LinkToken
@@ -32425,7 +40262,7 @@ await client.accounting.forceResync.syncStatusResyncCreate();
-Returns a list of `TaxRate` objects. +Creates a link token to be used when linking a new end user. The link token expires after single use.
@@ -32440,20 +40277,11 @@ Returns a list of `TaxRate` objects.
```typescript -await client.accounting.taxRates.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "company", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - name: "name", - pageSize: 1, - remoteId: "remote_id" +await client.filestorage.linkToken.create({ + endUserEmailAddress: "example@gmail.com", + endUserOrganizationName: "Test Organization", + endUserOriginId: "12345", + categories: ["hris", "ats"] }); ``` @@ -32470,7 +40298,7 @@ await client.accounting.taxRates.list({
-**request:** `Merge.accounting.TaxRatesListRequest` +**request:** `Merge.filestorage.EndUserDetailsRequest`
@@ -32478,7 +40306,7 @@ await client.accounting.taxRates.list({
-**requestOptions:** `TaxRatesClient.RequestOptions` +**requestOptions:** `LinkTokenClient.RequestOptions`
@@ -32490,7 +40318,8 @@ await client.accounting.taxRates.list({
-
client.accounting.taxRates.retrieve(id, { ...params }) -> Merge.TaxRate +## Filestorage LinkedAccounts +
client.filestorage.linkedAccounts.list({ ...params }) -> core.Page
@@ -32502,7 +40331,7 @@ await client.accounting.taxRates.list({
-Returns a `TaxRate` object with the given `id`. +List linked accounts for your organization.
@@ -32517,11 +40346,47 @@ Returns a `TaxRate` object with the given `id`.
```typescript -await client.accounting.taxRates.retrieve("id", { - expand: "company", - includeRemoteData: true, - includeShellData: true +const pageableResponse = await client.filestorage.linkedAccounts.list({ + category: "accounting", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endUserEmailAddress: "end_user_email_address", + endUserOrganizationName: "end_user_organization_name", + endUserOriginId: "end_user_origin_id", + endUserOriginIds: "end_user_origin_ids", + id: "id", + ids: "ids", + includeDuplicates: true, + integrationName: "integration_name", + isTestAccount: "is_test_account", + pageSize: 1, + status: "status" }); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.filestorage.linkedAccounts.list({ + category: "accounting", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endUserEmailAddress: "end_user_email_address", + endUserOrganizationName: "end_user_organization_name", + endUserOriginId: "end_user_origin_id", + endUserOriginIds: "end_user_origin_ids", + id: "id", + ids: "ids", + includeDuplicates: true, + integrationName: "integration_name", + isTestAccount: "is_test_account", + pageSize: 1, + status: "status" +}); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -32537,15 +40402,7 @@ await client.accounting.taxRates.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.TaxRatesRetrieveRequest` +**request:** `Merge.filestorage.LinkedAccountsListRequest`
@@ -32553,7 +40410,7 @@ await client.accounting.taxRates.retrieve("id", {
-**requestOptions:** `TaxRatesClient.RequestOptions` +**requestOptions:** `LinkedAccountsClient.RequestOptions`
@@ -32565,8 +40422,8 @@ await client.accounting.taxRates.retrieve("id", {
-## Accounting TrackingCategories -
client.accounting.trackingCategories.list({ ...params }) -> Merge.PaginatedTrackingCategoryList +## Filestorage Passthrough +
client.filestorage.passthrough.create({ ...params }) -> Merge.RemoteResponse
@@ -32578,7 +40435,7 @@ await client.accounting.taxRates.retrieve("id", {
-Returns a list of `TrackingCategory` objects. +Pull data from an endpoint not currently supported by Merge.
@@ -32593,24 +40450,9 @@ Returns a list of `TrackingCategory` objects.
```typescript -await client.accounting.trackingCategories.list({ - categoryType: "", - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "company", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - name: "name", - pageSize: 1, - remoteFields: "status", - remoteId: "remote_id", - showEnumOrigins: "status", - status: "" +await client.filestorage.passthrough.create({ + method: "GET", + path: "/scooters" }); ``` @@ -32627,7 +40469,7 @@ await client.accounting.trackingCategories.list({
-**request:** `Merge.accounting.TrackingCategoriesListRequest` +**request:** `Merge.DataPassthroughRequest`
@@ -32635,7 +40477,7 @@ await client.accounting.trackingCategories.list({
-**requestOptions:** `TrackingCategoriesClient.RequestOptions` +**requestOptions:** `PassthroughClient.RequestOptions`
@@ -32647,7 +40489,8 @@ await client.accounting.trackingCategories.list({
-
client.accounting.trackingCategories.retrieve(id, { ...params }) -> Merge.TrackingCategory +## Filestorage RegenerateKey +
client.filestorage.regenerateKey.create({ ...params }) -> Merge.RemoteKey
@@ -32659,7 +40502,7 @@ await client.accounting.trackingCategories.list({
-Returns a `TrackingCategory` object with the given `id`. +Exchange remote keys.
@@ -32674,12 +40517,8 @@ Returns a `TrackingCategory` object with the given `id`.
```typescript -await client.accounting.trackingCategories.retrieve("id", { - expand: "company", - includeRemoteData: true, - includeShellData: true, - remoteFields: "status", - showEnumOrigins: "status" +await client.filestorage.regenerateKey.create({ + name: "Remote Deployment Key 1" }); ``` @@ -32696,15 +40535,7 @@ await client.accounting.trackingCategories.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.TrackingCategoriesRetrieveRequest` +**request:** `Merge.filestorage.RemoteKeyForRegenerationRequest`
@@ -32712,7 +40543,7 @@ await client.accounting.trackingCategories.retrieve("id", {
-**requestOptions:** `TrackingCategoriesClient.RequestOptions` +**requestOptions:** `RegenerateKeyClient.RequestOptions`
@@ -32724,8 +40555,8 @@ await client.accounting.trackingCategories.retrieve("id", {
-## Accounting Transactions -
client.accounting.transactions.list({ ...params }) -> Merge.PaginatedTransactionList +## Filestorage SyncStatus +
client.filestorage.syncStatus.list({ ...params }) -> core.Page
@@ -32737,7 +40568,7 @@ await client.accounting.trackingCategories.retrieve("id", {
-Returns a list of `Transaction` objects. +Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses).
@@ -32752,22 +40583,25 @@ Returns a list of `Transaction` objects.
```typescript -await client.accounting.transactions.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), +const pageableResponse = await client.filestorage.syncStatus.list({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "account", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), - transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") + pageSize: 1 +}); +for await (const item of pageableResponse) { + console.log(item); +} + +// Or you can manually iterate page-by-page +let page = await client.filestorage.syncStatus.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + pageSize: 1 }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -32783,7 +40617,7 @@ await client.accounting.transactions.list({
-**request:** `Merge.accounting.TransactionsListRequest` +**request:** `Merge.filestorage.SyncStatusListRequest`
@@ -32791,7 +40625,7 @@ await client.accounting.transactions.list({
-**requestOptions:** `TransactionsClient.RequestOptions` +**requestOptions:** `SyncStatusClient.RequestOptions`
@@ -32803,7 +40637,8 @@ await client.accounting.transactions.list({
-
client.accounting.transactions.retrieve(id, { ...params }) -> Merge.Transaction +## Filestorage ForceResync +
client.filestorage.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[]
@@ -32815,7 +40650,7 @@ await client.accounting.transactions.list({
-Returns a `Transaction` object with the given `id`. +Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers.
@@ -32830,11 +40665,7 @@ Returns a `Transaction` object with the given `id`.
```typescript -await client.accounting.transactions.retrieve("id", { - expand: "account", - includeRemoteData: true, - includeShellData: true -}); +await client.filestorage.forceResync.syncStatusResyncCreate(); ```
@@ -32850,23 +40681,7 @@ await client.accounting.transactions.retrieve("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.accounting.TransactionsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `TransactionsClient.RequestOptions` +**requestOptions:** `ForceResyncClient.RequestOptions`
@@ -32878,8 +40693,8 @@ await client.accounting.transactions.retrieve("id", {
-## Accounting VendorCredits -
client.accounting.vendorCredits.list({ ...params }) -> Merge.PaginatedVendorCreditList +## Filestorage Users +
client.filestorage.users.list({ ...params }) -> core.Page
@@ -32891,7 +40706,7 @@ await client.accounting.transactions.retrieve("id", {
-Returns a list of `VendorCredit` objects. +Returns a list of `User` objects.
@@ -32906,89 +40721,45 @@ Returns a list of `VendorCredit` objects.
```typescript -await client.accounting.vendorCredits.list({ - companyId: "company_id", +const pageableResponse = await client.filestorage.users.list({ createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "accounting_period", + emailAddress: "email_address", includeDeletedData: true, includeRemoteData: true, includeShellData: true, + isMe: "is_me", modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), pageSize: 1, - remoteId: "remote_id", - transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), - transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") + remoteId: "remote_id" }); +for await (const item of pageableResponse) { + console.log(item); +} -``` -
-
- - - -#### ⚙️ Parameters - -
-
- -
-
- -**request:** `Merge.accounting.VendorCreditsListRequest` - -
-
- -
-
- -**requestOptions:** `VendorCreditsClient.RequestOptions` - -
-
-
-
- - - - -
- -
client.accounting.vendorCredits.create({ ...params }) -> Merge.VendorCreditResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Creates a `VendorCredit` object with the given values. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.vendorCredits.create({ - isDebugMode: true, - runAsync: true, - model: {} +// Or you can manually iterate page-by-page +let page = await client.filestorage.users.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + emailAddress: "email_address", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isMe: "is_me", + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id" }); +while (page.hasNextPage()) { + page = page.getNextPage(); +} + +// You can also access the underlying response +const response = page.response; ```
@@ -33004,7 +40775,7 @@ await client.accounting.vendorCredits.create({
-**request:** `Merge.accounting.VendorCreditEndpointRequest` +**request:** `Merge.filestorage.UsersListRequest`
@@ -33012,7 +40783,7 @@ await client.accounting.vendorCredits.create({
-**requestOptions:** `VendorCreditsClient.RequestOptions` +**requestOptions:** `UsersClient.RequestOptions`
@@ -33024,7 +40795,7 @@ await client.accounting.vendorCredits.create({
-
client.accounting.vendorCredits.retrieve(id, { ...params }) -> Merge.VendorCredit +
client.filestorage.users.retrieve(id, { ...params }) -> Merge.User
@@ -33036,7 +40807,7 @@ await client.accounting.vendorCredits.create({
-Returns a `VendorCredit` object with the given `id`. +Returns a `User` object with the given `id`.
@@ -33051,8 +40822,7 @@ Returns a `VendorCredit` object with the given `id`.
```typescript -await client.accounting.vendorCredits.retrieve("id", { - expand: "accounting_period", +await client.filestorage.users.retrieve("id", { includeRemoteData: true, includeShellData: true }); @@ -33079,70 +40849,15 @@ await client.accounting.vendorCredits.retrieve("id", {
-**request:** `Merge.accounting.VendorCreditsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `VendorCreditsClient.RequestOptions` +**request:** `Merge.filestorage.UsersRetrieveRequest` -
-
-
-
- - - - -
- -
client.accounting.vendorCredits.metaPostRetrieve() -> Merge.MetaResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns metadata for `VendorCredit` POSTs. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```typescript -await client.accounting.vendorCredits.metaPostRetrieve(); - -``` -
-
-#### ⚙️ Parameters -
-
-
- -**requestOptions:** `VendorCreditsClient.RequestOptions` +**requestOptions:** `UsersClient.RequestOptions`
@@ -33154,8 +40869,8 @@ await client.accounting.vendorCredits.metaPostRetrieve();
-## Accounting WebhookReceivers -
client.accounting.webhookReceivers.list() -> Merge.WebhookReceiver[] +## Filestorage WebhookReceivers +
client.filestorage.webhookReceivers.list() -> Merge.WebhookReceiver[]
@@ -33182,7 +40897,7 @@ Returns a list of `WebhookReceiver` objects.
```typescript -await client.accounting.webhookReceivers.list(); +await client.filestorage.webhookReceivers.list(); ```
@@ -33210,7 +40925,7 @@ await client.accounting.webhookReceivers.list();
-
client.accounting.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver +
client.filestorage.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver
@@ -33237,7 +40952,7 @@ Creates a `WebhookReceiver` object with the given values.
```typescript -await client.accounting.webhookReceivers.create({ +await client.filestorage.webhookReceivers.create({ event: "event", isActive: true }); @@ -33256,7 +40971,7 @@ await client.accounting.webhookReceivers.create({
-**request:** `Merge.accounting.WebhookReceiverRequest` +**request:** `Merge.filestorage.WebhookReceiverRequest`
diff --git a/src/BaseClient.ts b/src/BaseClient.ts index 5e0f09611..49b4fc78a 100644 --- a/src/BaseClient.ts +++ b/src/BaseClient.ts @@ -56,8 +56,8 @@ export function normalizeClientOptions; protected _ats: AtsClient | undefined; + protected _accounting: AccountingClient | undefined; protected _crm: CrmClient | undefined; - protected _filestorage: FilestorageClient | undefined; protected _hris: HrisClient | undefined; protected _ticketing: TicketingClient | undefined; - protected _accounting: AccountingClient | undefined; + protected _filestorage: FilestorageClient | undefined; constructor(options: MergeClient.Options) { this._options = normalizeClientOptionsWithAuth(options); @@ -32,12 +32,12 @@ export class MergeClient { return (this._ats ??= new AtsClient(this._options)); } - public get crm(): CrmClient { - return (this._crm ??= new CrmClient(this._options)); + public get accounting(): AccountingClient { + return (this._accounting ??= new AccountingClient(this._options)); } - public get filestorage(): FilestorageClient { - return (this._filestorage ??= new FilestorageClient(this._options)); + public get crm(): CrmClient { + return (this._crm ??= new CrmClient(this._options)); } public get hris(): HrisClient { @@ -48,7 +48,7 @@ export class MergeClient { return (this._ticketing ??= new TicketingClient(this._options)); } - public get accounting(): AccountingClient { - return (this._accounting ??= new AccountingClient(this._options)); + public get filestorage(): FilestorageClient { + return (this._filestorage ??= new FilestorageClient(this._options)); } } diff --git a/src/api/resources/accounting/client/Client.ts b/src/api/resources/accounting/client/Client.ts index db165bc34..a0df2195b 100644 --- a/src/api/resources/accounting/client/Client.ts +++ b/src/api/resources/accounting/client/Client.ts @@ -30,6 +30,7 @@ import { GenerateKeyClient } from "../resources/generateKey/client/Client"; import { IncomeStatementsClient } from "../resources/incomeStatements/client/Client"; import { InvoicesClient } from "../resources/invoices/client/Client"; import { IssuesClient } from "../resources/issues/client/Client"; +import { ItemFulfillmentsClient } from "../resources/itemFulfillments/client/Client"; import { ItemsClient } from "../resources/items/client/Client"; import { JournalEntriesClient } from "../resources/journalEntries/client/Client"; import { LinkedAccountsClient } from "../resources/linkedAccounts/client/Client"; @@ -42,6 +43,7 @@ import { PhoneNumbersClient } from "../resources/phoneNumbers/client/Client"; import { ProjectsClient } from "../resources/projects/client/Client"; import { PurchaseOrdersClient } from "../resources/purchaseOrders/client/Client"; import { RegenerateKeyClient } from "../resources/regenerateKey/client/Client"; +import { SalesOrdersClient } from "../resources/salesOrders/client/Client"; import { ScopesClient } from "../resources/scopes/client/Client"; import { SyncStatusClient } from "../resources/syncStatus/client/Client"; import { TaxRatesClient } from "../resources/taxRates/client/Client"; @@ -84,6 +86,7 @@ export class AccountingClient { protected _incomeStatements: IncomeStatementsClient | undefined; protected _invoices: InvoicesClient | undefined; protected _issues: IssuesClient | undefined; + protected _itemFulfillments: ItemFulfillmentsClient | undefined; protected _items: ItemsClient | undefined; protected _journalEntries: JournalEntriesClient | undefined; protected _linkToken: LinkTokenClient | undefined; @@ -96,6 +99,7 @@ export class AccountingClient { protected _projects: ProjectsClient | undefined; protected _purchaseOrders: PurchaseOrdersClient | undefined; protected _regenerateKey: RegenerateKeyClient | undefined; + protected _salesOrders: SalesOrdersClient | undefined; protected _syncStatus: SyncStatusClient | undefined; protected _forceResync: ForceResyncClient | undefined; protected _taxRates: TaxRatesClient | undefined; @@ -220,6 +224,10 @@ export class AccountingClient { return (this._issues ??= new IssuesClient(this._options)); } + public get itemFulfillments(): ItemFulfillmentsClient { + return (this._itemFulfillments ??= new ItemFulfillmentsClient(this._options)); + } + public get items(): ItemsClient { return (this._items ??= new ItemsClient(this._options)); } @@ -268,6 +276,10 @@ export class AccountingClient { return (this._regenerateKey ??= new RegenerateKeyClient(this._options)); } + public get salesOrders(): SalesOrdersClient { + return (this._salesOrders ??= new SalesOrdersClient(this._options)); + } + public get syncStatus(): SyncStatusClient { return (this._syncStatus ??= new SyncStatusClient(this._options)); } diff --git a/src/api/resources/accounting/resources/accountToken/client/Client.ts b/src/api/resources/accounting/resources/accountToken/client/Client.ts index 743de724e..d491d1793 100644 --- a/src/api/resources/accounting/resources/accountToken/client/Client.ts +++ b/src/api/resources/accounting/resources/accountToken/client/Client.ts @@ -94,4 +94,73 @@ export class AccountTokenClient { "/accounting/v1/account-token/{public_token}", ); } + + /** + * Exchange Linked Account account tokens. + * + * @param {AccountTokenClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.accountToken.regenerateCreate() + */ + public regenerateCreate( + requestOptions?: AccountTokenClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__regenerateCreate(requestOptions)); + } + + private async __regenerateCreate( + requestOptions?: AccountTokenClient.RequestOptions, + ): Promise> { + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/account-token/regenerate", + ), + method: "POST", + headers: _headers, + queryParameters: requestOptions?.queryParams, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.RegenerateAccountToken.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "POST", + "/accounting/v1/account-token/regenerate", + ); + } } diff --git a/src/api/resources/accounting/resources/accountingPeriods/client/Client.ts b/src/api/resources/accounting/resources/accountingPeriods/client/Client.ts index 20bae4385..b0f55ae2c 100644 --- a/src/api/resources/accounting/resources/accountingPeriods/client/Client.ts +++ b/src/api/resources/accounting/resources/accountingPeriods/client/Client.ts @@ -38,75 +38,85 @@ export class AccountingPeriodsClient { * pageSize: 1 * }) */ - public list( + public async list( request: Merge.accounting.AccountingPeriodsListRequest = {}, requestOptions?: AccountingPeriodsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.accounting.AccountingPeriodsListRequest = {}, - requestOptions?: AccountingPeriodsClient.RequestOptions, - ): Promise> { - const { cursor, includeDeletedData, includeRemoteData, includeShellData, pageSize } = request; - const _queryParams: Record = { - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - page_size: pageSize, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.AccountingPeriodsListRequest, + ): Promise> => { + const { cursor, includeDeletedData, includeRemoteData, includeShellData, pageSize } = request; + const _queryParams: Record = { + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/accounting-periods", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedAccountingPeriodList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/accounting-periods", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "accounting/v1/accounting-periods", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.accounting.PaginatedAccountingPeriodList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/accounting/v1/accounting-periods", - ); } /** diff --git a/src/api/resources/accounting/resources/accountingPeriods/client/requests/AccountingPeriodsListRequest.ts b/src/api/resources/accounting/resources/accountingPeriods/client/requests/AccountingPeriodsListRequest.ts index 6c809f019..6e1bf6a3f 100644 --- a/src/api/resources/accounting/resources/accountingPeriods/client/requests/AccountingPeriodsListRequest.ts +++ b/src/api/resources/accounting/resources/accountingPeriods/client/requests/AccountingPeriodsListRequest.ts @@ -19,6 +19,6 @@ export interface AccountingPeriodsListRequest { includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ includeShellData?: boolean; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; } diff --git a/src/api/resources/accounting/resources/accounts/client/Client.ts b/src/api/resources/accounting/resources/accounts/client/Client.ts index 30804642d..7fdc56941 100644 --- a/src/api/resources/accounting/resources/accounts/client/Client.ts +++ b/src/api/resources/accounting/resources/accounts/client/Client.ts @@ -37,7 +37,6 @@ export class AccountsClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "company", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -51,76 +50,169 @@ export class AccountsClient { * status: "" * }) */ - public list( + public async list( request: Merge.accounting.AccountsListRequest = {}, requestOptions?: AccountsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.AccountsListRequest, + ): Promise> => { + const { + accountType, + classification, + companyId, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + name, + pageSize, + remoteFields, + remoteId, + showEnumOrigins, + status, + } = request; + const _queryParams: Record = { + account_type: accountType, + classification: + classification != null + ? serializers.accounting.AccountsListRequestClassification.jsonOrThrow(classification, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + company_id: companyId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + name, + page_size: pageSize, + remote_fields: + remoteFields != null + ? serializers.accounting.AccountsListRequestRemoteFields.jsonOrThrow(remoteFields, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + remote_id: remoteId, + show_enum_origins: + showEnumOrigins != null + ? serializers.accounting.AccountsListRequestShowEnumOrigins.jsonOrThrow(showEnumOrigins, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + status: + status != null + ? serializers.accounting.AccountsListRequestStatus.jsonOrThrow(status, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/accounts", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedAccountList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/accounts", + ); + }, + ); + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, + }); } - private async __list( - request: Merge.accounting.AccountsListRequest = {}, + /** + * Creates an `Account` object with the given values. + * + * @param {Merge.accounting.AccountsCreateRequest} request + * @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.accounts.create({ + * isDebugMode: true, + * runAsync: true, + * body: { + * model: {} + * } + * }) + */ + public create( + request: Merge.accounting.AccountsCreateRequest, requestOptions?: AccountsClient.RequestOptions, - ): Promise> { - const { - accountType, - classification, - companyId, - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - name, - pageSize, - remoteFields, - remoteId, - showEnumOrigins, - status, - } = request; + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); + } + + private async __create( + request: Merge.accounting.AccountsCreateRequest, + requestOptions?: AccountsClient.RequestOptions, + ): Promise> { + const { isDebugMode, runAsync, body: _body } = request; const _queryParams: Record = { - account_type: accountType, - classification: - classification != null - ? serializers.accounting.AccountsListRequestClassification.jsonOrThrow(classification, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - company_id: companyId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: expand != null ? expand : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - name, - page_size: pageSize, - remote_fields: - remoteFields != null - ? serializers.accounting.AccountsListRequestRemoteFields.jsonOrThrow(remoteFields, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - remote_id: remoteId, - show_enum_origins: - showEnumOrigins != null - ? serializers.accounting.AccountsListRequestShowEnumOrigins.jsonOrThrow(showEnumOrigins, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - status: - status != null - ? serializers.accounting.AccountsListRequestStatus.jsonOrThrow(status, { - unrecognizedObjectKeys: "strip", - }) - : undefined, + is_debug_mode: isDebugMode, + run_async: runAsync, }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( @@ -136,9 +228,12 @@ export class AccountsClient { environments.MergeEnvironment.Production, "accounting/v1/accounts", ), - method: "GET", + method: "POST", headers: _headers, + contentType: "application/json", queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + requestType: "json", + body: serializers.accounting.AccountEndpointRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -147,7 +242,7 @@ export class AccountsClient { }); if (_response.ok) { return { - data: serializers.accounting.PaginatedAccountList.parseOrThrow(_response.body, { + data: serializers.accounting.AccountResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -166,37 +261,54 @@ export class AccountsClient { }); } - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/accounting/v1/accounts"); + return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/accounting/v1/accounts"); } /** - * Creates an `Account` object with the given values. + * Returns an `Account` object with the given `id`. * - * @param {Merge.accounting.AccountEndpointRequest} request + * @param {string} id + * @param {Merge.accounting.AccountsRetrieveRequest} request * @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.accounts.create({ - * isDebugMode: true, - * runAsync: true, - * model: {} + * await client.accounting.accounts.retrieve("id", { + * includeRemoteData: true, + * includeShellData: true, + * remoteFields: "classification", + * showEnumOrigins: "classification" * }) */ - public create( - request: Merge.accounting.AccountEndpointRequest, + public retrieve( + id: string, + request: Merge.accounting.AccountsRetrieveRequest = {}, requestOptions?: AccountsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); } - private async __create( - request: Merge.accounting.AccountEndpointRequest, + private async __retrieve( + id: string, + request: Merge.accounting.AccountsRetrieveRequest = {}, requestOptions?: AccountsClient.RequestOptions, - ): Promise> { - const { isDebugMode, runAsync, ..._body } = request; + ): Promise> { + const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; const _queryParams: Record = { - is_debug_mode: isDebugMode, - run_async: runAsync, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + remote_fields: + remoteFields != null + ? serializers.accounting.AccountsRetrieveRequestRemoteFields.jsonOrThrow(remoteFields, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + show_enum_origins: + showEnumOrigins != null + ? serializers.accounting.AccountsRetrieveRequestShowEnumOrigins.jsonOrThrow(showEnumOrigins, { + unrecognizedObjectKeys: "strip", + }) + : undefined, }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( @@ -210,14 +322,11 @@ export class AccountsClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/accounts", + `accounting/v1/accounts/${core.url.encodePathParam(id)}`, ), - method: "POST", + method: "GET", headers: _headers, - contentType: "application/json", queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.accounting.AccountEndpointRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -226,7 +335,7 @@ export class AccountsClient { }); if (_response.ok) { return { - data: serializers.accounting.AccountResponse.parseOrThrow(_response.body, { + data: serializers.accounting.Account.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -245,52 +354,107 @@ export class AccountsClient { }); } - return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/accounting/v1/accounts"); + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/accounting/v1/accounts/{id}"); } /** - * Returns an `Account` object with the given `id`. + * Returns a list of `Account` objects. * - * @param {string} id - * @param {Merge.accounting.AccountsRetrieveRequest} request + * @param {string} batch_id + * @param {Merge.accounting.AccountsBatchObjectsListRequest} request * @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.accounts.retrieve("id", { - * expand: "company", + * await client.accounting.accounts.batchObjectsList("batch_id", { + * accountType: "account_type", + * classification: "", + * companyId: "company_id", + * createdAfter: new Date("2024-01-15T09:30:00.000Z"), + * createdBefore: new Date("2024-01-15T09:30:00.000Z"), + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, + * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * name: "name", + * pageSize: 1, * remoteFields: "classification", - * showEnumOrigins: "classification" + * remoteId: "remote_id", + * showEnumOrigins: "classification", + * status: "" * }) */ - public retrieve( - id: string, - request: Merge.accounting.AccountsRetrieveRequest = {}, + public batchObjectsList( + batch_id: string, + request: Merge.accounting.AccountsBatchObjectsListRequest = {}, requestOptions?: AccountsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__batchObjectsList(batch_id, request, requestOptions)); } - private async __retrieve( - id: string, - request: Merge.accounting.AccountsRetrieveRequest = {}, + private async __batchObjectsList( + batch_id: string, + request: Merge.accounting.AccountsBatchObjectsListRequest = {}, requestOptions?: AccountsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; + ): Promise> { + const { + accountType, + classification, + companyId, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + name, + pageSize, + remoteFields, + remoteId, + showEnumOrigins, + status, + } = request; const _queryParams: Record = { - expand: expand != null ? expand : undefined, + account_type: accountType, + classification: + classification != null + ? serializers.accounting.AccountsBatchObjectsListRequestClassification.jsonOrThrow(classification, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + company_id: companyId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, + include_deleted_data: includeDeletedData, include_remote_data: includeRemoteData, include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + name, + page_size: pageSize, remote_fields: remoteFields != null - ? serializers.accounting.AccountsRetrieveRequestRemoteFields.jsonOrThrow(remoteFields, { + ? serializers.accounting.AccountsBatchObjectsListRequestRemoteFields.jsonOrThrow(remoteFields, { unrecognizedObjectKeys: "strip", }) : undefined, + remote_id: remoteId, show_enum_origins: showEnumOrigins != null - ? serializers.accounting.AccountsRetrieveRequestShowEnumOrigins.jsonOrThrow(showEnumOrigins, { + ? serializers.accounting.AccountsBatchObjectsListRequestShowEnumOrigins.jsonOrThrow( + showEnumOrigins, + { unrecognizedObjectKeys: "strip" }, + ) + : undefined, + status: + status != null + ? serializers.accounting.AccountsBatchObjectsListRequestStatus.jsonOrThrow(status, { unrecognizedObjectKeys: "strip", }) : undefined, @@ -307,7 +471,7 @@ export class AccountsClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - `accounting/v1/accounts/${core.url.encodePathParam(id)}`, + `accounting/v1/accounts/batch/${core.url.encodePathParam(batch_id)}/objects`, ), method: "GET", headers: _headers, @@ -320,7 +484,7 @@ export class AccountsClient { }); if (_response.ok) { return { - data: serializers.accounting.Account.parseOrThrow(_response.body, { + data: serializers.accounting.PaginatedAccountList.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -339,7 +503,101 @@ export class AccountsClient { }); } - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/accounting/v1/accounts/{id}"); + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/accounts/batch/{batch_id}/objects", + ); + } + + /** + * Creates an `Account` object with the given values. + * + * @param {Merge.accounting.AccountBulkRequest} request + * @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.accounts.asyncBulkCreate({ + * isDebugMode: true, + * runAsync: true, + * batchItems: [{ + * itemId: "item_id", + * payload: { + * model: {} + * } + * }] + * }) + */ + public asyncBulkCreate( + request: Merge.accounting.AccountBulkRequest, + requestOptions?: AccountsClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__asyncBulkCreate(request, requestOptions)); + } + + private async __asyncBulkCreate( + request: Merge.accounting.AccountBulkRequest, + requestOptions?: AccountsClient.RequestOptions, + ): Promise> { + const { isDebugMode, runAsync, ..._body } = request; + const _queryParams: Record = { + is_debug_mode: isDebugMode, + run_async: runAsync, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/accounts/async/bulk", + ), + method: "POST", + headers: _headers, + contentType: "application/json", + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + requestType: "json", + body: serializers.accounting.AccountBulkRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.AccountResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "POST", + "/accounting/v1/accounts/async/bulk", + ); } /** diff --git a/src/api/resources/accounting/resources/accounts/client/requests/AccountBulkRequest.ts b/src/api/resources/accounting/resources/accounts/client/requests/AccountBulkRequest.ts new file mode 100644 index 000000000..2608845e0 --- /dev/null +++ b/src/api/resources/accounting/resources/accounts/client/requests/AccountBulkRequest.ts @@ -0,0 +1,24 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * batchItems: [{ + * itemId: "item_id", + * payload: { + * model: {} + * } + * }] + * } + */ +export interface AccountBulkRequest { + /** 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; + batchItems: Merge.accounting.AccountBatchItemRequest[]; +} diff --git a/src/api/resources/accounting/resources/accounts/client/requests/AccountEndpointRequest.ts b/src/api/resources/accounting/resources/accounts/client/requests/AccountEndpointRequest.ts deleted file mode 100644 index 994ac2176..000000000 --- a/src/api/resources/accounting/resources/accounts/client/requests/AccountEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface AccountEndpointRequest { - /** 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.accounting.AccountRequest; -} diff --git a/src/api/resources/accounting/resources/accounts/client/requests/AccountsBatchObjectsListRequest.ts b/src/api/resources/accounting/resources/accounts/client/requests/AccountsBatchObjectsListRequest.ts new file mode 100644 index 000000000..1d748f466 --- /dev/null +++ b/src/api/resources/accounting/resources/accounts/client/requests/AccountsBatchObjectsListRequest.ts @@ -0,0 +1,64 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * accountType: "account_type", + * classification: "", + * companyId: "company_id", + * createdAfter: new Date("2024-01-15T09:30:00.000Z"), + * createdBefore: new Date("2024-01-15T09:30:00.000Z"), + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeShellData: true, + * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * name: "name", + * pageSize: 1, + * remoteFields: "classification", + * remoteId: "remote_id", + * showEnumOrigins: "classification", + * status: "" + * } + */ +export interface AccountsBatchObjectsListRequest { + /** If provided, will only return accounts with the passed in enum. */ + accountType?: string; + /** If provided, will only return accounts with this classification. */ + classification?: Merge.accounting.AccountsBatchObjectsListRequestClassification; + /** If provided, will only return accounts for this company. */ + companyId?: string; + /** If provided, will only return objects created after this datetime. */ + createdAfter?: Date; + /** If provided, will only return objects created before this datetime. */ + createdBefore?: Date; + /** The pagination cursor value. */ + cursor?: string; + /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ + expand?: "company" | "company"[]; + /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ + includeDeletedData?: boolean; + /** Whether to include the original data Merge fetched from the third-party to produce these models. */ + includeRemoteData?: boolean; + /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ + includeShellData?: boolean; + /** If provided, only objects synced by Merge after this date time will be returned. */ + modifiedAfter?: Date; + /** If provided, only objects synced by Merge before this date time will be returned. */ + modifiedBefore?: Date; + /** If provided, will only return Accounts with this name. */ + name?: string; + /** Number of results to return per page. The maximum limit is 100. */ + pageSize?: number; + /** Deprecated. Use show_enum_origins. */ + remoteFields?: Merge.accounting.AccountsBatchObjectsListRequestRemoteFields; + /** The API provider's ID for the given object. */ + remoteId?: string; + /** A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) */ + showEnumOrigins?: Merge.accounting.AccountsBatchObjectsListRequestShowEnumOrigins; + /** If provided, will only return accounts with this status. */ + status?: Merge.accounting.AccountsBatchObjectsListRequestStatus; +} diff --git a/src/api/resources/accounting/resources/accounts/client/requests/AccountsCreateRequest.ts b/src/api/resources/accounting/resources/accounts/client/requests/AccountsCreateRequest.ts new file mode 100644 index 000000000..dec98a777 --- /dev/null +++ b/src/api/resources/accounting/resources/accounts/client/requests/AccountsCreateRequest.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * body: { + * model: {} + * } + * } + */ +export interface AccountsCreateRequest { + /** 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; + body: Merge.accounting.AccountEndpointRequest; +} diff --git a/src/api/resources/accounting/resources/accounts/client/requests/AccountsListRequest.ts b/src/api/resources/accounting/resources/accounts/client/requests/AccountsListRequest.ts index 56602c1b4..09614c20c 100644 --- a/src/api/resources/accounting/resources/accounts/client/requests/AccountsListRequest.ts +++ b/src/api/resources/accounting/resources/accounts/client/requests/AccountsListRequest.ts @@ -11,7 +11,6 @@ import type * as Merge from "../../../../../../index"; * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "company", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -39,7 +38,7 @@ export interface AccountsListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "company"; + expand?: "company" | "company"[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -52,7 +51,7 @@ export interface AccountsListRequest { modifiedBefore?: Date; /** If provided, will only return Accounts with this name. */ name?: string; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** Deprecated. Use show_enum_origins. */ remoteFields?: Merge.accounting.AccountsListRequestRemoteFields; diff --git a/src/api/resources/accounting/resources/accounts/client/requests/AccountsRetrieveRequest.ts b/src/api/resources/accounting/resources/accounts/client/requests/AccountsRetrieveRequest.ts index c7d64f6b4..bf7cdb43a 100644 --- a/src/api/resources/accounting/resources/accounts/client/requests/AccountsRetrieveRequest.ts +++ b/src/api/resources/accounting/resources/accounts/client/requests/AccountsRetrieveRequest.ts @@ -5,7 +5,6 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "company", * includeRemoteData: true, * includeShellData: true, * remoteFields: "classification", @@ -14,7 +13,7 @@ import type * as Merge from "../../../../../../index"; */ export interface AccountsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "company"; + expand?: "company" | "company"[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/accounting/resources/accounts/client/requests/index.ts b/src/api/resources/accounting/resources/accounts/client/requests/index.ts index 74bcb5814..3ed134260 100644 --- a/src/api/resources/accounting/resources/accounts/client/requests/index.ts +++ b/src/api/resources/accounting/resources/accounts/client/requests/index.ts @@ -1,3 +1,5 @@ -export type { AccountEndpointRequest } from "./AccountEndpointRequest"; +export type { AccountBulkRequest } from "./AccountBulkRequest"; +export type { AccountsBatchObjectsListRequest } from "./AccountsBatchObjectsListRequest"; +export type { AccountsCreateRequest } from "./AccountsCreateRequest"; export type { AccountsListRequest } from "./AccountsListRequest"; export type { AccountsRetrieveRequest } from "./AccountsRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/accounts/types/AccountsBatchObjectsListRequestClassification.ts b/src/api/resources/accounting/resources/accounts/types/AccountsBatchObjectsListRequestClassification.ts new file mode 100644 index 000000000..0133fe674 --- /dev/null +++ b/src/api/resources/accounting/resources/accounts/types/AccountsBatchObjectsListRequestClassification.ts @@ -0,0 +1,12 @@ +// This file was auto-generated by Fern from our API Definition. + +export const AccountsBatchObjectsListRequestClassification = { + Empty: "", + Asset: "ASSET", + Equity: "EQUITY", + Expense: "EXPENSE", + Liability: "LIABILITY", + Revenue: "REVENUE", +} as const; +export type AccountsBatchObjectsListRequestClassification = + (typeof AccountsBatchObjectsListRequestClassification)[keyof typeof AccountsBatchObjectsListRequestClassification]; diff --git a/src/api/resources/accounting/resources/accounts/types/AccountsBatchObjectsListRequestRemoteFields.ts b/src/api/resources/accounting/resources/accounts/types/AccountsBatchObjectsListRequestRemoteFields.ts new file mode 100644 index 000000000..c53b0edc6 --- /dev/null +++ b/src/api/resources/accounting/resources/accounts/types/AccountsBatchObjectsListRequestRemoteFields.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +export const AccountsBatchObjectsListRequestRemoteFields = { + Classification: "classification", + ClassificationStatus: "classification,status", + Status: "status", +} as const; +export type AccountsBatchObjectsListRequestRemoteFields = + (typeof AccountsBatchObjectsListRequestRemoteFields)[keyof typeof AccountsBatchObjectsListRequestRemoteFields]; diff --git a/src/api/resources/accounting/resources/accounts/types/AccountsBatchObjectsListRequestShowEnumOrigins.ts b/src/api/resources/accounting/resources/accounts/types/AccountsBatchObjectsListRequestShowEnumOrigins.ts new file mode 100644 index 000000000..9ccadbc9d --- /dev/null +++ b/src/api/resources/accounting/resources/accounts/types/AccountsBatchObjectsListRequestShowEnumOrigins.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +export const AccountsBatchObjectsListRequestShowEnumOrigins = { + Classification: "classification", + ClassificationStatus: "classification,status", + Status: "status", +} as const; +export type AccountsBatchObjectsListRequestShowEnumOrigins = + (typeof AccountsBatchObjectsListRequestShowEnumOrigins)[keyof typeof AccountsBatchObjectsListRequestShowEnumOrigins]; diff --git a/src/api/resources/accounting/resources/accounts/types/AccountsBatchObjectsListRequestStatus.ts b/src/api/resources/accounting/resources/accounts/types/AccountsBatchObjectsListRequestStatus.ts new file mode 100644 index 000000000..b8ffbaeeb --- /dev/null +++ b/src/api/resources/accounting/resources/accounts/types/AccountsBatchObjectsListRequestStatus.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +export const AccountsBatchObjectsListRequestStatus = { + Empty: "", + Active: "ACTIVE", + Inactive: "INACTIVE", + Pending: "PENDING", +} as const; +export type AccountsBatchObjectsListRequestStatus = + (typeof AccountsBatchObjectsListRequestStatus)[keyof typeof AccountsBatchObjectsListRequestStatus]; diff --git a/src/api/resources/accounting/resources/accounts/types/index.ts b/src/api/resources/accounting/resources/accounts/types/index.ts index 6e355c26c..cca98df43 100644 --- a/src/api/resources/accounting/resources/accounts/types/index.ts +++ b/src/api/resources/accounting/resources/accounts/types/index.ts @@ -1,3 +1,7 @@ +export * from "./AccountsBatchObjectsListRequestClassification"; +export * from "./AccountsBatchObjectsListRequestRemoteFields"; +export * from "./AccountsBatchObjectsListRequestShowEnumOrigins"; +export * from "./AccountsBatchObjectsListRequestStatus"; export * from "./AccountsListRequestClassification"; export * from "./AccountsListRequestRemoteFields"; export * from "./AccountsListRequestShowEnumOrigins"; diff --git a/src/api/resources/accounting/resources/attachments/client/Client.ts b/src/api/resources/accounting/resources/attachments/client/Client.ts index 7e527d8e8..e52bb5afd 100644 --- a/src/api/resources/accounting/resources/attachments/client/Client.ts +++ b/src/api/resources/accounting/resources/attachments/client/Client.ts @@ -44,42 +44,137 @@ export class AttachmentsClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.accounting.AttachmentsListRequest = {}, requestOptions?: AttachmentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.AttachmentsListRequest, + ): Promise> => { + const { + companyId, + createdAfter, + createdBefore, + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + company_id: companyId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/attachments", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedAccountingAttachmentList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/attachments", + ); + }, + ); + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page( + { + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, + }, + ); } - private async __list( - request: Merge.accounting.AttachmentsListRequest = {}, + /** + * Creates an `AccountingAttachment` object with the given values. + * + * @param {Merge.accounting.AttachmentsCreateRequest} request + * @param {AttachmentsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.attachments.create({ + * isDebugMode: true, + * runAsync: true, + * body: { + * model: {} + * } + * }) + */ + public create( + request: Merge.accounting.AttachmentsCreateRequest, requestOptions?: AttachmentsClient.RequestOptions, - ): Promise> { - const { - companyId, - createdAfter, - createdBefore, - cursor, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); + } + + private async __create( + request: Merge.accounting.AttachmentsCreateRequest, + requestOptions?: AttachmentsClient.RequestOptions, + ): Promise> { + const { isDebugMode, runAsync, body: _body } = request; const _queryParams: Record = { - company_id: companyId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, + is_debug_mode: isDebugMode, + run_async: runAsync, }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( @@ -95,9 +190,14 @@ export class AttachmentsClient { environments.MergeEnvironment.Production, "accounting/v1/attachments", ), - method: "GET", + method: "POST", headers: _headers, + contentType: "application/json", queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + requestType: "json", + body: serializers.accounting.AccountingAttachmentEndpointRequest.jsonOrThrow(_body, { + unrecognizedObjectKeys: "strip", + }), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -106,7 +206,7 @@ export class AttachmentsClient { }); if (_response.ok) { return { - data: serializers.accounting.PaginatedAccountingAttachmentList.parseOrThrow(_response.body, { + data: serializers.accounting.AccountingAttachmentResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -125,37 +225,39 @@ export class AttachmentsClient { }); } - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/accounting/v1/attachments"); + return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/accounting/v1/attachments"); } /** - * Creates an `AccountingAttachment` object with the given values. + * Returns an `AccountingAttachment` object with the given `id`. * - * @param {Merge.accounting.AccountingAttachmentEndpointRequest} request + * @param {string} id + * @param {Merge.accounting.AttachmentsRetrieveRequest} request * @param {AttachmentsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.attachments.create({ - * isDebugMode: true, - * runAsync: true, - * model: {} + * await client.accounting.attachments.retrieve("id", { + * includeRemoteData: true, + * includeShellData: true * }) */ - public create( - request: Merge.accounting.AccountingAttachmentEndpointRequest, + public retrieve( + id: string, + request: Merge.accounting.AttachmentsRetrieveRequest = {}, requestOptions?: AttachmentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); } - private async __create( - request: Merge.accounting.AccountingAttachmentEndpointRequest, + private async __retrieve( + id: string, + request: Merge.accounting.AttachmentsRetrieveRequest = {}, requestOptions?: AttachmentsClient.RequestOptions, - ): Promise> { - const { isDebugMode, runAsync, ..._body } = request; + ): Promise> { + const { includeRemoteData, includeShellData } = request; const _queryParams: Record = { - is_debug_mode: isDebugMode, - run_async: runAsync, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( @@ -169,16 +271,11 @@ export class AttachmentsClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/attachments", + `accounting/v1/attachments/${core.url.encodePathParam(id)}`, ), - method: "POST", + method: "GET", headers: _headers, - contentType: "application/json", queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.accounting.AccountingAttachmentEndpointRequest.jsonOrThrow(_body, { - unrecognizedObjectKeys: "strip", - }), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -187,7 +284,7 @@ export class AttachmentsClient { }); if (_response.ok) { return { - data: serializers.accounting.AccountingAttachmentResponse.parseOrThrow(_response.body, { + data: serializers.accounting.AccountingAttachment.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -206,39 +303,74 @@ export class AttachmentsClient { }); } - return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/accounting/v1/attachments"); + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/attachments/{id}", + ); } /** - * Returns an `AccountingAttachment` object with the given `id`. + * Returns a list of `AccountingAttachment` objects. * - * @param {string} id - * @param {Merge.accounting.AttachmentsRetrieveRequest} request + * @param {string} batch_id + * @param {Merge.accounting.AttachmentsBatchObjectsListRequest} request * @param {AttachmentsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.attachments.retrieve("id", { + * await client.accounting.attachments.batchObjectsList("batch_id", { + * companyId: "company_id", + * createdAfter: new Date("2024-01-15T09:30:00.000Z"), + * createdBefore: new Date("2024-01-15T09:30:00.000Z"), + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, * includeRemoteData: true, - * includeShellData: true + * includeShellData: true, + * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * pageSize: 1, + * remoteId: "remote_id" * }) */ - public retrieve( - id: string, - request: Merge.accounting.AttachmentsRetrieveRequest = {}, + public batchObjectsList( + batch_id: string, + request: Merge.accounting.AttachmentsBatchObjectsListRequest = {}, requestOptions?: AttachmentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__batchObjectsList(batch_id, request, requestOptions)); } - private async __retrieve( - id: string, - request: Merge.accounting.AttachmentsRetrieveRequest = {}, + private async __batchObjectsList( + batch_id: string, + request: Merge.accounting.AttachmentsBatchObjectsListRequest = {}, requestOptions?: AttachmentsClient.RequestOptions, - ): Promise> { - const { includeRemoteData, includeShellData } = request; + ): Promise> { + const { + companyId, + createdAfter, + createdBefore, + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; const _queryParams: Record = { + company_id: companyId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + include_deleted_data: includeDeletedData, include_remote_data: includeRemoteData, include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( @@ -252,7 +384,7 @@ export class AttachmentsClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - `accounting/v1/attachments/${core.url.encodePathParam(id)}`, + `accounting/v1/attachments/batch/${core.url.encodePathParam(batch_id)}/objects`, ), method: "GET", headers: _headers, @@ -265,7 +397,7 @@ export class AttachmentsClient { }); if (_response.ok) { return { - data: serializers.accounting.AccountingAttachment.parseOrThrow(_response.body, { + data: serializers.accounting.PaginatedAccountingAttachmentList.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -288,7 +420,98 @@ export class AttachmentsClient { _response.error, _response.rawResponse, "GET", - "/accounting/v1/attachments/{id}", + "/accounting/v1/attachments/batch/{batch_id}/objects", + ); + } + + /** + * Creates an `AccountingAttachment` object with the given values. + * + * @param {Merge.accounting.AccountingAttachmentBulkRequest} request + * @param {AttachmentsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.attachments.asyncBulkCreate({ + * isDebugMode: true, + * runAsync: true, + * batchItems: [{ + * itemId: "item_id", + * payload: { + * model: {} + * } + * }] + * }) + */ + public asyncBulkCreate( + request: Merge.accounting.AccountingAttachmentBulkRequest, + requestOptions?: AttachmentsClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__asyncBulkCreate(request, requestOptions)); + } + + private async __asyncBulkCreate( + request: Merge.accounting.AccountingAttachmentBulkRequest, + requestOptions?: AttachmentsClient.RequestOptions, + ): Promise> { + const { isDebugMode, runAsync, ..._body } = request; + const _queryParams: Record = { + is_debug_mode: isDebugMode, + run_async: runAsync, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/attachments/async/bulk", + ), + method: "POST", + headers: _headers, + contentType: "application/json", + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + requestType: "json", + body: serializers.accounting.AccountingAttachmentBulkRequest.jsonOrThrow(_body, { + unrecognizedObjectKeys: "strip", + }), + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.AccountingAttachmentResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "POST", + "/accounting/v1/attachments/async/bulk", ); } diff --git a/src/api/resources/accounting/resources/attachments/client/requests/AccountingAttachmentBulkRequest.ts b/src/api/resources/accounting/resources/attachments/client/requests/AccountingAttachmentBulkRequest.ts new file mode 100644 index 000000000..63630891c --- /dev/null +++ b/src/api/resources/accounting/resources/attachments/client/requests/AccountingAttachmentBulkRequest.ts @@ -0,0 +1,24 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * batchItems: [{ + * itemId: "item_id", + * payload: { + * model: {} + * } + * }] + * } + */ +export interface AccountingAttachmentBulkRequest { + /** 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; + batchItems: Merge.accounting.AccountingAttachmentBatchItemRequest[]; +} diff --git a/src/api/resources/accounting/resources/attachments/client/requests/AccountingAttachmentEndpointRequest.ts b/src/api/resources/accounting/resources/attachments/client/requests/AccountingAttachmentEndpointRequest.ts deleted file mode 100644 index f9c602317..000000000 --- a/src/api/resources/accounting/resources/attachments/client/requests/AccountingAttachmentEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface AccountingAttachmentEndpointRequest { - /** 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.accounting.AccountingAttachmentRequest; -} diff --git a/src/api/resources/accounting/resources/attachments/client/requests/AttachmentsBatchObjectsListRequest.ts b/src/api/resources/accounting/resources/attachments/client/requests/AttachmentsBatchObjectsListRequest.ts new file mode 100644 index 000000000..81448d334 --- /dev/null +++ b/src/api/resources/accounting/resources/attachments/client/requests/AttachmentsBatchObjectsListRequest.ts @@ -0,0 +1,42 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * @example + * { + * companyId: "company_id", + * createdAfter: new Date("2024-01-15T09:30:00.000Z"), + * createdBefore: new Date("2024-01-15T09:30:00.000Z"), + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeShellData: true, + * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * pageSize: 1, + * remoteId: "remote_id" + * } + */ +export interface AttachmentsBatchObjectsListRequest { + /** If provided, will only return accounting attachments for this company. */ + companyId?: string; + /** If provided, will only return objects created after this datetime. */ + createdAfter?: Date; + /** If provided, will only return objects created before this datetime. */ + createdBefore?: Date; + /** The pagination cursor value. */ + cursor?: string; + /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ + includeDeletedData?: boolean; + /** Whether to include the original data Merge fetched from the third-party to produce these models. */ + includeRemoteData?: boolean; + /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ + includeShellData?: boolean; + /** If provided, only objects synced by Merge after this date time will be returned. */ + modifiedAfter?: Date; + /** If provided, only objects synced by Merge before this date time will be returned. */ + modifiedBefore?: Date; + /** Number of results to return per page. The maximum limit is 100. */ + pageSize?: number; + /** The API provider's ID for the given object. */ + remoteId?: string; +} diff --git a/src/api/resources/accounting/resources/attachments/client/requests/AttachmentsCreateRequest.ts b/src/api/resources/accounting/resources/attachments/client/requests/AttachmentsCreateRequest.ts new file mode 100644 index 000000000..84a400ecf --- /dev/null +++ b/src/api/resources/accounting/resources/attachments/client/requests/AttachmentsCreateRequest.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * body: { + * model: {} + * } + * } + */ +export interface AttachmentsCreateRequest { + /** 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; + body: Merge.accounting.AccountingAttachmentEndpointRequest; +} diff --git a/src/api/resources/accounting/resources/attachments/client/requests/AttachmentsListRequest.ts b/src/api/resources/accounting/resources/attachments/client/requests/AttachmentsListRequest.ts index ed7c9aa8d..16463d69e 100644 --- a/src/api/resources/accounting/resources/attachments/client/requests/AttachmentsListRequest.ts +++ b/src/api/resources/accounting/resources/attachments/client/requests/AttachmentsListRequest.ts @@ -35,7 +35,7 @@ export interface AttachmentsListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; diff --git a/src/api/resources/accounting/resources/attachments/client/requests/index.ts b/src/api/resources/accounting/resources/attachments/client/requests/index.ts index fbcf4a827..b3c282940 100644 --- a/src/api/resources/accounting/resources/attachments/client/requests/index.ts +++ b/src/api/resources/accounting/resources/attachments/client/requests/index.ts @@ -1,3 +1,5 @@ -export type { AccountingAttachmentEndpointRequest } from "./AccountingAttachmentEndpointRequest"; +export type { AccountingAttachmentBulkRequest } from "./AccountingAttachmentBulkRequest"; +export type { AttachmentsBatchObjectsListRequest } from "./AttachmentsBatchObjectsListRequest"; +export type { AttachmentsCreateRequest } from "./AttachmentsCreateRequest"; export type { AttachmentsListRequest } from "./AttachmentsListRequest"; export type { AttachmentsRetrieveRequest } from "./AttachmentsRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/auditTrail/client/Client.ts b/src/api/resources/accounting/resources/auditTrail/client/Client.ts index f71839bfa..0f12c41fd 100644 --- a/src/api/resources/accounting/resources/auditTrail/client/Client.ts +++ b/src/api/resources/accounting/resources/auditTrail/client/Client.ts @@ -39,70 +39,85 @@ export class AuditTrailClient { * userEmail: "user_email" * }) */ - public list( + public async list( request: Merge.accounting.AuditTrailListRequest = {}, requestOptions?: AuditTrailClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.accounting.AuditTrailListRequest = {}, - requestOptions?: AuditTrailClient.RequestOptions, - ): Promise> { - const { cursor, endDate, eventType, pageSize, startDate, userEmail } = request; - const _queryParams: Record = { - cursor, - end_date: endDate, - event_type: eventType, - page_size: pageSize, - start_date: startDate, - user_email: userEmail, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.AuditTrailListRequest, + ): Promise> => { + const { cursor, endDate, eventType, pageSize, startDate, userEmail } = request; + const _queryParams: Record = { + cursor, + end_date: endDate, + event_type: eventType, + page_size: pageSize, + start_date: startDate, + user_email: userEmail, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/audit-trail", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedAuditLogEventList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/audit-trail", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "accounting/v1/audit-trail", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.accounting.PaginatedAuditLogEventList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/accounting/v1/audit-trail"); } } diff --git a/src/api/resources/accounting/resources/balanceSheets/client/Client.ts b/src/api/resources/accounting/resources/balanceSheets/client/Client.ts index 889501585..98268e15b 100644 --- a/src/api/resources/accounting/resources/balanceSheets/client/Client.ts +++ b/src/api/resources/accounting/resources/balanceSheets/client/Client.ts @@ -35,7 +35,6 @@ export class BalanceSheetsClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "company", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -45,90 +44,105 @@ export class BalanceSheetsClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.accounting.BalanceSheetsListRequest = {}, requestOptions?: BalanceSheetsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.accounting.BalanceSheetsListRequest = {}, - requestOptions?: BalanceSheetsClient.RequestOptions, - ): Promise> { - const { - companyId, - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - company_id: companyId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: expand != null ? expand : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.BalanceSheetsListRequest, + ): Promise> => { + const { + companyId, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + company_id: companyId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/balance-sheets", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedBalanceSheetList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/balance-sheets", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "accounting/v1/balance-sheets", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.accounting.PaginatedBalanceSheetList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/accounting/v1/balance-sheets"); } /** @@ -140,7 +154,6 @@ export class BalanceSheetsClient { * * @example * await client.accounting.balanceSheets.retrieve("id", { - * expand: "company", * includeRemoteData: true, * includeShellData: true * }) @@ -160,7 +173,7 @@ export class BalanceSheetsClient { ): Promise> { const { expand, includeRemoteData, includeShellData } = request; const _queryParams: Record = { - expand: expand != null ? expand : undefined, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, }; diff --git a/src/api/resources/accounting/resources/balanceSheets/client/requests/BalanceSheetsListRequest.ts b/src/api/resources/accounting/resources/balanceSheets/client/requests/BalanceSheetsListRequest.ts index 3bfad6d23..c65f2837a 100644 --- a/src/api/resources/accounting/resources/balanceSheets/client/requests/BalanceSheetsListRequest.ts +++ b/src/api/resources/accounting/resources/balanceSheets/client/requests/BalanceSheetsListRequest.ts @@ -7,7 +7,6 @@ * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "company", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -27,7 +26,7 @@ export interface BalanceSheetsListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "company"; + expand?: "company" | "company"[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -38,7 +37,7 @@ export interface BalanceSheetsListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; diff --git a/src/api/resources/accounting/resources/balanceSheets/client/requests/BalanceSheetsRetrieveRequest.ts b/src/api/resources/accounting/resources/balanceSheets/client/requests/BalanceSheetsRetrieveRequest.ts index 5d04e464f..d57f8b601 100644 --- a/src/api/resources/accounting/resources/balanceSheets/client/requests/BalanceSheetsRetrieveRequest.ts +++ b/src/api/resources/accounting/resources/balanceSheets/client/requests/BalanceSheetsRetrieveRequest.ts @@ -3,14 +3,13 @@ /** * @example * { - * expand: "company", * includeRemoteData: true, * includeShellData: true * } */ export interface BalanceSheetsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "company"; + expand?: "company" | "company"[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/accounting/resources/bankFeedAccounts/client/Client.ts b/src/api/resources/accounting/resources/bankFeedAccounts/client/Client.ts index e307789f3..847eb29e3 100644 --- a/src/api/resources/accounting/resources/bankFeedAccounts/client/Client.ts +++ b/src/api/resources/accounting/resources/bankFeedAccounts/client/Client.ts @@ -38,24 +38,117 @@ export class BankFeedAccountsClient { * pageSize: 1 * }) */ - public list( + public async list( request: Merge.accounting.BankFeedAccountsListRequest = {}, requestOptions?: BankFeedAccountsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.BankFeedAccountsListRequest, + ): Promise> => { + const { cursor, includeDeletedData, includeRemoteData, includeShellData, pageSize } = request; + const _queryParams: Record = { + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/bank-feed-accounts", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedBankFeedAccountList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/bank-feed-accounts", + ); + }, + ); + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, + }); } - private async __list( - request: Merge.accounting.BankFeedAccountsListRequest = {}, + /** + * Creates a `BankFeedAccount` object with the given values. + * + * @param {Merge.accounting.BankFeedAccountsCreateRequest} request + * @param {BankFeedAccountsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.bankFeedAccounts.create({ + * isDebugMode: true, + * runAsync: true, + * body: { + * model: {} + * } + * }) + */ + public create( + request: Merge.accounting.BankFeedAccountsCreateRequest, requestOptions?: BankFeedAccountsClient.RequestOptions, - ): Promise> { - const { cursor, includeDeletedData, includeRemoteData, includeShellData, pageSize } = request; + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); + } + + private async __create( + request: Merge.accounting.BankFeedAccountsCreateRequest, + requestOptions?: BankFeedAccountsClient.RequestOptions, + ): Promise> { + const { isDebugMode, runAsync, body: _body } = request; const _queryParams: Record = { - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - page_size: pageSize, + is_debug_mode: isDebugMode, + run_async: runAsync, }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( @@ -71,9 +164,14 @@ export class BankFeedAccountsClient { environments.MergeEnvironment.Production, "accounting/v1/bank-feed-accounts", ), - method: "GET", + method: "POST", headers: _headers, + contentType: "application/json", queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + requestType: "json", + body: serializers.accounting.BankFeedAccountEndpointRequest.jsonOrThrow(_body, { + unrecognizedObjectKeys: "strip", + }), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -82,7 +180,7 @@ export class BankFeedAccountsClient { }); if (_response.ok) { return { - data: serializers.accounting.PaginatedBankFeedAccountList.parseOrThrow(_response.body, { + data: serializers.accounting.BankFeedAccountResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -104,39 +202,41 @@ export class BankFeedAccountsClient { return handleNonStatusCodeError( _response.error, _response.rawResponse, - "GET", + "POST", "/accounting/v1/bank-feed-accounts", ); } /** - * Creates a `BankFeedAccount` object with the given values. + * Returns a `BankFeedAccount` object with the given `id`. * - * @param {Merge.accounting.BankFeedAccountEndpointRequest} request + * @param {string} id + * @param {Merge.accounting.BankFeedAccountsRetrieveRequest} request * @param {BankFeedAccountsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.bankFeedAccounts.create({ - * isDebugMode: true, - * runAsync: true, - * model: {} + * await client.accounting.bankFeedAccounts.retrieve("id", { + * includeRemoteData: true, + * includeShellData: true * }) */ - public create( - request: Merge.accounting.BankFeedAccountEndpointRequest, + public retrieve( + id: string, + request: Merge.accounting.BankFeedAccountsRetrieveRequest = {}, requestOptions?: BankFeedAccountsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); } - private async __create( - request: Merge.accounting.BankFeedAccountEndpointRequest, + private async __retrieve( + id: string, + request: Merge.accounting.BankFeedAccountsRetrieveRequest = {}, requestOptions?: BankFeedAccountsClient.RequestOptions, - ): Promise> { - const { isDebugMode, runAsync, ..._body } = request; + ): Promise> { + const { includeRemoteData, includeShellData } = request; const _queryParams: Record = { - is_debug_mode: isDebugMode, - run_async: runAsync, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( @@ -150,16 +250,11 @@ export class BankFeedAccountsClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/bank-feed-accounts", + `accounting/v1/bank-feed-accounts/${core.url.encodePathParam(id)}`, ), - method: "POST", + method: "GET", headers: _headers, - contentType: "application/json", queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.accounting.BankFeedAccountEndpointRequest.jsonOrThrow(_body, { - unrecognizedObjectKeys: "strip", - }), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -168,7 +263,7 @@ export class BankFeedAccountsClient { }); if (_response.ok) { return { - data: serializers.accounting.BankFeedAccountResponse.parseOrThrow(_response.body, { + data: serializers.accounting.BankFeedAccount.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -190,41 +285,47 @@ export class BankFeedAccountsClient { return handleNonStatusCodeError( _response.error, _response.rawResponse, - "POST", - "/accounting/v1/bank-feed-accounts", + "GET", + "/accounting/v1/bank-feed-accounts/{id}", ); } /** - * Returns a `BankFeedAccount` object with the given `id`. + * Returns a list of `BankFeedAccount` objects. * - * @param {string} id - * @param {Merge.accounting.BankFeedAccountsRetrieveRequest} request + * @param {string} batch_id + * @param {Merge.accounting.BankFeedAccountsBatchObjectsListRequest} request * @param {BankFeedAccountsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.bankFeedAccounts.retrieve("id", { + * await client.accounting.bankFeedAccounts.batchObjectsList("batch_id", { + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, * includeRemoteData: true, - * includeShellData: true + * includeShellData: true, + * pageSize: 1 * }) */ - public retrieve( - id: string, - request: Merge.accounting.BankFeedAccountsRetrieveRequest = {}, + public batchObjectsList( + batch_id: string, + request: Merge.accounting.BankFeedAccountsBatchObjectsListRequest = {}, requestOptions?: BankFeedAccountsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__batchObjectsList(batch_id, request, requestOptions)); } - private async __retrieve( - id: string, - request: Merge.accounting.BankFeedAccountsRetrieveRequest = {}, + private async __batchObjectsList( + batch_id: string, + request: Merge.accounting.BankFeedAccountsBatchObjectsListRequest = {}, requestOptions?: BankFeedAccountsClient.RequestOptions, - ): Promise> { - const { includeRemoteData, includeShellData } = request; + ): Promise> { + const { cursor, includeDeletedData, includeRemoteData, includeShellData, pageSize } = request; const _queryParams: Record = { + cursor, + include_deleted_data: includeDeletedData, include_remote_data: includeRemoteData, include_shell_data: includeShellData, + page_size: pageSize, }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( @@ -238,7 +339,7 @@ export class BankFeedAccountsClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - `accounting/v1/bank-feed-accounts/${core.url.encodePathParam(id)}`, + `accounting/v1/bank-feed-accounts/batch/${core.url.encodePathParam(batch_id)}/objects`, ), method: "GET", headers: _headers, @@ -251,7 +352,7 @@ export class BankFeedAccountsClient { }); if (_response.ok) { return { - data: serializers.accounting.BankFeedAccount.parseOrThrow(_response.body, { + data: serializers.accounting.PaginatedBankFeedAccountList.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -274,7 +375,98 @@ export class BankFeedAccountsClient { _response.error, _response.rawResponse, "GET", - "/accounting/v1/bank-feed-accounts/{id}", + "/accounting/v1/bank-feed-accounts/batch/{batch_id}/objects", + ); + } + + /** + * Creates a `BankFeedAccount` object with the given values. + * + * @param {Merge.accounting.BankFeedAccountBulkRequest} request + * @param {BankFeedAccountsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.bankFeedAccounts.asyncBulkCreate({ + * isDebugMode: true, + * runAsync: true, + * batchItems: [{ + * itemId: "item_id", + * payload: { + * model: {} + * } + * }] + * }) + */ + public asyncBulkCreate( + request: Merge.accounting.BankFeedAccountBulkRequest, + requestOptions?: BankFeedAccountsClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__asyncBulkCreate(request, requestOptions)); + } + + private async __asyncBulkCreate( + request: Merge.accounting.BankFeedAccountBulkRequest, + requestOptions?: BankFeedAccountsClient.RequestOptions, + ): Promise> { + const { isDebugMode, runAsync, ..._body } = request; + const _queryParams: Record = { + is_debug_mode: isDebugMode, + run_async: runAsync, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/bank-feed-accounts/async/bulk", + ), + method: "POST", + headers: _headers, + contentType: "application/json", + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + requestType: "json", + body: serializers.accounting.BankFeedAccountBulkRequest.jsonOrThrow(_body, { + unrecognizedObjectKeys: "strip", + }), + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.BankFeedAccountResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "POST", + "/accounting/v1/bank-feed-accounts/async/bulk", ); } diff --git a/src/api/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountBulkRequest.ts b/src/api/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountBulkRequest.ts new file mode 100644 index 000000000..40c636058 --- /dev/null +++ b/src/api/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountBulkRequest.ts @@ -0,0 +1,24 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * batchItems: [{ + * itemId: "item_id", + * payload: { + * model: {} + * } + * }] + * } + */ +export interface BankFeedAccountBulkRequest { + /** 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; + batchItems: Merge.accounting.BankFeedAccountBatchItemRequest[]; +} diff --git a/src/api/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountEndpointRequest.ts b/src/api/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountEndpointRequest.ts deleted file mode 100644 index 2a39e86dd..000000000 --- a/src/api/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface BankFeedAccountEndpointRequest { - /** 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.accounting.BankFeedAccountRequest; -} diff --git a/src/api/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountsBatchObjectsListRequest.ts b/src/api/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountsBatchObjectsListRequest.ts new file mode 100644 index 000000000..08e325e51 --- /dev/null +++ b/src/api/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountsBatchObjectsListRequest.ts @@ -0,0 +1,24 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * @example + * { + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeShellData: true, + * pageSize: 1 + * } + */ +export interface BankFeedAccountsBatchObjectsListRequest { + /** The pagination cursor value. */ + cursor?: string; + /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ + includeDeletedData?: boolean; + /** Whether to include the original data Merge fetched from the third-party to produce these models. */ + includeRemoteData?: boolean; + /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ + includeShellData?: boolean; + /** Number of results to return per page. The maximum limit is 100. */ + pageSize?: number; +} diff --git a/src/api/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountsCreateRequest.ts b/src/api/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountsCreateRequest.ts new file mode 100644 index 000000000..e69ce2a07 --- /dev/null +++ b/src/api/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountsCreateRequest.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * body: { + * model: {} + * } + * } + */ +export interface BankFeedAccountsCreateRequest { + /** 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; + body: Merge.accounting.BankFeedAccountEndpointRequest; +} diff --git a/src/api/resources/accounting/resources/bankFeedAccounts/client/requests/index.ts b/src/api/resources/accounting/resources/bankFeedAccounts/client/requests/index.ts index ee23ab2eb..f2278557c 100644 --- a/src/api/resources/accounting/resources/bankFeedAccounts/client/requests/index.ts +++ b/src/api/resources/accounting/resources/bankFeedAccounts/client/requests/index.ts @@ -1,3 +1,5 @@ -export type { BankFeedAccountEndpointRequest } from "./BankFeedAccountEndpointRequest"; +export type { BankFeedAccountBulkRequest } from "./BankFeedAccountBulkRequest"; +export type { BankFeedAccountsBatchObjectsListRequest } from "./BankFeedAccountsBatchObjectsListRequest"; +export type { BankFeedAccountsCreateRequest } from "./BankFeedAccountsCreateRequest"; export type { BankFeedAccountsListRequest } from "./BankFeedAccountsListRequest"; export type { BankFeedAccountsRetrieveRequest } from "./BankFeedAccountsRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/bankFeedTransactions/client/Client.ts b/src/api/resources/accounting/resources/bankFeedTransactions/client/Client.ts index 3ceb0de41..d94a24c6d 100644 --- a/src/api/resources/accounting/resources/bankFeedTransactions/client/Client.ts +++ b/src/api/resources/accounting/resources/bankFeedTransactions/client/Client.ts @@ -34,7 +34,6 @@ export class BankFeedTransactionsClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "bank_feed_account", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -45,44 +44,137 @@ export class BankFeedTransactionsClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.accounting.BankFeedTransactionsListRequest = {}, requestOptions?: BankFeedTransactionsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.BankFeedTransactionsListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + isProcessed, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + is_processed: isProcessed, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/bank-feed-transactions", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedBankFeedTransactionList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/bank-feed-transactions", + ); + }, + ); + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, + }); } - private async __list( - request: Merge.accounting.BankFeedTransactionsListRequest = {}, + /** + * Creates a `BankFeedTransaction` object with the given values. + * + * @param {Merge.accounting.BankFeedTransactionsCreateRequest} request + * @param {BankFeedTransactionsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.bankFeedTransactions.create({ + * isDebugMode: true, + * runAsync: true, + * body: { + * model: {} + * } + * }) + */ + public create( + request: Merge.accounting.BankFeedTransactionsCreateRequest, requestOptions?: BankFeedTransactionsClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - isProcessed, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); + } + + private async __create( + request: Merge.accounting.BankFeedTransactionsCreateRequest, + requestOptions?: BankFeedTransactionsClient.RequestOptions, + ): Promise> { + const { isDebugMode, runAsync, body: _body } = request; const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: expand != null ? expand : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - is_processed: isProcessed, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, + is_debug_mode: isDebugMode, + run_async: runAsync, }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( @@ -98,9 +190,14 @@ export class BankFeedTransactionsClient { environments.MergeEnvironment.Production, "accounting/v1/bank-feed-transactions", ), - method: "GET", + method: "POST", headers: _headers, + contentType: "application/json", queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + requestType: "json", + body: serializers.accounting.BankFeedTransactionEndpointRequest.jsonOrThrow(_body, { + unrecognizedObjectKeys: "strip", + }), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -109,7 +206,7 @@ export class BankFeedTransactionsClient { }); if (_response.ok) { return { - data: serializers.accounting.PaginatedBankFeedTransactionList.parseOrThrow(_response.body, { + data: serializers.accounting.BankFeedTransactionResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -131,39 +228,42 @@ export class BankFeedTransactionsClient { return handleNonStatusCodeError( _response.error, _response.rawResponse, - "GET", + "POST", "/accounting/v1/bank-feed-transactions", ); } /** - * Creates a `BankFeedTransaction` object with the given values. + * Returns a `BankFeedTransaction` object with the given `id`. * - * @param {Merge.accounting.BankFeedTransactionEndpointRequest} request + * @param {string} id + * @param {Merge.accounting.BankFeedTransactionsRetrieveRequest} request * @param {BankFeedTransactionsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.bankFeedTransactions.create({ - * isDebugMode: true, - * runAsync: true, - * model: {} + * await client.accounting.bankFeedTransactions.retrieve("id", { + * includeRemoteData: true, + * includeShellData: true * }) */ - public create( - request: Merge.accounting.BankFeedTransactionEndpointRequest, + public retrieve( + id: string, + request: Merge.accounting.BankFeedTransactionsRetrieveRequest = {}, requestOptions?: BankFeedTransactionsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); } - private async __create( - request: Merge.accounting.BankFeedTransactionEndpointRequest, + private async __retrieve( + id: string, + request: Merge.accounting.BankFeedTransactionsRetrieveRequest = {}, requestOptions?: BankFeedTransactionsClient.RequestOptions, - ): Promise> { - const { isDebugMode, runAsync, ..._body } = request; + ): Promise> { + const { expand, includeRemoteData, includeShellData } = request; const _queryParams: Record = { - is_debug_mode: isDebugMode, - run_async: runAsync, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( @@ -177,16 +277,11 @@ export class BankFeedTransactionsClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/bank-feed-transactions", + `accounting/v1/bank-feed-transactions/${core.url.encodePathParam(id)}`, ), - method: "POST", + method: "GET", headers: _headers, - contentType: "application/json", queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - requestType: "json", - body: serializers.accounting.BankFeedTransactionEndpointRequest.jsonOrThrow(_body, { - unrecognizedObjectKeys: "strip", - }), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -195,7 +290,7 @@ export class BankFeedTransactionsClient { }); if (_response.ok) { return { - data: serializers.accounting.BankFeedTransactionResponse.parseOrThrow(_response.body, { + data: serializers.accounting.BankFeedTransaction.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -217,43 +312,73 @@ export class BankFeedTransactionsClient { return handleNonStatusCodeError( _response.error, _response.rawResponse, - "POST", - "/accounting/v1/bank-feed-transactions", + "GET", + "/accounting/v1/bank-feed-transactions/{id}", ); } /** - * Returns a `BankFeedTransaction` object with the given `id`. + * Returns a list of `BankFeedTransaction` objects. * - * @param {string} id - * @param {Merge.accounting.BankFeedTransactionsRetrieveRequest} request + * @param {string} batch_id + * @param {Merge.accounting.BankFeedTransactionsBatchObjectsListRequest} request * @param {BankFeedTransactionsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.bankFeedTransactions.retrieve("id", { - * expand: "bank_feed_account", + * await client.accounting.bankFeedTransactions.batchObjectsList("batch_id", { + * createdAfter: new Date("2024-01-15T09:30:00.000Z"), + * createdBefore: new Date("2024-01-15T09:30:00.000Z"), + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, * includeRemoteData: true, - * includeShellData: true + * includeShellData: true, + * isProcessed: true, + * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * pageSize: 1, + * remoteId: "remote_id" * }) */ - public retrieve( - id: string, - request: Merge.accounting.BankFeedTransactionsRetrieveRequest = {}, + public batchObjectsList( + batch_id: string, + request: Merge.accounting.BankFeedTransactionsBatchObjectsListRequest = {}, requestOptions?: BankFeedTransactionsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__batchObjectsList(batch_id, request, requestOptions)); } - private async __retrieve( - id: string, - request: Merge.accounting.BankFeedTransactionsRetrieveRequest = {}, + private async __batchObjectsList( + batch_id: string, + request: Merge.accounting.BankFeedTransactionsBatchObjectsListRequest = {}, requestOptions?: BankFeedTransactionsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData } = request; + ): Promise> { + const { + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + isProcessed, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; const _queryParams: Record = { - expand: expand != null ? expand : undefined, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, + include_deleted_data: includeDeletedData, include_remote_data: includeRemoteData, include_shell_data: includeShellData, + is_processed: isProcessed, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( @@ -267,7 +392,7 @@ export class BankFeedTransactionsClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - `accounting/v1/bank-feed-transactions/${core.url.encodePathParam(id)}`, + `accounting/v1/bank-feed-transactions/batch/${core.url.encodePathParam(batch_id)}/objects`, ), method: "GET", headers: _headers, @@ -280,7 +405,7 @@ export class BankFeedTransactionsClient { }); if (_response.ok) { return { - data: serializers.accounting.BankFeedTransaction.parseOrThrow(_response.body, { + data: serializers.accounting.PaginatedBankFeedTransactionList.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -303,7 +428,98 @@ export class BankFeedTransactionsClient { _response.error, _response.rawResponse, "GET", - "/accounting/v1/bank-feed-transactions/{id}", + "/accounting/v1/bank-feed-transactions/batch/{batch_id}/objects", + ); + } + + /** + * Creates a `BankFeedTransaction` object with the given values. + * + * @param {Merge.accounting.BankFeedTransactionBulkRequest} request + * @param {BankFeedTransactionsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.bankFeedTransactions.asyncBulkCreate({ + * isDebugMode: true, + * runAsync: true, + * batchItems: [{ + * itemId: "item_id", + * payload: { + * model: {} + * } + * }] + * }) + */ + public asyncBulkCreate( + request: Merge.accounting.BankFeedTransactionBulkRequest, + requestOptions?: BankFeedTransactionsClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__asyncBulkCreate(request, requestOptions)); + } + + private async __asyncBulkCreate( + request: Merge.accounting.BankFeedTransactionBulkRequest, + requestOptions?: BankFeedTransactionsClient.RequestOptions, + ): Promise> { + const { isDebugMode, runAsync, ..._body } = request; + const _queryParams: Record = { + is_debug_mode: isDebugMode, + run_async: runAsync, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/bank-feed-transactions/async/bulk", + ), + method: "POST", + headers: _headers, + contentType: "application/json", + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + requestType: "json", + body: serializers.accounting.BankFeedTransactionBulkRequest.jsonOrThrow(_body, { + unrecognizedObjectKeys: "strip", + }), + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.BankFeedTransactionResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "POST", + "/accounting/v1/bank-feed-transactions/async/bulk", ); } diff --git a/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionBulkRequest.ts b/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionBulkRequest.ts new file mode 100644 index 000000000..6248e51f3 --- /dev/null +++ b/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionBulkRequest.ts @@ -0,0 +1,24 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * batchItems: [{ + * itemId: "item_id", + * payload: { + * model: {} + * } + * }] + * } + */ +export interface BankFeedTransactionBulkRequest { + /** 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; + batchItems: Merge.accounting.BankFeedTransactionBatchItemRequest[]; +} diff --git a/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionEndpointRequest.ts b/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionEndpointRequest.ts deleted file mode 100644 index bab200892..000000000 --- a/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface BankFeedTransactionEndpointRequest { - /** 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.accounting.BankFeedTransactionRequestRequest; -} diff --git a/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionsBatchObjectsListRequest.ts b/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionsBatchObjectsListRequest.ts new file mode 100644 index 000000000..3e2935e1d --- /dev/null +++ b/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionsBatchObjectsListRequest.ts @@ -0,0 +1,44 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * @example + * { + * createdAfter: new Date("2024-01-15T09:30:00.000Z"), + * createdBefore: new Date("2024-01-15T09:30:00.000Z"), + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeShellData: true, + * isProcessed: true, + * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * pageSize: 1, + * remoteId: "remote_id" + * } + */ +export interface BankFeedTransactionsBatchObjectsListRequest { + /** If provided, will only return objects created after this datetime. */ + createdAfter?: Date; + /** If provided, will only return objects created before this datetime. */ + createdBefore?: Date; + /** The pagination cursor value. */ + cursor?: string; + /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ + expand?: "bank_feed_account" | "bank_feed_account"[]; + /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ + includeDeletedData?: boolean; + /** Whether to include the original data Merge fetched from the third-party to produce these models. */ + includeRemoteData?: boolean; + /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ + includeShellData?: boolean; + /** If provided, will only return bank feed transactions with this is_processed value */ + isProcessed?: boolean; + /** If provided, only objects synced by Merge after this date time will be returned. */ + modifiedAfter?: Date; + /** If provided, only objects synced by Merge before this date time will be returned. */ + modifiedBefore?: Date; + /** Number of results to return per page. The maximum limit is 100. */ + pageSize?: number; + /** The API provider's ID for the given object. */ + remoteId?: string; +} diff --git a/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionsCreateRequest.ts b/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionsCreateRequest.ts new file mode 100644 index 000000000..cc5142d51 --- /dev/null +++ b/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionsCreateRequest.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * body: { + * model: {} + * } + * } + */ +export interface BankFeedTransactionsCreateRequest { + /** 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; + body: Merge.accounting.BankFeedTransactionEndpointRequest; +} diff --git a/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionsListRequest.ts b/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionsListRequest.ts index 707d1e2ef..e2c8cc510 100644 --- a/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionsListRequest.ts +++ b/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionsListRequest.ts @@ -6,7 +6,6 @@ * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "bank_feed_account", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -25,7 +24,7 @@ export interface BankFeedTransactionsListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "bank_feed_account"; + expand?: "bank_feed_account" | "bank_feed_account"[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ diff --git a/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionsRetrieveRequest.ts b/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionsRetrieveRequest.ts index e62d97162..b427010dc 100644 --- a/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionsRetrieveRequest.ts +++ b/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionsRetrieveRequest.ts @@ -3,14 +3,13 @@ /** * @example * { - * expand: "bank_feed_account", * includeRemoteData: true, * includeShellData: true * } */ export interface BankFeedTransactionsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "bank_feed_account"; + expand?: "bank_feed_account" | "bank_feed_account"[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/index.ts b/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/index.ts index fb01fc4c8..3d51b37f2 100644 --- a/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/index.ts +++ b/src/api/resources/accounting/resources/bankFeedTransactions/client/requests/index.ts @@ -1,3 +1,5 @@ -export type { BankFeedTransactionEndpointRequest } from "./BankFeedTransactionEndpointRequest"; +export type { BankFeedTransactionBulkRequest } from "./BankFeedTransactionBulkRequest"; +export type { BankFeedTransactionsBatchObjectsListRequest } from "./BankFeedTransactionsBatchObjectsListRequest"; +export type { BankFeedTransactionsCreateRequest } from "./BankFeedTransactionsCreateRequest"; export type { BankFeedTransactionsListRequest } from "./BankFeedTransactionsListRequest"; export type { BankFeedTransactionsRetrieveRequest } from "./BankFeedTransactionsRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/cashFlowStatements/client/Client.ts b/src/api/resources/accounting/resources/cashFlowStatements/client/Client.ts index adfb4163c..ea7b6ed58 100644 --- a/src/api/resources/accounting/resources/cashFlowStatements/client/Client.ts +++ b/src/api/resources/accounting/resources/cashFlowStatements/client/Client.ts @@ -35,7 +35,6 @@ export class CashFlowStatementsClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "company", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -45,95 +44,105 @@ export class CashFlowStatementsClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.accounting.CashFlowStatementsListRequest = {}, requestOptions?: CashFlowStatementsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.accounting.CashFlowStatementsListRequest = {}, - requestOptions?: CashFlowStatementsClient.RequestOptions, - ): Promise> { - const { - companyId, - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - company_id: companyId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: expand != null ? expand : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.CashFlowStatementsListRequest, + ): Promise> => { + const { + companyId, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + company_id: companyId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/cash-flow-statements", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedCashFlowStatementList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/cash-flow-statements", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "accounting/v1/cash-flow-statements", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.accounting.PaginatedCashFlowStatementList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/accounting/v1/cash-flow-statements", - ); } /** @@ -145,7 +154,6 @@ export class CashFlowStatementsClient { * * @example * await client.accounting.cashFlowStatements.retrieve("id", { - * expand: "company", * includeRemoteData: true, * includeShellData: true * }) @@ -165,7 +173,7 @@ export class CashFlowStatementsClient { ): Promise> { const { expand, includeRemoteData, includeShellData } = request; const _queryParams: Record = { - expand: expand != null ? expand : undefined, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, }; diff --git a/src/api/resources/accounting/resources/cashFlowStatements/client/requests/CashFlowStatementsListRequest.ts b/src/api/resources/accounting/resources/cashFlowStatements/client/requests/CashFlowStatementsListRequest.ts index 105782d1f..19f07981d 100644 --- a/src/api/resources/accounting/resources/cashFlowStatements/client/requests/CashFlowStatementsListRequest.ts +++ b/src/api/resources/accounting/resources/cashFlowStatements/client/requests/CashFlowStatementsListRequest.ts @@ -7,7 +7,6 @@ * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "company", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -27,7 +26,7 @@ export interface CashFlowStatementsListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "company"; + expand?: "company" | "company"[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ diff --git a/src/api/resources/accounting/resources/cashFlowStatements/client/requests/CashFlowStatementsRetrieveRequest.ts b/src/api/resources/accounting/resources/cashFlowStatements/client/requests/CashFlowStatementsRetrieveRequest.ts index b8c9fea3d..21b44f55c 100644 --- a/src/api/resources/accounting/resources/cashFlowStatements/client/requests/CashFlowStatementsRetrieveRequest.ts +++ b/src/api/resources/accounting/resources/cashFlowStatements/client/requests/CashFlowStatementsRetrieveRequest.ts @@ -3,14 +3,13 @@ /** * @example * { - * expand: "company", * includeRemoteData: true, * includeShellData: true * } */ export interface CashFlowStatementsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "company"; + expand?: "company" | "company"[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/accounting/resources/companyInfo/client/Client.ts b/src/api/resources/accounting/resources/companyInfo/client/Client.ts index 78648d8ed..c2aff21dd 100644 --- a/src/api/resources/accounting/resources/companyInfo/client/Client.ts +++ b/src/api/resources/accounting/resources/companyInfo/client/Client.ts @@ -34,103 +34,125 @@ export class CompanyInfoClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "addresses", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * name: "name", * pageSize: 1, * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.accounting.CompanyInfoListRequest = {}, requestOptions?: CompanyInfoClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.accounting.CompanyInfoListRequest = {}, - requestOptions?: CompanyInfoClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: - expand != null - ? serializers.accounting.CompanyInfoListRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.CompanyInfoListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + name, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.CompanyInfoListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.accounting.CompanyInfoListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + name, + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/company-info", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedCompanyInfoList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/company-info", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "accounting/v1/company-info", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.accounting.PaginatedCompanyInfoList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/accounting/v1/company-info"); } /** @@ -142,7 +164,6 @@ export class CompanyInfoClient { * * @example * await client.accounting.companyInfo.retrieve("id", { - * expand: "addresses", * includeRemoteData: true, * includeShellData: true * }) @@ -162,12 +183,17 @@ export class CompanyInfoClient { ): Promise> { const { expand, includeRemoteData, includeShellData } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.accounting.CompanyInfoRetrieveRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.CompanyInfoRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.accounting.CompanyInfoRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, }; diff --git a/src/api/resources/accounting/resources/companyInfo/client/requests/CompanyInfoListRequest.ts b/src/api/resources/accounting/resources/companyInfo/client/requests/CompanyInfoListRequest.ts index 3f8a20ccc..94aae6549 100644 --- a/src/api/resources/accounting/resources/companyInfo/client/requests/CompanyInfoListRequest.ts +++ b/src/api/resources/accounting/resources/companyInfo/client/requests/CompanyInfoListRequest.ts @@ -8,12 +8,12 @@ import type * as Merge from "../../../../../../index"; * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "addresses", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * name: "name", * pageSize: 1, * remoteId: "remote_id" * } @@ -26,7 +26,7 @@ export interface CompanyInfoListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.CompanyInfoListRequestExpand; + expand?: Merge.accounting.CompanyInfoListRequestExpandItem | Merge.accounting.CompanyInfoListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -37,7 +37,9 @@ export interface CompanyInfoListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** If provided, will only return CompanyInfo objects with this name. */ + name?: string; + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; diff --git a/src/api/resources/accounting/resources/companyInfo/client/requests/CompanyInfoRetrieveRequest.ts b/src/api/resources/accounting/resources/companyInfo/client/requests/CompanyInfoRetrieveRequest.ts index 81ce63415..038f06dbb 100644 --- a/src/api/resources/accounting/resources/companyInfo/client/requests/CompanyInfoRetrieveRequest.ts +++ b/src/api/resources/accounting/resources/companyInfo/client/requests/CompanyInfoRetrieveRequest.ts @@ -5,14 +5,15 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "addresses", * includeRemoteData: true, * includeShellData: true * } */ export interface CompanyInfoRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.CompanyInfoRetrieveRequestExpand; + expand?: + | Merge.accounting.CompanyInfoRetrieveRequestExpandItem + | Merge.accounting.CompanyInfoRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/accounting/resources/companyInfo/types/CompanyInfoListRequestExpand.ts b/src/api/resources/accounting/resources/companyInfo/types/CompanyInfoListRequestExpand.ts deleted file mode 100644 index 795edaf16..000000000 --- a/src/api/resources/accounting/resources/companyInfo/types/CompanyInfoListRequestExpand.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const CompanyInfoListRequestExpand = { - Addresses: "addresses", - AddressesPhoneNumbers: "addresses,phone_numbers", - PhoneNumbers: "phone_numbers", -} as const; -export type CompanyInfoListRequestExpand = - (typeof CompanyInfoListRequestExpand)[keyof typeof CompanyInfoListRequestExpand]; diff --git a/src/api/resources/accounting/resources/companyInfo/types/CompanyInfoListRequestExpandItem.ts b/src/api/resources/accounting/resources/companyInfo/types/CompanyInfoListRequestExpandItem.ts new file mode 100644 index 000000000..73f1ba570 --- /dev/null +++ b/src/api/resources/accounting/resources/companyInfo/types/CompanyInfoListRequestExpandItem.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export const CompanyInfoListRequestExpandItem = { + Addresses: "addresses", + PhoneNumbers: "phone_numbers", +} as const; +export type CompanyInfoListRequestExpandItem = + (typeof CompanyInfoListRequestExpandItem)[keyof typeof CompanyInfoListRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/companyInfo/types/CompanyInfoRetrieveRequestExpand.ts b/src/api/resources/accounting/resources/companyInfo/types/CompanyInfoRetrieveRequestExpand.ts deleted file mode 100644 index e7a24826e..000000000 --- a/src/api/resources/accounting/resources/companyInfo/types/CompanyInfoRetrieveRequestExpand.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const CompanyInfoRetrieveRequestExpand = { - Addresses: "addresses", - AddressesPhoneNumbers: "addresses,phone_numbers", - PhoneNumbers: "phone_numbers", -} as const; -export type CompanyInfoRetrieveRequestExpand = - (typeof CompanyInfoRetrieveRequestExpand)[keyof typeof CompanyInfoRetrieveRequestExpand]; diff --git a/src/api/resources/accounting/resources/companyInfo/types/CompanyInfoRetrieveRequestExpandItem.ts b/src/api/resources/accounting/resources/companyInfo/types/CompanyInfoRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..3c06e4524 --- /dev/null +++ b/src/api/resources/accounting/resources/companyInfo/types/CompanyInfoRetrieveRequestExpandItem.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export const CompanyInfoRetrieveRequestExpandItem = { + Addresses: "addresses", + PhoneNumbers: "phone_numbers", +} as const; +export type CompanyInfoRetrieveRequestExpandItem = + (typeof CompanyInfoRetrieveRequestExpandItem)[keyof typeof CompanyInfoRetrieveRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/companyInfo/types/index.ts b/src/api/resources/accounting/resources/companyInfo/types/index.ts index 8f0d30c91..68b77b77d 100644 --- a/src/api/resources/accounting/resources/companyInfo/types/index.ts +++ b/src/api/resources/accounting/resources/companyInfo/types/index.ts @@ -1,2 +1,2 @@ -export * from "./CompanyInfoListRequestExpand"; -export * from "./CompanyInfoRetrieveRequestExpand"; +export * from "./CompanyInfoListRequestExpandItem"; +export * from "./CompanyInfoRetrieveRequestExpandItem"; diff --git a/src/api/resources/accounting/resources/contacts/client/Client.ts b/src/api/resources/accounting/resources/contacts/client/Client.ts index d1a4ab0c2..0ab60156a 100644 --- a/src/api/resources/accounting/resources/contacts/client/Client.ts +++ b/src/api/resources/accounting/resources/contacts/client/Client.ts @@ -36,7 +36,6 @@ export class ContactsClient { * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * emailAddress: "email_address", - * expand: "addresses", * includeDeletedData: true, * includeRemoteData: true, * includeRemoteFields: true, @@ -53,143 +52,165 @@ export class ContactsClient { * status: "" * }) */ - public list( + public async list( request: Merge.accounting.ContactsListRequest = {}, requestOptions?: ContactsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.accounting.ContactsListRequest = {}, - requestOptions?: ContactsClient.RequestOptions, - ): Promise> { - const { - companyId, - createdAfter, - createdBefore, - cursor, - emailAddress, - expand, - includeDeletedData, - includeRemoteData, - includeRemoteFields, - includeShellData, - isCustomer, - isSupplier, - modifiedAfter, - modifiedBefore, - name, - pageSize, - remoteFields, - remoteId, - showEnumOrigins, - status, - } = request; - const _queryParams: Record = { - company_id: companyId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - email_address: emailAddress, - expand: - expand != null - ? serializers.accounting.ContactsListRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - is_customer: isCustomer, - is_supplier: isSupplier, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - name, - page_size: pageSize, - remote_fields: remoteFields != null ? remoteFields : undefined, - remote_id: remoteId, - show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, - status: - status != null - ? serializers.accounting.ContactsListRequestStatus.jsonOrThrow(status, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.ContactsListRequest, + ): Promise> => { + const { + companyId, + createdAfter, + createdBefore, + cursor, + emailAddress, + expand, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + isCustomer, + isSupplier, + modifiedAfter, + modifiedBefore, + name, + pageSize, + remoteFields, + remoteId, + showEnumOrigins, + status, + } = request; + const _queryParams: Record = { + company_id: companyId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + email_address: emailAddress, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.ContactsListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.accounting.ContactsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + is_customer: isCustomer, + is_supplier: isSupplier, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + name, + page_size: pageSize, + remote_fields: remoteFields != null ? remoteFields : undefined, + remote_id: remoteId, + show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, + status: + status != null + ? serializers.accounting.ContactsListRequestStatus.jsonOrThrow(status, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/contacts", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedContactList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/contacts", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "accounting/v1/contacts", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.accounting.PaginatedContactList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/accounting/v1/contacts"); } /** * Creates a `Contact` object with the given values. * - * @param {Merge.accounting.ContactEndpointRequest} request + * @param {Merge.accounting.ContactsCreateRequest} request * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.accounting.contacts.create({ * isDebugMode: true, * runAsync: true, - * model: {} + * body: { + * model: {} + * } * }) */ public create( - request: Merge.accounting.ContactEndpointRequest, + request: Merge.accounting.ContactsCreateRequest, requestOptions?: ContactsClient.RequestOptions, ): core.HttpResponsePromise { return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); } private async __create( - request: Merge.accounting.ContactEndpointRequest, + request: Merge.accounting.ContactsCreateRequest, requestOptions?: ContactsClient.RequestOptions, ): Promise> { - const { isDebugMode, runAsync, ..._body } = request; + const { isDebugMode, runAsync, body: _body } = request; const _queryParams: Record = { is_debug_mode: isDebugMode, run_async: runAsync, @@ -253,7 +274,6 @@ export class ContactsClient { * * @example * await client.accounting.contacts.retrieve("id", { - * expand: "addresses", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true, @@ -277,12 +297,17 @@ export class ContactsClient { const { expand, includeRemoteData, includeRemoteFields, includeShellData, remoteFields, showEnumOrigins } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.accounting.ContactsRetrieveRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.ContactsRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.accounting.ContactsRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_remote_fields: includeRemoteFields, include_shell_data: includeShellData, @@ -426,25 +451,107 @@ export class ContactsClient { } /** - * Returns metadata for `Contact` PATCHs. + * Returns a list of `Contact` objects. * - * @param {string} id + * @param {string} batch_id + * @param {Merge.accounting.ContactsBatchObjectsListRequest} request * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.contacts.metaPatchRetrieve("id") + * await client.accounting.contacts.batchObjectsList("batch_id", { + * companyId: "company_id", + * createdAfter: new Date("2024-01-15T09:30:00.000Z"), + * createdBefore: new Date("2024-01-15T09:30:00.000Z"), + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * emailAddress: "email_address", + * includeDeletedData: true, + * includeRemoteData: true, + * includeRemoteFields: true, + * includeShellData: true, + * isCustomer: "is_customer", + * isSupplier: "is_supplier", + * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * name: "name", + * pageSize: 1, + * remoteFields: "status", + * remoteId: "remote_id", + * showEnumOrigins: "status", + * status: "" + * }) */ - public metaPatchRetrieve( - id: string, + public batchObjectsList( + batch_id: string, + request: Merge.accounting.ContactsBatchObjectsListRequest = {}, requestOptions?: ContactsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPatchRetrieve(id, requestOptions)); + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__batchObjectsList(batch_id, request, requestOptions)); } - private async __metaPatchRetrieve( - id: string, + private async __batchObjectsList( + batch_id: string, + request: Merge.accounting.ContactsBatchObjectsListRequest = {}, requestOptions?: ContactsClient.RequestOptions, - ): Promise> { + ): Promise> { + const { + companyId, + createdAfter, + createdBefore, + cursor, + emailAddress, + expand, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + isCustomer, + isSupplier, + modifiedAfter, + modifiedBefore, + name, + pageSize, + remoteFields, + remoteId, + showEnumOrigins, + status, + } = request; + const _queryParams: Record = { + company_id: companyId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + email_address: emailAddress, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.ContactsBatchObjectsListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.accounting.ContactsBatchObjectsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + is_customer: isCustomer, + is_supplier: isSupplier, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + name, + page_size: pageSize, + remote_fields: remoteFields != null ? remoteFields : undefined, + remote_id: remoteId, + show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, + status: + status != null + ? serializers.accounting.ContactsBatchObjectsListRequestStatus.jsonOrThrow(status, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, @@ -457,11 +564,11 @@ export class ContactsClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - `accounting/v1/contacts/meta/patch/${core.url.encodePathParam(id)}`, + `accounting/v1/contacts/batch/${core.url.encodePathParam(batch_id)}/objects`, ), method: "GET", headers: _headers, - queryParameters: requestOptions?.queryParams, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -470,7 +577,7 @@ export class ContactsClient { }); if (_response.ok) { return { - data: serializers.accounting.MetaResponse.parseOrThrow(_response.body, { + data: serializers.accounting.PaginatedContactList.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -493,25 +600,117 @@ export class ContactsClient { _response.error, _response.rawResponse, "GET", - "/accounting/v1/contacts/meta/patch/{id}", + "/accounting/v1/contacts/batch/{batch_id}/objects", ); } /** - * Returns metadata for `Contact` POSTs. + * Creates a `Contact` object with the given values. * + * @param {Merge.accounting.ContactBulkRequest} request * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.contacts.metaPostRetrieve() + * await client.accounting.contacts.asyncBulkCreate({ + * isDebugMode: true, + * runAsync: true, + * batchItems: [{ + * itemId: "item_id", + * payload: { + * model: {} + * } + * }] + * }) */ - public metaPostRetrieve( + public asyncBulkCreate( + request: Merge.accounting.ContactBulkRequest, + requestOptions?: ContactsClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__asyncBulkCreate(request, requestOptions)); + } + + private async __asyncBulkCreate( + request: Merge.accounting.ContactBulkRequest, + requestOptions?: ContactsClient.RequestOptions, + ): Promise> { + const { isDebugMode, runAsync, ..._body } = request; + const _queryParams: Record = { + is_debug_mode: isDebugMode, + run_async: runAsync, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/contacts/async/bulk", + ), + method: "POST", + headers: _headers, + contentType: "application/json", + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + requestType: "json", + body: serializers.accounting.ContactBulkRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.ContactResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "POST", + "/accounting/v1/contacts/async/bulk", + ); + } + + /** + * Returns metadata for `Contact` PATCHs. + * + * @param {string} id + * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.contacts.metaPatchRetrieve("id") + */ + public metaPatchRetrieve( + id: string, requestOptions?: ContactsClient.RequestOptions, ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); + return core.HttpResponsePromise.fromPromise(this.__metaPatchRetrieve(id, requestOptions)); } - private async __metaPostRetrieve( + private async __metaPatchRetrieve( + id: string, requestOptions?: ContactsClient.RequestOptions, ): Promise> { const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); @@ -526,7 +725,7 @@ export class ContactsClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/contacts/meta/post", + `accounting/v1/contacts/meta/patch/${core.url.encodePathParam(id)}`, ), method: "GET", headers: _headers, @@ -562,56 +761,27 @@ export class ContactsClient { _response.error, _response.rawResponse, "GET", - "/accounting/v1/contacts/meta/post", + "/accounting/v1/contacts/meta/patch/{id}", ); } /** - * Returns a list of `RemoteFieldClass` objects. + * Returns metadata for `Contact` POSTs. * - * @param {Merge.accounting.ContactsRemoteFieldClassesListRequest} request * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.contacts.remoteFieldClassesList({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * }) + * await client.accounting.contacts.metaPostRetrieve() */ - public remoteFieldClassesList( - request: Merge.accounting.ContactsRemoteFieldClassesListRequest = {}, + public metaPostRetrieve( requestOptions?: ContactsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldClassesList(request, requestOptions)); + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); } - private async __remoteFieldClassesList( - request: Merge.accounting.ContactsRemoteFieldClassesListRequest = {}, + private async __metaPostRetrieve( requestOptions?: ContactsClient.RequestOptions, - ): Promise> { - const { - cursor, - includeDeletedData, - includeRemoteData, - includeShellData, - isCommonModelField, - isCustom, - pageSize, - } = request; - const _queryParams: Record = { - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - is_common_model_field: isCommonModelField, - is_custom: isCustom, - page_size: pageSize, - }; + ): Promise> { const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, @@ -624,11 +794,11 @@ export class ContactsClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/contacts/remote-field-classes", + "accounting/v1/contacts/meta/post", ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryParameters: requestOptions?.queryParams, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -637,7 +807,7 @@ export class ContactsClient { }); if (_response.ok) { return { - data: serializers.accounting.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + data: serializers.accounting.MetaResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -660,7 +830,115 @@ export class ContactsClient { _response.error, _response.rawResponse, "GET", - "/accounting/v1/contacts/remote-field-classes", + "/accounting/v1/contacts/meta/post", + ); + } + + /** + * Returns a list of `RemoteFieldClass` objects. + * + * @param {Merge.accounting.ContactsRemoteFieldClassesListRequest} request + * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.contacts.remoteFieldClassesList({ + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeShellData: true, + * isCommonModelField: true, + * isCustom: true, + * pageSize: 1 + * }) + */ + public async remoteFieldClassesList( + request: Merge.accounting.ContactsRemoteFieldClassesListRequest = {}, + requestOptions?: ContactsClient.RequestOptions, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.ContactsRemoteFieldClassesListRequest, + ): Promise> => { + const { + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + isCommonModelField, + isCustom, + pageSize, + } = request; + const _queryParams: Record = { + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + is_common_model_field: isCommonModelField, + is_custom: isCustom, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/contacts/remote-field-classes", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/contacts/remote-field-classes", + ); + }, ); + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, + }); } } diff --git a/src/api/resources/accounting/resources/contacts/client/requests/ContactBulkRequest.ts b/src/api/resources/accounting/resources/contacts/client/requests/ContactBulkRequest.ts new file mode 100644 index 000000000..307090c29 --- /dev/null +++ b/src/api/resources/accounting/resources/contacts/client/requests/ContactBulkRequest.ts @@ -0,0 +1,24 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * batchItems: [{ + * itemId: "item_id", + * payload: { + * model: {} + * } + * }] + * } + */ +export interface ContactBulkRequest { + /** 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; + batchItems: Merge.accounting.ContactBatchItemRequest[]; +} diff --git a/src/api/resources/accounting/resources/contacts/client/requests/ContactEndpointRequest.ts b/src/api/resources/accounting/resources/contacts/client/requests/ContactEndpointRequest.ts deleted file mode 100644 index e95231398..000000000 --- a/src/api/resources/accounting/resources/contacts/client/requests/ContactEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface ContactEndpointRequest { - /** 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.accounting.ContactRequest; -} diff --git a/src/api/resources/accounting/resources/contacts/client/requests/ContactsBatchObjectsListRequest.ts b/src/api/resources/accounting/resources/contacts/client/requests/ContactsBatchObjectsListRequest.ts new file mode 100644 index 000000000..bbc7eedc5 --- /dev/null +++ b/src/api/resources/accounting/resources/contacts/client/requests/ContactsBatchObjectsListRequest.ts @@ -0,0 +1,72 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * companyId: "company_id", + * createdAfter: new Date("2024-01-15T09:30:00.000Z"), + * createdBefore: new Date("2024-01-15T09:30:00.000Z"), + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * emailAddress: "email_address", + * includeDeletedData: true, + * includeRemoteData: true, + * includeRemoteFields: true, + * includeShellData: true, + * isCustomer: "is_customer", + * isSupplier: "is_supplier", + * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * name: "name", + * pageSize: 1, + * remoteFields: "status", + * remoteId: "remote_id", + * showEnumOrigins: "status", + * status: "" + * } + */ +export interface ContactsBatchObjectsListRequest { + /** If provided, will only return contacts for this company. */ + companyId?: string; + /** If provided, will only return objects created after this datetime. */ + createdAfter?: Date; + /** If provided, will only return objects created before this datetime. */ + createdBefore?: Date; + /** The pagination cursor value. */ + cursor?: string; + /** If provided, will only return Contacts that match this email. */ + emailAddress?: string; + /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ + expand?: + | Merge.accounting.ContactsBatchObjectsListRequestExpandItem + | Merge.accounting.ContactsBatchObjectsListRequestExpandItem[]; + /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ + includeDeletedData?: boolean; + /** Whether to include the original data Merge fetched from the third-party to produce these models. */ + includeRemoteData?: boolean; + /** Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. */ + includeRemoteFields?: boolean; + /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ + includeShellData?: boolean; + /** If provided, will only return Contacts that are denoted as customers. */ + isCustomer?: string; + /** If provided, will only return Contacts that are denoted as suppliers. */ + isSupplier?: string; + /** If provided, only objects synced by Merge after this date time will be returned. */ + modifiedAfter?: Date; + /** If provided, only objects synced by Merge before this date time will be returned. */ + modifiedBefore?: Date; + /** If provided, will only return Contacts that match this name. */ + name?: string; + /** Number of results to return per page. The maximum limit is 100. */ + pageSize?: number; + /** Deprecated. Use show_enum_origins. */ + remoteFields?: "status"; + /** The API provider's ID for the given object. */ + remoteId?: string; + /** A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) */ + showEnumOrigins?: "status"; + /** If provided, will only return Contacts that match this status. */ + status?: Merge.accounting.ContactsBatchObjectsListRequestStatus; +} diff --git a/src/api/resources/accounting/resources/contacts/client/requests/ContactsCreateRequest.ts b/src/api/resources/accounting/resources/contacts/client/requests/ContactsCreateRequest.ts new file mode 100644 index 000000000..3c904c866 --- /dev/null +++ b/src/api/resources/accounting/resources/contacts/client/requests/ContactsCreateRequest.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * body: { + * model: {} + * } + * } + */ +export interface ContactsCreateRequest { + /** 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; + body: Merge.accounting.ContactEndpointRequest; +} diff --git a/src/api/resources/accounting/resources/contacts/client/requests/ContactsListRequest.ts b/src/api/resources/accounting/resources/contacts/client/requests/ContactsListRequest.ts index 585914e5d..4b1a56b44 100644 --- a/src/api/resources/accounting/resources/contacts/client/requests/ContactsListRequest.ts +++ b/src/api/resources/accounting/resources/contacts/client/requests/ContactsListRequest.ts @@ -10,7 +10,6 @@ import type * as Merge from "../../../../../../index"; * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * emailAddress: "email_address", - * expand: "addresses", * includeDeletedData: true, * includeRemoteData: true, * includeRemoteFields: true, @@ -39,7 +38,7 @@ export interface ContactsListRequest { /** If provided, will only return Contacts that match this email. */ emailAddress?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.ContactsListRequestExpand; + expand?: Merge.accounting.ContactsListRequestExpandItem | Merge.accounting.ContactsListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -58,7 +57,7 @@ export interface ContactsListRequest { modifiedBefore?: Date; /** If provided, will only return Contacts that match this name. */ name?: string; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** Deprecated. Use show_enum_origins. */ remoteFields?: "status"; diff --git a/src/api/resources/accounting/resources/contacts/client/requests/ContactsRetrieveRequest.ts b/src/api/resources/accounting/resources/contacts/client/requests/ContactsRetrieveRequest.ts index 3a48f7835..5ca6630d4 100644 --- a/src/api/resources/accounting/resources/contacts/client/requests/ContactsRetrieveRequest.ts +++ b/src/api/resources/accounting/resources/contacts/client/requests/ContactsRetrieveRequest.ts @@ -5,7 +5,6 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "addresses", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true, @@ -15,7 +14,7 @@ import type * as Merge from "../../../../../../index"; */ export interface ContactsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.ContactsRetrieveRequestExpand; + expand?: Merge.accounting.ContactsRetrieveRequestExpandItem | Merge.accounting.ContactsRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. */ diff --git a/src/api/resources/accounting/resources/contacts/client/requests/index.ts b/src/api/resources/accounting/resources/contacts/client/requests/index.ts index cd7bbf5ba..c72c69914 100644 --- a/src/api/resources/accounting/resources/contacts/client/requests/index.ts +++ b/src/api/resources/accounting/resources/contacts/client/requests/index.ts @@ -1,4 +1,6 @@ -export type { ContactEndpointRequest } from "./ContactEndpointRequest"; +export type { ContactBulkRequest } from "./ContactBulkRequest"; +export type { ContactsBatchObjectsListRequest } from "./ContactsBatchObjectsListRequest"; +export type { ContactsCreateRequest } from "./ContactsCreateRequest"; export type { ContactsListRequest } from "./ContactsListRequest"; export type { ContactsRemoteFieldClassesListRequest } from "./ContactsRemoteFieldClassesListRequest"; export type { ContactsRetrieveRequest } from "./ContactsRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/contacts/types/ContactsBatchObjectsListRequestExpandItem.ts b/src/api/resources/accounting/resources/contacts/types/ContactsBatchObjectsListRequestExpandItem.ts new file mode 100644 index 000000000..9f75679b7 --- /dev/null +++ b/src/api/resources/accounting/resources/contacts/types/ContactsBatchObjectsListRequestExpandItem.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +export const ContactsBatchObjectsListRequestExpandItem = { + Addresses: "addresses", + Company: "company", + PhoneNumbers: "phone_numbers", +} as const; +export type ContactsBatchObjectsListRequestExpandItem = + (typeof ContactsBatchObjectsListRequestExpandItem)[keyof typeof ContactsBatchObjectsListRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/contacts/types/ContactsBatchObjectsListRequestStatus.ts b/src/api/resources/accounting/resources/contacts/types/ContactsBatchObjectsListRequestStatus.ts new file mode 100644 index 000000000..f2c8cfd5c --- /dev/null +++ b/src/api/resources/accounting/resources/contacts/types/ContactsBatchObjectsListRequestStatus.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +export const ContactsBatchObjectsListRequestStatus = { + Empty: "", + Active: "ACTIVE", + Archived: "ARCHIVED", +} as const; +export type ContactsBatchObjectsListRequestStatus = + (typeof ContactsBatchObjectsListRequestStatus)[keyof typeof ContactsBatchObjectsListRequestStatus]; diff --git a/src/api/resources/accounting/resources/contacts/types/ContactsListRequestExpand.ts b/src/api/resources/accounting/resources/contacts/types/ContactsListRequestExpand.ts deleted file mode 100644 index 716e620c1..000000000 --- a/src/api/resources/accounting/resources/contacts/types/ContactsListRequestExpand.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const ContactsListRequestExpand = { - Addresses: "addresses", - AddressesCompany: "addresses,company", - AddressesPhoneNumbers: "addresses,phone_numbers", - AddressesPhoneNumbersCompany: "addresses,phone_numbers,company", - Company: "company", - PhoneNumbers: "phone_numbers", - PhoneNumbersCompany: "phone_numbers,company", -} as const; -export type ContactsListRequestExpand = (typeof ContactsListRequestExpand)[keyof typeof ContactsListRequestExpand]; diff --git a/src/api/resources/accounting/resources/contacts/types/ContactsListRequestExpandItem.ts b/src/api/resources/accounting/resources/contacts/types/ContactsListRequestExpandItem.ts new file mode 100644 index 000000000..ff4f2967d --- /dev/null +++ b/src/api/resources/accounting/resources/contacts/types/ContactsListRequestExpandItem.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +export const ContactsListRequestExpandItem = { + Addresses: "addresses", + Company: "company", + PhoneNumbers: "phone_numbers", +} as const; +export type ContactsListRequestExpandItem = + (typeof ContactsListRequestExpandItem)[keyof typeof ContactsListRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/contacts/types/ContactsRetrieveRequestExpand.ts b/src/api/resources/accounting/resources/contacts/types/ContactsRetrieveRequestExpand.ts deleted file mode 100644 index 7ac79c924..000000000 --- a/src/api/resources/accounting/resources/contacts/types/ContactsRetrieveRequestExpand.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const ContactsRetrieveRequestExpand = { - Addresses: "addresses", - AddressesCompany: "addresses,company", - AddressesPhoneNumbers: "addresses,phone_numbers", - AddressesPhoneNumbersCompany: "addresses,phone_numbers,company", - Company: "company", - PhoneNumbers: "phone_numbers", - PhoneNumbersCompany: "phone_numbers,company", -} as const; -export type ContactsRetrieveRequestExpand = - (typeof ContactsRetrieveRequestExpand)[keyof typeof ContactsRetrieveRequestExpand]; diff --git a/src/api/resources/accounting/resources/contacts/types/ContactsRetrieveRequestExpandItem.ts b/src/api/resources/accounting/resources/contacts/types/ContactsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..6c9140b31 --- /dev/null +++ b/src/api/resources/accounting/resources/contacts/types/ContactsRetrieveRequestExpandItem.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +export const ContactsRetrieveRequestExpandItem = { + Addresses: "addresses", + Company: "company", + PhoneNumbers: "phone_numbers", +} as const; +export type ContactsRetrieveRequestExpandItem = + (typeof ContactsRetrieveRequestExpandItem)[keyof typeof ContactsRetrieveRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/contacts/types/index.ts b/src/api/resources/accounting/resources/contacts/types/index.ts index 97a5d68db..4f06e9632 100644 --- a/src/api/resources/accounting/resources/contacts/types/index.ts +++ b/src/api/resources/accounting/resources/contacts/types/index.ts @@ -1,3 +1,5 @@ -export * from "./ContactsListRequestExpand"; +export * from "./ContactsBatchObjectsListRequestExpandItem"; +export * from "./ContactsBatchObjectsListRequestStatus"; +export * from "./ContactsListRequestExpandItem"; export * from "./ContactsListRequestStatus"; -export * from "./ContactsRetrieveRequestExpand"; +export * from "./ContactsRetrieveRequestExpandItem"; diff --git a/src/api/resources/accounting/resources/creditNotes/client/Client.ts b/src/api/resources/accounting/resources/creditNotes/client/Client.ts index 520f8003d..5f830e27a 100644 --- a/src/api/resources/accounting/resources/creditNotes/client/Client.ts +++ b/src/api/resources/accounting/resources/creditNotes/client/Client.ts @@ -35,7 +35,6 @@ export class CreditNotesClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "accounting_period", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -49,15 +48,453 @@ export class CreditNotesClient { * transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") * }) */ - public list( + public async list( request: Merge.accounting.CreditNotesListRequest = {}, requestOptions?: CreditNotesClient.RequestOptions, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.CreditNotesListRequest, + ): Promise> => { + const { + companyId, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteFields, + remoteId, + showEnumOrigins, + transactionDateAfter, + transactionDateBefore, + } = request; + const _queryParams: Record = { + company_id: companyId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.CreditNotesListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.accounting.CreditNotesListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_fields: + remoteFields != null + ? serializers.accounting.CreditNotesListRequestRemoteFields.jsonOrThrow(remoteFields, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + remote_id: remoteId, + show_enum_origins: + showEnumOrigins != null + ? serializers.accounting.CreditNotesListRequestShowEnumOrigins.jsonOrThrow( + showEnumOrigins, + { unrecognizedObjectKeys: "strip" }, + ) + : undefined, + transaction_date_after: transactionDateAfter?.toISOString(), + transaction_date_before: transactionDateBefore?.toISOString(), + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/credit-notes", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedCreditNoteList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/credit-notes", + ); + }, + ); + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, + }); + } + + /** + * Creates a `CreditNote` object with the given values. + * + * @param {Merge.accounting.CreditNotesCreateRequest} request + * @param {CreditNotesClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.creditNotes.create({ + * isDebugMode: true, + * runAsync: true, + * body: { + * model: {} + * } + * }) + */ + public create( + request: Merge.accounting.CreditNotesCreateRequest, + requestOptions?: CreditNotesClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); + } + + private async __create( + request: Merge.accounting.CreditNotesCreateRequest, + requestOptions?: CreditNotesClient.RequestOptions, + ): Promise> { + const { isDebugMode, runAsync, body: _body } = request; + const _queryParams: Record = { + is_debug_mode: isDebugMode, + run_async: runAsync, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/credit-notes", + ), + method: "POST", + headers: _headers, + contentType: "application/json", + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + requestType: "json", + body: serializers.accounting.CreditNoteEndpointRequest.jsonOrThrow(_body, { + unrecognizedObjectKeys: "strip", + }), + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.CreditNoteResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + + return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/accounting/v1/credit-notes"); + } + + /** + * Returns a `CreditNote` object with the given `id`. + * + * @param {string} id + * @param {Merge.accounting.CreditNotesRetrieveRequest} request + * @param {CreditNotesClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.creditNotes.retrieve("id", { + * includeRemoteData: true, + * includeShellData: true, + * remoteFields: "status", + * showEnumOrigins: "status" + * }) + */ + public retrieve( + id: string, + request: Merge.accounting.CreditNotesRetrieveRequest = {}, + requestOptions?: CreditNotesClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); + } + + private async __retrieve( + id: string, + request: Merge.accounting.CreditNotesRetrieveRequest = {}, + requestOptions?: CreditNotesClient.RequestOptions, + ): Promise> { + const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; + const _queryParams: Record = { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.CreditNotesRetrieveRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.accounting.CreditNotesRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + remote_fields: + remoteFields != null + ? serializers.accounting.CreditNotesRetrieveRequestRemoteFields.jsonOrThrow(remoteFields, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + show_enum_origins: + showEnumOrigins != null + ? serializers.accounting.CreditNotesRetrieveRequestShowEnumOrigins.jsonOrThrow(showEnumOrigins, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + `accounting/v1/credit-notes/${core.url.encodePathParam(id)}`, + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.CreditNote.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/credit-notes/{id}", + ); + } + + /** + * Updates a `CreditNote` object with the given `id`. + * + * @param {string} id + * @param {Merge.accounting.PatchedCreditNoteEndpointRequest} request + * @param {CreditNotesClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.creditNotes.partialUpdate("id", { + * isDebugMode: true, + * runAsync: true, + * model: {} + * }) + */ + public partialUpdate( + id: string, + request: Merge.accounting.PatchedCreditNoteEndpointRequest, + requestOptions?: CreditNotesClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__partialUpdate(id, request, requestOptions)); + } + + private async __partialUpdate( + id: string, + request: Merge.accounting.PatchedCreditNoteEndpointRequest, + requestOptions?: CreditNotesClient.RequestOptions, + ): Promise> { + const { isDebugMode, runAsync, ..._body } = request; + const _queryParams: Record = { + is_debug_mode: isDebugMode, + run_async: runAsync, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + `accounting/v1/credit-notes/${core.url.encodePathParam(id)}`, + ), + method: "PATCH", + headers: _headers, + contentType: "application/json", + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + requestType: "json", + body: serializers.accounting.PatchedCreditNoteEndpointRequest.jsonOrThrow(_body, { + unrecognizedObjectKeys: "strip", + }), + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.CreditNoteResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "PATCH", + "/accounting/v1/credit-notes/{id}", + ); + } + + /** + * Returns a list of `CreditNote` objects. + * + * @param {string} batch_id + * @param {Merge.accounting.CreditNotesBatchObjectsListRequest} request + * @param {CreditNotesClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.creditNotes.batchObjectsList("batch_id", { + * companyId: "company_id", + * createdAfter: new Date("2024-01-15T09:30:00.000Z"), + * createdBefore: new Date("2024-01-15T09:30:00.000Z"), + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeShellData: true, + * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * pageSize: 1, + * remoteFields: "status", + * remoteId: "remote_id", + * showEnumOrigins: "status", + * transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + * transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") + * }) + */ + public batchObjectsList( + batch_id: string, + request: Merge.accounting.CreditNotesBatchObjectsListRequest = {}, + requestOptions?: CreditNotesClient.RequestOptions, ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); + return core.HttpResponsePromise.fromPromise(this.__batchObjectsList(batch_id, request, requestOptions)); } - private async __list( - request: Merge.accounting.CreditNotesListRequest = {}, + private async __batchObjectsList( + batch_id: string, + request: Merge.accounting.CreditNotesBatchObjectsListRequest = {}, requestOptions?: CreditNotesClient.RequestOptions, ): Promise> { const { @@ -83,12 +520,17 @@ export class CreditNotesClient { created_after: createdAfter?.toISOString(), created_before: createdBefore?.toISOString(), cursor, - expand: - expand != null - ? serializers.accounting.CreditNotesListRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.CreditNotesBatchObjectsListRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.accounting.CreditNotesBatchObjectsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_deleted_data: includeDeletedData, include_remote_data: includeRemoteData, include_shell_data: includeShellData, @@ -97,16 +539,17 @@ export class CreditNotesClient { page_size: pageSize, remote_fields: remoteFields != null - ? serializers.accounting.CreditNotesListRequestRemoteFields.jsonOrThrow(remoteFields, { + ? serializers.accounting.CreditNotesBatchObjectsListRequestRemoteFields.jsonOrThrow(remoteFields, { unrecognizedObjectKeys: "strip", }) : undefined, remote_id: remoteId, show_enum_origins: showEnumOrigins != null - ? serializers.accounting.CreditNotesListRequestShowEnumOrigins.jsonOrThrow(showEnumOrigins, { - unrecognizedObjectKeys: "strip", - }) + ? serializers.accounting.CreditNotesBatchObjectsListRequestShowEnumOrigins.jsonOrThrow( + showEnumOrigins, + { unrecognizedObjectKeys: "strip" }, + ) : undefined, transaction_date_after: transactionDateAfter?.toISOString(), transaction_date_before: transactionDateBefore?.toISOString(), @@ -123,7 +566,7 @@ export class CreditNotesClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/credit-notes", + `accounting/v1/credit-notes/batch/${core.url.encodePathParam(batch_id)}/objects`, ), method: "GET", headers: _headers, @@ -155,31 +598,41 @@ export class CreditNotesClient { }); } - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/accounting/v1/credit-notes"); + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/credit-notes/batch/{batch_id}/objects", + ); } /** * Creates a `CreditNote` object with the given values. * - * @param {Merge.accounting.CreditNoteEndpointRequest} request + * @param {Merge.accounting.CreditNoteBulkRequest} request * @param {CreditNotesClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.creditNotes.create({ + * await client.accounting.creditNotes.asyncBulkCreate({ * isDebugMode: true, * runAsync: true, - * model: {} + * batchItems: [{ + * itemId: "item_id", + * payload: { + * model: {} + * } + * }] * }) */ - public create( - request: Merge.accounting.CreditNoteEndpointRequest, + public asyncBulkCreate( + request: Merge.accounting.CreditNoteBulkRequest, requestOptions?: CreditNotesClient.RequestOptions, ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); + return core.HttpResponsePromise.fromPromise(this.__asyncBulkCreate(request, requestOptions)); } - private async __create( - request: Merge.accounting.CreditNoteEndpointRequest, + private async __asyncBulkCreate( + request: Merge.accounting.CreditNoteBulkRequest, requestOptions?: CreditNotesClient.RequestOptions, ): Promise> { const { isDebugMode, runAsync, ..._body } = request; @@ -199,16 +652,14 @@ export class CreditNotesClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/credit-notes", + "accounting/v1/credit-notes/async/bulk", ), method: "POST", headers: _headers, contentType: "application/json", queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, requestType: "json", - body: serializers.accounting.CreditNoteEndpointRequest.jsonOrThrow(_body, { - unrecognizedObjectKeys: "strip", - }), + body: serializers.accounting.CreditNoteBulkRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -236,60 +687,46 @@ export class CreditNotesClient { }); } - return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/accounting/v1/credit-notes"); + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "POST", + "/accounting/v1/credit-notes/async/bulk", + ); } /** - * Returns a `CreditNote` object with the given `id`. + * Creates a new CreditNoteApplyLine to apply a credit note to an invoice * * @param {string} id - * @param {Merge.accounting.CreditNotesRetrieveRequest} request + * @param {Merge.accounting.ApplyCreditNoteRequest} request * @param {CreditNotesClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.creditNotes.retrieve("id", { - * expand: "accounting_period", - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "status", - * showEnumOrigins: "status" + * await client.accounting.creditNotes.applicationCreate("id", { + * isDebugMode: true, + * runAsync: true, + * appliedDate: new Date("2024-01-15T09:30:00.000Z"), + * appliedAmount: "applied_amount" * }) */ - public retrieve( + public applicationCreate( id: string, - request: Merge.accounting.CreditNotesRetrieveRequest = {}, + request: Merge.accounting.ApplyCreditNoteRequest, requestOptions?: CreditNotesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__applicationCreate(id, request, requestOptions)); } - private async __retrieve( + private async __applicationCreate( id: string, - request: Merge.accounting.CreditNotesRetrieveRequest = {}, + request: Merge.accounting.ApplyCreditNoteRequest, requestOptions?: CreditNotesClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; + ): Promise> { + const { isDebugMode, runAsync, ..._body } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.accounting.CreditNotesRetrieveRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - remote_fields: - remoteFields != null - ? serializers.accounting.CreditNotesRetrieveRequestRemoteFields.jsonOrThrow(remoteFields, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - show_enum_origins: - showEnumOrigins != null - ? serializers.accounting.CreditNotesRetrieveRequestShowEnumOrigins.jsonOrThrow(showEnumOrigins, { - unrecognizedObjectKeys: "strip", - }) - : undefined, + is_debug_mode: isDebugMode, + run_async: runAsync, }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( @@ -303,11 +740,14 @@ export class CreditNotesClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - `accounting/v1/credit-notes/${core.url.encodePathParam(id)}`, + `accounting/v1/credit-notes/${core.url.encodePathParam(id)}/application`, ), - method: "GET", + method: "POST", headers: _headers, + contentType: "application/json", queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + requestType: "json", + body: serializers.accounting.ApplyCreditNoteRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -316,7 +756,79 @@ export class CreditNotesClient { }); if (_response.ok) { return { - data: serializers.accounting.CreditNote.parseOrThrow(_response.body, { + data: serializers.accounting.CreditNoteResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "POST", + "/accounting/v1/credit-notes/{id}/application", + ); + } + + /** + * Returns metadata for `CreditNote` PATCHs. + * + * @param {string} id + * @param {CreditNotesClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.creditNotes.metaPatchRetrieve("id") + */ + public metaPatchRetrieve( + id: string, + requestOptions?: CreditNotesClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__metaPatchRetrieve(id, requestOptions)); + } + + private async __metaPatchRetrieve( + id: string, + requestOptions?: CreditNotesClient.RequestOptions, + ): Promise> { + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + `accounting/v1/credit-notes/meta/patch/${core.url.encodePathParam(id)}`, + ), + method: "GET", + headers: _headers, + queryParameters: requestOptions?.queryParams, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.MetaResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -339,7 +851,7 @@ export class CreditNotesClient { _response.error, _response.rawResponse, "GET", - "/accounting/v1/credit-notes/{id}", + "/accounting/v1/credit-notes/meta/patch/{id}", ); } diff --git a/src/api/resources/accounting/resources/creditNotes/client/requests/ApplyCreditNoteRequest.ts b/src/api/resources/accounting/resources/creditNotes/client/requests/ApplyCreditNoteRequest.ts new file mode 100644 index 000000000..c6edd37fc --- /dev/null +++ b/src/api/resources/accounting/resources/creditNotes/client/requests/ApplyCreditNoteRequest.ts @@ -0,0 +1,23 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * appliedDate: new Date("2024-01-15T09:30:00.000Z"), + * appliedAmount: "applied_amount" + * } + */ +export interface ApplyCreditNoteRequest { + /** 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; + /** The invoice to apply the credit note to. */ + invoice?: string; + /** Date that the credit note is applied to the invoice. */ + appliedDate: Date; + /** The amount of credit applied to the invoice. */ + appliedAmount: string; +} diff --git a/src/api/resources/accounting/resources/creditNotes/client/requests/CreditNoteBulkRequest.ts b/src/api/resources/accounting/resources/creditNotes/client/requests/CreditNoteBulkRequest.ts new file mode 100644 index 000000000..8c4a23288 --- /dev/null +++ b/src/api/resources/accounting/resources/creditNotes/client/requests/CreditNoteBulkRequest.ts @@ -0,0 +1,24 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * batchItems: [{ + * itemId: "item_id", + * payload: { + * model: {} + * } + * }] + * } + */ +export interface CreditNoteBulkRequest { + /** 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; + batchItems: Merge.accounting.CreditNoteBatchItemRequest[]; +} diff --git a/src/api/resources/accounting/resources/creditNotes/client/requests/CreditNoteEndpointRequest.ts b/src/api/resources/accounting/resources/creditNotes/client/requests/CreditNoteEndpointRequest.ts deleted file mode 100644 index 4772c38e1..000000000 --- a/src/api/resources/accounting/resources/creditNotes/client/requests/CreditNoteEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface CreditNoteEndpointRequest { - /** 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.accounting.CreditNoteRequest; -} diff --git a/src/api/resources/accounting/resources/creditNotes/client/requests/CreditNotesBatchObjectsListRequest.ts b/src/api/resources/accounting/resources/creditNotes/client/requests/CreditNotesBatchObjectsListRequest.ts new file mode 100644 index 000000000..761bb13f0 --- /dev/null +++ b/src/api/resources/accounting/resources/creditNotes/client/requests/CreditNotesBatchObjectsListRequest.ts @@ -0,0 +1,60 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * companyId: "company_id", + * createdAfter: new Date("2024-01-15T09:30:00.000Z"), + * createdBefore: new Date("2024-01-15T09:30:00.000Z"), + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeShellData: true, + * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * pageSize: 1, + * remoteFields: "status", + * remoteId: "remote_id", + * showEnumOrigins: "status", + * transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + * transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") + * } + */ +export interface CreditNotesBatchObjectsListRequest { + /** If provided, will only return credit notes for this company. */ + companyId?: string; + /** If provided, will only return objects created after this datetime. */ + createdAfter?: Date; + /** If provided, will only return objects created before this datetime. */ + createdBefore?: Date; + /** The pagination cursor value. */ + cursor?: string; + /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ + expand?: + | Merge.accounting.CreditNotesBatchObjectsListRequestExpandItem + | Merge.accounting.CreditNotesBatchObjectsListRequestExpandItem[]; + /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ + includeDeletedData?: boolean; + /** Whether to include the original data Merge fetched from the third-party to produce these models. */ + includeRemoteData?: boolean; + /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ + includeShellData?: boolean; + /** If provided, only objects synced by Merge after this date time will be returned. */ + modifiedAfter?: Date; + /** If provided, only objects synced by Merge before this date time will be returned. */ + modifiedBefore?: Date; + /** Number of results to return per page. The maximum limit is 100. */ + pageSize?: number; + /** Deprecated. Use show_enum_origins. */ + remoteFields?: Merge.accounting.CreditNotesBatchObjectsListRequestRemoteFields; + /** The API provider's ID for the given object. */ + remoteId?: string; + /** A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) */ + showEnumOrigins?: Merge.accounting.CreditNotesBatchObjectsListRequestShowEnumOrigins; + /** If provided, will only return objects created after this datetime. */ + transactionDateAfter?: Date; + /** If provided, will only return objects created before this datetime. */ + transactionDateBefore?: Date; +} diff --git a/src/api/resources/accounting/resources/creditNotes/client/requests/CreditNotesCreateRequest.ts b/src/api/resources/accounting/resources/creditNotes/client/requests/CreditNotesCreateRequest.ts new file mode 100644 index 000000000..dfc343b86 --- /dev/null +++ b/src/api/resources/accounting/resources/creditNotes/client/requests/CreditNotesCreateRequest.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * body: { + * model: {} + * } + * } + */ +export interface CreditNotesCreateRequest { + /** 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; + body: Merge.accounting.CreditNoteEndpointRequest; +} diff --git a/src/api/resources/accounting/resources/creditNotes/client/requests/CreditNotesListRequest.ts b/src/api/resources/accounting/resources/creditNotes/client/requests/CreditNotesListRequest.ts index 70e082fc5..a8be51708 100644 --- a/src/api/resources/accounting/resources/creditNotes/client/requests/CreditNotesListRequest.ts +++ b/src/api/resources/accounting/resources/creditNotes/client/requests/CreditNotesListRequest.ts @@ -9,7 +9,6 @@ import type * as Merge from "../../../../../../index"; * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "accounting_period", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -33,7 +32,7 @@ export interface CreditNotesListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.CreditNotesListRequestExpand; + expand?: Merge.accounting.CreditNotesListRequestExpandItem | Merge.accounting.CreditNotesListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -44,7 +43,7 @@ export interface CreditNotesListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** Deprecated. Use show_enum_origins. */ remoteFields?: Merge.accounting.CreditNotesListRequestRemoteFields; diff --git a/src/api/resources/accounting/resources/creditNotes/client/requests/CreditNotesRetrieveRequest.ts b/src/api/resources/accounting/resources/creditNotes/client/requests/CreditNotesRetrieveRequest.ts index 6fe2a7acd..77ff0a562 100644 --- a/src/api/resources/accounting/resources/creditNotes/client/requests/CreditNotesRetrieveRequest.ts +++ b/src/api/resources/accounting/resources/creditNotes/client/requests/CreditNotesRetrieveRequest.ts @@ -5,7 +5,6 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "accounting_period", * includeRemoteData: true, * includeShellData: true, * remoteFields: "status", @@ -14,7 +13,9 @@ import type * as Merge from "../../../../../../index"; */ export interface CreditNotesRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.CreditNotesRetrieveRequestExpand; + expand?: + | Merge.accounting.CreditNotesRetrieveRequestExpandItem + | Merge.accounting.CreditNotesRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/accounting/resources/creditNotes/client/requests/PatchedCreditNoteEndpointRequest.ts b/src/api/resources/accounting/resources/creditNotes/client/requests/PatchedCreditNoteEndpointRequest.ts new file mode 100644 index 000000000..908c4f42b --- /dev/null +++ b/src/api/resources/accounting/resources/creditNotes/client/requests/PatchedCreditNoteEndpointRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * model: {} + * } + */ +export interface PatchedCreditNoteEndpointRequest { + /** 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.accounting.CreditNoteRequest; +} diff --git a/src/api/resources/accounting/resources/creditNotes/client/requests/index.ts b/src/api/resources/accounting/resources/creditNotes/client/requests/index.ts index 1952c5fff..79344eee0 100644 --- a/src/api/resources/accounting/resources/creditNotes/client/requests/index.ts +++ b/src/api/resources/accounting/resources/creditNotes/client/requests/index.ts @@ -1,3 +1,7 @@ -export type { CreditNoteEndpointRequest } from "./CreditNoteEndpointRequest"; +export type { ApplyCreditNoteRequest } from "./ApplyCreditNoteRequest"; +export type { CreditNoteBulkRequest } from "./CreditNoteBulkRequest"; +export type { CreditNotesBatchObjectsListRequest } from "./CreditNotesBatchObjectsListRequest"; +export type { CreditNotesCreateRequest } from "./CreditNotesCreateRequest"; export type { CreditNotesListRequest } from "./CreditNotesListRequest"; export type { CreditNotesRetrieveRequest } from "./CreditNotesRetrieveRequest"; +export type { PatchedCreditNoteEndpointRequest } from "./PatchedCreditNoteEndpointRequest"; diff --git a/src/api/resources/accounting/resources/creditNotes/types/CreditNotesBatchObjectsListRequestExpandItem.ts b/src/api/resources/accounting/resources/creditNotes/types/CreditNotesBatchObjectsListRequestExpandItem.ts new file mode 100644 index 000000000..5b556365e --- /dev/null +++ b/src/api/resources/accounting/resources/creditNotes/types/CreditNotesBatchObjectsListRequestExpandItem.ts @@ -0,0 +1,13 @@ +// This file was auto-generated by Fern from our API Definition. + +export const CreditNotesBatchObjectsListRequestExpandItem = { + AccountingPeriod: "accounting_period", + AppliedPayments: "applied_payments", + Company: "company", + Contact: "contact", + LineItems: "line_items", + Payments: "payments", + TrackingCategories: "tracking_categories", +} as const; +export type CreditNotesBatchObjectsListRequestExpandItem = + (typeof CreditNotesBatchObjectsListRequestExpandItem)[keyof typeof CreditNotesBatchObjectsListRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/creditNotes/types/CreditNotesBatchObjectsListRequestRemoteFields.ts b/src/api/resources/accounting/resources/creditNotes/types/CreditNotesBatchObjectsListRequestRemoteFields.ts new file mode 100644 index 000000000..1c8f8cb53 --- /dev/null +++ b/src/api/resources/accounting/resources/creditNotes/types/CreditNotesBatchObjectsListRequestRemoteFields.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +export const CreditNotesBatchObjectsListRequestRemoteFields = { + Status: "status", + StatusType: "status,type", + Type: "type", +} as const; +export type CreditNotesBatchObjectsListRequestRemoteFields = + (typeof CreditNotesBatchObjectsListRequestRemoteFields)[keyof typeof CreditNotesBatchObjectsListRequestRemoteFields]; diff --git a/src/api/resources/accounting/resources/creditNotes/types/CreditNotesBatchObjectsListRequestShowEnumOrigins.ts b/src/api/resources/accounting/resources/creditNotes/types/CreditNotesBatchObjectsListRequestShowEnumOrigins.ts new file mode 100644 index 000000000..19bb2a818 --- /dev/null +++ b/src/api/resources/accounting/resources/creditNotes/types/CreditNotesBatchObjectsListRequestShowEnumOrigins.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +export const CreditNotesBatchObjectsListRequestShowEnumOrigins = { + Status: "status", + StatusType: "status,type", + Type: "type", +} as const; +export type CreditNotesBatchObjectsListRequestShowEnumOrigins = + (typeof CreditNotesBatchObjectsListRequestShowEnumOrigins)[keyof typeof CreditNotesBatchObjectsListRequestShowEnumOrigins]; diff --git a/src/api/resources/accounting/resources/creditNotes/types/CreditNotesListRequestExpand.ts b/src/api/resources/accounting/resources/creditNotes/types/CreditNotesListRequestExpand.ts deleted file mode 100644 index 17309eb55..000000000 --- a/src/api/resources/accounting/resources/creditNotes/types/CreditNotesListRequestExpand.ts +++ /dev/null @@ -1,163 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const CreditNotesListRequestExpand = { - AccountingPeriod: "accounting_period", - AppliedPayments: "applied_payments", - AppliedPaymentsAccountingPeriod: "applied_payments,accounting_period", - AppliedPaymentsCompany: "applied_payments,company", - AppliedPaymentsCompanyAccountingPeriod: "applied_payments,company,accounting_period", - AppliedPaymentsContact: "applied_payments,contact", - AppliedPaymentsContactAccountingPeriod: "applied_payments,contact,accounting_period", - AppliedPaymentsContactCompany: "applied_payments,contact,company", - AppliedPaymentsContactCompanyAccountingPeriod: "applied_payments,contact,company,accounting_period", - AppliedPaymentsLineItems: "applied_payments,line_items", - AppliedPaymentsLineItemsAccountingPeriod: "applied_payments,line_items,accounting_period", - AppliedPaymentsLineItemsCompany: "applied_payments,line_items,company", - AppliedPaymentsLineItemsCompanyAccountingPeriod: "applied_payments,line_items,company,accounting_period", - AppliedPaymentsLineItemsContact: "applied_payments,line_items,contact", - AppliedPaymentsLineItemsContactAccountingPeriod: "applied_payments,line_items,contact,accounting_period", - AppliedPaymentsLineItemsContactCompany: "applied_payments,line_items,contact,company", - AppliedPaymentsLineItemsContactCompanyAccountingPeriod: - "applied_payments,line_items,contact,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategories: "applied_payments,line_items,tracking_categories", - AppliedPaymentsLineItemsTrackingCategoriesAccountingPeriod: - "applied_payments,line_items,tracking_categories,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesCompany: "applied_payments,line_items,tracking_categories,company", - AppliedPaymentsLineItemsTrackingCategoriesCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesContact: "applied_payments,line_items,tracking_categories,contact", - AppliedPaymentsLineItemsTrackingCategoriesContactAccountingPeriod: - "applied_payments,line_items,tracking_categories,contact,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesContactCompany: - "applied_payments,line_items,tracking_categories,contact,company", - AppliedPaymentsLineItemsTrackingCategoriesContactCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,contact,company,accounting_period", - AppliedPaymentsTrackingCategories: "applied_payments,tracking_categories", - AppliedPaymentsTrackingCategoriesAccountingPeriod: "applied_payments,tracking_categories,accounting_period", - AppliedPaymentsTrackingCategoriesCompany: "applied_payments,tracking_categories,company", - AppliedPaymentsTrackingCategoriesCompanyAccountingPeriod: - "applied_payments,tracking_categories,company,accounting_period", - AppliedPaymentsTrackingCategoriesContact: "applied_payments,tracking_categories,contact", - AppliedPaymentsTrackingCategoriesContactAccountingPeriod: - "applied_payments,tracking_categories,contact,accounting_period", - AppliedPaymentsTrackingCategoriesContactCompany: "applied_payments,tracking_categories,contact,company", - AppliedPaymentsTrackingCategoriesContactCompanyAccountingPeriod: - "applied_payments,tracking_categories,contact,company,accounting_period", - Company: "company", - CompanyAccountingPeriod: "company,accounting_period", - Contact: "contact", - ContactAccountingPeriod: "contact,accounting_period", - ContactCompany: "contact,company", - ContactCompanyAccountingPeriod: "contact,company,accounting_period", - LineItems: "line_items", - LineItemsAccountingPeriod: "line_items,accounting_period", - LineItemsCompany: "line_items,company", - LineItemsCompanyAccountingPeriod: "line_items,company,accounting_period", - LineItemsContact: "line_items,contact", - LineItemsContactAccountingPeriod: "line_items,contact,accounting_period", - LineItemsContactCompany: "line_items,contact,company", - LineItemsContactCompanyAccountingPeriod: "line_items,contact,company,accounting_period", - LineItemsTrackingCategories: "line_items,tracking_categories", - LineItemsTrackingCategoriesAccountingPeriod: "line_items,tracking_categories,accounting_period", - LineItemsTrackingCategoriesCompany: "line_items,tracking_categories,company", - LineItemsTrackingCategoriesCompanyAccountingPeriod: "line_items,tracking_categories,company,accounting_period", - LineItemsTrackingCategoriesContact: "line_items,tracking_categories,contact", - LineItemsTrackingCategoriesContactAccountingPeriod: "line_items,tracking_categories,contact,accounting_period", - LineItemsTrackingCategoriesContactCompany: "line_items,tracking_categories,contact,company", - LineItemsTrackingCategoriesContactCompanyAccountingPeriod: - "line_items,tracking_categories,contact,company,accounting_period", - Payments: "payments", - PaymentsAccountingPeriod: "payments,accounting_period", - PaymentsAppliedPayments: "payments,applied_payments", - PaymentsAppliedPaymentsAccountingPeriod: "payments,applied_payments,accounting_period", - PaymentsAppliedPaymentsCompany: "payments,applied_payments,company", - PaymentsAppliedPaymentsCompanyAccountingPeriod: "payments,applied_payments,company,accounting_period", - PaymentsAppliedPaymentsContact: "payments,applied_payments,contact", - PaymentsAppliedPaymentsContactAccountingPeriod: "payments,applied_payments,contact,accounting_period", - PaymentsAppliedPaymentsContactCompany: "payments,applied_payments,contact,company", - PaymentsAppliedPaymentsContactCompanyAccountingPeriod: - "payments,applied_payments,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItems: "payments,applied_payments,line_items", - PaymentsAppliedPaymentsLineItemsAccountingPeriod: "payments,applied_payments,line_items,accounting_period", - PaymentsAppliedPaymentsLineItemsCompany: "payments,applied_payments,line_items,company", - PaymentsAppliedPaymentsLineItemsCompanyAccountingPeriod: - "payments,applied_payments,line_items,company,accounting_period", - PaymentsAppliedPaymentsLineItemsContact: "payments,applied_payments,line_items,contact", - PaymentsAppliedPaymentsLineItemsContactAccountingPeriod: - "payments,applied_payments,line_items,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsContactCompany: "payments,applied_payments,line_items,contact,company", - PaymentsAppliedPaymentsLineItemsContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategories: "payments,applied_payments,line_items,tracking_categories", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesCompany: - "payments,applied_payments,line_items,tracking_categories,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContact: - "payments,applied_payments,line_items,tracking_categories,contact", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactCompany: - "payments,applied_payments,line_items,tracking_categories,contact,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,contact,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategories: "payments,applied_payments,tracking_categories", - PaymentsAppliedPaymentsTrackingCategoriesAccountingPeriod: - "payments,applied_payments,tracking_categories,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesCompany: "payments,applied_payments,tracking_categories,company", - PaymentsAppliedPaymentsTrackingCategoriesCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesContact: "payments,applied_payments,tracking_categories,contact", - PaymentsAppliedPaymentsTrackingCategoriesContactAccountingPeriod: - "payments,applied_payments,tracking_categories,contact,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesContactCompany: - "payments,applied_payments,tracking_categories,contact,company", - PaymentsAppliedPaymentsTrackingCategoriesContactCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,contact,company,accounting_period", - PaymentsCompany: "payments,company", - PaymentsCompanyAccountingPeriod: "payments,company,accounting_period", - PaymentsContact: "payments,contact", - PaymentsContactAccountingPeriod: "payments,contact,accounting_period", - PaymentsContactCompany: "payments,contact,company", - PaymentsContactCompanyAccountingPeriod: "payments,contact,company,accounting_period", - PaymentsLineItems: "payments,line_items", - PaymentsLineItemsAccountingPeriod: "payments,line_items,accounting_period", - PaymentsLineItemsCompany: "payments,line_items,company", - PaymentsLineItemsCompanyAccountingPeriod: "payments,line_items,company,accounting_period", - PaymentsLineItemsContact: "payments,line_items,contact", - PaymentsLineItemsContactAccountingPeriod: "payments,line_items,contact,accounting_period", - PaymentsLineItemsContactCompany: "payments,line_items,contact,company", - PaymentsLineItemsContactCompanyAccountingPeriod: "payments,line_items,contact,company,accounting_period", - PaymentsLineItemsTrackingCategories: "payments,line_items,tracking_categories", - PaymentsLineItemsTrackingCategoriesAccountingPeriod: "payments,line_items,tracking_categories,accounting_period", - PaymentsLineItemsTrackingCategoriesCompany: "payments,line_items,tracking_categories,company", - PaymentsLineItemsTrackingCategoriesCompanyAccountingPeriod: - "payments,line_items,tracking_categories,company,accounting_period", - PaymentsLineItemsTrackingCategoriesContact: "payments,line_items,tracking_categories,contact", - PaymentsLineItemsTrackingCategoriesContactAccountingPeriod: - "payments,line_items,tracking_categories,contact,accounting_period", - PaymentsLineItemsTrackingCategoriesContactCompany: "payments,line_items,tracking_categories,contact,company", - PaymentsLineItemsTrackingCategoriesContactCompanyAccountingPeriod: - "payments,line_items,tracking_categories,contact,company,accounting_period", - PaymentsTrackingCategories: "payments,tracking_categories", - PaymentsTrackingCategoriesAccountingPeriod: "payments,tracking_categories,accounting_period", - PaymentsTrackingCategoriesCompany: "payments,tracking_categories,company", - PaymentsTrackingCategoriesCompanyAccountingPeriod: "payments,tracking_categories,company,accounting_period", - PaymentsTrackingCategoriesContact: "payments,tracking_categories,contact", - PaymentsTrackingCategoriesContactAccountingPeriod: "payments,tracking_categories,contact,accounting_period", - PaymentsTrackingCategoriesContactCompany: "payments,tracking_categories,contact,company", - PaymentsTrackingCategoriesContactCompanyAccountingPeriod: - "payments,tracking_categories,contact,company,accounting_period", - TrackingCategories: "tracking_categories", - TrackingCategoriesAccountingPeriod: "tracking_categories,accounting_period", - TrackingCategoriesCompany: "tracking_categories,company", - TrackingCategoriesCompanyAccountingPeriod: "tracking_categories,company,accounting_period", - TrackingCategoriesContact: "tracking_categories,contact", - TrackingCategoriesContactAccountingPeriod: "tracking_categories,contact,accounting_period", - TrackingCategoriesContactCompany: "tracking_categories,contact,company", - TrackingCategoriesContactCompanyAccountingPeriod: "tracking_categories,contact,company,accounting_period", -} as const; -export type CreditNotesListRequestExpand = - (typeof CreditNotesListRequestExpand)[keyof typeof CreditNotesListRequestExpand]; diff --git a/src/api/resources/accounting/resources/creditNotes/types/CreditNotesListRequestExpandItem.ts b/src/api/resources/accounting/resources/creditNotes/types/CreditNotesListRequestExpandItem.ts new file mode 100644 index 000000000..637c6e777 --- /dev/null +++ b/src/api/resources/accounting/resources/creditNotes/types/CreditNotesListRequestExpandItem.ts @@ -0,0 +1,13 @@ +// This file was auto-generated by Fern from our API Definition. + +export const CreditNotesListRequestExpandItem = { + AccountingPeriod: "accounting_period", + AppliedPayments: "applied_payments", + Company: "company", + Contact: "contact", + LineItems: "line_items", + Payments: "payments", + TrackingCategories: "tracking_categories", +} as const; +export type CreditNotesListRequestExpandItem = + (typeof CreditNotesListRequestExpandItem)[keyof typeof CreditNotesListRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/creditNotes/types/CreditNotesRetrieveRequestExpand.ts b/src/api/resources/accounting/resources/creditNotes/types/CreditNotesRetrieveRequestExpand.ts deleted file mode 100644 index 42b0ff67d..000000000 --- a/src/api/resources/accounting/resources/creditNotes/types/CreditNotesRetrieveRequestExpand.ts +++ /dev/null @@ -1,163 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const CreditNotesRetrieveRequestExpand = { - AccountingPeriod: "accounting_period", - AppliedPayments: "applied_payments", - AppliedPaymentsAccountingPeriod: "applied_payments,accounting_period", - AppliedPaymentsCompany: "applied_payments,company", - AppliedPaymentsCompanyAccountingPeriod: "applied_payments,company,accounting_period", - AppliedPaymentsContact: "applied_payments,contact", - AppliedPaymentsContactAccountingPeriod: "applied_payments,contact,accounting_period", - AppliedPaymentsContactCompany: "applied_payments,contact,company", - AppliedPaymentsContactCompanyAccountingPeriod: "applied_payments,contact,company,accounting_period", - AppliedPaymentsLineItems: "applied_payments,line_items", - AppliedPaymentsLineItemsAccountingPeriod: "applied_payments,line_items,accounting_period", - AppliedPaymentsLineItemsCompany: "applied_payments,line_items,company", - AppliedPaymentsLineItemsCompanyAccountingPeriod: "applied_payments,line_items,company,accounting_period", - AppliedPaymentsLineItemsContact: "applied_payments,line_items,contact", - AppliedPaymentsLineItemsContactAccountingPeriod: "applied_payments,line_items,contact,accounting_period", - AppliedPaymentsLineItemsContactCompany: "applied_payments,line_items,contact,company", - AppliedPaymentsLineItemsContactCompanyAccountingPeriod: - "applied_payments,line_items,contact,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategories: "applied_payments,line_items,tracking_categories", - AppliedPaymentsLineItemsTrackingCategoriesAccountingPeriod: - "applied_payments,line_items,tracking_categories,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesCompany: "applied_payments,line_items,tracking_categories,company", - AppliedPaymentsLineItemsTrackingCategoriesCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesContact: "applied_payments,line_items,tracking_categories,contact", - AppliedPaymentsLineItemsTrackingCategoriesContactAccountingPeriod: - "applied_payments,line_items,tracking_categories,contact,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesContactCompany: - "applied_payments,line_items,tracking_categories,contact,company", - AppliedPaymentsLineItemsTrackingCategoriesContactCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,contact,company,accounting_period", - AppliedPaymentsTrackingCategories: "applied_payments,tracking_categories", - AppliedPaymentsTrackingCategoriesAccountingPeriod: "applied_payments,tracking_categories,accounting_period", - AppliedPaymentsTrackingCategoriesCompany: "applied_payments,tracking_categories,company", - AppliedPaymentsTrackingCategoriesCompanyAccountingPeriod: - "applied_payments,tracking_categories,company,accounting_period", - AppliedPaymentsTrackingCategoriesContact: "applied_payments,tracking_categories,contact", - AppliedPaymentsTrackingCategoriesContactAccountingPeriod: - "applied_payments,tracking_categories,contact,accounting_period", - AppliedPaymentsTrackingCategoriesContactCompany: "applied_payments,tracking_categories,contact,company", - AppliedPaymentsTrackingCategoriesContactCompanyAccountingPeriod: - "applied_payments,tracking_categories,contact,company,accounting_period", - Company: "company", - CompanyAccountingPeriod: "company,accounting_period", - Contact: "contact", - ContactAccountingPeriod: "contact,accounting_period", - ContactCompany: "contact,company", - ContactCompanyAccountingPeriod: "contact,company,accounting_period", - LineItems: "line_items", - LineItemsAccountingPeriod: "line_items,accounting_period", - LineItemsCompany: "line_items,company", - LineItemsCompanyAccountingPeriod: "line_items,company,accounting_period", - LineItemsContact: "line_items,contact", - LineItemsContactAccountingPeriod: "line_items,contact,accounting_period", - LineItemsContactCompany: "line_items,contact,company", - LineItemsContactCompanyAccountingPeriod: "line_items,contact,company,accounting_period", - LineItemsTrackingCategories: "line_items,tracking_categories", - LineItemsTrackingCategoriesAccountingPeriod: "line_items,tracking_categories,accounting_period", - LineItemsTrackingCategoriesCompany: "line_items,tracking_categories,company", - LineItemsTrackingCategoriesCompanyAccountingPeriod: "line_items,tracking_categories,company,accounting_period", - LineItemsTrackingCategoriesContact: "line_items,tracking_categories,contact", - LineItemsTrackingCategoriesContactAccountingPeriod: "line_items,tracking_categories,contact,accounting_period", - LineItemsTrackingCategoriesContactCompany: "line_items,tracking_categories,contact,company", - LineItemsTrackingCategoriesContactCompanyAccountingPeriod: - "line_items,tracking_categories,contact,company,accounting_period", - Payments: "payments", - PaymentsAccountingPeriod: "payments,accounting_period", - PaymentsAppliedPayments: "payments,applied_payments", - PaymentsAppliedPaymentsAccountingPeriod: "payments,applied_payments,accounting_period", - PaymentsAppliedPaymentsCompany: "payments,applied_payments,company", - PaymentsAppliedPaymentsCompanyAccountingPeriod: "payments,applied_payments,company,accounting_period", - PaymentsAppliedPaymentsContact: "payments,applied_payments,contact", - PaymentsAppliedPaymentsContactAccountingPeriod: "payments,applied_payments,contact,accounting_period", - PaymentsAppliedPaymentsContactCompany: "payments,applied_payments,contact,company", - PaymentsAppliedPaymentsContactCompanyAccountingPeriod: - "payments,applied_payments,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItems: "payments,applied_payments,line_items", - PaymentsAppliedPaymentsLineItemsAccountingPeriod: "payments,applied_payments,line_items,accounting_period", - PaymentsAppliedPaymentsLineItemsCompany: "payments,applied_payments,line_items,company", - PaymentsAppliedPaymentsLineItemsCompanyAccountingPeriod: - "payments,applied_payments,line_items,company,accounting_period", - PaymentsAppliedPaymentsLineItemsContact: "payments,applied_payments,line_items,contact", - PaymentsAppliedPaymentsLineItemsContactAccountingPeriod: - "payments,applied_payments,line_items,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsContactCompany: "payments,applied_payments,line_items,contact,company", - PaymentsAppliedPaymentsLineItemsContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategories: "payments,applied_payments,line_items,tracking_categories", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesCompany: - "payments,applied_payments,line_items,tracking_categories,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContact: - "payments,applied_payments,line_items,tracking_categories,contact", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactCompany: - "payments,applied_payments,line_items,tracking_categories,contact,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,contact,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategories: "payments,applied_payments,tracking_categories", - PaymentsAppliedPaymentsTrackingCategoriesAccountingPeriod: - "payments,applied_payments,tracking_categories,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesCompany: "payments,applied_payments,tracking_categories,company", - PaymentsAppliedPaymentsTrackingCategoriesCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesContact: "payments,applied_payments,tracking_categories,contact", - PaymentsAppliedPaymentsTrackingCategoriesContactAccountingPeriod: - "payments,applied_payments,tracking_categories,contact,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesContactCompany: - "payments,applied_payments,tracking_categories,contact,company", - PaymentsAppliedPaymentsTrackingCategoriesContactCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,contact,company,accounting_period", - PaymentsCompany: "payments,company", - PaymentsCompanyAccountingPeriod: "payments,company,accounting_period", - PaymentsContact: "payments,contact", - PaymentsContactAccountingPeriod: "payments,contact,accounting_period", - PaymentsContactCompany: "payments,contact,company", - PaymentsContactCompanyAccountingPeriod: "payments,contact,company,accounting_period", - PaymentsLineItems: "payments,line_items", - PaymentsLineItemsAccountingPeriod: "payments,line_items,accounting_period", - PaymentsLineItemsCompany: "payments,line_items,company", - PaymentsLineItemsCompanyAccountingPeriod: "payments,line_items,company,accounting_period", - PaymentsLineItemsContact: "payments,line_items,contact", - PaymentsLineItemsContactAccountingPeriod: "payments,line_items,contact,accounting_period", - PaymentsLineItemsContactCompany: "payments,line_items,contact,company", - PaymentsLineItemsContactCompanyAccountingPeriod: "payments,line_items,contact,company,accounting_period", - PaymentsLineItemsTrackingCategories: "payments,line_items,tracking_categories", - PaymentsLineItemsTrackingCategoriesAccountingPeriod: "payments,line_items,tracking_categories,accounting_period", - PaymentsLineItemsTrackingCategoriesCompany: "payments,line_items,tracking_categories,company", - PaymentsLineItemsTrackingCategoriesCompanyAccountingPeriod: - "payments,line_items,tracking_categories,company,accounting_period", - PaymentsLineItemsTrackingCategoriesContact: "payments,line_items,tracking_categories,contact", - PaymentsLineItemsTrackingCategoriesContactAccountingPeriod: - "payments,line_items,tracking_categories,contact,accounting_period", - PaymentsLineItemsTrackingCategoriesContactCompany: "payments,line_items,tracking_categories,contact,company", - PaymentsLineItemsTrackingCategoriesContactCompanyAccountingPeriod: - "payments,line_items,tracking_categories,contact,company,accounting_period", - PaymentsTrackingCategories: "payments,tracking_categories", - PaymentsTrackingCategoriesAccountingPeriod: "payments,tracking_categories,accounting_period", - PaymentsTrackingCategoriesCompany: "payments,tracking_categories,company", - PaymentsTrackingCategoriesCompanyAccountingPeriod: "payments,tracking_categories,company,accounting_period", - PaymentsTrackingCategoriesContact: "payments,tracking_categories,contact", - PaymentsTrackingCategoriesContactAccountingPeriod: "payments,tracking_categories,contact,accounting_period", - PaymentsTrackingCategoriesContactCompany: "payments,tracking_categories,contact,company", - PaymentsTrackingCategoriesContactCompanyAccountingPeriod: - "payments,tracking_categories,contact,company,accounting_period", - TrackingCategories: "tracking_categories", - TrackingCategoriesAccountingPeriod: "tracking_categories,accounting_period", - TrackingCategoriesCompany: "tracking_categories,company", - TrackingCategoriesCompanyAccountingPeriod: "tracking_categories,company,accounting_period", - TrackingCategoriesContact: "tracking_categories,contact", - TrackingCategoriesContactAccountingPeriod: "tracking_categories,contact,accounting_period", - TrackingCategoriesContactCompany: "tracking_categories,contact,company", - TrackingCategoriesContactCompanyAccountingPeriod: "tracking_categories,contact,company,accounting_period", -} as const; -export type CreditNotesRetrieveRequestExpand = - (typeof CreditNotesRetrieveRequestExpand)[keyof typeof CreditNotesRetrieveRequestExpand]; diff --git a/src/api/resources/accounting/resources/creditNotes/types/CreditNotesRetrieveRequestExpandItem.ts b/src/api/resources/accounting/resources/creditNotes/types/CreditNotesRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..1964c7dff --- /dev/null +++ b/src/api/resources/accounting/resources/creditNotes/types/CreditNotesRetrieveRequestExpandItem.ts @@ -0,0 +1,13 @@ +// This file was auto-generated by Fern from our API Definition. + +export const CreditNotesRetrieveRequestExpandItem = { + AccountingPeriod: "accounting_period", + AppliedPayments: "applied_payments", + Company: "company", + Contact: "contact", + LineItems: "line_items", + Payments: "payments", + TrackingCategories: "tracking_categories", +} as const; +export type CreditNotesRetrieveRequestExpandItem = + (typeof CreditNotesRetrieveRequestExpandItem)[keyof typeof CreditNotesRetrieveRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/creditNotes/types/index.ts b/src/api/resources/accounting/resources/creditNotes/types/index.ts index 87be1efa5..554d9228a 100644 --- a/src/api/resources/accounting/resources/creditNotes/types/index.ts +++ b/src/api/resources/accounting/resources/creditNotes/types/index.ts @@ -1,6 +1,9 @@ -export * from "./CreditNotesListRequestExpand"; +export * from "./CreditNotesBatchObjectsListRequestExpandItem"; +export * from "./CreditNotesBatchObjectsListRequestRemoteFields"; +export * from "./CreditNotesBatchObjectsListRequestShowEnumOrigins"; +export * from "./CreditNotesListRequestExpandItem"; export * from "./CreditNotesListRequestRemoteFields"; export * from "./CreditNotesListRequestShowEnumOrigins"; -export * from "./CreditNotesRetrieveRequestExpand"; +export * from "./CreditNotesRetrieveRequestExpandItem"; export * from "./CreditNotesRetrieveRequestRemoteFields"; export * from "./CreditNotesRetrieveRequestShowEnumOrigins"; diff --git a/src/api/resources/accounting/resources/employees/client/Client.ts b/src/api/resources/accounting/resources/employees/client/Client.ts index 2d26f382d..0cba7b96e 100644 --- a/src/api/resources/accounting/resources/employees/client/Client.ts +++ b/src/api/resources/accounting/resources/employees/client/Client.ts @@ -35,7 +35,6 @@ export class EmployeesClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "company", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -45,90 +44,105 @@ export class EmployeesClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.accounting.EmployeesListRequest = {}, requestOptions?: EmployeesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.accounting.EmployeesListRequest = {}, - requestOptions?: EmployeesClient.RequestOptions, - ): Promise> { - const { - companyId, - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - company_id: companyId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: expand != null ? expand : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.EmployeesListRequest, + ): Promise> => { + const { + companyId, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + company_id: companyId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/employees", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedEmployeeList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/employees", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "accounting/v1/employees", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.accounting.PaginatedEmployeeList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/accounting/v1/employees"); } /** @@ -140,7 +154,6 @@ export class EmployeesClient { * * @example * await client.accounting.employees.retrieve("id", { - * expand: "company", * includeRemoteData: true, * includeShellData: true * }) @@ -160,7 +173,7 @@ export class EmployeesClient { ): Promise> { const { expand, includeRemoteData, includeShellData } = request; const _queryParams: Record = { - expand: expand != null ? expand : undefined, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, }; diff --git a/src/api/resources/accounting/resources/employees/client/requests/EmployeesListRequest.ts b/src/api/resources/accounting/resources/employees/client/requests/EmployeesListRequest.ts index a0953801c..29c64f71c 100644 --- a/src/api/resources/accounting/resources/employees/client/requests/EmployeesListRequest.ts +++ b/src/api/resources/accounting/resources/employees/client/requests/EmployeesListRequest.ts @@ -7,7 +7,6 @@ * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "company", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -27,7 +26,7 @@ export interface EmployeesListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "company"; + expand?: "company" | "company"[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -38,7 +37,7 @@ export interface EmployeesListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; diff --git a/src/api/resources/accounting/resources/employees/client/requests/EmployeesRetrieveRequest.ts b/src/api/resources/accounting/resources/employees/client/requests/EmployeesRetrieveRequest.ts index 244030e1e..55d0fb261 100644 --- a/src/api/resources/accounting/resources/employees/client/requests/EmployeesRetrieveRequest.ts +++ b/src/api/resources/accounting/resources/employees/client/requests/EmployeesRetrieveRequest.ts @@ -3,14 +3,13 @@ /** * @example * { - * expand: "company", * includeRemoteData: true, * includeShellData: true * } */ export interface EmployeesRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "company"; + expand?: "company" | "company"[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/accounting/resources/expenseReports/client/Client.ts b/src/api/resources/accounting/resources/expenseReports/client/Client.ts index cd0cab743..55eb208a8 100644 --- a/src/api/resources/accounting/resources/expenseReports/client/Client.ts +++ b/src/api/resources/accounting/resources/expenseReports/client/Client.ts @@ -35,7 +35,6 @@ export class ExpenseReportsClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "accounting_period", * includeDeletedData: true, * includeRemoteData: true, * includeRemoteFields: true, @@ -46,131 +45,148 @@ export class ExpenseReportsClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.accounting.ExpenseReportsListRequest = {}, requestOptions?: ExpenseReportsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.accounting.ExpenseReportsListRequest = {}, - requestOptions?: ExpenseReportsClient.RequestOptions, - ): Promise> { - const { - companyId, - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeRemoteFields, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - company_id: companyId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: - expand != null - ? serializers.accounting.ExpenseReportsListRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.ExpenseReportsListRequest, + ): Promise> => { + const { + companyId, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + company_id: companyId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.ExpenseReportsListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.accounting.ExpenseReportsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/expense-reports", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedExpenseReportList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/expense-reports", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "accounting/v1/expense-reports", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.accounting.PaginatedExpenseReportList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/accounting/v1/expense-reports", - ); } /** * Creates an `ExpenseReport` object with the given values. * - * @param {Merge.accounting.ExpenseReportEndpointRequest} request + * @param {Merge.accounting.ExpenseReportsCreateRequest} request * @param {ExpenseReportsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.accounting.expenseReports.create({ * isDebugMode: true, * runAsync: true, - * model: { - * trackingCategories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"] + * body: { + * model: { + * trackingCategories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"] + * } * } * }) */ public create( - request: Merge.accounting.ExpenseReportEndpointRequest, + request: Merge.accounting.ExpenseReportsCreateRequest, requestOptions?: ExpenseReportsClient.RequestOptions, ): core.HttpResponsePromise { return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); } private async __create( - request: Merge.accounting.ExpenseReportEndpointRequest, + request: Merge.accounting.ExpenseReportsCreateRequest, requestOptions?: ExpenseReportsClient.RequestOptions, ): Promise> { - const { isDebugMode, runAsync, ..._body } = request; + const { isDebugMode, runAsync, body: _body } = request; const _queryParams: Record = { is_debug_mode: isDebugMode, run_async: runAsync, @@ -242,7 +258,6 @@ export class ExpenseReportsClient { * @example * await client.accounting.expenseReports.linesList("expense_report_id", { * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "account", * includeDeletedData: true, * includeRemoteData: true, * includeRemoteFields: true, @@ -250,92 +265,106 @@ export class ExpenseReportsClient { * pageSize: 1 * }) */ - public linesList( - expense_report_id: string, - request: Merge.accounting.ExpenseReportsLinesListRequest = {}, - requestOptions?: ExpenseReportsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__linesList(expense_report_id, request, requestOptions)); - } - - private async __linesList( + public async linesList( expense_report_id: string, request: Merge.accounting.ExpenseReportsLinesListRequest = {}, requestOptions?: ExpenseReportsClient.RequestOptions, - ): Promise> { - const { - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeRemoteFields, - includeShellData, - pageSize, - } = request; - const _queryParams: Record = { - cursor, - expand: - expand != null - ? serializers.accounting.ExpenseReportsLinesListRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - page_size: pageSize, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.ExpenseReportsLinesListRequest, + ): Promise> => { + const { + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + pageSize, + } = request; + const _queryParams: Record = { + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.ExpenseReportsLinesListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.accounting.ExpenseReportsLinesListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + `accounting/v1/expense-reports/${core.url.encodePathParam(expense_report_id)}/lines`, + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedExpenseReportLineList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/expense-reports/{expense_report_id}/lines", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `accounting/v1/expense-reports/${core.url.encodePathParam(expense_report_id)}/lines`, - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.accounting.PaginatedExpenseReportLineList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/accounting/v1/expense-reports/{expense_report_id}/lines", - ); } /** @@ -347,7 +376,6 @@ export class ExpenseReportsClient { * * @example * await client.accounting.expenseReports.retrieve("id", { - * expand: "accounting_period", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true @@ -368,12 +396,17 @@ export class ExpenseReportsClient { ): Promise> { const { expand, includeRemoteData, includeRemoteFields, includeShellData } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.accounting.ExpenseReportsRetrieveRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.ExpenseReportsRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.accounting.ExpenseReportsRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_remote_fields: includeRemoteFields, include_shell_data: includeShellData, @@ -431,50 +464,80 @@ export class ExpenseReportsClient { } /** - * Returns a list of `RemoteFieldClass` objects. + * Returns a list of `ExpenseReport` objects. * - * @param {Merge.accounting.ExpenseReportsLinesRemoteFieldClassesListRequest} request + * @param {string} batch_id + * @param {Merge.accounting.ExpenseReportsBatchObjectsListRequest} request * @param {ExpenseReportsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.expenseReports.linesRemoteFieldClassesList({ + * await client.accounting.expenseReports.batchObjectsList("batch_id", { + * companyId: "company_id", + * createdAfter: new Date("2024-01-15T09:30:00.000Z"), + * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * includeDeletedData: true, * includeRemoteData: true, + * includeRemoteFields: true, * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 + * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * pageSize: 1, + * remoteId: "remote_id" * }) */ - public linesRemoteFieldClassesList( - request: Merge.accounting.ExpenseReportsLinesRemoteFieldClassesListRequest = {}, + public batchObjectsList( + batch_id: string, + request: Merge.accounting.ExpenseReportsBatchObjectsListRequest = {}, requestOptions?: ExpenseReportsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__linesRemoteFieldClassesList(request, requestOptions)); + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__batchObjectsList(batch_id, request, requestOptions)); } - private async __linesRemoteFieldClassesList( - request: Merge.accounting.ExpenseReportsLinesRemoteFieldClassesListRequest = {}, + private async __batchObjectsList( + batch_id: string, + request: Merge.accounting.ExpenseReportsBatchObjectsListRequest = {}, requestOptions?: ExpenseReportsClient.RequestOptions, - ): Promise> { + ): Promise> { const { + companyId, + createdAfter, + createdBefore, cursor, + expand, includeDeletedData, includeRemoteData, + includeRemoteFields, includeShellData, - isCommonModelField, - isCustom, + modifiedAfter, + modifiedBefore, pageSize, + remoteId, } = request; const _queryParams: Record = { + company_id: companyId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.ExpenseReportsBatchObjectsListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.accounting.ExpenseReportsBatchObjectsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_deleted_data: includeDeletedData, include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, include_shell_data: includeShellData, - is_common_model_field: isCommonModelField, - is_custom: isCustom, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), page_size: pageSize, + remote_id: remoteId, }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( @@ -488,7 +551,7 @@ export class ExpenseReportsClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/expense-reports/lines/remote-field-classes", + `accounting/v1/expense-reports/batch/${core.url.encodePathParam(batch_id)}/objects`, ), method: "GET", headers: _headers, @@ -501,7 +564,7 @@ export class ExpenseReportsClient { }); if (_response.ok) { return { - data: serializers.accounting.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + data: serializers.accounting.PaginatedExpenseReportList.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -524,27 +587,46 @@ export class ExpenseReportsClient { _response.error, _response.rawResponse, "GET", - "/accounting/v1/expense-reports/lines/remote-field-classes", + "/accounting/v1/expense-reports/batch/{batch_id}/objects", ); } /** - * Returns metadata for `ExpenseReport` POSTs. + * Creates an `ExpenseReport` object with the given values. * + * @param {Merge.accounting.ExpenseReportBulkRequest} request * @param {ExpenseReportsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.expenseReports.metaPostRetrieve() + * await client.accounting.expenseReports.asyncBulkCreate({ + * isDebugMode: true, + * runAsync: true, + * batchItems: [{ + * itemId: "item_id", + * payload: { + * model: { + * trackingCategories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"] + * } + * } + * }] + * }) */ - public metaPostRetrieve( + public asyncBulkCreate( + request: Merge.accounting.ExpenseReportBulkRequest, requestOptions?: ExpenseReportsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__asyncBulkCreate(request, requestOptions)); } - private async __metaPostRetrieve( + private async __asyncBulkCreate( + request: Merge.accounting.ExpenseReportBulkRequest, requestOptions?: ExpenseReportsClient.RequestOptions, - ): Promise> { + ): Promise> { + const { isDebugMode, runAsync, ..._body } = request; + const _queryParams: Record = { + is_debug_mode: isDebugMode, + run_async: runAsync, + }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, @@ -557,11 +639,16 @@ export class ExpenseReportsClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/expense-reports/meta/post", + "accounting/v1/expense-reports/async/bulk", ), - method: "GET", + method: "POST", headers: _headers, - queryParameters: requestOptions?.queryParams, + contentType: "application/json", + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + requestType: "json", + body: serializers.accounting.ExpenseReportBulkRequest.jsonOrThrow(_body, { + unrecognizedObjectKeys: "strip", + }), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -570,7 +657,7 @@ export class ExpenseReportsClient { }); if (_response.ok) { return { - data: serializers.accounting.MetaResponse.parseOrThrow(_response.body, { + data: serializers.accounting.ExpenseReportResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -592,19 +679,19 @@ export class ExpenseReportsClient { return handleNonStatusCodeError( _response.error, _response.rawResponse, - "GET", - "/accounting/v1/expense-reports/meta/post", + "POST", + "/accounting/v1/expense-reports/async/bulk", ); } /** * Returns a list of `RemoteFieldClass` objects. * - * @param {Merge.accounting.ExpenseReportsRemoteFieldClassesListRequest} request + * @param {Merge.accounting.ExpenseReportsLinesRemoteFieldClassesListRequest} request * @param {ExpenseReportsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.expenseReports.remoteFieldClassesList({ + * await client.accounting.expenseReports.linesRemoteFieldClassesList({ * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * includeDeletedData: true, * includeRemoteData: true, @@ -614,35 +701,114 @@ export class ExpenseReportsClient { * pageSize: 1 * }) */ - public remoteFieldClassesList( - request: Merge.accounting.ExpenseReportsRemoteFieldClassesListRequest = {}, + public async linesRemoteFieldClassesList( + request: Merge.accounting.ExpenseReportsLinesRemoteFieldClassesListRequest = {}, requestOptions?: ExpenseReportsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldClassesList(request, requestOptions)); + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.ExpenseReportsLinesRemoteFieldClassesListRequest, + ): Promise> => { + const { + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + isCommonModelField, + isCustom, + pageSize, + } = request; + const _queryParams: Record = { + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + is_common_model_field: isCommonModelField, + is_custom: isCustom, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/expense-reports/lines/remote-field-classes", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/expense-reports/lines/remote-field-classes", + ); + }, + ); + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, + }); } - private async __remoteFieldClassesList( - request: Merge.accounting.ExpenseReportsRemoteFieldClassesListRequest = {}, + /** + * Returns metadata for `ExpenseReport` POSTs. + * + * @param {ExpenseReportsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.expenseReports.metaPostRetrieve() + */ + public metaPostRetrieve( requestOptions?: ExpenseReportsClient.RequestOptions, - ): Promise> { - const { - cursor, - includeDeletedData, - includeRemoteData, - includeShellData, - isCommonModelField, - isCustom, - pageSize, - } = request; - const _queryParams: Record = { - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - is_common_model_field: isCommonModelField, - is_custom: isCustom, - page_size: pageSize, - }; + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); + } + + private async __metaPostRetrieve( + requestOptions?: ExpenseReportsClient.RequestOptions, + ): Promise> { const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, @@ -655,11 +821,11 @@ export class ExpenseReportsClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/expense-reports/remote-field-classes", + "accounting/v1/expense-reports/meta/post", ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryParameters: requestOptions?.queryParams, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -668,7 +834,7 @@ export class ExpenseReportsClient { }); if (_response.ok) { return { - data: serializers.accounting.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + data: serializers.accounting.MetaResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -691,7 +857,115 @@ export class ExpenseReportsClient { _response.error, _response.rawResponse, "GET", - "/accounting/v1/expense-reports/remote-field-classes", + "/accounting/v1/expense-reports/meta/post", + ); + } + + /** + * Returns a list of `RemoteFieldClass` objects. + * + * @param {Merge.accounting.ExpenseReportsRemoteFieldClassesListRequest} request + * @param {ExpenseReportsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.expenseReports.remoteFieldClassesList({ + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeShellData: true, + * isCommonModelField: true, + * isCustom: true, + * pageSize: 1 + * }) + */ + public async remoteFieldClassesList( + request: Merge.accounting.ExpenseReportsRemoteFieldClassesListRequest = {}, + requestOptions?: ExpenseReportsClient.RequestOptions, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.ExpenseReportsRemoteFieldClassesListRequest, + ): Promise> => { + const { + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + isCommonModelField, + isCustom, + pageSize, + } = request; + const _queryParams: Record = { + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + is_common_model_field: isCommonModelField, + is_custom: isCustom, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/expense-reports/remote-field-classes", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/expense-reports/remote-field-classes", + ); + }, ); + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, + }); } } diff --git a/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportBulkRequest.ts b/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportBulkRequest.ts new file mode 100644 index 000000000..64f0da85f --- /dev/null +++ b/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportBulkRequest.ts @@ -0,0 +1,26 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * batchItems: [{ + * itemId: "item_id", + * payload: { + * model: { + * trackingCategories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"] + * } + * } + * }] + * } + */ +export interface ExpenseReportBulkRequest { + /** 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; + batchItems: Merge.accounting.ExpenseReportBatchItemRequest[]; +} diff --git a/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportEndpointRequest.ts b/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportEndpointRequest.ts deleted file mode 100644 index 8b8b732a4..000000000 --- a/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportEndpointRequest.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: { - * trackingCategories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"] - * } - * } - */ -export interface ExpenseReportEndpointRequest { - /** 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.accounting.ExpenseReportRequest; -} diff --git a/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsBatchObjectsListRequest.ts b/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsBatchObjectsListRequest.ts new file mode 100644 index 000000000..5f7c92230 --- /dev/null +++ b/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsBatchObjectsListRequest.ts @@ -0,0 +1,51 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * companyId: "company_id", + * createdAfter: new Date("2024-01-15T09:30:00.000Z"), + * createdBefore: new Date("2024-01-15T09:30:00.000Z"), + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeRemoteFields: true, + * includeShellData: true, + * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * pageSize: 1, + * remoteId: "remote_id" + * } + */ +export interface ExpenseReportsBatchObjectsListRequest { + /** If provided, will only return expense reports for this company. */ + companyId?: string; + /** If provided, will only return objects created after this datetime. */ + createdAfter?: Date; + /** If provided, will only return objects created before this datetime. */ + createdBefore?: Date; + /** The pagination cursor value. */ + cursor?: string; + /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ + expand?: + | Merge.accounting.ExpenseReportsBatchObjectsListRequestExpandItem + | Merge.accounting.ExpenseReportsBatchObjectsListRequestExpandItem[]; + /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ + includeDeletedData?: boolean; + /** Whether to include the original data Merge fetched from the third-party to produce these models. */ + includeRemoteData?: boolean; + /** Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. */ + includeRemoteFields?: boolean; + /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ + includeShellData?: boolean; + /** If provided, only objects synced by Merge after this date time will be returned. */ + modifiedAfter?: Date; + /** If provided, only objects synced by Merge before this date time will be returned. */ + modifiedBefore?: Date; + /** Number of results to return per page. The maximum limit is 100. */ + pageSize?: number; + /** The API provider's ID for the given object. */ + remoteId?: string; +} diff --git a/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsCreateRequest.ts b/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsCreateRequest.ts new file mode 100644 index 000000000..042a579c6 --- /dev/null +++ b/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsCreateRequest.ts @@ -0,0 +1,23 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * body: { + * model: { + * trackingCategories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"] + * } + * } + * } + */ +export interface ExpenseReportsCreateRequest { + /** 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; + body: Merge.accounting.ExpenseReportEndpointRequest; +} diff --git a/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsLinesListRequest.ts b/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsLinesListRequest.ts index 8167f0407..aae59149c 100644 --- a/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsLinesListRequest.ts +++ b/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsLinesListRequest.ts @@ -6,7 +6,6 @@ import type * as Merge from "../../../../../../index"; * @example * { * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "account", * includeDeletedData: true, * includeRemoteData: true, * includeRemoteFields: true, @@ -18,7 +17,9 @@ export interface ExpenseReportsLinesListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.ExpenseReportsLinesListRequestExpand; + expand?: + | Merge.accounting.ExpenseReportsLinesListRequestExpandItem + | Merge.accounting.ExpenseReportsLinesListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -27,6 +28,6 @@ export interface ExpenseReportsLinesListRequest { includeRemoteFields?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ includeShellData?: boolean; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; } diff --git a/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsLinesRemoteFieldClassesListRequest.ts b/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsLinesRemoteFieldClassesListRequest.ts index 3020486b5..fa20c886c 100644 --- a/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsLinesRemoteFieldClassesListRequest.ts +++ b/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsLinesRemoteFieldClassesListRequest.ts @@ -25,6 +25,6 @@ export interface ExpenseReportsLinesRemoteFieldClassesListRequest { isCommonModelField?: boolean; /** If provided, will only return remote fields classes with this is_custom value */ isCustom?: boolean; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; } diff --git a/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsListRequest.ts b/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsListRequest.ts index 4059ea572..fca1b97f7 100644 --- a/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsListRequest.ts +++ b/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsListRequest.ts @@ -9,7 +9,6 @@ import type * as Merge from "../../../../../../index"; * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "accounting_period", * includeDeletedData: true, * includeRemoteData: true, * includeRemoteFields: true, @@ -30,7 +29,9 @@ export interface ExpenseReportsListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.ExpenseReportsListRequestExpand; + expand?: + | Merge.accounting.ExpenseReportsListRequestExpandItem + | Merge.accounting.ExpenseReportsListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -43,7 +44,7 @@ export interface ExpenseReportsListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; diff --git a/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsRemoteFieldClassesListRequest.ts b/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsRemoteFieldClassesListRequest.ts index 351af2ffc..c397daad9 100644 --- a/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsRemoteFieldClassesListRequest.ts +++ b/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsRemoteFieldClassesListRequest.ts @@ -25,6 +25,6 @@ export interface ExpenseReportsRemoteFieldClassesListRequest { isCommonModelField?: boolean; /** If provided, will only return remote fields classes with this is_custom value */ isCustom?: boolean; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; } diff --git a/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsRetrieveRequest.ts b/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsRetrieveRequest.ts index 57b230f8e..aa76c8aa3 100644 --- a/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsRetrieveRequest.ts +++ b/src/api/resources/accounting/resources/expenseReports/client/requests/ExpenseReportsRetrieveRequest.ts @@ -5,7 +5,6 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "accounting_period", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true @@ -13,7 +12,9 @@ import type * as Merge from "../../../../../../index"; */ export interface ExpenseReportsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.ExpenseReportsRetrieveRequestExpand; + expand?: + | Merge.accounting.ExpenseReportsRetrieveRequestExpandItem + | Merge.accounting.ExpenseReportsRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. */ diff --git a/src/api/resources/accounting/resources/expenseReports/client/requests/index.ts b/src/api/resources/accounting/resources/expenseReports/client/requests/index.ts index 34e983061..92af55890 100644 --- a/src/api/resources/accounting/resources/expenseReports/client/requests/index.ts +++ b/src/api/resources/accounting/resources/expenseReports/client/requests/index.ts @@ -1,4 +1,6 @@ -export type { ExpenseReportEndpointRequest } from "./ExpenseReportEndpointRequest"; +export type { ExpenseReportBulkRequest } from "./ExpenseReportBulkRequest"; +export type { ExpenseReportsBatchObjectsListRequest } from "./ExpenseReportsBatchObjectsListRequest"; +export type { ExpenseReportsCreateRequest } from "./ExpenseReportsCreateRequest"; export type { ExpenseReportsLinesListRequest } from "./ExpenseReportsLinesListRequest"; export type { ExpenseReportsLinesRemoteFieldClassesListRequest } from "./ExpenseReportsLinesRemoteFieldClassesListRequest"; export type { ExpenseReportsListRequest } from "./ExpenseReportsListRequest"; diff --git a/src/api/resources/accounting/resources/expenseReports/types/ExpenseReportsBatchObjectsListRequestExpandItem.ts b/src/api/resources/accounting/resources/expenseReports/types/ExpenseReportsBatchObjectsListRequestExpandItem.ts new file mode 100644 index 000000000..a20c1eb48 --- /dev/null +++ b/src/api/resources/accounting/resources/expenseReports/types/ExpenseReportsBatchObjectsListRequestExpandItem.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +export const ExpenseReportsBatchObjectsListRequestExpandItem = { + AccountingPeriod: "accounting_period", + Company: "company", + Employee: "employee", + Lines: "lines", +} as const; +export type ExpenseReportsBatchObjectsListRequestExpandItem = + (typeof ExpenseReportsBatchObjectsListRequestExpandItem)[keyof typeof ExpenseReportsBatchObjectsListRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/expenseReports/types/ExpenseReportsLinesListRequestExpand.ts b/src/api/resources/accounting/resources/expenseReports/types/ExpenseReportsLinesListRequestExpand.ts deleted file mode 100644 index 1014f0867..000000000 --- a/src/api/resources/accounting/resources/expenseReports/types/ExpenseReportsLinesListRequestExpand.ts +++ /dev/null @@ -1,69 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const ExpenseReportsLinesListRequestExpand = { - Account: "account", - AccountCompany: "account,company", - AccountCompanyContact: "account,company,contact", - AccountCompanyContactTaxRate: "account,company,contact,tax_rate", - AccountCompanyTaxRate: "account,company,tax_rate", - AccountContact: "account,contact", - AccountContactTaxRate: "account,contact,tax_rate", - AccountEmployee: "account,employee", - AccountEmployeeCompany: "account,employee,company", - AccountEmployeeCompanyContact: "account,employee,company,contact", - AccountEmployeeCompanyContactTaxRate: "account,employee,company,contact,tax_rate", - AccountEmployeeCompanyTaxRate: "account,employee,company,tax_rate", - AccountEmployeeContact: "account,employee,contact", - AccountEmployeeContactTaxRate: "account,employee,contact,tax_rate", - AccountEmployeeProject: "account,employee,project", - AccountEmployeeProjectCompany: "account,employee,project,company", - AccountEmployeeProjectCompanyContact: "account,employee,project,company,contact", - AccountEmployeeProjectCompanyContactTaxRate: "account,employee,project,company,contact,tax_rate", - AccountEmployeeProjectCompanyTaxRate: "account,employee,project,company,tax_rate", - AccountEmployeeProjectContact: "account,employee,project,contact", - AccountEmployeeProjectContactTaxRate: "account,employee,project,contact,tax_rate", - AccountEmployeeProjectTaxRate: "account,employee,project,tax_rate", - AccountEmployeeTaxRate: "account,employee,tax_rate", - AccountProject: "account,project", - AccountProjectCompany: "account,project,company", - AccountProjectCompanyContact: "account,project,company,contact", - AccountProjectCompanyContactTaxRate: "account,project,company,contact,tax_rate", - AccountProjectCompanyTaxRate: "account,project,company,tax_rate", - AccountProjectContact: "account,project,contact", - AccountProjectContactTaxRate: "account,project,contact,tax_rate", - AccountProjectTaxRate: "account,project,tax_rate", - AccountTaxRate: "account,tax_rate", - Company: "company", - CompanyContact: "company,contact", - CompanyContactTaxRate: "company,contact,tax_rate", - CompanyTaxRate: "company,tax_rate", - Contact: "contact", - ContactTaxRate: "contact,tax_rate", - Employee: "employee", - EmployeeCompany: "employee,company", - EmployeeCompanyContact: "employee,company,contact", - EmployeeCompanyContactTaxRate: "employee,company,contact,tax_rate", - EmployeeCompanyTaxRate: "employee,company,tax_rate", - EmployeeContact: "employee,contact", - EmployeeContactTaxRate: "employee,contact,tax_rate", - EmployeeProject: "employee,project", - EmployeeProjectCompany: "employee,project,company", - EmployeeProjectCompanyContact: "employee,project,company,contact", - EmployeeProjectCompanyContactTaxRate: "employee,project,company,contact,tax_rate", - EmployeeProjectCompanyTaxRate: "employee,project,company,tax_rate", - EmployeeProjectContact: "employee,project,contact", - EmployeeProjectContactTaxRate: "employee,project,contact,tax_rate", - EmployeeProjectTaxRate: "employee,project,tax_rate", - EmployeeTaxRate: "employee,tax_rate", - Project: "project", - ProjectCompany: "project,company", - ProjectCompanyContact: "project,company,contact", - ProjectCompanyContactTaxRate: "project,company,contact,tax_rate", - ProjectCompanyTaxRate: "project,company,tax_rate", - ProjectContact: "project,contact", - ProjectContactTaxRate: "project,contact,tax_rate", - ProjectTaxRate: "project,tax_rate", - TaxRate: "tax_rate", -} as const; -export type ExpenseReportsLinesListRequestExpand = - (typeof ExpenseReportsLinesListRequestExpand)[keyof typeof ExpenseReportsLinesListRequestExpand]; diff --git a/src/api/resources/accounting/resources/expenseReports/types/ExpenseReportsLinesListRequestExpandItem.ts b/src/api/resources/accounting/resources/expenseReports/types/ExpenseReportsLinesListRequestExpandItem.ts new file mode 100644 index 000000000..ba14169ce --- /dev/null +++ b/src/api/resources/accounting/resources/expenseReports/types/ExpenseReportsLinesListRequestExpandItem.ts @@ -0,0 +1,12 @@ +// This file was auto-generated by Fern from our API Definition. + +export const ExpenseReportsLinesListRequestExpandItem = { + Account: "account", + Company: "company", + Contact: "contact", + Employee: "employee", + Project: "project", + TaxRate: "tax_rate", +} as const; +export type ExpenseReportsLinesListRequestExpandItem = + (typeof ExpenseReportsLinesListRequestExpandItem)[keyof typeof ExpenseReportsLinesListRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/expenseReports/types/ExpenseReportsListRequestExpand.ts b/src/api/resources/accounting/resources/expenseReports/types/ExpenseReportsListRequestExpand.ts deleted file mode 100644 index 6a3830422..000000000 --- a/src/api/resources/accounting/resources/expenseReports/types/ExpenseReportsListRequestExpand.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const ExpenseReportsListRequestExpand = { - AccountingPeriod: "accounting_period", - AccountingPeriodCompany: "accounting_period,company", - Company: "company", - Employee: "employee", - EmployeeAccountingPeriod: "employee,accounting_period", - EmployeeAccountingPeriodCompany: "employee,accounting_period,company", - EmployeeCompany: "employee,company", - Lines: "lines", - LinesAccountingPeriod: "lines,accounting_period", - LinesAccountingPeriodCompany: "lines,accounting_period,company", - LinesCompany: "lines,company", - LinesEmployee: "lines,employee", - LinesEmployeeAccountingPeriod: "lines,employee,accounting_period", - LinesEmployeeAccountingPeriodCompany: "lines,employee,accounting_period,company", - LinesEmployeeCompany: "lines,employee,company", -} as const; -export type ExpenseReportsListRequestExpand = - (typeof ExpenseReportsListRequestExpand)[keyof typeof ExpenseReportsListRequestExpand]; diff --git a/src/api/resources/accounting/resources/expenseReports/types/ExpenseReportsListRequestExpandItem.ts b/src/api/resources/accounting/resources/expenseReports/types/ExpenseReportsListRequestExpandItem.ts new file mode 100644 index 000000000..b06f099bb --- /dev/null +++ b/src/api/resources/accounting/resources/expenseReports/types/ExpenseReportsListRequestExpandItem.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +export const ExpenseReportsListRequestExpandItem = { + AccountingPeriod: "accounting_period", + Company: "company", + Employee: "employee", + Lines: "lines", +} as const; +export type ExpenseReportsListRequestExpandItem = + (typeof ExpenseReportsListRequestExpandItem)[keyof typeof ExpenseReportsListRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/expenseReports/types/ExpenseReportsRetrieveRequestExpand.ts b/src/api/resources/accounting/resources/expenseReports/types/ExpenseReportsRetrieveRequestExpand.ts deleted file mode 100644 index c014f3315..000000000 --- a/src/api/resources/accounting/resources/expenseReports/types/ExpenseReportsRetrieveRequestExpand.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const ExpenseReportsRetrieveRequestExpand = { - AccountingPeriod: "accounting_period", - AccountingPeriodCompany: "accounting_period,company", - Company: "company", - Employee: "employee", - EmployeeAccountingPeriod: "employee,accounting_period", - EmployeeAccountingPeriodCompany: "employee,accounting_period,company", - EmployeeCompany: "employee,company", - Lines: "lines", - LinesAccountingPeriod: "lines,accounting_period", - LinesAccountingPeriodCompany: "lines,accounting_period,company", - LinesCompany: "lines,company", - LinesEmployee: "lines,employee", - LinesEmployeeAccountingPeriod: "lines,employee,accounting_period", - LinesEmployeeAccountingPeriodCompany: "lines,employee,accounting_period,company", - LinesEmployeeCompany: "lines,employee,company", -} as const; -export type ExpenseReportsRetrieveRequestExpand = - (typeof ExpenseReportsRetrieveRequestExpand)[keyof typeof ExpenseReportsRetrieveRequestExpand]; diff --git a/src/api/resources/accounting/resources/expenseReports/types/ExpenseReportsRetrieveRequestExpandItem.ts b/src/api/resources/accounting/resources/expenseReports/types/ExpenseReportsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..62bad228e --- /dev/null +++ b/src/api/resources/accounting/resources/expenseReports/types/ExpenseReportsRetrieveRequestExpandItem.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +export const ExpenseReportsRetrieveRequestExpandItem = { + AccountingPeriod: "accounting_period", + Company: "company", + Employee: "employee", + Lines: "lines", +} as const; +export type ExpenseReportsRetrieveRequestExpandItem = + (typeof ExpenseReportsRetrieveRequestExpandItem)[keyof typeof ExpenseReportsRetrieveRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/expenseReports/types/index.ts b/src/api/resources/accounting/resources/expenseReports/types/index.ts index 9dd83d9ba..879646673 100644 --- a/src/api/resources/accounting/resources/expenseReports/types/index.ts +++ b/src/api/resources/accounting/resources/expenseReports/types/index.ts @@ -1,3 +1,4 @@ -export * from "./ExpenseReportsLinesListRequestExpand"; -export * from "./ExpenseReportsListRequestExpand"; -export * from "./ExpenseReportsRetrieveRequestExpand"; +export * from "./ExpenseReportsBatchObjectsListRequestExpandItem"; +export * from "./ExpenseReportsLinesListRequestExpandItem"; +export * from "./ExpenseReportsListRequestExpandItem"; +export * from "./ExpenseReportsRetrieveRequestExpandItem"; diff --git a/src/api/resources/accounting/resources/expenses/client/Client.ts b/src/api/resources/accounting/resources/expenses/client/Client.ts index be90d9323..afb7f1673 100644 --- a/src/api/resources/accounting/resources/expenses/client/Client.ts +++ b/src/api/resources/accounting/resources/expenses/client/Client.ts @@ -35,7 +35,6 @@ export class ExpensesClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "account", * includeDeletedData: true, * includeRemoteData: true, * includeRemoteFields: true, @@ -48,128 +47,150 @@ export class ExpensesClient { * transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") * }) */ - public list( + public async list( request: Merge.accounting.ExpensesListRequest = {}, requestOptions?: ExpensesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.accounting.ExpensesListRequest = {}, - requestOptions?: ExpensesClient.RequestOptions, - ): Promise> { - const { - companyId, - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeRemoteFields, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - transactionDateAfter, - transactionDateBefore, - } = request; - const _queryParams: Record = { - company_id: companyId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: - expand != null - ? serializers.accounting.ExpensesListRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - transaction_date_after: transactionDateAfter?.toISOString(), - transaction_date_before: transactionDateBefore?.toISOString(), - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.ExpensesListRequest, + ): Promise> => { + const { + companyId, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + transactionDateAfter, + transactionDateBefore, + } = request; + const _queryParams: Record = { + company_id: companyId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.ExpensesListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.accounting.ExpensesListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + transaction_date_after: transactionDateAfter?.toISOString(), + transaction_date_before: transactionDateBefore?.toISOString(), + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/expenses", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedExpenseList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/expenses", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "accounting/v1/expenses", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.accounting.PaginatedExpenseList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/accounting/v1/expenses"); } /** * Creates an `Expense` object with the given values. * - * @param {Merge.accounting.ExpenseEndpointRequest} request + * @param {Merge.accounting.ExpensesCreateRequest} request * @param {ExpensesClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.accounting.expenses.create({ * isDebugMode: true, * runAsync: true, - * model: {} + * body: { + * model: {} + * } * }) */ public create( - request: Merge.accounting.ExpenseEndpointRequest, + request: Merge.accounting.ExpensesCreateRequest, requestOptions?: ExpensesClient.RequestOptions, ): core.HttpResponsePromise { return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); } private async __create( - request: Merge.accounting.ExpenseEndpointRequest, + request: Merge.accounting.ExpensesCreateRequest, requestOptions?: ExpensesClient.RequestOptions, ): Promise> { - const { isDebugMode, runAsync, ..._body } = request; + const { isDebugMode, runAsync, body: _body } = request; const _queryParams: Record = { is_debug_mode: isDebugMode, run_async: runAsync, @@ -233,7 +254,6 @@ export class ExpensesClient { * * @example * await client.accounting.expenses.retrieve("id", { - * expand: "account", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true @@ -254,12 +274,17 @@ export class ExpensesClient { ): Promise> { const { expand, includeRemoteData, includeRemoteFields, includeShellData } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.accounting.ExpensesRetrieveRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.ExpensesRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.accounting.ExpensesRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_remote_fields: includeRemoteFields, include_shell_data: includeShellData, @@ -312,50 +337,86 @@ export class ExpensesClient { } /** - * Returns a list of `RemoteFieldClass` objects. + * Returns a list of `Expense` objects. * - * @param {Merge.accounting.ExpensesLinesRemoteFieldClassesListRequest} request + * @param {string} batch_id + * @param {Merge.accounting.ExpensesBatchObjectsListRequest} request * @param {ExpensesClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.expenses.linesRemoteFieldClassesList({ + * await client.accounting.expenses.batchObjectsList("batch_id", { + * companyId: "company_id", + * createdAfter: new Date("2024-01-15T09:30:00.000Z"), + * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * includeDeletedData: true, * includeRemoteData: true, + * includeRemoteFields: true, * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 + * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * pageSize: 1, + * remoteId: "remote_id", + * transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + * transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") * }) */ - public linesRemoteFieldClassesList( - request: Merge.accounting.ExpensesLinesRemoteFieldClassesListRequest = {}, + public batchObjectsList( + batch_id: string, + request: Merge.accounting.ExpensesBatchObjectsListRequest = {}, requestOptions?: ExpensesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__linesRemoteFieldClassesList(request, requestOptions)); + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__batchObjectsList(batch_id, request, requestOptions)); } - private async __linesRemoteFieldClassesList( - request: Merge.accounting.ExpensesLinesRemoteFieldClassesListRequest = {}, + private async __batchObjectsList( + batch_id: string, + request: Merge.accounting.ExpensesBatchObjectsListRequest = {}, requestOptions?: ExpensesClient.RequestOptions, - ): Promise> { + ): Promise> { const { + companyId, + createdAfter, + createdBefore, cursor, + expand, includeDeletedData, includeRemoteData, + includeRemoteFields, includeShellData, - isCommonModelField, - isCustom, + modifiedAfter, + modifiedBefore, pageSize, + remoteId, + transactionDateAfter, + transactionDateBefore, } = request; const _queryParams: Record = { + company_id: companyId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.ExpensesBatchObjectsListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.accounting.ExpensesBatchObjectsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_deleted_data: includeDeletedData, include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, include_shell_data: includeShellData, - is_common_model_field: isCommonModelField, - is_custom: isCustom, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), page_size: pageSize, + remote_id: remoteId, + transaction_date_after: transactionDateAfter?.toISOString(), + transaction_date_before: transactionDateBefore?.toISOString(), }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( @@ -369,7 +430,7 @@ export class ExpensesClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/expenses/lines/remote-field-classes", + `accounting/v1/expenses/batch/${core.url.encodePathParam(batch_id)}/objects`, ), method: "GET", headers: _headers, @@ -382,7 +443,7 @@ export class ExpensesClient { }); if (_response.ok) { return { - data: serializers.accounting.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + data: serializers.accounting.PaginatedExpenseList.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -405,27 +466,44 @@ export class ExpensesClient { _response.error, _response.rawResponse, "GET", - "/accounting/v1/expenses/lines/remote-field-classes", + "/accounting/v1/expenses/batch/{batch_id}/objects", ); } /** - * Returns metadata for `Expense` POSTs. + * Creates an `Expense` object with the given values. * + * @param {Merge.accounting.ExpenseBulkRequest} request * @param {ExpensesClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.expenses.metaPostRetrieve() + * await client.accounting.expenses.asyncBulkCreate({ + * isDebugMode: true, + * runAsync: true, + * batchItems: [{ + * itemId: "item_id", + * payload: { + * model: {} + * } + * }] + * }) */ - public metaPostRetrieve( + public asyncBulkCreate( + request: Merge.accounting.ExpenseBulkRequest, requestOptions?: ExpensesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__asyncBulkCreate(request, requestOptions)); } - private async __metaPostRetrieve( + private async __asyncBulkCreate( + request: Merge.accounting.ExpenseBulkRequest, requestOptions?: ExpensesClient.RequestOptions, - ): Promise> { + ): Promise> { + const { isDebugMode, runAsync, ..._body } = request; + const _queryParams: Record = { + is_debug_mode: isDebugMode, + run_async: runAsync, + }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, @@ -438,11 +516,14 @@ export class ExpensesClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/expenses/meta/post", + "accounting/v1/expenses/async/bulk", ), - method: "GET", + method: "POST", headers: _headers, - queryParameters: requestOptions?.queryParams, + contentType: "application/json", + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + requestType: "json", + body: serializers.accounting.ExpenseBulkRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -451,7 +532,7 @@ export class ExpensesClient { }); if (_response.ok) { return { - data: serializers.accounting.MetaResponse.parseOrThrow(_response.body, { + data: serializers.accounting.ExpenseResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -473,19 +554,19 @@ export class ExpensesClient { return handleNonStatusCodeError( _response.error, _response.rawResponse, - "GET", - "/accounting/v1/expenses/meta/post", + "POST", + "/accounting/v1/expenses/async/bulk", ); } /** * Returns a list of `RemoteFieldClass` objects. * - * @param {Merge.accounting.ExpensesRemoteFieldClassesListRequest} request + * @param {Merge.accounting.ExpensesLinesRemoteFieldClassesListRequest} request * @param {ExpensesClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.expenses.remoteFieldClassesList({ + * await client.accounting.expenses.linesRemoteFieldClassesList({ * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * includeDeletedData: true, * includeRemoteData: true, @@ -495,35 +576,114 @@ export class ExpensesClient { * pageSize: 1 * }) */ - public remoteFieldClassesList( - request: Merge.accounting.ExpensesRemoteFieldClassesListRequest = {}, + public async linesRemoteFieldClassesList( + request: Merge.accounting.ExpensesLinesRemoteFieldClassesListRequest = {}, requestOptions?: ExpensesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldClassesList(request, requestOptions)); + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.ExpensesLinesRemoteFieldClassesListRequest, + ): Promise> => { + const { + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + isCommonModelField, + isCustom, + pageSize, + } = request; + const _queryParams: Record = { + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + is_common_model_field: isCommonModelField, + is_custom: isCustom, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/expenses/lines/remote-field-classes", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/expenses/lines/remote-field-classes", + ); + }, + ); + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, + }); } - private async __remoteFieldClassesList( - request: Merge.accounting.ExpensesRemoteFieldClassesListRequest = {}, + /** + * Returns metadata for `Expense` POSTs. + * + * @param {ExpensesClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.expenses.metaPostRetrieve() + */ + public metaPostRetrieve( requestOptions?: ExpensesClient.RequestOptions, - ): Promise> { - const { - cursor, - includeDeletedData, - includeRemoteData, - includeShellData, - isCommonModelField, - isCustom, - pageSize, - } = request; - const _queryParams: Record = { - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - is_common_model_field: isCommonModelField, - is_custom: isCustom, - page_size: pageSize, - }; + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); + } + + private async __metaPostRetrieve( + requestOptions?: ExpensesClient.RequestOptions, + ): Promise> { const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, @@ -536,11 +696,11 @@ export class ExpensesClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/expenses/remote-field-classes", + "accounting/v1/expenses/meta/post", ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryParameters: requestOptions?.queryParams, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -549,7 +709,7 @@ export class ExpensesClient { }); if (_response.ok) { return { - data: serializers.accounting.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + data: serializers.accounting.MetaResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -572,7 +732,115 @@ export class ExpensesClient { _response.error, _response.rawResponse, "GET", - "/accounting/v1/expenses/remote-field-classes", + "/accounting/v1/expenses/meta/post", ); } + + /** + * Returns a list of `RemoteFieldClass` objects. + * + * @param {Merge.accounting.ExpensesRemoteFieldClassesListRequest} request + * @param {ExpensesClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.expenses.remoteFieldClassesList({ + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeShellData: true, + * isCommonModelField: true, + * isCustom: true, + * pageSize: 1 + * }) + */ + public async remoteFieldClassesList( + request: Merge.accounting.ExpensesRemoteFieldClassesListRequest = {}, + requestOptions?: ExpensesClient.RequestOptions, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.ExpensesRemoteFieldClassesListRequest, + ): Promise> => { + const { + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + isCommonModelField, + isCustom, + pageSize, + } = request; + const _queryParams: Record = { + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + is_common_model_field: isCommonModelField, + is_custom: isCustom, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/expenses/remote-field-classes", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/expenses/remote-field-classes", + ); + }, + ); + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, + }); + } } diff --git a/src/api/resources/accounting/resources/expenses/client/requests/ExpenseBulkRequest.ts b/src/api/resources/accounting/resources/expenses/client/requests/ExpenseBulkRequest.ts new file mode 100644 index 000000000..5ce580ef5 --- /dev/null +++ b/src/api/resources/accounting/resources/expenses/client/requests/ExpenseBulkRequest.ts @@ -0,0 +1,24 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * batchItems: [{ + * itemId: "item_id", + * payload: { + * model: {} + * } + * }] + * } + */ +export interface ExpenseBulkRequest { + /** 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; + batchItems: Merge.accounting.ExpenseBatchItemRequest[]; +} diff --git a/src/api/resources/accounting/resources/expenses/client/requests/ExpenseEndpointRequest.ts b/src/api/resources/accounting/resources/expenses/client/requests/ExpenseEndpointRequest.ts deleted file mode 100644 index 43e2a4697..000000000 --- a/src/api/resources/accounting/resources/expenses/client/requests/ExpenseEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface ExpenseEndpointRequest { - /** 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.accounting.ExpenseRequest; -} diff --git a/src/api/resources/accounting/resources/expenses/client/requests/ExpensesBatchObjectsListRequest.ts b/src/api/resources/accounting/resources/expenses/client/requests/ExpensesBatchObjectsListRequest.ts new file mode 100644 index 000000000..48445693a --- /dev/null +++ b/src/api/resources/accounting/resources/expenses/client/requests/ExpensesBatchObjectsListRequest.ts @@ -0,0 +1,57 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * companyId: "company_id", + * createdAfter: new Date("2024-01-15T09:30:00.000Z"), + * createdBefore: new Date("2024-01-15T09:30:00.000Z"), + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeRemoteFields: true, + * includeShellData: true, + * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * pageSize: 1, + * remoteId: "remote_id", + * transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + * transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") + * } + */ +export interface ExpensesBatchObjectsListRequest { + /** If provided, will only return expenses for this company. */ + companyId?: string; + /** If provided, will only return objects created after this datetime. */ + createdAfter?: Date; + /** If provided, will only return objects created before this datetime. */ + createdBefore?: Date; + /** The pagination cursor value. */ + cursor?: string; + /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ + expand?: + | Merge.accounting.ExpensesBatchObjectsListRequestExpandItem + | Merge.accounting.ExpensesBatchObjectsListRequestExpandItem[]; + /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ + includeDeletedData?: boolean; + /** Whether to include the original data Merge fetched from the third-party to produce these models. */ + includeRemoteData?: boolean; + /** Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. */ + includeRemoteFields?: boolean; + /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ + includeShellData?: boolean; + /** If provided, only objects synced by Merge after this date time will be returned. */ + modifiedAfter?: Date; + /** If provided, only objects synced by Merge before this date time will be returned. */ + modifiedBefore?: Date; + /** Number of results to return per page. The maximum limit is 100. */ + pageSize?: number; + /** The API provider's ID for the given object. */ + remoteId?: string; + /** If provided, will only return objects created after this datetime. */ + transactionDateAfter?: Date; + /** If provided, will only return objects created before this datetime. */ + transactionDateBefore?: Date; +} diff --git a/src/api/resources/accounting/resources/expenses/client/requests/ExpensesCreateRequest.ts b/src/api/resources/accounting/resources/expenses/client/requests/ExpensesCreateRequest.ts new file mode 100644 index 000000000..6a5062877 --- /dev/null +++ b/src/api/resources/accounting/resources/expenses/client/requests/ExpensesCreateRequest.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * body: { + * model: {} + * } + * } + */ +export interface ExpensesCreateRequest { + /** 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; + body: Merge.accounting.ExpenseEndpointRequest; +} diff --git a/src/api/resources/accounting/resources/expenses/client/requests/ExpensesLinesRemoteFieldClassesListRequest.ts b/src/api/resources/accounting/resources/expenses/client/requests/ExpensesLinesRemoteFieldClassesListRequest.ts index 9b4833125..0908f6f86 100644 --- a/src/api/resources/accounting/resources/expenses/client/requests/ExpensesLinesRemoteFieldClassesListRequest.ts +++ b/src/api/resources/accounting/resources/expenses/client/requests/ExpensesLinesRemoteFieldClassesListRequest.ts @@ -25,6 +25,6 @@ export interface ExpensesLinesRemoteFieldClassesListRequest { isCommonModelField?: boolean; /** If provided, will only return remote fields classes with this is_custom value */ isCustom?: boolean; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; } diff --git a/src/api/resources/accounting/resources/expenses/client/requests/ExpensesListRequest.ts b/src/api/resources/accounting/resources/expenses/client/requests/ExpensesListRequest.ts index c5af2dd41..605710af6 100644 --- a/src/api/resources/accounting/resources/expenses/client/requests/ExpensesListRequest.ts +++ b/src/api/resources/accounting/resources/expenses/client/requests/ExpensesListRequest.ts @@ -9,7 +9,6 @@ import type * as Merge from "../../../../../../index"; * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "account", * includeDeletedData: true, * includeRemoteData: true, * includeRemoteFields: true, @@ -32,7 +31,7 @@ export interface ExpensesListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.ExpensesListRequestExpand; + expand?: Merge.accounting.ExpensesListRequestExpandItem | Merge.accounting.ExpensesListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -45,7 +44,7 @@ export interface ExpensesListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; diff --git a/src/api/resources/accounting/resources/expenses/client/requests/ExpensesRemoteFieldClassesListRequest.ts b/src/api/resources/accounting/resources/expenses/client/requests/ExpensesRemoteFieldClassesListRequest.ts index 2185b8f00..a6fbe0d32 100644 --- a/src/api/resources/accounting/resources/expenses/client/requests/ExpensesRemoteFieldClassesListRequest.ts +++ b/src/api/resources/accounting/resources/expenses/client/requests/ExpensesRemoteFieldClassesListRequest.ts @@ -25,6 +25,6 @@ export interface ExpensesRemoteFieldClassesListRequest { isCommonModelField?: boolean; /** If provided, will only return remote fields classes with this is_custom value */ isCustom?: boolean; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; } diff --git a/src/api/resources/accounting/resources/expenses/client/requests/ExpensesRetrieveRequest.ts b/src/api/resources/accounting/resources/expenses/client/requests/ExpensesRetrieveRequest.ts index 02b7d25be..93f519c27 100644 --- a/src/api/resources/accounting/resources/expenses/client/requests/ExpensesRetrieveRequest.ts +++ b/src/api/resources/accounting/resources/expenses/client/requests/ExpensesRetrieveRequest.ts @@ -5,7 +5,6 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "account", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true @@ -13,7 +12,7 @@ import type * as Merge from "../../../../../../index"; */ export interface ExpensesRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.ExpensesRetrieveRequestExpand; + expand?: Merge.accounting.ExpensesRetrieveRequestExpandItem | Merge.accounting.ExpensesRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. */ diff --git a/src/api/resources/accounting/resources/expenses/client/requests/index.ts b/src/api/resources/accounting/resources/expenses/client/requests/index.ts index 2ebb45939..5aa78d032 100644 --- a/src/api/resources/accounting/resources/expenses/client/requests/index.ts +++ b/src/api/resources/accounting/resources/expenses/client/requests/index.ts @@ -1,4 +1,6 @@ -export type { ExpenseEndpointRequest } from "./ExpenseEndpointRequest"; +export type { ExpenseBulkRequest } from "./ExpenseBulkRequest"; +export type { ExpensesBatchObjectsListRequest } from "./ExpensesBatchObjectsListRequest"; +export type { ExpensesCreateRequest } from "./ExpensesCreateRequest"; export type { ExpensesLinesRemoteFieldClassesListRequest } from "./ExpensesLinesRemoteFieldClassesListRequest"; export type { ExpensesListRequest } from "./ExpensesListRequest"; export type { ExpensesRemoteFieldClassesListRequest } from "./ExpensesRemoteFieldClassesListRequest"; diff --git a/src/api/resources/accounting/resources/expenses/types/ExpensesBatchObjectsListRequestExpandItem.ts b/src/api/resources/accounting/resources/expenses/types/ExpensesBatchObjectsListRequestExpandItem.ts new file mode 100644 index 000000000..19b7d59ab --- /dev/null +++ b/src/api/resources/accounting/resources/expenses/types/ExpensesBatchObjectsListRequestExpandItem.ts @@ -0,0 +1,12 @@ +// This file was auto-generated by Fern from our API Definition. + +export const ExpensesBatchObjectsListRequestExpandItem = { + Account: "account", + AccountingPeriod: "accounting_period", + Company: "company", + Contact: "contact", + Employee: "employee", + TrackingCategories: "tracking_categories", +} as const; +export type ExpensesBatchObjectsListRequestExpandItem = + (typeof ExpensesBatchObjectsListRequestExpandItem)[keyof typeof ExpensesBatchObjectsListRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/expenses/types/ExpensesListRequestExpand.ts b/src/api/resources/accounting/resources/expenses/types/ExpensesListRequestExpand.ts deleted file mode 100644 index 199a965a6..000000000 --- a/src/api/resources/accounting/resources/expenses/types/ExpensesListRequestExpand.ts +++ /dev/null @@ -1,73 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const ExpensesListRequestExpand = { - Account: "account", - AccountAccountingPeriod: "account,accounting_period", - AccountCompany: "account,company", - AccountCompanyAccountingPeriod: "account,company,accounting_period", - AccountCompanyEmployee: "account,company,employee", - AccountCompanyEmployeeAccountingPeriod: "account,company,employee,accounting_period", - AccountContact: "account,contact", - AccountContactAccountingPeriod: "account,contact,accounting_period", - AccountContactCompany: "account,contact,company", - AccountContactCompanyAccountingPeriod: "account,contact,company,accounting_period", - AccountContactCompanyEmployee: "account,contact,company,employee", - AccountContactCompanyEmployeeAccountingPeriod: "account,contact,company,employee,accounting_period", - AccountContactEmployee: "account,contact,employee", - AccountContactEmployeeAccountingPeriod: "account,contact,employee,accounting_period", - AccountEmployee: "account,employee", - AccountEmployeeAccountingPeriod: "account,employee,accounting_period", - AccountingPeriod: "accounting_period", - Company: "company", - CompanyAccountingPeriod: "company,accounting_period", - CompanyEmployee: "company,employee", - CompanyEmployeeAccountingPeriod: "company,employee,accounting_period", - Contact: "contact", - ContactAccountingPeriod: "contact,accounting_period", - ContactCompany: "contact,company", - ContactCompanyAccountingPeriod: "contact,company,accounting_period", - ContactCompanyEmployee: "contact,company,employee", - ContactCompanyEmployeeAccountingPeriod: "contact,company,employee,accounting_period", - ContactEmployee: "contact,employee", - ContactEmployeeAccountingPeriod: "contact,employee,accounting_period", - Employee: "employee", - EmployeeAccountingPeriod: "employee,accounting_period", - TrackingCategories: "tracking_categories", - TrackingCategoriesAccount: "tracking_categories,account", - TrackingCategoriesAccountAccountingPeriod: "tracking_categories,account,accounting_period", - TrackingCategoriesAccountCompany: "tracking_categories,account,company", - TrackingCategoriesAccountCompanyAccountingPeriod: "tracking_categories,account,company,accounting_period", - TrackingCategoriesAccountCompanyEmployee: "tracking_categories,account,company,employee", - TrackingCategoriesAccountCompanyEmployeeAccountingPeriod: - "tracking_categories,account,company,employee,accounting_period", - TrackingCategoriesAccountContact: "tracking_categories,account,contact", - TrackingCategoriesAccountContactAccountingPeriod: "tracking_categories,account,contact,accounting_period", - TrackingCategoriesAccountContactCompany: "tracking_categories,account,contact,company", - TrackingCategoriesAccountContactCompanyAccountingPeriod: - "tracking_categories,account,contact,company,accounting_period", - TrackingCategoriesAccountContactCompanyEmployee: "tracking_categories,account,contact,company,employee", - TrackingCategoriesAccountContactCompanyEmployeeAccountingPeriod: - "tracking_categories,account,contact,company,employee,accounting_period", - TrackingCategoriesAccountContactEmployee: "tracking_categories,account,contact,employee", - TrackingCategoriesAccountContactEmployeeAccountingPeriod: - "tracking_categories,account,contact,employee,accounting_period", - TrackingCategoriesAccountEmployee: "tracking_categories,account,employee", - TrackingCategoriesAccountEmployeeAccountingPeriod: "tracking_categories,account,employee,accounting_period", - TrackingCategoriesAccountingPeriod: "tracking_categories,accounting_period", - TrackingCategoriesCompany: "tracking_categories,company", - TrackingCategoriesCompanyAccountingPeriod: "tracking_categories,company,accounting_period", - TrackingCategoriesCompanyEmployee: "tracking_categories,company,employee", - TrackingCategoriesCompanyEmployeeAccountingPeriod: "tracking_categories,company,employee,accounting_period", - TrackingCategoriesContact: "tracking_categories,contact", - TrackingCategoriesContactAccountingPeriod: "tracking_categories,contact,accounting_period", - TrackingCategoriesContactCompany: "tracking_categories,contact,company", - TrackingCategoriesContactCompanyAccountingPeriod: "tracking_categories,contact,company,accounting_period", - TrackingCategoriesContactCompanyEmployee: "tracking_categories,contact,company,employee", - TrackingCategoriesContactCompanyEmployeeAccountingPeriod: - "tracking_categories,contact,company,employee,accounting_period", - TrackingCategoriesContactEmployee: "tracking_categories,contact,employee", - TrackingCategoriesContactEmployeeAccountingPeriod: "tracking_categories,contact,employee,accounting_period", - TrackingCategoriesEmployee: "tracking_categories,employee", - TrackingCategoriesEmployeeAccountingPeriod: "tracking_categories,employee,accounting_period", -} as const; -export type ExpensesListRequestExpand = (typeof ExpensesListRequestExpand)[keyof typeof ExpensesListRequestExpand]; diff --git a/src/api/resources/accounting/resources/expenses/types/ExpensesListRequestExpandItem.ts b/src/api/resources/accounting/resources/expenses/types/ExpensesListRequestExpandItem.ts new file mode 100644 index 000000000..2ffd19aa2 --- /dev/null +++ b/src/api/resources/accounting/resources/expenses/types/ExpensesListRequestExpandItem.ts @@ -0,0 +1,12 @@ +// This file was auto-generated by Fern from our API Definition. + +export const ExpensesListRequestExpandItem = { + Account: "account", + AccountingPeriod: "accounting_period", + Company: "company", + Contact: "contact", + Employee: "employee", + TrackingCategories: "tracking_categories", +} as const; +export type ExpensesListRequestExpandItem = + (typeof ExpensesListRequestExpandItem)[keyof typeof ExpensesListRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/expenses/types/ExpensesRetrieveRequestExpand.ts b/src/api/resources/accounting/resources/expenses/types/ExpensesRetrieveRequestExpand.ts deleted file mode 100644 index 6d942a9f8..000000000 --- a/src/api/resources/accounting/resources/expenses/types/ExpensesRetrieveRequestExpand.ts +++ /dev/null @@ -1,74 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const ExpensesRetrieveRequestExpand = { - Account: "account", - AccountAccountingPeriod: "account,accounting_period", - AccountCompany: "account,company", - AccountCompanyAccountingPeriod: "account,company,accounting_period", - AccountCompanyEmployee: "account,company,employee", - AccountCompanyEmployeeAccountingPeriod: "account,company,employee,accounting_period", - AccountContact: "account,contact", - AccountContactAccountingPeriod: "account,contact,accounting_period", - AccountContactCompany: "account,contact,company", - AccountContactCompanyAccountingPeriod: "account,contact,company,accounting_period", - AccountContactCompanyEmployee: "account,contact,company,employee", - AccountContactCompanyEmployeeAccountingPeriod: "account,contact,company,employee,accounting_period", - AccountContactEmployee: "account,contact,employee", - AccountContactEmployeeAccountingPeriod: "account,contact,employee,accounting_period", - AccountEmployee: "account,employee", - AccountEmployeeAccountingPeriod: "account,employee,accounting_period", - AccountingPeriod: "accounting_period", - Company: "company", - CompanyAccountingPeriod: "company,accounting_period", - CompanyEmployee: "company,employee", - CompanyEmployeeAccountingPeriod: "company,employee,accounting_period", - Contact: "contact", - ContactAccountingPeriod: "contact,accounting_period", - ContactCompany: "contact,company", - ContactCompanyAccountingPeriod: "contact,company,accounting_period", - ContactCompanyEmployee: "contact,company,employee", - ContactCompanyEmployeeAccountingPeriod: "contact,company,employee,accounting_period", - ContactEmployee: "contact,employee", - ContactEmployeeAccountingPeriod: "contact,employee,accounting_period", - Employee: "employee", - EmployeeAccountingPeriod: "employee,accounting_period", - TrackingCategories: "tracking_categories", - TrackingCategoriesAccount: "tracking_categories,account", - TrackingCategoriesAccountAccountingPeriod: "tracking_categories,account,accounting_period", - TrackingCategoriesAccountCompany: "tracking_categories,account,company", - TrackingCategoriesAccountCompanyAccountingPeriod: "tracking_categories,account,company,accounting_period", - TrackingCategoriesAccountCompanyEmployee: "tracking_categories,account,company,employee", - TrackingCategoriesAccountCompanyEmployeeAccountingPeriod: - "tracking_categories,account,company,employee,accounting_period", - TrackingCategoriesAccountContact: "tracking_categories,account,contact", - TrackingCategoriesAccountContactAccountingPeriod: "tracking_categories,account,contact,accounting_period", - TrackingCategoriesAccountContactCompany: "tracking_categories,account,contact,company", - TrackingCategoriesAccountContactCompanyAccountingPeriod: - "tracking_categories,account,contact,company,accounting_period", - TrackingCategoriesAccountContactCompanyEmployee: "tracking_categories,account,contact,company,employee", - TrackingCategoriesAccountContactCompanyEmployeeAccountingPeriod: - "tracking_categories,account,contact,company,employee,accounting_period", - TrackingCategoriesAccountContactEmployee: "tracking_categories,account,contact,employee", - TrackingCategoriesAccountContactEmployeeAccountingPeriod: - "tracking_categories,account,contact,employee,accounting_period", - TrackingCategoriesAccountEmployee: "tracking_categories,account,employee", - TrackingCategoriesAccountEmployeeAccountingPeriod: "tracking_categories,account,employee,accounting_period", - TrackingCategoriesAccountingPeriod: "tracking_categories,accounting_period", - TrackingCategoriesCompany: "tracking_categories,company", - TrackingCategoriesCompanyAccountingPeriod: "tracking_categories,company,accounting_period", - TrackingCategoriesCompanyEmployee: "tracking_categories,company,employee", - TrackingCategoriesCompanyEmployeeAccountingPeriod: "tracking_categories,company,employee,accounting_period", - TrackingCategoriesContact: "tracking_categories,contact", - TrackingCategoriesContactAccountingPeriod: "tracking_categories,contact,accounting_period", - TrackingCategoriesContactCompany: "tracking_categories,contact,company", - TrackingCategoriesContactCompanyAccountingPeriod: "tracking_categories,contact,company,accounting_period", - TrackingCategoriesContactCompanyEmployee: "tracking_categories,contact,company,employee", - TrackingCategoriesContactCompanyEmployeeAccountingPeriod: - "tracking_categories,contact,company,employee,accounting_period", - TrackingCategoriesContactEmployee: "tracking_categories,contact,employee", - TrackingCategoriesContactEmployeeAccountingPeriod: "tracking_categories,contact,employee,accounting_period", - TrackingCategoriesEmployee: "tracking_categories,employee", - TrackingCategoriesEmployeeAccountingPeriod: "tracking_categories,employee,accounting_period", -} as const; -export type ExpensesRetrieveRequestExpand = - (typeof ExpensesRetrieveRequestExpand)[keyof typeof ExpensesRetrieveRequestExpand]; diff --git a/src/api/resources/accounting/resources/expenses/types/ExpensesRetrieveRequestExpandItem.ts b/src/api/resources/accounting/resources/expenses/types/ExpensesRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..480546c44 --- /dev/null +++ b/src/api/resources/accounting/resources/expenses/types/ExpensesRetrieveRequestExpandItem.ts @@ -0,0 +1,12 @@ +// This file was auto-generated by Fern from our API Definition. + +export const ExpensesRetrieveRequestExpandItem = { + Account: "account", + AccountingPeriod: "accounting_period", + Company: "company", + Contact: "contact", + Employee: "employee", + TrackingCategories: "tracking_categories", +} as const; +export type ExpensesRetrieveRequestExpandItem = + (typeof ExpensesRetrieveRequestExpandItem)[keyof typeof ExpensesRetrieveRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/expenses/types/index.ts b/src/api/resources/accounting/resources/expenses/types/index.ts index 2a53835eb..1c81575ae 100644 --- a/src/api/resources/accounting/resources/expenses/types/index.ts +++ b/src/api/resources/accounting/resources/expenses/types/index.ts @@ -1,2 +1,3 @@ -export * from "./ExpensesListRequestExpand"; -export * from "./ExpensesRetrieveRequestExpand"; +export * from "./ExpensesBatchObjectsListRequestExpandItem"; +export * from "./ExpensesListRequestExpandItem"; +export * from "./ExpensesRetrieveRequestExpandItem"; diff --git a/src/api/resources/accounting/resources/fieldMapping/client/Client.ts b/src/api/resources/accounting/resources/fieldMapping/client/Client.ts index ed351dd21..23a5e0b51 100644 --- a/src/api/resources/accounting/resources/fieldMapping/client/Client.ts +++ b/src/api/resources/accounting/resources/fieldMapping/client/Client.ts @@ -105,6 +105,7 @@ export class FieldMappingClient { * @example * await client.accounting.fieldMapping.fieldMappingsCreate({ * excludeRemoteFieldMetadata: true, + * remoteDataIterationCount: 1, * targetFieldName: "example_target_field_name", * targetFieldDescription: "this is a example description of the target field", * remoteFieldTraversalPath: ["example_remote_field"], @@ -124,9 +125,10 @@ export class FieldMappingClient { request: Merge.accounting.CreateFieldMappingRequest, requestOptions?: FieldMappingClient.RequestOptions, ): Promise> { - const { excludeRemoteFieldMetadata, ..._body } = request; + const { excludeRemoteFieldMetadata, remoteDataIterationCount, ..._body } = request; const _queryParams: Record = { exclude_remote_field_metadata: excludeRemoteFieldMetadata, + remote_data_iteration_count: remoteDataIterationCount, }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( @@ -265,7 +267,9 @@ export class FieldMappingClient { * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id") + * await client.accounting.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { + * remoteDataIterationCount: 1 + * }) */ public fieldMappingsPartialUpdate( field_mapping_id: string, @@ -282,6 +286,10 @@ export class FieldMappingClient { request: Merge.accounting.PatchedEditFieldMappingRequest = {}, requestOptions?: FieldMappingClient.RequestOptions, ): Promise> { + const { remoteDataIterationCount, ..._body } = request; + const _queryParams: Record = { + remote_data_iteration_count: remoteDataIterationCount, + }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, @@ -299,9 +307,9 @@ export class FieldMappingClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, requestType: "json", - body: serializers.accounting.PatchedEditFieldMappingRequest.jsonOrThrow(request, { + body: serializers.accounting.PatchedEditFieldMappingRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip", }), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/api/resources/accounting/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts b/src/api/resources/accounting/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts index e711ea5fc..118f1512d 100644 --- a/src/api/resources/accounting/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts +++ b/src/api/resources/accounting/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts @@ -4,6 +4,7 @@ * @example * { * excludeRemoteFieldMetadata: true, + * remoteDataIterationCount: 1, * targetFieldName: "example_target_field_name", * targetFieldDescription: "this is a example description of the target field", * remoteFieldTraversalPath: ["example_remote_field"], @@ -15,6 +16,8 @@ export interface CreateFieldMappingRequest { /** If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. */ excludeRemoteFieldMetadata?: boolean; + /** Number of common model instances to iterate through when fetching remote data for field mappings. Defaults to 250 if not provided. */ + remoteDataIterationCount?: number; /** The name of the target field you want this remote field to map to. */ targetFieldName: string; /** The description of the target field you want this remote field to map to. */ @@ -27,4 +30,6 @@ export interface CreateFieldMappingRequest { remoteUrlPath: string; /** The name of the Common Model that the remote field corresponds to in a given category. */ commonModelName: string; + /** JMES path to specify json query expression to be used on field mapping. */ + jmesPath?: string; } 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 0efe65466..3c388858f 100644 --- a/src/api/resources/accounting/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts +++ b/src/api/resources/accounting/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts @@ -2,13 +2,19 @@ /** * @example - * {} + * { + * remoteDataIterationCount: 1 + * } */ export interface PatchedEditFieldMappingRequest { + /** Number of common model instances to iterate through when fetching remote data for field mappings. Defaults to 250 if not provided. */ + remoteDataIterationCount?: number; /** The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. */ remoteFieldTraversalPath?: unknown[]; /** The method of the remote endpoint where the remote field is coming from. */ remoteMethod?: string; /** The path of the remote endpoint where the remote field is coming from. */ remoteUrlPath?: string; + /** JMES path to specify json query expression to be used on field mapping. */ + jmesPath?: string; } diff --git a/src/api/resources/accounting/resources/generalLedgerTransactions/client/Client.ts b/src/api/resources/accounting/resources/generalLedgerTransactions/client/Client.ts index 7a475e586..10dfb3d7d 100644 --- a/src/api/resources/accounting/resources/generalLedgerTransactions/client/Client.ts +++ b/src/api/resources/accounting/resources/generalLedgerTransactions/client/Client.ts @@ -35,7 +35,6 @@ export class GeneralLedgerTransactionsClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "accounting_period", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -47,104 +46,127 @@ export class GeneralLedgerTransactionsClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.accounting.GeneralLedgerTransactionsListRequest = {}, requestOptions?: GeneralLedgerTransactionsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.accounting.GeneralLedgerTransactionsListRequest = {}, - requestOptions?: GeneralLedgerTransactionsClient.RequestOptions, - ): Promise> { - const { - companyId, - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - postedDateAfter, - postedDateBefore, - remoteId, - } = request; - const _queryParams: Record = { - company_id: companyId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: - expand != null - ? serializers.accounting.GeneralLedgerTransactionsListRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - posted_date_after: postedDateAfter?.toISOString(), - posted_date_before: postedDateBefore?.toISOString(), - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise< + core.Page + > { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.GeneralLedgerTransactionsListRequest, + ): Promise> => { + const { + companyId, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + postedDateAfter, + postedDateBefore, + remoteId, + } = request; + const _queryParams: Record = { + company_id: companyId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.GeneralLedgerTransactionsListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.accounting.GeneralLedgerTransactionsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + posted_date_after: postedDateAfter?.toISOString(), + posted_date_before: postedDateBefore?.toISOString(), + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/general-ledger-transactions", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedGeneralLedgerTransactionList.parseOrThrow( + _response.body, + { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }, + ), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/general-ledger-transactions", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "accounting/v1/general-ledger-transactions", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page< + Merge.accounting.GeneralLedgerTransaction, + Merge.accounting.PaginatedGeneralLedgerTransactionList + >({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.accounting.PaginatedGeneralLedgerTransactionList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/accounting/v1/general-ledger-transactions", - ); } /** @@ -156,7 +178,6 @@ export class GeneralLedgerTransactionsClient { * * @example * await client.accounting.generalLedgerTransactions.retrieve("id", { - * expand: "accounting_period", * includeRemoteData: true, * includeShellData: true * }) @@ -176,12 +197,17 @@ export class GeneralLedgerTransactionsClient { ): Promise> { const { expand, includeRemoteData, includeShellData } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.accounting.GeneralLedgerTransactionsRetrieveRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.GeneralLedgerTransactionsRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.accounting.GeneralLedgerTransactionsRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, }; diff --git a/src/api/resources/accounting/resources/generalLedgerTransactions/client/requests/GeneralLedgerTransactionsListRequest.ts b/src/api/resources/accounting/resources/generalLedgerTransactions/client/requests/GeneralLedgerTransactionsListRequest.ts index cc65774fd..f4354619e 100644 --- a/src/api/resources/accounting/resources/generalLedgerTransactions/client/requests/GeneralLedgerTransactionsListRequest.ts +++ b/src/api/resources/accounting/resources/generalLedgerTransactions/client/requests/GeneralLedgerTransactionsListRequest.ts @@ -9,7 +9,6 @@ import type * as Merge from "../../../../../../index"; * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "accounting_period", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -31,7 +30,9 @@ export interface GeneralLedgerTransactionsListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.GeneralLedgerTransactionsListRequestExpand; + expand?: + | Merge.accounting.GeneralLedgerTransactionsListRequestExpandItem + | Merge.accounting.GeneralLedgerTransactionsListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -42,7 +43,7 @@ export interface GeneralLedgerTransactionsListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** If provided, will only return objects posted after this datetime. */ postedDateAfter?: Date; diff --git a/src/api/resources/accounting/resources/generalLedgerTransactions/client/requests/GeneralLedgerTransactionsRetrieveRequest.ts b/src/api/resources/accounting/resources/generalLedgerTransactions/client/requests/GeneralLedgerTransactionsRetrieveRequest.ts index 8107472a3..dfac8fcc3 100644 --- a/src/api/resources/accounting/resources/generalLedgerTransactions/client/requests/GeneralLedgerTransactionsRetrieveRequest.ts +++ b/src/api/resources/accounting/resources/generalLedgerTransactions/client/requests/GeneralLedgerTransactionsRetrieveRequest.ts @@ -5,14 +5,15 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "accounting_period", * includeRemoteData: true, * includeShellData: true * } */ export interface GeneralLedgerTransactionsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.GeneralLedgerTransactionsRetrieveRequestExpand; + expand?: + | Merge.accounting.GeneralLedgerTransactionsRetrieveRequestExpandItem + | Merge.accounting.GeneralLedgerTransactionsRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/accounting/resources/generalLedgerTransactions/types/GeneralLedgerTransactionsListRequestExpand.ts b/src/api/resources/accounting/resources/generalLedgerTransactions/types/GeneralLedgerTransactionsListRequestExpand.ts deleted file mode 100644 index 5502ad348..000000000 --- a/src/api/resources/accounting/resources/generalLedgerTransactions/types/GeneralLedgerTransactionsListRequestExpand.ts +++ /dev/null @@ -1,24 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const GeneralLedgerTransactionsListRequestExpand = { - AccountingPeriod: "accounting_period", - Company: "company", - CompanyAccountingPeriod: "company,accounting_period", - GeneralLedgerTransactionLines: "general_ledger_transaction_lines", - GeneralLedgerTransactionLinesAccountingPeriod: "general_ledger_transaction_lines,accounting_period", - GeneralLedgerTransactionLinesCompany: "general_ledger_transaction_lines,company", - GeneralLedgerTransactionLinesCompanyAccountingPeriod: "general_ledger_transaction_lines,company,accounting_period", - TrackingCategories: "tracking_categories", - TrackingCategoriesAccountingPeriod: "tracking_categories,accounting_period", - TrackingCategoriesCompany: "tracking_categories,company", - TrackingCategoriesCompanyAccountingPeriod: "tracking_categories,company,accounting_period", - TrackingCategoriesGeneralLedgerTransactionLines: "tracking_categories,general_ledger_transaction_lines", - TrackingCategoriesGeneralLedgerTransactionLinesAccountingPeriod: - "tracking_categories,general_ledger_transaction_lines,accounting_period", - TrackingCategoriesGeneralLedgerTransactionLinesCompany: - "tracking_categories,general_ledger_transaction_lines,company", - TrackingCategoriesGeneralLedgerTransactionLinesCompanyAccountingPeriod: - "tracking_categories,general_ledger_transaction_lines,company,accounting_period", -} as const; -export type GeneralLedgerTransactionsListRequestExpand = - (typeof GeneralLedgerTransactionsListRequestExpand)[keyof typeof GeneralLedgerTransactionsListRequestExpand]; diff --git a/src/api/resources/accounting/resources/generalLedgerTransactions/types/GeneralLedgerTransactionsListRequestExpandItem.ts b/src/api/resources/accounting/resources/generalLedgerTransactions/types/GeneralLedgerTransactionsListRequestExpandItem.ts new file mode 100644 index 000000000..c9028be5c --- /dev/null +++ b/src/api/resources/accounting/resources/generalLedgerTransactions/types/GeneralLedgerTransactionsListRequestExpandItem.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +export const GeneralLedgerTransactionsListRequestExpandItem = { + AccountingPeriod: "accounting_period", + Company: "company", + GeneralLedgerTransactionLines: "general_ledger_transaction_lines", + TrackingCategories: "tracking_categories", +} as const; +export type GeneralLedgerTransactionsListRequestExpandItem = + (typeof GeneralLedgerTransactionsListRequestExpandItem)[keyof typeof GeneralLedgerTransactionsListRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/generalLedgerTransactions/types/GeneralLedgerTransactionsRetrieveRequestExpand.ts b/src/api/resources/accounting/resources/generalLedgerTransactions/types/GeneralLedgerTransactionsRetrieveRequestExpand.ts deleted file mode 100644 index 3f4d5eb74..000000000 --- a/src/api/resources/accounting/resources/generalLedgerTransactions/types/GeneralLedgerTransactionsRetrieveRequestExpand.ts +++ /dev/null @@ -1,24 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const GeneralLedgerTransactionsRetrieveRequestExpand = { - AccountingPeriod: "accounting_period", - Company: "company", - CompanyAccountingPeriod: "company,accounting_period", - GeneralLedgerTransactionLines: "general_ledger_transaction_lines", - GeneralLedgerTransactionLinesAccountingPeriod: "general_ledger_transaction_lines,accounting_period", - GeneralLedgerTransactionLinesCompany: "general_ledger_transaction_lines,company", - GeneralLedgerTransactionLinesCompanyAccountingPeriod: "general_ledger_transaction_lines,company,accounting_period", - TrackingCategories: "tracking_categories", - TrackingCategoriesAccountingPeriod: "tracking_categories,accounting_period", - TrackingCategoriesCompany: "tracking_categories,company", - TrackingCategoriesCompanyAccountingPeriod: "tracking_categories,company,accounting_period", - TrackingCategoriesGeneralLedgerTransactionLines: "tracking_categories,general_ledger_transaction_lines", - TrackingCategoriesGeneralLedgerTransactionLinesAccountingPeriod: - "tracking_categories,general_ledger_transaction_lines,accounting_period", - TrackingCategoriesGeneralLedgerTransactionLinesCompany: - "tracking_categories,general_ledger_transaction_lines,company", - TrackingCategoriesGeneralLedgerTransactionLinesCompanyAccountingPeriod: - "tracking_categories,general_ledger_transaction_lines,company,accounting_period", -} as const; -export type GeneralLedgerTransactionsRetrieveRequestExpand = - (typeof GeneralLedgerTransactionsRetrieveRequestExpand)[keyof typeof GeneralLedgerTransactionsRetrieveRequestExpand]; diff --git a/src/api/resources/accounting/resources/generalLedgerTransactions/types/GeneralLedgerTransactionsRetrieveRequestExpandItem.ts b/src/api/resources/accounting/resources/generalLedgerTransactions/types/GeneralLedgerTransactionsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..a0d3aa214 --- /dev/null +++ b/src/api/resources/accounting/resources/generalLedgerTransactions/types/GeneralLedgerTransactionsRetrieveRequestExpandItem.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +export const GeneralLedgerTransactionsRetrieveRequestExpandItem = { + AccountingPeriod: "accounting_period", + Company: "company", + GeneralLedgerTransactionLines: "general_ledger_transaction_lines", + TrackingCategories: "tracking_categories", +} as const; +export type GeneralLedgerTransactionsRetrieveRequestExpandItem = + (typeof GeneralLedgerTransactionsRetrieveRequestExpandItem)[keyof typeof GeneralLedgerTransactionsRetrieveRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/generalLedgerTransactions/types/index.ts b/src/api/resources/accounting/resources/generalLedgerTransactions/types/index.ts index e77fb4471..8acfde7ac 100644 --- a/src/api/resources/accounting/resources/generalLedgerTransactions/types/index.ts +++ b/src/api/resources/accounting/resources/generalLedgerTransactions/types/index.ts @@ -1,2 +1,2 @@ -export * from "./GeneralLedgerTransactionsListRequestExpand"; -export * from "./GeneralLedgerTransactionsRetrieveRequestExpand"; +export * from "./GeneralLedgerTransactionsListRequestExpandItem"; +export * from "./GeneralLedgerTransactionsRetrieveRequestExpandItem"; diff --git a/src/api/resources/accounting/resources/incomeStatements/client/Client.ts b/src/api/resources/accounting/resources/incomeStatements/client/Client.ts index 9f72f7a11..5927a0761 100644 --- a/src/api/resources/accounting/resources/incomeStatements/client/Client.ts +++ b/src/api/resources/accounting/resources/incomeStatements/client/Client.ts @@ -35,7 +35,6 @@ export class IncomeStatementsClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "company", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -45,95 +44,105 @@ export class IncomeStatementsClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.accounting.IncomeStatementsListRequest = {}, requestOptions?: IncomeStatementsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.accounting.IncomeStatementsListRequest = {}, - requestOptions?: IncomeStatementsClient.RequestOptions, - ): Promise> { - const { - companyId, - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - company_id: companyId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: expand != null ? expand : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.IncomeStatementsListRequest, + ): Promise> => { + const { + companyId, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + company_id: companyId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/income-statements", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedIncomeStatementList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/income-statements", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "accounting/v1/income-statements", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.accounting.PaginatedIncomeStatementList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/accounting/v1/income-statements", - ); } /** @@ -145,7 +154,6 @@ export class IncomeStatementsClient { * * @example * await client.accounting.incomeStatements.retrieve("id", { - * expand: "company", * includeRemoteData: true, * includeShellData: true * }) @@ -165,7 +173,7 @@ export class IncomeStatementsClient { ): Promise> { const { expand, includeRemoteData, includeShellData } = request; const _queryParams: Record = { - expand: expand != null ? expand : undefined, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, }; diff --git a/src/api/resources/accounting/resources/incomeStatements/client/requests/IncomeStatementsListRequest.ts b/src/api/resources/accounting/resources/incomeStatements/client/requests/IncomeStatementsListRequest.ts index 6d8bda5d6..de34803c1 100644 --- a/src/api/resources/accounting/resources/incomeStatements/client/requests/IncomeStatementsListRequest.ts +++ b/src/api/resources/accounting/resources/incomeStatements/client/requests/IncomeStatementsListRequest.ts @@ -7,7 +7,6 @@ * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "company", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -27,7 +26,7 @@ export interface IncomeStatementsListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "company"; + expand?: "company" | "company"[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -38,7 +37,7 @@ export interface IncomeStatementsListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; diff --git a/src/api/resources/accounting/resources/incomeStatements/client/requests/IncomeStatementsRetrieveRequest.ts b/src/api/resources/accounting/resources/incomeStatements/client/requests/IncomeStatementsRetrieveRequest.ts index 8b193e228..fbc9dc185 100644 --- a/src/api/resources/accounting/resources/incomeStatements/client/requests/IncomeStatementsRetrieveRequest.ts +++ b/src/api/resources/accounting/resources/incomeStatements/client/requests/IncomeStatementsRetrieveRequest.ts @@ -3,14 +3,13 @@ /** * @example * { - * expand: "company", * includeRemoteData: true, * includeShellData: true * } */ export interface IncomeStatementsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "company"; + expand?: "company" | "company"[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/accounting/resources/index.ts b/src/api/resources/accounting/resources/index.ts index 94fd04b76..a434c067e 100644 --- a/src/api/resources/accounting/resources/index.ts +++ b/src/api/resources/accounting/resources/index.ts @@ -57,6 +57,9 @@ export * from "./invoices/types"; export * as issues from "./issues"; export * from "./issues/client/requests"; export * from "./issues/types"; +export * as itemFulfillments from "./itemFulfillments"; +export * from "./itemFulfillments/client/requests"; +export * from "./itemFulfillments/types"; export * as items from "./items"; export * from "./items/client/requests"; export * from "./items/types"; @@ -87,6 +90,9 @@ export * from "./purchaseOrders/client/requests"; export * from "./purchaseOrders/types"; export * as regenerateKey from "./regenerateKey"; export * from "./regenerateKey/client/requests"; +export * as salesOrders from "./salesOrders"; +export * from "./salesOrders/client/requests"; +export * from "./salesOrders/types"; export * as scopes from "./scopes"; export * from "./scopes/client/requests"; export * as syncStatus from "./syncStatus"; diff --git a/src/api/resources/accounting/resources/invoices/client/Client.ts b/src/api/resources/accounting/resources/invoices/client/Client.ts index 0986d0bff..7b2f4ee04 100644 --- a/src/api/resources/accounting/resources/invoices/client/Client.ts +++ b/src/api/resources/accounting/resources/invoices/client/Client.ts @@ -36,7 +36,6 @@ export class InvoicesClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "accounting_period", * includeDeletedData: true, * includeRemoteData: true, * includeRemoteFields: true, @@ -54,123 +53,143 @@ export class InvoicesClient { * type: "ACCOUNTS_PAYABLE" * }) */ - public list( + public async list( request: Merge.accounting.InvoicesListRequest = {}, requestOptions?: InvoicesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.accounting.InvoicesListRequest = {}, - requestOptions?: InvoicesClient.RequestOptions, - ): Promise> { - const { - companyId, - contactId, - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeRemoteFields, - includeShellData, - issueDateAfter, - issueDateBefore, - modifiedAfter, - modifiedBefore, - number: number_, - pageSize, - remoteFields, - remoteId, - showEnumOrigins, - status, - type: type_, - } = request; - const _queryParams: Record = { - company_id: companyId, - contact_id: contactId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: - expand != null - ? serializers.accounting.InvoicesListRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - issue_date_after: issueDateAfter?.toISOString(), - issue_date_before: issueDateBefore?.toISOString(), - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - number: number_, - page_size: pageSize, - remote_fields: remoteFields != null ? remoteFields : undefined, - remote_id: remoteId, - show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, - status: - status != null - ? serializers.accounting.InvoicesListRequestStatus.jsonOrThrow(status, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - type: - type_ != null - ? serializers.accounting.InvoicesListRequestType.jsonOrThrow(type_, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.InvoicesListRequest, + ): Promise> => { + const { + companyId, + contactId, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + issueDateAfter, + issueDateBefore, + modifiedAfter, + modifiedBefore, + number: number_, + pageSize, + remoteFields, + remoteId, + showEnumOrigins, + status, + type: type_, + } = request; + const _queryParams: Record = { + company_id: companyId, + contact_id: contactId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.InvoicesListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.accounting.InvoicesListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + issue_date_after: issueDateAfter?.toISOString(), + issue_date_before: issueDateBefore?.toISOString(), + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + number: number_, + page_size: pageSize, + remote_fields: remoteFields != null ? remoteFields : undefined, + remote_id: remoteId, + show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, + status: + status != null + ? serializers.accounting.InvoicesListRequestStatus.jsonOrThrow(status, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + type: + type_ != null + ? serializers.accounting.InvoicesListRequestType.jsonOrThrow(type_, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/invoices", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedInvoiceList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/invoices", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "accounting/v1/invoices", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.accounting.PaginatedInvoiceList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/accounting/v1/invoices"); } /** @@ -178,28 +197,30 @@ export class InvoicesClient { * Including a `PurchaseOrder` id in the `purchase_orders` property will generate an Accounts Payable Invoice from the specified Purchase Order(s). * * - * @param {Merge.accounting.InvoiceEndpointRequest} request + * @param {Merge.accounting.InvoicesCreateRequest} request * @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.accounting.invoices.create({ * isDebugMode: true, * runAsync: true, - * model: {} + * body: { + * model: {} + * } * }) */ public create( - request: Merge.accounting.InvoiceEndpointRequest, + request: Merge.accounting.InvoicesCreateRequest, requestOptions?: InvoicesClient.RequestOptions, ): core.HttpResponsePromise { return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); } private async __create( - request: Merge.accounting.InvoiceEndpointRequest, + request: Merge.accounting.InvoicesCreateRequest, requestOptions?: InvoicesClient.RequestOptions, ): Promise> { - const { isDebugMode, runAsync, ..._body } = request; + const { isDebugMode, runAsync, body: _body } = request; const _queryParams: Record = { is_debug_mode: isDebugMode, run_async: runAsync, @@ -263,7 +284,6 @@ export class InvoicesClient { * * @example * await client.accounting.invoices.retrieve("id", { - * expand: "accounting_period", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true, @@ -287,12 +307,17 @@ export class InvoicesClient { const { expand, includeRemoteData, includeRemoteFields, includeShellData, remoteFields, showEnumOrigins } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.accounting.InvoicesRetrieveRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.InvoicesRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.accounting.InvoicesRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_remote_fields: includeRemoteFields, include_shell_data: includeShellData, @@ -436,50 +461,114 @@ export class InvoicesClient { } /** - * Returns a list of `RemoteFieldClass` objects. + * Returns a list of `Invoice` objects. * - * @param {Merge.accounting.InvoicesLineItemsRemoteFieldClassesListRequest} request + * @param {string} batch_id + * @param {Merge.accounting.InvoicesBatchObjectsListRequest} request * @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.invoices.lineItemsRemoteFieldClassesList({ + * await client.accounting.invoices.batchObjectsList("batch_id", { + * companyId: "company_id", + * contactId: "contact_id", + * createdAfter: new Date("2024-01-15T09:30:00.000Z"), + * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * includeDeletedData: true, * includeRemoteData: true, + * includeRemoteFields: true, * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 + * issueDateAfter: new Date("2024-01-15T09:30:00.000Z"), + * issueDateBefore: new Date("2024-01-15T09:30:00.000Z"), + * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * number: "number", + * pageSize: 1, + * remoteFields: "type", + * remoteId: "remote_id", + * showEnumOrigins: "type", + * status: "DRAFT", + * type: "ACCOUNTS_PAYABLE" * }) */ - public lineItemsRemoteFieldClassesList( - request: Merge.accounting.InvoicesLineItemsRemoteFieldClassesListRequest = {}, + public batchObjectsList( + batch_id: string, + request: Merge.accounting.InvoicesBatchObjectsListRequest = {}, requestOptions?: InvoicesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__lineItemsRemoteFieldClassesList(request, requestOptions)); + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__batchObjectsList(batch_id, request, requestOptions)); } - private async __lineItemsRemoteFieldClassesList( - request: Merge.accounting.InvoicesLineItemsRemoteFieldClassesListRequest = {}, + private async __batchObjectsList( + batch_id: string, + request: Merge.accounting.InvoicesBatchObjectsListRequest = {}, requestOptions?: InvoicesClient.RequestOptions, - ): Promise> { + ): Promise> { const { + companyId, + contactId, + createdAfter, + createdBefore, cursor, + expand, includeDeletedData, includeRemoteData, + includeRemoteFields, includeShellData, - isCommonModelField, - isCustom, + issueDateAfter, + issueDateBefore, + modifiedAfter, + modifiedBefore, + number: number_, pageSize, + remoteFields, + remoteId, + showEnumOrigins, + status, + type: type_, } = request; const _queryParams: Record = { + company_id: companyId, + contact_id: contactId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.InvoicesBatchObjectsListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.accounting.InvoicesBatchObjectsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_deleted_data: includeDeletedData, include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, include_shell_data: includeShellData, - is_common_model_field: isCommonModelField, - is_custom: isCustom, + issue_date_after: issueDateAfter?.toISOString(), + issue_date_before: issueDateBefore?.toISOString(), + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + number: number_, page_size: pageSize, + remote_fields: remoteFields != null ? remoteFields : undefined, + remote_id: remoteId, + show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, + status: + status != null + ? serializers.accounting.InvoicesBatchObjectsListRequestStatus.jsonOrThrow(status, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + type: + type_ != null + ? serializers.accounting.InvoicesBatchObjectsListRequestType.jsonOrThrow(type_, { + unrecognizedObjectKeys: "strip", + }) + : undefined, }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( @@ -493,7 +582,7 @@ export class InvoicesClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/invoices/line-items/remote-field-classes", + `accounting/v1/invoices/batch/${core.url.encodePathParam(batch_id)}/objects`, ), method: "GET", headers: _headers, @@ -506,7 +595,7 @@ export class InvoicesClient { }); if (_response.ok) { return { - data: serializers.accounting.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + data: serializers.accounting.PaginatedInvoiceList.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -529,30 +618,46 @@ export class InvoicesClient { _response.error, _response.rawResponse, "GET", - "/accounting/v1/invoices/line-items/remote-field-classes", + "/accounting/v1/invoices/batch/{batch_id}/objects", ); } /** - * Returns metadata for `Invoice` PATCHs. + * Creates an `Invoice` object with the given values. + * Including a `PurchaseOrder` id in the `purchase_orders` property will generate an Accounts Payable Invoice from the specified Purchase Order(s). * - * @param {string} id + * + * @param {Merge.accounting.InvoiceBulkRequest} request * @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.invoices.metaPatchRetrieve("id") + * await client.accounting.invoices.asyncBulkCreate({ + * isDebugMode: true, + * runAsync: true, + * batchItems: [{ + * itemId: "item_id", + * payload: { + * model: {} + * } + * }] + * }) */ - public metaPatchRetrieve( - id: string, + public asyncBulkCreate( + request: Merge.accounting.InvoiceBulkRequest, requestOptions?: InvoicesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPatchRetrieve(id, requestOptions)); + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__asyncBulkCreate(request, requestOptions)); } - private async __metaPatchRetrieve( - id: string, + private async __asyncBulkCreate( + request: Merge.accounting.InvoiceBulkRequest, requestOptions?: InvoicesClient.RequestOptions, - ): Promise> { + ): Promise> { + const { isDebugMode, runAsync, ..._body } = request; + const _queryParams: Record = { + is_debug_mode: isDebugMode, + run_async: runAsync, + }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, @@ -565,11 +670,14 @@ export class InvoicesClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - `accounting/v1/invoices/meta/patch/${core.url.encodePathParam(id)}`, + "accounting/v1/invoices/async/bulk", ), - method: "GET", + method: "POST", headers: _headers, - queryParameters: requestOptions?.queryParams, + contentType: "application/json", + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + requestType: "json", + body: serializers.accounting.InvoiceBulkRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -578,7 +686,7 @@ export class InvoicesClient { }); if (_response.ok) { return { - data: serializers.accounting.MetaResponse.parseOrThrow(_response.body, { + data: serializers.accounting.InvoiceResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -600,26 +708,137 @@ export class InvoicesClient { return handleNonStatusCodeError( _response.error, _response.rawResponse, - "GET", - "/accounting/v1/invoices/meta/patch/{id}", + "POST", + "/accounting/v1/invoices/async/bulk", ); } /** - * Returns metadata for `Invoice` POSTs. + * Returns a list of `RemoteFieldClass` objects. * + * @param {Merge.accounting.InvoicesLineItemsRemoteFieldClassesListRequest} request * @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.invoices.metaPostRetrieve() + * await client.accounting.invoices.lineItemsRemoteFieldClassesList({ + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeShellData: true, + * isCommonModelField: true, + * isCustom: true, + * pageSize: 1 + * }) */ - public metaPostRetrieve( + public async lineItemsRemoteFieldClassesList( + request: Merge.accounting.InvoicesLineItemsRemoteFieldClassesListRequest = {}, + requestOptions?: InvoicesClient.RequestOptions, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.InvoicesLineItemsRemoteFieldClassesListRequest, + ): Promise> => { + const { + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + isCommonModelField, + isCustom, + pageSize, + } = request; + const _queryParams: Record = { + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + is_common_model_field: isCommonModelField, + is_custom: isCustom, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/invoices/line-items/remote-field-classes", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/invoices/line-items/remote-field-classes", + ); + }, + ); + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, + }); + } + + /** + * Returns metadata for `Invoice` PATCHs. + * + * @param {string} id + * @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.invoices.metaPatchRetrieve("id") + */ + public metaPatchRetrieve( + id: string, requestOptions?: InvoicesClient.RequestOptions, ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); + return core.HttpResponsePromise.fromPromise(this.__metaPatchRetrieve(id, requestOptions)); } - private async __metaPostRetrieve( + private async __metaPatchRetrieve( + id: string, requestOptions?: InvoicesClient.RequestOptions, ): Promise> { const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); @@ -634,7 +853,7 @@ export class InvoicesClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/invoices/meta/post", + `accounting/v1/invoices/meta/patch/${core.url.encodePathParam(id)}`, ), method: "GET", headers: _headers, @@ -670,56 +889,27 @@ export class InvoicesClient { _response.error, _response.rawResponse, "GET", - "/accounting/v1/invoices/meta/post", + "/accounting/v1/invoices/meta/patch/{id}", ); } /** - * Returns a list of `RemoteFieldClass` objects. + * Returns metadata for `Invoice` POSTs. * - * @param {Merge.accounting.InvoicesRemoteFieldClassesListRequest} request * @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.invoices.remoteFieldClassesList({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * }) + * await client.accounting.invoices.metaPostRetrieve() */ - public remoteFieldClassesList( - request: Merge.accounting.InvoicesRemoteFieldClassesListRequest = {}, + public metaPostRetrieve( requestOptions?: InvoicesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldClassesList(request, requestOptions)); + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); } - private async __remoteFieldClassesList( - request: Merge.accounting.InvoicesRemoteFieldClassesListRequest = {}, + private async __metaPostRetrieve( requestOptions?: InvoicesClient.RequestOptions, - ): Promise> { - const { - cursor, - includeDeletedData, - includeRemoteData, - includeShellData, - isCommonModelField, - isCustom, - pageSize, - } = request; - const _queryParams: Record = { - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - is_common_model_field: isCommonModelField, - is_custom: isCustom, - page_size: pageSize, - }; + ): Promise> { const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, @@ -732,11 +922,11 @@ export class InvoicesClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/invoices/remote-field-classes", + "accounting/v1/invoices/meta/post", ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryParameters: requestOptions?.queryParams, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -745,7 +935,7 @@ export class InvoicesClient { }); if (_response.ok) { return { - data: serializers.accounting.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + data: serializers.accounting.MetaResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -768,7 +958,115 @@ export class InvoicesClient { _response.error, _response.rawResponse, "GET", - "/accounting/v1/invoices/remote-field-classes", + "/accounting/v1/invoices/meta/post", ); } + + /** + * Returns a list of `RemoteFieldClass` objects. + * + * @param {Merge.accounting.InvoicesRemoteFieldClassesListRequest} request + * @param {InvoicesClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.invoices.remoteFieldClassesList({ + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeShellData: true, + * isCommonModelField: true, + * isCustom: true, + * pageSize: 1 + * }) + */ + public async remoteFieldClassesList( + request: Merge.accounting.InvoicesRemoteFieldClassesListRequest = {}, + requestOptions?: InvoicesClient.RequestOptions, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.InvoicesRemoteFieldClassesListRequest, + ): Promise> => { + const { + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + isCommonModelField, + isCustom, + pageSize, + } = request; + const _queryParams: Record = { + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + is_common_model_field: isCommonModelField, + is_custom: isCustom, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/invoices/remote-field-classes", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/invoices/remote-field-classes", + ); + }, + ); + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, + }); + } } diff --git a/src/api/resources/accounting/resources/invoices/client/requests/InvoiceBulkRequest.ts b/src/api/resources/accounting/resources/invoices/client/requests/InvoiceBulkRequest.ts new file mode 100644 index 000000000..5ad0929a1 --- /dev/null +++ b/src/api/resources/accounting/resources/invoices/client/requests/InvoiceBulkRequest.ts @@ -0,0 +1,24 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * batchItems: [{ + * itemId: "item_id", + * payload: { + * model: {} + * } + * }] + * } + */ +export interface InvoiceBulkRequest { + /** 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; + batchItems: Merge.accounting.InvoiceBatchItemRequest[]; +} diff --git a/src/api/resources/accounting/resources/invoices/client/requests/InvoiceEndpointRequest.ts b/src/api/resources/accounting/resources/invoices/client/requests/InvoiceEndpointRequest.ts deleted file mode 100644 index 48e9beeac..000000000 --- a/src/api/resources/accounting/resources/invoices/client/requests/InvoiceEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface InvoiceEndpointRequest { - /** 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.accounting.InvoiceRequest; -} diff --git a/src/api/resources/accounting/resources/invoices/client/requests/InvoicesBatchObjectsListRequest.ts b/src/api/resources/accounting/resources/invoices/client/requests/InvoicesBatchObjectsListRequest.ts new file mode 100644 index 000000000..4990656a9 --- /dev/null +++ b/src/api/resources/accounting/resources/invoices/client/requests/InvoicesBatchObjectsListRequest.ts @@ -0,0 +1,89 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * companyId: "company_id", + * contactId: "contact_id", + * createdAfter: new Date("2024-01-15T09:30:00.000Z"), + * createdBefore: new Date("2024-01-15T09:30:00.000Z"), + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeRemoteFields: true, + * includeShellData: true, + * issueDateAfter: new Date("2024-01-15T09:30:00.000Z"), + * issueDateBefore: new Date("2024-01-15T09:30:00.000Z"), + * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * number: "number", + * pageSize: 1, + * remoteFields: "type", + * remoteId: "remote_id", + * showEnumOrigins: "type", + * status: "DRAFT", + * type: "ACCOUNTS_PAYABLE" + * } + */ +export interface InvoicesBatchObjectsListRequest { + /** If provided, will only return invoices for this company. */ + companyId?: string; + /** If provided, will only return invoices for this contact. */ + contactId?: string; + /** If provided, will only return objects created after this datetime. */ + createdAfter?: Date; + /** If provided, will only return objects created before this datetime. */ + createdBefore?: Date; + /** The pagination cursor value. */ + cursor?: string; + /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ + expand?: + | Merge.accounting.InvoicesBatchObjectsListRequestExpandItem + | Merge.accounting.InvoicesBatchObjectsListRequestExpandItem[]; + /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ + includeDeletedData?: boolean; + /** Whether to include the original data Merge fetched from the third-party to produce these models. */ + includeRemoteData?: boolean; + /** Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. */ + includeRemoteFields?: boolean; + /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ + includeShellData?: boolean; + /** If provided, will only return objects created after this datetime. */ + issueDateAfter?: Date; + /** If provided, will only return objects created before this datetime. */ + issueDateBefore?: Date; + /** If provided, only objects synced by Merge after this date time will be returned. */ + modifiedAfter?: Date; + /** If provided, only objects synced by Merge before this date time will be returned. */ + modifiedBefore?: Date; + /** If provided, will only return Invoices with this number. */ + number?: string; + /** Number of results to return per page. The maximum limit is 100. */ + pageSize?: number; + /** Deprecated. Use show_enum_origins. */ + remoteFields?: "type"; + /** The API provider's ID for the given object. */ + remoteId?: string; + /** A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) */ + showEnumOrigins?: "type"; + /** + * If provided, will only return Invoices with this status. + * + * * `PAID` - PAID + * * `DRAFT` - DRAFT + * * `SUBMITTED` - SUBMITTED + * * `PARTIALLY_PAID` - PARTIALLY_PAID + * * `OPEN` - OPEN + * * `VOID` - VOID + */ + status?: Merge.accounting.InvoicesBatchObjectsListRequestStatus; + /** + * If provided, will only return Invoices with this type. + * + * * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE + * * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE + */ + type?: Merge.accounting.InvoicesBatchObjectsListRequestType; +} diff --git a/src/api/resources/accounting/resources/invoices/client/requests/InvoicesCreateRequest.ts b/src/api/resources/accounting/resources/invoices/client/requests/InvoicesCreateRequest.ts new file mode 100644 index 000000000..a6565848a --- /dev/null +++ b/src/api/resources/accounting/resources/invoices/client/requests/InvoicesCreateRequest.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * body: { + * model: {} + * } + * } + */ +export interface InvoicesCreateRequest { + /** 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; + body: Merge.accounting.InvoiceEndpointRequest; +} diff --git a/src/api/resources/accounting/resources/invoices/client/requests/InvoicesLineItemsRemoteFieldClassesListRequest.ts b/src/api/resources/accounting/resources/invoices/client/requests/InvoicesLineItemsRemoteFieldClassesListRequest.ts index bc270d77f..869f0750f 100644 --- a/src/api/resources/accounting/resources/invoices/client/requests/InvoicesLineItemsRemoteFieldClassesListRequest.ts +++ b/src/api/resources/accounting/resources/invoices/client/requests/InvoicesLineItemsRemoteFieldClassesListRequest.ts @@ -25,6 +25,6 @@ export interface InvoicesLineItemsRemoteFieldClassesListRequest { isCommonModelField?: boolean; /** If provided, will only return remote fields classes with this is_custom value */ isCustom?: boolean; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; } diff --git a/src/api/resources/accounting/resources/invoices/client/requests/InvoicesListRequest.ts b/src/api/resources/accounting/resources/invoices/client/requests/InvoicesListRequest.ts index 3d6b57134..03ad4d02e 100644 --- a/src/api/resources/accounting/resources/invoices/client/requests/InvoicesListRequest.ts +++ b/src/api/resources/accounting/resources/invoices/client/requests/InvoicesListRequest.ts @@ -10,7 +10,6 @@ import type * as Merge from "../../../../../../index"; * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "accounting_period", * includeDeletedData: true, * includeRemoteData: true, * includeRemoteFields: true, @@ -40,7 +39,7 @@ export interface InvoicesListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.InvoicesListRequestExpand; + expand?: Merge.accounting.InvoicesListRequestExpandItem | Merge.accounting.InvoicesListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -59,7 +58,7 @@ export interface InvoicesListRequest { modifiedBefore?: Date; /** If provided, will only return Invoices with this number. */ number?: string; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** Deprecated. Use show_enum_origins. */ remoteFields?: "type"; diff --git a/src/api/resources/accounting/resources/invoices/client/requests/InvoicesRemoteFieldClassesListRequest.ts b/src/api/resources/accounting/resources/invoices/client/requests/InvoicesRemoteFieldClassesListRequest.ts index 63bf03f40..41927a820 100644 --- a/src/api/resources/accounting/resources/invoices/client/requests/InvoicesRemoteFieldClassesListRequest.ts +++ b/src/api/resources/accounting/resources/invoices/client/requests/InvoicesRemoteFieldClassesListRequest.ts @@ -25,6 +25,6 @@ export interface InvoicesRemoteFieldClassesListRequest { isCommonModelField?: boolean; /** If provided, will only return remote fields classes with this is_custom value */ isCustom?: boolean; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; } diff --git a/src/api/resources/accounting/resources/invoices/client/requests/InvoicesRetrieveRequest.ts b/src/api/resources/accounting/resources/invoices/client/requests/InvoicesRetrieveRequest.ts index 229dde4b6..e0c307cdc 100644 --- a/src/api/resources/accounting/resources/invoices/client/requests/InvoicesRetrieveRequest.ts +++ b/src/api/resources/accounting/resources/invoices/client/requests/InvoicesRetrieveRequest.ts @@ -5,7 +5,6 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "accounting_period", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true, @@ -15,7 +14,7 @@ import type * as Merge from "../../../../../../index"; */ export interface InvoicesRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.InvoicesRetrieveRequestExpand; + expand?: Merge.accounting.InvoicesRetrieveRequestExpandItem | Merge.accounting.InvoicesRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. */ diff --git a/src/api/resources/accounting/resources/invoices/client/requests/index.ts b/src/api/resources/accounting/resources/invoices/client/requests/index.ts index 07e589cf3..d17246cac 100644 --- a/src/api/resources/accounting/resources/invoices/client/requests/index.ts +++ b/src/api/resources/accounting/resources/invoices/client/requests/index.ts @@ -1,4 +1,6 @@ -export type { InvoiceEndpointRequest } from "./InvoiceEndpointRequest"; +export type { InvoiceBulkRequest } from "./InvoiceBulkRequest"; +export type { InvoicesBatchObjectsListRequest } from "./InvoicesBatchObjectsListRequest"; +export type { InvoicesCreateRequest } from "./InvoicesCreateRequest"; export type { InvoicesLineItemsRemoteFieldClassesListRequest } from "./InvoicesLineItemsRemoteFieldClassesListRequest"; export type { InvoicesListRequest } from "./InvoicesListRequest"; export type { InvoicesRemoteFieldClassesListRequest } from "./InvoicesRemoteFieldClassesListRequest"; diff --git a/src/api/resources/accounting/resources/invoices/types/InvoicesBatchObjectsListRequestExpandItem.ts b/src/api/resources/accounting/resources/invoices/types/InvoicesBatchObjectsListRequestExpandItem.ts new file mode 100644 index 000000000..fce54ee3f --- /dev/null +++ b/src/api/resources/accounting/resources/invoices/types/InvoicesBatchObjectsListRequestExpandItem.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +export const InvoicesBatchObjectsListRequestExpandItem = { + AccountingPeriod: "accounting_period", + AppliedCreditNotes: "applied_credit_notes", + AppliedPayments: "applied_payments", + AppliedVendorCredits: "applied_vendor_credits", + Company: "company", + Contact: "contact", + Employee: "employee", + LineItems: "line_items", + PaymentTerm: "payment_term", + Payments: "payments", + PurchaseOrders: "purchase_orders", + SalesOrders: "sales_orders", + TrackingCategories: "tracking_categories", +} as const; +export type InvoicesBatchObjectsListRequestExpandItem = + (typeof InvoicesBatchObjectsListRequestExpandItem)[keyof typeof InvoicesBatchObjectsListRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/invoices/types/InvoicesBatchObjectsListRequestStatus.ts b/src/api/resources/accounting/resources/invoices/types/InvoicesBatchObjectsListRequestStatus.ts new file mode 100644 index 000000000..d9c4ea2bf --- /dev/null +++ b/src/api/resources/accounting/resources/invoices/types/InvoicesBatchObjectsListRequestStatus.ts @@ -0,0 +1,12 @@ +// This file was auto-generated by Fern from our API Definition. + +export const InvoicesBatchObjectsListRequestStatus = { + Draft: "DRAFT", + Open: "OPEN", + Paid: "PAID", + PartiallyPaid: "PARTIALLY_PAID", + Submitted: "SUBMITTED", + Void: "VOID", +} as const; +export type InvoicesBatchObjectsListRequestStatus = + (typeof InvoicesBatchObjectsListRequestStatus)[keyof typeof InvoicesBatchObjectsListRequestStatus]; diff --git a/src/api/resources/accounting/resources/invoices/types/InvoicesBatchObjectsListRequestType.ts b/src/api/resources/accounting/resources/invoices/types/InvoicesBatchObjectsListRequestType.ts new file mode 100644 index 000000000..bab89685d --- /dev/null +++ b/src/api/resources/accounting/resources/invoices/types/InvoicesBatchObjectsListRequestType.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export const InvoicesBatchObjectsListRequestType = { + AccountsPayable: "ACCOUNTS_PAYABLE", + AccountsReceivable: "ACCOUNTS_RECEIVABLE", +} as const; +export type InvoicesBatchObjectsListRequestType = + (typeof InvoicesBatchObjectsListRequestType)[keyof typeof InvoicesBatchObjectsListRequestType]; diff --git a/src/api/resources/accounting/resources/invoices/types/InvoicesListRequestExpand.ts b/src/api/resources/accounting/resources/invoices/types/InvoicesListRequestExpand.ts deleted file mode 100644 index 3f28b8e44..000000000 --- a/src/api/resources/accounting/resources/invoices/types/InvoicesListRequestExpand.ts +++ /dev/null @@ -1,7516 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const InvoicesListRequestExpand = { - AccountingPeriod: "accounting_period", - AccountingPeriodPaymentTerm: "accounting_period,payment_term", - AppliedCreditNotes: "applied_credit_notes", - AppliedCreditNotesAccountingPeriod: "applied_credit_notes,accounting_period", - AppliedCreditNotesAccountingPeriodPaymentTerm: "applied_credit_notes,accounting_period,payment_term", - AppliedCreditNotesAppliedVendorCredits: "applied_credit_notes,applied_vendor_credits", - AppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "applied_credit_notes,applied_vendor_credits,accounting_period", - AppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - AppliedCreditNotesAppliedVendorCreditsCompany: "applied_credit_notes,applied_vendor_credits,company", - AppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "applied_credit_notes,applied_vendor_credits,company,accounting_period", - AppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - AppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "applied_credit_notes,applied_vendor_credits,company,employee", - AppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - AppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - AppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "applied_credit_notes,applied_vendor_credits,company,payment_term", - AppliedCreditNotesAppliedVendorCreditsContact: "applied_credit_notes,applied_vendor_credits,contact", - AppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "applied_credit_notes,applied_vendor_credits,contact,accounting_period", - AppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedCreditNotesAppliedVendorCreditsContactCompany: "applied_credit_notes,applied_vendor_credits,contact,company", - AppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - AppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "applied_credit_notes,applied_vendor_credits,contact,company,employee", - AppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - AppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - AppliedCreditNotesAppliedVendorCreditsContactEmployee: - "applied_credit_notes,applied_vendor_credits,contact,employee", - AppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - AppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - AppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "applied_credit_notes,applied_vendor_credits,contact,payment_term", - AppliedCreditNotesAppliedVendorCreditsEmployee: "applied_credit_notes,applied_vendor_credits,employee", - AppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_credit_notes,applied_vendor_credits,employee,accounting_period", - AppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "applied_credit_notes,applied_vendor_credits,employee,payment_term", - AppliedCreditNotesAppliedVendorCreditsPaymentTerm: "applied_credit_notes,applied_vendor_credits,payment_term", - AppliedCreditNotesCompany: "applied_credit_notes,company", - AppliedCreditNotesCompanyAccountingPeriod: "applied_credit_notes,company,accounting_period", - AppliedCreditNotesCompanyAccountingPeriodPaymentTerm: "applied_credit_notes,company,accounting_period,payment_term", - AppliedCreditNotesCompanyEmployee: "applied_credit_notes,company,employee", - AppliedCreditNotesCompanyEmployeeAccountingPeriod: "applied_credit_notes,company,employee,accounting_period", - AppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_credit_notes,company,employee,accounting_period,payment_term", - AppliedCreditNotesCompanyEmployeePaymentTerm: "applied_credit_notes,company,employee,payment_term", - AppliedCreditNotesCompanyPaymentTerm: "applied_credit_notes,company,payment_term", - AppliedCreditNotesContact: "applied_credit_notes,contact", - AppliedCreditNotesContactAccountingPeriod: "applied_credit_notes,contact,accounting_period", - AppliedCreditNotesContactAccountingPeriodPaymentTerm: "applied_credit_notes,contact,accounting_period,payment_term", - AppliedCreditNotesContactCompany: "applied_credit_notes,contact,company", - AppliedCreditNotesContactCompanyAccountingPeriod: "applied_credit_notes,contact,company,accounting_period", - AppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "applied_credit_notes,contact,company,accounting_period,payment_term", - AppliedCreditNotesContactCompanyEmployee: "applied_credit_notes,contact,company,employee", - AppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "applied_credit_notes,contact,company,employee,accounting_period", - AppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_credit_notes,contact,company,employee,accounting_period,payment_term", - AppliedCreditNotesContactCompanyEmployeePaymentTerm: "applied_credit_notes,contact,company,employee,payment_term", - AppliedCreditNotesContactCompanyPaymentTerm: "applied_credit_notes,contact,company,payment_term", - AppliedCreditNotesContactEmployee: "applied_credit_notes,contact,employee", - AppliedCreditNotesContactEmployeeAccountingPeriod: "applied_credit_notes,contact,employee,accounting_period", - AppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "applied_credit_notes,contact,employee,accounting_period,payment_term", - AppliedCreditNotesContactEmployeePaymentTerm: "applied_credit_notes,contact,employee,payment_term", - AppliedCreditNotesContactPaymentTerm: "applied_credit_notes,contact,payment_term", - AppliedCreditNotesEmployee: "applied_credit_notes,employee", - AppliedCreditNotesEmployeeAccountingPeriod: "applied_credit_notes,employee,accounting_period", - AppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "applied_credit_notes,employee,accounting_period,payment_term", - AppliedCreditNotesEmployeePaymentTerm: "applied_credit_notes,employee,payment_term", - AppliedCreditNotesPaymentTerm: "applied_credit_notes,payment_term", - AppliedPayments: "applied_payments", - AppliedPaymentsAccountingPeriod: "applied_payments,accounting_period", - AppliedPaymentsAccountingPeriodPaymentTerm: "applied_payments,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotes: "applied_payments,applied_credit_notes", - AppliedPaymentsAppliedCreditNotesAccountingPeriod: "applied_payments,applied_credit_notes,accounting_period", - AppliedPaymentsAppliedCreditNotesAccountingPeriodPaymentTerm: - "applied_payments,applied_credit_notes,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotesAppliedVendorCredits: - "applied_payments,applied_credit_notes,applied_vendor_credits", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "applied_payments,applied_credit_notes,applied_vendor_credits,accounting_period", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_payments,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsCompany: - "applied_payments,applied_credit_notes,applied_vendor_credits,company", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "applied_payments,applied_credit_notes,applied_vendor_credits,company,accounting_period", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_payments,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "applied_payments,applied_credit_notes,applied_vendor_credits,company,employee", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "applied_payments,applied_credit_notes,applied_vendor_credits,company,payment_term", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContact: - "applied_payments,applied_credit_notes,applied_vendor_credits,contact", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactCompany: - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,payment_term", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsEmployee: - "applied_payments,applied_credit_notes,applied_vendor_credits,employee", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "applied_payments,applied_credit_notes,applied_vendor_credits,employee,payment_term", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "applied_payments,applied_credit_notes,applied_vendor_credits,payment_term", - AppliedPaymentsAppliedCreditNotesCompany: "applied_payments,applied_credit_notes,company", - AppliedPaymentsAppliedCreditNotesCompanyAccountingPeriod: - "applied_payments,applied_credit_notes,company,accounting_period", - AppliedPaymentsAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "applied_payments,applied_credit_notes,company,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotesCompanyEmployee: "applied_payments,applied_credit_notes,company,employee", - AppliedPaymentsAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "applied_payments,applied_credit_notes,company,employee,accounting_period", - AppliedPaymentsAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,applied_credit_notes,company,employee,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotesCompanyEmployeePaymentTerm: - "applied_payments,applied_credit_notes,company,employee,payment_term", - AppliedPaymentsAppliedCreditNotesCompanyPaymentTerm: "applied_payments,applied_credit_notes,company,payment_term", - AppliedPaymentsAppliedCreditNotesContact: "applied_payments,applied_credit_notes,contact", - AppliedPaymentsAppliedCreditNotesContactAccountingPeriod: - "applied_payments,applied_credit_notes,contact,accounting_period", - AppliedPaymentsAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "applied_payments,applied_credit_notes,contact,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotesContactCompany: "applied_payments,applied_credit_notes,contact,company", - AppliedPaymentsAppliedCreditNotesContactCompanyAccountingPeriod: - "applied_payments,applied_credit_notes,contact,company,accounting_period", - AppliedPaymentsAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,applied_credit_notes,contact,company,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotesContactCompanyEmployee: - "applied_payments,applied_credit_notes,contact,company,employee", - AppliedPaymentsAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "applied_payments,applied_credit_notes,contact,company,employee,accounting_period", - AppliedPaymentsAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "applied_payments,applied_credit_notes,contact,company,employee,payment_term", - AppliedPaymentsAppliedCreditNotesContactCompanyPaymentTerm: - "applied_payments,applied_credit_notes,contact,company,payment_term", - AppliedPaymentsAppliedCreditNotesContactEmployee: "applied_payments,applied_credit_notes,contact,employee", - AppliedPaymentsAppliedCreditNotesContactEmployeeAccountingPeriod: - "applied_payments,applied_credit_notes,contact,employee,accounting_period", - AppliedPaymentsAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,applied_credit_notes,contact,employee,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotesContactEmployeePaymentTerm: - "applied_payments,applied_credit_notes,contact,employee,payment_term", - AppliedPaymentsAppliedCreditNotesContactPaymentTerm: "applied_payments,applied_credit_notes,contact,payment_term", - AppliedPaymentsAppliedCreditNotesEmployee: "applied_payments,applied_credit_notes,employee", - AppliedPaymentsAppliedCreditNotesEmployeeAccountingPeriod: - "applied_payments,applied_credit_notes,employee,accounting_period", - AppliedPaymentsAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "applied_payments,applied_credit_notes,employee,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotesEmployeePaymentTerm: "applied_payments,applied_credit_notes,employee,payment_term", - AppliedPaymentsAppliedCreditNotesPaymentTerm: "applied_payments,applied_credit_notes,payment_term", - AppliedPaymentsAppliedVendorCredits: "applied_payments,applied_vendor_credits", - AppliedPaymentsAppliedVendorCreditsAccountingPeriod: "applied_payments,applied_vendor_credits,accounting_period", - AppliedPaymentsAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_payments,applied_vendor_credits,accounting_period,payment_term", - AppliedPaymentsAppliedVendorCreditsCompany: "applied_payments,applied_vendor_credits,company", - AppliedPaymentsAppliedVendorCreditsCompanyAccountingPeriod: - "applied_payments,applied_vendor_credits,company,accounting_period", - AppliedPaymentsAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_payments,applied_vendor_credits,company,accounting_period,payment_term", - AppliedPaymentsAppliedVendorCreditsCompanyEmployee: "applied_payments,applied_vendor_credits,company,employee", - AppliedPaymentsAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_payments,applied_vendor_credits,company,employee,accounting_period", - AppliedPaymentsAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedPaymentsAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_payments,applied_vendor_credits,company,employee,payment_term", - AppliedPaymentsAppliedVendorCreditsCompanyPaymentTerm: - "applied_payments,applied_vendor_credits,company,payment_term", - AppliedPaymentsAppliedVendorCreditsContact: "applied_payments,applied_vendor_credits,contact", - AppliedPaymentsAppliedVendorCreditsContactAccountingPeriod: - "applied_payments,applied_vendor_credits,contact,accounting_period", - AppliedPaymentsAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_payments,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedPaymentsAppliedVendorCreditsContactCompany: "applied_payments,applied_vendor_credits,contact,company", - AppliedPaymentsAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_payments,applied_vendor_credits,contact,company,accounting_period", - AppliedPaymentsAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedPaymentsAppliedVendorCreditsContactCompanyEmployee: - "applied_payments,applied_vendor_credits,contact,company,employee", - AppliedPaymentsAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_payments,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedPaymentsAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_payments,applied_vendor_credits,contact,company,employee,payment_term", - AppliedPaymentsAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_payments,applied_vendor_credits,contact,company,payment_term", - AppliedPaymentsAppliedVendorCreditsContactEmployee: "applied_payments,applied_vendor_credits,contact,employee", - AppliedPaymentsAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_payments,applied_vendor_credits,contact,employee,accounting_period", - AppliedPaymentsAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedPaymentsAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_payments,applied_vendor_credits,contact,employee,payment_term", - AppliedPaymentsAppliedVendorCreditsContactPaymentTerm: - "applied_payments,applied_vendor_credits,contact,payment_term", - AppliedPaymentsAppliedVendorCreditsEmployee: "applied_payments,applied_vendor_credits,employee", - AppliedPaymentsAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_payments,applied_vendor_credits,employee,accounting_period", - AppliedPaymentsAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedPaymentsAppliedVendorCreditsEmployeePaymentTerm: - "applied_payments,applied_vendor_credits,employee,payment_term", - AppliedPaymentsAppliedVendorCreditsPaymentTerm: "applied_payments,applied_vendor_credits,payment_term", - AppliedPaymentsCompany: "applied_payments,company", - AppliedPaymentsCompanyAccountingPeriod: "applied_payments,company,accounting_period", - AppliedPaymentsCompanyAccountingPeriodPaymentTerm: "applied_payments,company,accounting_period,payment_term", - AppliedPaymentsCompanyEmployee: "applied_payments,company,employee", - AppliedPaymentsCompanyEmployeeAccountingPeriod: "applied_payments,company,employee,accounting_period", - AppliedPaymentsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,company,employee,accounting_period,payment_term", - AppliedPaymentsCompanyEmployeePaymentTerm: "applied_payments,company,employee,payment_term", - AppliedPaymentsCompanyPaymentTerm: "applied_payments,company,payment_term", - AppliedPaymentsContact: "applied_payments,contact", - AppliedPaymentsContactAccountingPeriod: "applied_payments,contact,accounting_period", - AppliedPaymentsContactAccountingPeriodPaymentTerm: "applied_payments,contact,accounting_period,payment_term", - AppliedPaymentsContactCompany: "applied_payments,contact,company", - AppliedPaymentsContactCompanyAccountingPeriod: "applied_payments,contact,company,accounting_period", - AppliedPaymentsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,contact,company,accounting_period,payment_term", - AppliedPaymentsContactCompanyEmployee: "applied_payments,contact,company,employee", - AppliedPaymentsContactCompanyEmployeeAccountingPeriod: - "applied_payments,contact,company,employee,accounting_period", - AppliedPaymentsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsContactCompanyEmployeePaymentTerm: "applied_payments,contact,company,employee,payment_term", - AppliedPaymentsContactCompanyPaymentTerm: "applied_payments,contact,company,payment_term", - AppliedPaymentsContactEmployee: "applied_payments,contact,employee", - AppliedPaymentsContactEmployeeAccountingPeriod: "applied_payments,contact,employee,accounting_period", - AppliedPaymentsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,contact,employee,accounting_period,payment_term", - AppliedPaymentsContactEmployeePaymentTerm: "applied_payments,contact,employee,payment_term", - AppliedPaymentsContactPaymentTerm: "applied_payments,contact,payment_term", - AppliedPaymentsEmployee: "applied_payments,employee", - AppliedPaymentsEmployeeAccountingPeriod: "applied_payments,employee,accounting_period", - AppliedPaymentsEmployeeAccountingPeriodPaymentTerm: "applied_payments,employee,accounting_period,payment_term", - AppliedPaymentsEmployeePaymentTerm: "applied_payments,employee,payment_term", - AppliedPaymentsLineItems: "applied_payments,line_items", - AppliedPaymentsLineItemsAccountingPeriod: "applied_payments,line_items,accounting_period", - AppliedPaymentsLineItemsAccountingPeriodPaymentTerm: "applied_payments,line_items,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotes: "applied_payments,line_items,applied_credit_notes", - AppliedPaymentsLineItemsAppliedCreditNotesAccountingPeriod: - "applied_payments,line_items,applied_credit_notes,accounting_period", - AppliedPaymentsLineItemsAppliedCreditNotesAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_credit_notes,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCredits: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompany: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContact: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompany: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsEmployee: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesCompany: "applied_payments,line_items,applied_credit_notes,company", - AppliedPaymentsLineItemsAppliedCreditNotesCompanyAccountingPeriod: - "applied_payments,line_items,applied_credit_notes,company,accounting_period", - AppliedPaymentsLineItemsAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_credit_notes,company,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesCompanyEmployee: - "applied_payments,line_items,applied_credit_notes,company,employee", - AppliedPaymentsLineItemsAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,applied_credit_notes,company,employee,accounting_period", - AppliedPaymentsLineItemsAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_credit_notes,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesCompanyEmployeePaymentTerm: - "applied_payments,line_items,applied_credit_notes,company,employee,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesCompanyPaymentTerm: - "applied_payments,line_items,applied_credit_notes,company,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesContact: "applied_payments,line_items,applied_credit_notes,contact", - AppliedPaymentsLineItemsAppliedCreditNotesContactAccountingPeriod: - "applied_payments,line_items,applied_credit_notes,contact,accounting_period", - AppliedPaymentsLineItemsAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_credit_notes,contact,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesContactCompany: - "applied_payments,line_items,applied_credit_notes,contact,company", - AppliedPaymentsLineItemsAppliedCreditNotesContactCompanyAccountingPeriod: - "applied_payments,line_items,applied_credit_notes,contact,company,accounting_period", - AppliedPaymentsLineItemsAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_credit_notes,contact,company,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesContactCompanyEmployee: - "applied_payments,line_items,applied_credit_notes,contact,company,employee", - AppliedPaymentsLineItemsAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,applied_credit_notes,contact,company,employee,accounting_period", - AppliedPaymentsLineItemsAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "applied_payments,line_items,applied_credit_notes,contact,company,employee,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesContactCompanyPaymentTerm: - "applied_payments,line_items,applied_credit_notes,contact,company,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesContactEmployee: - "applied_payments,line_items,applied_credit_notes,contact,employee", - AppliedPaymentsLineItemsAppliedCreditNotesContactEmployeeAccountingPeriod: - "applied_payments,line_items,applied_credit_notes,contact,employee,accounting_period", - AppliedPaymentsLineItemsAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_credit_notes,contact,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesContactEmployeePaymentTerm: - "applied_payments,line_items,applied_credit_notes,contact,employee,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesContactPaymentTerm: - "applied_payments,line_items,applied_credit_notes,contact,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesEmployee: "applied_payments,line_items,applied_credit_notes,employee", - AppliedPaymentsLineItemsAppliedCreditNotesEmployeeAccountingPeriod: - "applied_payments,line_items,applied_credit_notes,employee,accounting_period", - AppliedPaymentsLineItemsAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_credit_notes,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesEmployeePaymentTerm: - "applied_payments,line_items,applied_credit_notes,employee,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesPaymentTerm: - "applied_payments,line_items,applied_credit_notes,payment_term", - AppliedPaymentsLineItemsAppliedVendorCredits: "applied_payments,line_items,applied_vendor_credits", - AppliedPaymentsLineItemsAppliedVendorCreditsAccountingPeriod: - "applied_payments,line_items,applied_vendor_credits,accounting_period", - AppliedPaymentsLineItemsAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_vendor_credits,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedVendorCreditsCompany: "applied_payments,line_items,applied_vendor_credits,company", - AppliedPaymentsLineItemsAppliedVendorCreditsCompanyAccountingPeriod: - "applied_payments,line_items,applied_vendor_credits,company,accounting_period", - AppliedPaymentsLineItemsAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_vendor_credits,company,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedVendorCreditsCompanyEmployee: - "applied_payments,line_items,applied_vendor_credits,company,employee", - AppliedPaymentsLineItemsAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,applied_vendor_credits,company,employee,accounting_period", - AppliedPaymentsLineItemsAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_payments,line_items,applied_vendor_credits,company,employee,payment_term", - AppliedPaymentsLineItemsAppliedVendorCreditsCompanyPaymentTerm: - "applied_payments,line_items,applied_vendor_credits,company,payment_term", - AppliedPaymentsLineItemsAppliedVendorCreditsContact: "applied_payments,line_items,applied_vendor_credits,contact", - AppliedPaymentsLineItemsAppliedVendorCreditsContactAccountingPeriod: - "applied_payments,line_items,applied_vendor_credits,contact,accounting_period", - AppliedPaymentsLineItemsAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedVendorCreditsContactCompany: - "applied_payments,line_items,applied_vendor_credits,contact,company", - AppliedPaymentsLineItemsAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_payments,line_items,applied_vendor_credits,contact,company,accounting_period", - AppliedPaymentsLineItemsAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedVendorCreditsContactCompanyEmployee: - "applied_payments,line_items,applied_vendor_credits,contact,company,employee", - AppliedPaymentsLineItemsAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedPaymentsLineItemsAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_payments,line_items,applied_vendor_credits,contact,company,employee,payment_term", - AppliedPaymentsLineItemsAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_payments,line_items,applied_vendor_credits,contact,company,payment_term", - AppliedPaymentsLineItemsAppliedVendorCreditsContactEmployee: - "applied_payments,line_items,applied_vendor_credits,contact,employee", - AppliedPaymentsLineItemsAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_payments,line_items,applied_vendor_credits,contact,employee,accounting_period", - AppliedPaymentsLineItemsAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_payments,line_items,applied_vendor_credits,contact,employee,payment_term", - AppliedPaymentsLineItemsAppliedVendorCreditsContactPaymentTerm: - "applied_payments,line_items,applied_vendor_credits,contact,payment_term", - AppliedPaymentsLineItemsAppliedVendorCreditsEmployee: "applied_payments,line_items,applied_vendor_credits,employee", - AppliedPaymentsLineItemsAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_payments,line_items,applied_vendor_credits,employee,accounting_period", - AppliedPaymentsLineItemsAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedVendorCreditsEmployeePaymentTerm: - "applied_payments,line_items,applied_vendor_credits,employee,payment_term", - AppliedPaymentsLineItemsAppliedVendorCreditsPaymentTerm: - "applied_payments,line_items,applied_vendor_credits,payment_term", - AppliedPaymentsLineItemsCompany: "applied_payments,line_items,company", - AppliedPaymentsLineItemsCompanyAccountingPeriod: "applied_payments,line_items,company,accounting_period", - AppliedPaymentsLineItemsCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,company,accounting_period,payment_term", - AppliedPaymentsLineItemsCompanyEmployee: "applied_payments,line_items,company,employee", - AppliedPaymentsLineItemsCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,company,employee,accounting_period", - AppliedPaymentsLineItemsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsCompanyEmployeePaymentTerm: "applied_payments,line_items,company,employee,payment_term", - AppliedPaymentsLineItemsCompanyPaymentTerm: "applied_payments,line_items,company,payment_term", - AppliedPaymentsLineItemsContact: "applied_payments,line_items,contact", - AppliedPaymentsLineItemsContactAccountingPeriod: "applied_payments,line_items,contact,accounting_period", - AppliedPaymentsLineItemsContactAccountingPeriodPaymentTerm: - "applied_payments,line_items,contact,accounting_period,payment_term", - AppliedPaymentsLineItemsContactCompany: "applied_payments,line_items,contact,company", - AppliedPaymentsLineItemsContactCompanyAccountingPeriod: - "applied_payments,line_items,contact,company,accounting_period", - AppliedPaymentsLineItemsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,contact,company,accounting_period,payment_term", - AppliedPaymentsLineItemsContactCompanyEmployee: "applied_payments,line_items,contact,company,employee", - AppliedPaymentsLineItemsContactCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,contact,company,employee,accounting_period", - AppliedPaymentsLineItemsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsContactCompanyEmployeePaymentTerm: - "applied_payments,line_items,contact,company,employee,payment_term", - AppliedPaymentsLineItemsContactCompanyPaymentTerm: "applied_payments,line_items,contact,company,payment_term", - AppliedPaymentsLineItemsContactEmployee: "applied_payments,line_items,contact,employee", - AppliedPaymentsLineItemsContactEmployeeAccountingPeriod: - "applied_payments,line_items,contact,employee,accounting_period", - AppliedPaymentsLineItemsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,contact,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsContactEmployeePaymentTerm: "applied_payments,line_items,contact,employee,payment_term", - AppliedPaymentsLineItemsContactPaymentTerm: "applied_payments,line_items,contact,payment_term", - AppliedPaymentsLineItemsEmployee: "applied_payments,line_items,employee", - AppliedPaymentsLineItemsEmployeeAccountingPeriod: "applied_payments,line_items,employee,accounting_period", - AppliedPaymentsLineItemsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsEmployeePaymentTerm: "applied_payments,line_items,employee,payment_term", - AppliedPaymentsLineItemsPaymentTerm: "applied_payments,line_items,payment_term", - AppliedPaymentsLineItemsPurchaseOrders: "applied_payments,line_items,purchase_orders", - AppliedPaymentsLineItemsPurchaseOrdersAccountingPeriod: - "applied_payments,line_items,purchase_orders,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotes: - "applied_payments,line_items,purchase_orders,applied_credit_notes", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_credit_notes,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCredits: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompany: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContact: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompany: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployee: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompany: - "applied_payments,line_items,purchase_orders,applied_credit_notes,company", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyEmployee: - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyEmployeePaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContact: - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompany: - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyEmployee: - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactEmployee: - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactEmployeePaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesEmployee: - "applied_payments,line_items,purchase_orders,applied_credit_notes,employee", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesEmployeePaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,employee,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCredits: - "applied_payments,line_items,purchase_orders,applied_vendor_credits", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompany: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyEmployee: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContact: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompany: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployee: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactEmployee: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsEmployee: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,employee", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsEmployeePaymentTerm: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersCompany: "applied_payments,line_items,purchase_orders,company", - AppliedPaymentsLineItemsPurchaseOrdersCompanyAccountingPeriod: - "applied_payments,line_items,purchase_orders,company,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,company,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersCompanyEmployee: - "applied_payments,line_items,purchase_orders,company,employee", - AppliedPaymentsLineItemsPurchaseOrdersCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,purchase_orders,company,employee,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersCompanyEmployeePaymentTerm: - "applied_payments,line_items,purchase_orders,company,employee,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersCompanyPaymentTerm: - "applied_payments,line_items,purchase_orders,company,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersContact: "applied_payments,line_items,purchase_orders,contact", - AppliedPaymentsLineItemsPurchaseOrdersContactAccountingPeriod: - "applied_payments,line_items,purchase_orders,contact,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersContactAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,contact,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersContactCompany: "applied_payments,line_items,purchase_orders,contact,company", - AppliedPaymentsLineItemsPurchaseOrdersContactCompanyAccountingPeriod: - "applied_payments,line_items,purchase_orders,contact,company,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,contact,company,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersContactCompanyEmployee: - "applied_payments,line_items,purchase_orders,contact,company,employee", - AppliedPaymentsLineItemsPurchaseOrdersContactCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,purchase_orders,contact,company,employee,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersContactCompanyEmployeePaymentTerm: - "applied_payments,line_items,purchase_orders,contact,company,employee,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersContactCompanyPaymentTerm: - "applied_payments,line_items,purchase_orders,contact,company,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersContactEmployee: - "applied_payments,line_items,purchase_orders,contact,employee", - AppliedPaymentsLineItemsPurchaseOrdersContactEmployeeAccountingPeriod: - "applied_payments,line_items,purchase_orders,contact,employee,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,contact,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersContactEmployeePaymentTerm: - "applied_payments,line_items,purchase_orders,contact,employee,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersContactPaymentTerm: - "applied_payments,line_items,purchase_orders,contact,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersEmployee: "applied_payments,line_items,purchase_orders,employee", - AppliedPaymentsLineItemsPurchaseOrdersEmployeeAccountingPeriod: - "applied_payments,line_items,purchase_orders,employee,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersEmployeePaymentTerm: - "applied_payments,line_items,purchase_orders,employee,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersPaymentTerm: "applied_payments,line_items,purchase_orders,payment_term", - AppliedPaymentsLineItemsTrackingCategories: "applied_payments,line_items,tracking_categories", - AppliedPaymentsLineItemsTrackingCategoriesAccountingPeriod: - "applied_payments,line_items,tracking_categories,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotes: - "applied_payments,line_items,tracking_categories,applied_credit_notes", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_credit_notes,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCredits: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompany: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContact: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompany: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployee: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompany: - "applied_payments,line_items,tracking_categories,applied_credit_notes,company", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyEmployee: - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContact: - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompany: - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyEmployee: - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactEmployee: - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesEmployee: - "applied_payments,line_items,tracking_categories,applied_credit_notes,employee", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCredits: - "applied_payments,line_items,tracking_categories,applied_vendor_credits", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompany: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyEmployee: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContact: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompany: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployee: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactEmployee: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsEmployee: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,employee", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesCompany: "applied_payments,line_items,tracking_categories,company", - AppliedPaymentsLineItemsTrackingCategoriesCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,company,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesCompanyEmployee: - "applied_payments,line_items,tracking_categories,company,employee", - AppliedPaymentsLineItemsTrackingCategoriesCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,company,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesCompanyEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,company,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesCompanyPaymentTerm: - "applied_payments,line_items,tracking_categories,company,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesContact: "applied_payments,line_items,tracking_categories,contact", - AppliedPaymentsLineItemsTrackingCategoriesContactAccountingPeriod: - "applied_payments,line_items,tracking_categories,contact,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesContactAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,contact,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesContactCompany: - "applied_payments,line_items,tracking_categories,contact,company", - AppliedPaymentsLineItemsTrackingCategoriesContactCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,contact,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,contact,company,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesContactCompanyEmployee: - "applied_payments,line_items,tracking_categories,contact,company,employee", - AppliedPaymentsLineItemsTrackingCategoriesContactCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,contact,company,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesContactCompanyEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,contact,company,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesContactCompanyPaymentTerm: - "applied_payments,line_items,tracking_categories,contact,company,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesContactEmployee: - "applied_payments,line_items,tracking_categories,contact,employee", - AppliedPaymentsLineItemsTrackingCategoriesContactEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,contact,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,contact,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesContactEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,contact,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesContactPaymentTerm: - "applied_payments,line_items,tracking_categories,contact,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesEmployee: "applied_payments,line_items,tracking_categories,employee", - AppliedPaymentsLineItemsTrackingCategoriesEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPaymentTerm: - "applied_payments,line_items,tracking_categories,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrders: - "applied_payments,line_items,tracking_categories,purchase_orders", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotes: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCredits: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompany: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContact: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompany: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployee: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompany: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployee: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContact: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompany: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployee: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployee: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployee: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCredits: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompany: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployee: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContact: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompany: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployee: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployee: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployee: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersCompany: - "applied_payments,line_items,tracking_categories,purchase_orders,company", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,company,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyEmployee: - "applied_payments,line_items,tracking_categories,purchase_orders,company,employee", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,company,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,company,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContact: - "applied_payments,line_items,tracking_categories,purchase_orders,contact", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,contact,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,contact,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompany: - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyEmployee: - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactEmployee: - "applied_payments,line_items,tracking_categories,purchase_orders,contact,employee", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,contact,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersEmployee: - "applied_payments,line_items,tracking_categories,purchase_orders,employee", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,payment_term", - AppliedPaymentsPaymentTerm: "applied_payments,payment_term", - AppliedPaymentsPurchaseOrders: "applied_payments,purchase_orders", - AppliedPaymentsPurchaseOrdersAccountingPeriod: "applied_payments,purchase_orders,accounting_period", - AppliedPaymentsPurchaseOrdersAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotes: "applied_payments,purchase_orders,applied_credit_notes", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAccountingPeriod: - "applied_payments,purchase_orders,applied_credit_notes,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCredits: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompany: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContact: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompany: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployee: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesCompany: - "applied_payments,purchase_orders,applied_credit_notes,company", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriod: - "applied_payments,purchase_orders,applied_credit_notes,company,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesCompanyEmployee: - "applied_payments,purchase_orders,applied_credit_notes,company,employee", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "applied_payments,purchase_orders,applied_credit_notes,company,employee,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesCompanyEmployeePaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,company,employee,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesCompanyPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,company,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesContact: - "applied_payments,purchase_orders,applied_credit_notes,contact", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesContactAccountingPeriod: - "applied_payments,purchase_orders,applied_credit_notes,contact,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesContactCompany: - "applied_payments,purchase_orders,applied_credit_notes,contact,company", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriod: - "applied_payments,purchase_orders,applied_credit_notes,contact,company,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesContactCompanyEmployee: - "applied_payments,purchase_orders,applied_credit_notes,contact,company,employee", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesContactCompanyPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,contact,company,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesContactEmployee: - "applied_payments,purchase_orders,applied_credit_notes,contact,employee", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriod: - "applied_payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesContactEmployeePaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,contact,employee,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesContactPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,contact,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesEmployee: - "applied_payments,purchase_orders,applied_credit_notes,employee", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriod: - "applied_payments,purchase_orders,applied_credit_notes,employee,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesEmployeePaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,employee,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,payment_term", - AppliedPaymentsPurchaseOrdersAppliedVendorCredits: "applied_payments,purchase_orders,applied_vendor_credits", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsAccountingPeriod: - "applied_payments,purchase_orders,applied_vendor_credits,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsCompany: - "applied_payments,purchase_orders,applied_vendor_credits,company", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriod: - "applied_payments,purchase_orders,applied_vendor_credits,company,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsCompanyEmployee: - "applied_payments,purchase_orders,applied_vendor_credits,company,employee", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_payments,purchase_orders,applied_vendor_credits,company,employee,payment_term", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsCompanyPaymentTerm: - "applied_payments,purchase_orders,applied_vendor_credits,company,payment_term", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsContact: - "applied_payments,purchase_orders,applied_vendor_credits,contact", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactAccountingPeriod: - "applied_payments,purchase_orders,applied_vendor_credits,contact,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactCompany: - "applied_payments,purchase_orders,applied_vendor_credits,contact,company", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployee: - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,payment_term", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactEmployee: - "applied_payments,purchase_orders,applied_vendor_credits,contact,employee", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_payments,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactPaymentTerm: - "applied_payments,purchase_orders,applied_vendor_credits,contact,payment_term", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsEmployee: - "applied_payments,purchase_orders,applied_vendor_credits,employee", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_payments,purchase_orders,applied_vendor_credits,employee,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsEmployeePaymentTerm: - "applied_payments,purchase_orders,applied_vendor_credits,employee,payment_term", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsPaymentTerm: - "applied_payments,purchase_orders,applied_vendor_credits,payment_term", - AppliedPaymentsPurchaseOrdersCompany: "applied_payments,purchase_orders,company", - AppliedPaymentsPurchaseOrdersCompanyAccountingPeriod: "applied_payments,purchase_orders,company,accounting_period", - AppliedPaymentsPurchaseOrdersCompanyAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,company,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersCompanyEmployee: "applied_payments,purchase_orders,company,employee", - AppliedPaymentsPurchaseOrdersCompanyEmployeeAccountingPeriod: - "applied_payments,purchase_orders,company,employee,accounting_period", - AppliedPaymentsPurchaseOrdersCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,company,employee,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersCompanyEmployeePaymentTerm: - "applied_payments,purchase_orders,company,employee,payment_term", - AppliedPaymentsPurchaseOrdersCompanyPaymentTerm: "applied_payments,purchase_orders,company,payment_term", - AppliedPaymentsPurchaseOrdersContact: "applied_payments,purchase_orders,contact", - AppliedPaymentsPurchaseOrdersContactAccountingPeriod: "applied_payments,purchase_orders,contact,accounting_period", - AppliedPaymentsPurchaseOrdersContactAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,contact,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersContactCompany: "applied_payments,purchase_orders,contact,company", - AppliedPaymentsPurchaseOrdersContactCompanyAccountingPeriod: - "applied_payments,purchase_orders,contact,company,accounting_period", - AppliedPaymentsPurchaseOrdersContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,contact,company,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersContactCompanyEmployee: "applied_payments,purchase_orders,contact,company,employee", - AppliedPaymentsPurchaseOrdersContactCompanyEmployeeAccountingPeriod: - "applied_payments,purchase_orders,contact,company,employee,accounting_period", - AppliedPaymentsPurchaseOrdersContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersContactCompanyEmployeePaymentTerm: - "applied_payments,purchase_orders,contact,company,employee,payment_term", - AppliedPaymentsPurchaseOrdersContactCompanyPaymentTerm: - "applied_payments,purchase_orders,contact,company,payment_term", - AppliedPaymentsPurchaseOrdersContactEmployee: "applied_payments,purchase_orders,contact,employee", - AppliedPaymentsPurchaseOrdersContactEmployeeAccountingPeriod: - "applied_payments,purchase_orders,contact,employee,accounting_period", - AppliedPaymentsPurchaseOrdersContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,contact,employee,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersContactEmployeePaymentTerm: - "applied_payments,purchase_orders,contact,employee,payment_term", - AppliedPaymentsPurchaseOrdersContactPaymentTerm: "applied_payments,purchase_orders,contact,payment_term", - AppliedPaymentsPurchaseOrdersEmployee: "applied_payments,purchase_orders,employee", - AppliedPaymentsPurchaseOrdersEmployeeAccountingPeriod: - "applied_payments,purchase_orders,employee,accounting_period", - AppliedPaymentsPurchaseOrdersEmployeeAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,employee,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersEmployeePaymentTerm: "applied_payments,purchase_orders,employee,payment_term", - AppliedPaymentsPurchaseOrdersPaymentTerm: "applied_payments,purchase_orders,payment_term", - AppliedPaymentsTrackingCategories: "applied_payments,tracking_categories", - AppliedPaymentsTrackingCategoriesAccountingPeriod: "applied_payments,tracking_categories,accounting_period", - AppliedPaymentsTrackingCategoriesAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotes: "applied_payments,tracking_categories,applied_credit_notes", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAccountingPeriod: - "applied_payments,tracking_categories,applied_credit_notes,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCredits: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompany: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContact: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompany: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployee: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesCompany: - "applied_payments,tracking_categories,applied_credit_notes,company", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesCompanyAccountingPeriod: - "applied_payments,tracking_categories,applied_credit_notes,company,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,company,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesCompanyEmployee: - "applied_payments,tracking_categories,applied_credit_notes,company,employee", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "applied_payments,tracking_categories,applied_credit_notes,company,employee,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesCompanyEmployeePaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,company,employee,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesCompanyPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,company,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesContact: - "applied_payments,tracking_categories,applied_credit_notes,contact", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesContactAccountingPeriod: - "applied_payments,tracking_categories,applied_credit_notes,contact,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesContactCompany: - "applied_payments,tracking_categories,applied_credit_notes,contact,company", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesContactCompanyAccountingPeriod: - "applied_payments,tracking_categories,applied_credit_notes,contact,company,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesContactCompanyEmployee: - "applied_payments,tracking_categories,applied_credit_notes,contact,company,employee", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesContactCompanyPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,contact,company,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesContactEmployee: - "applied_payments,tracking_categories,applied_credit_notes,contact,employee", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesContactEmployeeAccountingPeriod: - "applied_payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesContactEmployeePaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,contact,employee,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesContactPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,contact,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesEmployee: - "applied_payments,tracking_categories,applied_credit_notes,employee", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesEmployeeAccountingPeriod: - "applied_payments,tracking_categories,applied_credit_notes,employee,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesEmployeePaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,employee,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,payment_term", - AppliedPaymentsTrackingCategoriesAppliedVendorCredits: - "applied_payments,tracking_categories,applied_vendor_credits", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsAccountingPeriod: - "applied_payments,tracking_categories,applied_vendor_credits,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_vendor_credits,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsCompany: - "applied_payments,tracking_categories,applied_vendor_credits,company", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsCompanyAccountingPeriod: - "applied_payments,tracking_categories,applied_vendor_credits,company,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsCompanyEmployee: - "applied_payments,tracking_categories,applied_vendor_credits,company,employee", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_payments,tracking_categories,applied_vendor_credits,company,employee,payment_term", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsCompanyPaymentTerm: - "applied_payments,tracking_categories,applied_vendor_credits,company,payment_term", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsContact: - "applied_payments,tracking_categories,applied_vendor_credits,contact", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactAccountingPeriod: - "applied_payments,tracking_categories,applied_vendor_credits,contact,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactCompany: - "applied_payments,tracking_categories,applied_vendor_credits,contact,company", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployee: - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,payment_term", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactEmployee: - "applied_payments,tracking_categories,applied_vendor_credits,contact,employee", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_payments,tracking_categories,applied_vendor_credits,contact,employee,payment_term", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactPaymentTerm: - "applied_payments,tracking_categories,applied_vendor_credits,contact,payment_term", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsEmployee: - "applied_payments,tracking_categories,applied_vendor_credits,employee", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_payments,tracking_categories,applied_vendor_credits,employee,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsEmployeePaymentTerm: - "applied_payments,tracking_categories,applied_vendor_credits,employee,payment_term", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsPaymentTerm: - "applied_payments,tracking_categories,applied_vendor_credits,payment_term", - AppliedPaymentsTrackingCategoriesCompany: "applied_payments,tracking_categories,company", - AppliedPaymentsTrackingCategoriesCompanyAccountingPeriod: - "applied_payments,tracking_categories,company,accounting_period", - AppliedPaymentsTrackingCategoriesCompanyAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,company,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesCompanyEmployee: "applied_payments,tracking_categories,company,employee", - AppliedPaymentsTrackingCategoriesCompanyEmployeeAccountingPeriod: - "applied_payments,tracking_categories,company,employee,accounting_period", - AppliedPaymentsTrackingCategoriesCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,company,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesCompanyEmployeePaymentTerm: - "applied_payments,tracking_categories,company,employee,payment_term", - AppliedPaymentsTrackingCategoriesCompanyPaymentTerm: "applied_payments,tracking_categories,company,payment_term", - AppliedPaymentsTrackingCategoriesContact: "applied_payments,tracking_categories,contact", - AppliedPaymentsTrackingCategoriesContactAccountingPeriod: - "applied_payments,tracking_categories,contact,accounting_period", - AppliedPaymentsTrackingCategoriesContactAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,contact,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesContactCompany: "applied_payments,tracking_categories,contact,company", - AppliedPaymentsTrackingCategoriesContactCompanyAccountingPeriod: - "applied_payments,tracking_categories,contact,company,accounting_period", - AppliedPaymentsTrackingCategoriesContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,contact,company,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesContactCompanyEmployee: - "applied_payments,tracking_categories,contact,company,employee", - AppliedPaymentsTrackingCategoriesContactCompanyEmployeeAccountingPeriod: - "applied_payments,tracking_categories,contact,company,employee,accounting_period", - AppliedPaymentsTrackingCategoriesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesContactCompanyEmployeePaymentTerm: - "applied_payments,tracking_categories,contact,company,employee,payment_term", - AppliedPaymentsTrackingCategoriesContactCompanyPaymentTerm: - "applied_payments,tracking_categories,contact,company,payment_term", - AppliedPaymentsTrackingCategoriesContactEmployee: "applied_payments,tracking_categories,contact,employee", - AppliedPaymentsTrackingCategoriesContactEmployeeAccountingPeriod: - "applied_payments,tracking_categories,contact,employee,accounting_period", - AppliedPaymentsTrackingCategoriesContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,contact,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesContactEmployeePaymentTerm: - "applied_payments,tracking_categories,contact,employee,payment_term", - AppliedPaymentsTrackingCategoriesContactPaymentTerm: "applied_payments,tracking_categories,contact,payment_term", - AppliedPaymentsTrackingCategoriesEmployee: "applied_payments,tracking_categories,employee", - AppliedPaymentsTrackingCategoriesEmployeeAccountingPeriod: - "applied_payments,tracking_categories,employee,accounting_period", - AppliedPaymentsTrackingCategoriesEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesEmployeePaymentTerm: "applied_payments,tracking_categories,employee,payment_term", - AppliedPaymentsTrackingCategoriesPaymentTerm: "applied_payments,tracking_categories,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrders: "applied_payments,tracking_categories,purchase_orders", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotes: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCredits: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompany: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContact: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompany: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployee: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompany: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployee: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeePaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContact: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompany: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployee: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployee: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeePaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployee: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeePaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCredits: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompany: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployee: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContact: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompany: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployee: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployee: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployee: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeePaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersCompany: - "applied_payments,tracking_categories,purchase_orders,company", - AppliedPaymentsTrackingCategoriesPurchaseOrdersCompanyAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,company,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersCompanyAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,company,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersCompanyEmployee: - "applied_payments,tracking_categories,purchase_orders,company,employee", - AppliedPaymentsTrackingCategoriesPurchaseOrdersCompanyEmployeeAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,company,employee,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersCompanyEmployeePaymentTerm: - "applied_payments,tracking_categories,purchase_orders,company,employee,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersCompanyPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,company,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersContact: - "applied_payments,tracking_categories,purchase_orders,contact", - AppliedPaymentsTrackingCategoriesPurchaseOrdersContactAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,contact,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersContactAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,contact,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersContactCompany: - "applied_payments,tracking_categories,purchase_orders,contact,company", - AppliedPaymentsTrackingCategoriesPurchaseOrdersContactCompanyAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,contact,company,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersContactCompanyEmployee: - "applied_payments,tracking_categories,purchase_orders,contact,company,employee", - AppliedPaymentsTrackingCategoriesPurchaseOrdersContactCompanyEmployeeAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersContactCompanyEmployeePaymentTerm: - "applied_payments,tracking_categories,purchase_orders,contact,company,employee,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersContactCompanyPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,contact,company,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersContactEmployee: - "applied_payments,tracking_categories,purchase_orders,contact,employee", - AppliedPaymentsTrackingCategoriesPurchaseOrdersContactEmployeeAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,contact,employee,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersContactEmployeePaymentTerm: - "applied_payments,tracking_categories,purchase_orders,contact,employee,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersContactPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,contact,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersEmployee: - "applied_payments,tracking_categories,purchase_orders,employee", - AppliedPaymentsTrackingCategoriesPurchaseOrdersEmployeeAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,employee,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersEmployeePaymentTerm: - "applied_payments,tracking_categories,purchase_orders,employee,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,payment_term", - AppliedVendorCredits: "applied_vendor_credits", - AppliedVendorCreditsAccountingPeriod: "applied_vendor_credits,accounting_period", - AppliedVendorCreditsAccountingPeriodPaymentTerm: "applied_vendor_credits,accounting_period,payment_term", - AppliedVendorCreditsCompany: "applied_vendor_credits,company", - AppliedVendorCreditsCompanyAccountingPeriod: "applied_vendor_credits,company,accounting_period", - AppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_vendor_credits,company,accounting_period,payment_term", - AppliedVendorCreditsCompanyEmployee: "applied_vendor_credits,company,employee", - AppliedVendorCreditsCompanyEmployeeAccountingPeriod: "applied_vendor_credits,company,employee,accounting_period", - AppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedVendorCreditsCompanyEmployeePaymentTerm: "applied_vendor_credits,company,employee,payment_term", - AppliedVendorCreditsCompanyPaymentTerm: "applied_vendor_credits,company,payment_term", - AppliedVendorCreditsContact: "applied_vendor_credits,contact", - AppliedVendorCreditsContactAccountingPeriod: "applied_vendor_credits,contact,accounting_period", - AppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_vendor_credits,contact,accounting_period,payment_term", - AppliedVendorCreditsContactCompany: "applied_vendor_credits,contact,company", - AppliedVendorCreditsContactCompanyAccountingPeriod: "applied_vendor_credits,contact,company,accounting_period", - AppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedVendorCreditsContactCompanyEmployee: "applied_vendor_credits,contact,company,employee", - AppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_vendor_credits,contact,company,employee,accounting_period", - AppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_vendor_credits,contact,company,employee,payment_term", - AppliedVendorCreditsContactCompanyPaymentTerm: "applied_vendor_credits,contact,company,payment_term", - AppliedVendorCreditsContactEmployee: "applied_vendor_credits,contact,employee", - AppliedVendorCreditsContactEmployeeAccountingPeriod: "applied_vendor_credits,contact,employee,accounting_period", - AppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedVendorCreditsContactEmployeePaymentTerm: "applied_vendor_credits,contact,employee,payment_term", - AppliedVendorCreditsContactPaymentTerm: "applied_vendor_credits,contact,payment_term", - AppliedVendorCreditsEmployee: "applied_vendor_credits,employee", - AppliedVendorCreditsEmployeeAccountingPeriod: "applied_vendor_credits,employee,accounting_period", - AppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_vendor_credits,employee,accounting_period,payment_term", - AppliedVendorCreditsEmployeePaymentTerm: "applied_vendor_credits,employee,payment_term", - AppliedVendorCreditsPaymentTerm: "applied_vendor_credits,payment_term", - Company: "company", - CompanyAccountingPeriod: "company,accounting_period", - CompanyAccountingPeriodPaymentTerm: "company,accounting_period,payment_term", - CompanyEmployee: "company,employee", - CompanyEmployeeAccountingPeriod: "company,employee,accounting_period", - CompanyEmployeeAccountingPeriodPaymentTerm: "company,employee,accounting_period,payment_term", - CompanyEmployeePaymentTerm: "company,employee,payment_term", - CompanyPaymentTerm: "company,payment_term", - Contact: "contact", - ContactAccountingPeriod: "contact,accounting_period", - ContactAccountingPeriodPaymentTerm: "contact,accounting_period,payment_term", - ContactCompany: "contact,company", - ContactCompanyAccountingPeriod: "contact,company,accounting_period", - ContactCompanyAccountingPeriodPaymentTerm: "contact,company,accounting_period,payment_term", - ContactCompanyEmployee: "contact,company,employee", - ContactCompanyEmployeeAccountingPeriod: "contact,company,employee,accounting_period", - ContactCompanyEmployeeAccountingPeriodPaymentTerm: "contact,company,employee,accounting_period,payment_term", - ContactCompanyEmployeePaymentTerm: "contact,company,employee,payment_term", - ContactCompanyPaymentTerm: "contact,company,payment_term", - ContactEmployee: "contact,employee", - ContactEmployeeAccountingPeriod: "contact,employee,accounting_period", - ContactEmployeeAccountingPeriodPaymentTerm: "contact,employee,accounting_period,payment_term", - ContactEmployeePaymentTerm: "contact,employee,payment_term", - ContactPaymentTerm: "contact,payment_term", - Employee: "employee", - EmployeeAccountingPeriod: "employee,accounting_period", - EmployeeAccountingPeriodPaymentTerm: "employee,accounting_period,payment_term", - EmployeePaymentTerm: "employee,payment_term", - LineItems: "line_items", - LineItemsAccountingPeriod: "line_items,accounting_period", - LineItemsAccountingPeriodPaymentTerm: "line_items,accounting_period,payment_term", - LineItemsAppliedCreditNotes: "line_items,applied_credit_notes", - LineItemsAppliedCreditNotesAccountingPeriod: "line_items,applied_credit_notes,accounting_period", - LineItemsAppliedCreditNotesAccountingPeriodPaymentTerm: - "line_items,applied_credit_notes,accounting_period,payment_term", - LineItemsAppliedCreditNotesAppliedVendorCredits: "line_items,applied_credit_notes,applied_vendor_credits", - LineItemsAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "line_items,applied_credit_notes,applied_vendor_credits,accounting_period", - LineItemsAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "line_items,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - LineItemsAppliedCreditNotesAppliedVendorCreditsCompany: - "line_items,applied_credit_notes,applied_vendor_credits,company", - LineItemsAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period", - LineItemsAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - LineItemsAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "line_items,applied_credit_notes,applied_vendor_credits,company,employee", - LineItemsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - LineItemsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - LineItemsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "line_items,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - LineItemsAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "line_items,applied_credit_notes,applied_vendor_credits,company,payment_term", - LineItemsAppliedCreditNotesAppliedVendorCreditsContact: - "line_items,applied_credit_notes,applied_vendor_credits,contact", - LineItemsAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - LineItemsAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - LineItemsAppliedCreditNotesAppliedVendorCreditsContactCompany: - "line_items,applied_credit_notes,applied_vendor_credits,contact,company", - LineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - LineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - LineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee", - LineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - LineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - LineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - LineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - LineItemsAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "line_items,applied_credit_notes,applied_vendor_credits,contact,employee", - LineItemsAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - LineItemsAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - LineItemsAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "line_items,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - LineItemsAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "line_items,applied_credit_notes,applied_vendor_credits,contact,payment_term", - LineItemsAppliedCreditNotesAppliedVendorCreditsEmployee: - "line_items,applied_credit_notes,applied_vendor_credits,employee", - LineItemsAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - LineItemsAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - LineItemsAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "line_items,applied_credit_notes,applied_vendor_credits,employee,payment_term", - LineItemsAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "line_items,applied_credit_notes,applied_vendor_credits,payment_term", - LineItemsAppliedCreditNotesCompany: "line_items,applied_credit_notes,company", - LineItemsAppliedCreditNotesCompanyAccountingPeriod: "line_items,applied_credit_notes,company,accounting_period", - LineItemsAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "line_items,applied_credit_notes,company,accounting_period,payment_term", - LineItemsAppliedCreditNotesCompanyEmployee: "line_items,applied_credit_notes,company,employee", - LineItemsAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "line_items,applied_credit_notes,company,employee,accounting_period", - LineItemsAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,applied_credit_notes,company,employee,accounting_period,payment_term", - LineItemsAppliedCreditNotesCompanyEmployeePaymentTerm: - "line_items,applied_credit_notes,company,employee,payment_term", - LineItemsAppliedCreditNotesCompanyPaymentTerm: "line_items,applied_credit_notes,company,payment_term", - LineItemsAppliedCreditNotesContact: "line_items,applied_credit_notes,contact", - LineItemsAppliedCreditNotesContactAccountingPeriod: "line_items,applied_credit_notes,contact,accounting_period", - LineItemsAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "line_items,applied_credit_notes,contact,accounting_period,payment_term", - LineItemsAppliedCreditNotesContactCompany: "line_items,applied_credit_notes,contact,company", - LineItemsAppliedCreditNotesContactCompanyAccountingPeriod: - "line_items,applied_credit_notes,contact,company,accounting_period", - LineItemsAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "line_items,applied_credit_notes,contact,company,accounting_period,payment_term", - LineItemsAppliedCreditNotesContactCompanyEmployee: "line_items,applied_credit_notes,contact,company,employee", - LineItemsAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "line_items,applied_credit_notes,contact,company,employee,accounting_period", - LineItemsAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - LineItemsAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "line_items,applied_credit_notes,contact,company,employee,payment_term", - LineItemsAppliedCreditNotesContactCompanyPaymentTerm: - "line_items,applied_credit_notes,contact,company,payment_term", - LineItemsAppliedCreditNotesContactEmployee: "line_items,applied_credit_notes,contact,employee", - LineItemsAppliedCreditNotesContactEmployeeAccountingPeriod: - "line_items,applied_credit_notes,contact,employee,accounting_period", - LineItemsAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "line_items,applied_credit_notes,contact,employee,accounting_period,payment_term", - LineItemsAppliedCreditNotesContactEmployeePaymentTerm: - "line_items,applied_credit_notes,contact,employee,payment_term", - LineItemsAppliedCreditNotesContactPaymentTerm: "line_items,applied_credit_notes,contact,payment_term", - LineItemsAppliedCreditNotesEmployee: "line_items,applied_credit_notes,employee", - LineItemsAppliedCreditNotesEmployeeAccountingPeriod: "line_items,applied_credit_notes,employee,accounting_period", - LineItemsAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "line_items,applied_credit_notes,employee,accounting_period,payment_term", - LineItemsAppliedCreditNotesEmployeePaymentTerm: "line_items,applied_credit_notes,employee,payment_term", - LineItemsAppliedCreditNotesPaymentTerm: "line_items,applied_credit_notes,payment_term", - LineItemsAppliedVendorCredits: "line_items,applied_vendor_credits", - LineItemsAppliedVendorCreditsAccountingPeriod: "line_items,applied_vendor_credits,accounting_period", - LineItemsAppliedVendorCreditsAccountingPeriodPaymentTerm: - "line_items,applied_vendor_credits,accounting_period,payment_term", - LineItemsAppliedVendorCreditsCompany: "line_items,applied_vendor_credits,company", - LineItemsAppliedVendorCreditsCompanyAccountingPeriod: "line_items,applied_vendor_credits,company,accounting_period", - LineItemsAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "line_items,applied_vendor_credits,company,accounting_period,payment_term", - LineItemsAppliedVendorCreditsCompanyEmployee: "line_items,applied_vendor_credits,company,employee", - LineItemsAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "line_items,applied_vendor_credits,company,employee,accounting_period", - LineItemsAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,applied_vendor_credits,company,employee,accounting_period,payment_term", - LineItemsAppliedVendorCreditsCompanyEmployeePaymentTerm: - "line_items,applied_vendor_credits,company,employee,payment_term", - LineItemsAppliedVendorCreditsCompanyPaymentTerm: "line_items,applied_vendor_credits,company,payment_term", - LineItemsAppliedVendorCreditsContact: "line_items,applied_vendor_credits,contact", - LineItemsAppliedVendorCreditsContactAccountingPeriod: "line_items,applied_vendor_credits,contact,accounting_period", - LineItemsAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "line_items,applied_vendor_credits,contact,accounting_period,payment_term", - LineItemsAppliedVendorCreditsContactCompany: "line_items,applied_vendor_credits,contact,company", - LineItemsAppliedVendorCreditsContactCompanyAccountingPeriod: - "line_items,applied_vendor_credits,contact,company,accounting_period", - LineItemsAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "line_items,applied_vendor_credits,contact,company,accounting_period,payment_term", - LineItemsAppliedVendorCreditsContactCompanyEmployee: "line_items,applied_vendor_credits,contact,company,employee", - LineItemsAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "line_items,applied_vendor_credits,contact,company,employee,accounting_period", - LineItemsAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - LineItemsAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "line_items,applied_vendor_credits,contact,company,employee,payment_term", - LineItemsAppliedVendorCreditsContactCompanyPaymentTerm: - "line_items,applied_vendor_credits,contact,company,payment_term", - LineItemsAppliedVendorCreditsContactEmployee: "line_items,applied_vendor_credits,contact,employee", - LineItemsAppliedVendorCreditsContactEmployeeAccountingPeriod: - "line_items,applied_vendor_credits,contact,employee,accounting_period", - LineItemsAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "line_items,applied_vendor_credits,contact,employee,accounting_period,payment_term", - LineItemsAppliedVendorCreditsContactEmployeePaymentTerm: - "line_items,applied_vendor_credits,contact,employee,payment_term", - LineItemsAppliedVendorCreditsContactPaymentTerm: "line_items,applied_vendor_credits,contact,payment_term", - LineItemsAppliedVendorCreditsEmployee: "line_items,applied_vendor_credits,employee", - LineItemsAppliedVendorCreditsEmployeeAccountingPeriod: - "line_items,applied_vendor_credits,employee,accounting_period", - LineItemsAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "line_items,applied_vendor_credits,employee,accounting_period,payment_term", - LineItemsAppliedVendorCreditsEmployeePaymentTerm: "line_items,applied_vendor_credits,employee,payment_term", - LineItemsAppliedVendorCreditsPaymentTerm: "line_items,applied_vendor_credits,payment_term", - LineItemsCompany: "line_items,company", - LineItemsCompanyAccountingPeriod: "line_items,company,accounting_period", - LineItemsCompanyAccountingPeriodPaymentTerm: "line_items,company,accounting_period,payment_term", - LineItemsCompanyEmployee: "line_items,company,employee", - LineItemsCompanyEmployeeAccountingPeriod: "line_items,company,employee,accounting_period", - LineItemsCompanyEmployeeAccountingPeriodPaymentTerm: "line_items,company,employee,accounting_period,payment_term", - LineItemsCompanyEmployeePaymentTerm: "line_items,company,employee,payment_term", - LineItemsCompanyPaymentTerm: "line_items,company,payment_term", - LineItemsContact: "line_items,contact", - LineItemsContactAccountingPeriod: "line_items,contact,accounting_period", - LineItemsContactAccountingPeriodPaymentTerm: "line_items,contact,accounting_period,payment_term", - LineItemsContactCompany: "line_items,contact,company", - LineItemsContactCompanyAccountingPeriod: "line_items,contact,company,accounting_period", - LineItemsContactCompanyAccountingPeriodPaymentTerm: "line_items,contact,company,accounting_period,payment_term", - LineItemsContactCompanyEmployee: "line_items,contact,company,employee", - LineItemsContactCompanyEmployeeAccountingPeriod: "line_items,contact,company,employee,accounting_period", - LineItemsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,contact,company,employee,accounting_period,payment_term", - LineItemsContactCompanyEmployeePaymentTerm: "line_items,contact,company,employee,payment_term", - LineItemsContactCompanyPaymentTerm: "line_items,contact,company,payment_term", - LineItemsContactEmployee: "line_items,contact,employee", - LineItemsContactEmployeeAccountingPeriod: "line_items,contact,employee,accounting_period", - LineItemsContactEmployeeAccountingPeriodPaymentTerm: "line_items,contact,employee,accounting_period,payment_term", - LineItemsContactEmployeePaymentTerm: "line_items,contact,employee,payment_term", - LineItemsContactPaymentTerm: "line_items,contact,payment_term", - LineItemsEmployee: "line_items,employee", - LineItemsEmployeeAccountingPeriod: "line_items,employee,accounting_period", - LineItemsEmployeeAccountingPeriodPaymentTerm: "line_items,employee,accounting_period,payment_term", - LineItemsEmployeePaymentTerm: "line_items,employee,payment_term", - LineItemsPaymentTerm: "line_items,payment_term", - LineItemsPurchaseOrders: "line_items,purchase_orders", - LineItemsPurchaseOrdersAccountingPeriod: "line_items,purchase_orders,accounting_period", - LineItemsPurchaseOrdersAccountingPeriodPaymentTerm: "line_items,purchase_orders,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotes: "line_items,purchase_orders,applied_credit_notes", - LineItemsPurchaseOrdersAppliedCreditNotesAccountingPeriod: - "line_items,purchase_orders,applied_credit_notes,accounting_period", - LineItemsPurchaseOrdersAppliedCreditNotesAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCredits: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompany: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContact: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompany: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployee: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesCompany: "line_items,purchase_orders,applied_credit_notes,company", - LineItemsPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriod: - "line_items,purchase_orders,applied_credit_notes,company,accounting_period", - LineItemsPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesCompanyEmployee: - "line_items,purchase_orders,applied_credit_notes,company,employee", - LineItemsPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period", - LineItemsPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesCompanyEmployeePaymentTerm: - "line_items,purchase_orders,applied_credit_notes,company,employee,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesCompanyPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,company,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesContact: "line_items,purchase_orders,applied_credit_notes,contact", - LineItemsPurchaseOrdersAppliedCreditNotesContactAccountingPeriod: - "line_items,purchase_orders,applied_credit_notes,contact,accounting_period", - LineItemsPurchaseOrdersAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesContactCompany: - "line_items,purchase_orders,applied_credit_notes,contact,company", - LineItemsPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriod: - "line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period", - LineItemsPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesContactCompanyEmployee: - "line_items,purchase_orders,applied_credit_notes,contact,company,employee", - LineItemsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - LineItemsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "line_items,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesContactCompanyPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,contact,company,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesContactEmployee: - "line_items,purchase_orders,applied_credit_notes,contact,employee", - LineItemsPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriod: - "line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - LineItemsPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesContactEmployeePaymentTerm: - "line_items,purchase_orders,applied_credit_notes,contact,employee,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesContactPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,contact,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesEmployee: "line_items,purchase_orders,applied_credit_notes,employee", - LineItemsPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriod: - "line_items,purchase_orders,applied_credit_notes,employee,accounting_period", - LineItemsPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesEmployeePaymentTerm: - "line_items,purchase_orders,applied_credit_notes,employee,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,payment_term", - LineItemsPurchaseOrdersAppliedVendorCredits: "line_items,purchase_orders,applied_vendor_credits", - LineItemsPurchaseOrdersAppliedVendorCreditsAccountingPeriod: - "line_items,purchase_orders,applied_vendor_credits,accounting_period", - LineItemsPurchaseOrdersAppliedVendorCreditsAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedVendorCreditsCompany: "line_items,purchase_orders,applied_vendor_credits,company", - LineItemsPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriod: - "line_items,purchase_orders,applied_vendor_credits,company,accounting_period", - LineItemsPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedVendorCreditsCompanyEmployee: - "line_items,purchase_orders,applied_vendor_credits,company,employee", - LineItemsPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - LineItemsPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedVendorCreditsCompanyEmployeePaymentTerm: - "line_items,purchase_orders,applied_vendor_credits,company,employee,payment_term", - LineItemsPurchaseOrdersAppliedVendorCreditsCompanyPaymentTerm: - "line_items,purchase_orders,applied_vendor_credits,company,payment_term", - LineItemsPurchaseOrdersAppliedVendorCreditsContact: "line_items,purchase_orders,applied_vendor_credits,contact", - LineItemsPurchaseOrdersAppliedVendorCreditsContactAccountingPeriod: - "line_items,purchase_orders,applied_vendor_credits,contact,accounting_period", - LineItemsPurchaseOrdersAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedVendorCreditsContactCompany: - "line_items,purchase_orders,applied_vendor_credits,contact,company", - LineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriod: - "line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - LineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployee: - "line_items,purchase_orders,applied_vendor_credits,contact,company,employee", - LineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - LineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "line_items,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - LineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyPaymentTerm: - "line_items,purchase_orders,applied_vendor_credits,contact,company,payment_term", - LineItemsPurchaseOrdersAppliedVendorCreditsContactEmployee: - "line_items,purchase_orders,applied_vendor_credits,contact,employee", - LineItemsPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriod: - "line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - LineItemsPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedVendorCreditsContactEmployeePaymentTerm: - "line_items,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - LineItemsPurchaseOrdersAppliedVendorCreditsContactPaymentTerm: - "line_items,purchase_orders,applied_vendor_credits,contact,payment_term", - LineItemsPurchaseOrdersAppliedVendorCreditsEmployee: "line_items,purchase_orders,applied_vendor_credits,employee", - LineItemsPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriod: - "line_items,purchase_orders,applied_vendor_credits,employee,accounting_period", - LineItemsPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedVendorCreditsEmployeePaymentTerm: - "line_items,purchase_orders,applied_vendor_credits,employee,payment_term", - LineItemsPurchaseOrdersAppliedVendorCreditsPaymentTerm: - "line_items,purchase_orders,applied_vendor_credits,payment_term", - LineItemsPurchaseOrdersCompany: "line_items,purchase_orders,company", - LineItemsPurchaseOrdersCompanyAccountingPeriod: "line_items,purchase_orders,company,accounting_period", - LineItemsPurchaseOrdersCompanyAccountingPeriodPaymentTerm: - "line_items,purchase_orders,company,accounting_period,payment_term", - LineItemsPurchaseOrdersCompanyEmployee: "line_items,purchase_orders,company,employee", - LineItemsPurchaseOrdersCompanyEmployeeAccountingPeriod: - "line_items,purchase_orders,company,employee,accounting_period", - LineItemsPurchaseOrdersCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,purchase_orders,company,employee,accounting_period,payment_term", - LineItemsPurchaseOrdersCompanyEmployeePaymentTerm: "line_items,purchase_orders,company,employee,payment_term", - LineItemsPurchaseOrdersCompanyPaymentTerm: "line_items,purchase_orders,company,payment_term", - LineItemsPurchaseOrdersContact: "line_items,purchase_orders,contact", - LineItemsPurchaseOrdersContactAccountingPeriod: "line_items,purchase_orders,contact,accounting_period", - LineItemsPurchaseOrdersContactAccountingPeriodPaymentTerm: - "line_items,purchase_orders,contact,accounting_period,payment_term", - LineItemsPurchaseOrdersContactCompany: "line_items,purchase_orders,contact,company", - LineItemsPurchaseOrdersContactCompanyAccountingPeriod: - "line_items,purchase_orders,contact,company,accounting_period", - LineItemsPurchaseOrdersContactCompanyAccountingPeriodPaymentTerm: - "line_items,purchase_orders,contact,company,accounting_period,payment_term", - LineItemsPurchaseOrdersContactCompanyEmployee: "line_items,purchase_orders,contact,company,employee", - LineItemsPurchaseOrdersContactCompanyEmployeeAccountingPeriod: - "line_items,purchase_orders,contact,company,employee,accounting_period", - LineItemsPurchaseOrdersContactCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,purchase_orders,contact,company,employee,accounting_period,payment_term", - LineItemsPurchaseOrdersContactCompanyEmployeePaymentTerm: - "line_items,purchase_orders,contact,company,employee,payment_term", - LineItemsPurchaseOrdersContactCompanyPaymentTerm: "line_items,purchase_orders,contact,company,payment_term", - LineItemsPurchaseOrdersContactEmployee: "line_items,purchase_orders,contact,employee", - LineItemsPurchaseOrdersContactEmployeeAccountingPeriod: - "line_items,purchase_orders,contact,employee,accounting_period", - LineItemsPurchaseOrdersContactEmployeeAccountingPeriodPaymentTerm: - "line_items,purchase_orders,contact,employee,accounting_period,payment_term", - LineItemsPurchaseOrdersContactEmployeePaymentTerm: "line_items,purchase_orders,contact,employee,payment_term", - LineItemsPurchaseOrdersContactPaymentTerm: "line_items,purchase_orders,contact,payment_term", - LineItemsPurchaseOrdersEmployee: "line_items,purchase_orders,employee", - LineItemsPurchaseOrdersEmployeeAccountingPeriod: "line_items,purchase_orders,employee,accounting_period", - LineItemsPurchaseOrdersEmployeeAccountingPeriodPaymentTerm: - "line_items,purchase_orders,employee,accounting_period,payment_term", - LineItemsPurchaseOrdersEmployeePaymentTerm: "line_items,purchase_orders,employee,payment_term", - LineItemsPurchaseOrdersPaymentTerm: "line_items,purchase_orders,payment_term", - LineItemsTrackingCategories: "line_items,tracking_categories", - LineItemsTrackingCategoriesAccountingPeriod: "line_items,tracking_categories,accounting_period", - LineItemsTrackingCategoriesAccountingPeriodPaymentTerm: - "line_items,tracking_categories,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotes: "line_items,tracking_categories,applied_credit_notes", - LineItemsTrackingCategoriesAppliedCreditNotesAccountingPeriod: - "line_items,tracking_categories,applied_credit_notes,accounting_period", - LineItemsTrackingCategoriesAppliedCreditNotesAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCredits: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompany: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContact: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompany: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployee: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesCompany: "line_items,tracking_categories,applied_credit_notes,company", - LineItemsTrackingCategoriesAppliedCreditNotesCompanyAccountingPeriod: - "line_items,tracking_categories,applied_credit_notes,company,accounting_period", - LineItemsTrackingCategoriesAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,company,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesCompanyEmployee: - "line_items,tracking_categories,applied_credit_notes,company,employee", - LineItemsTrackingCategoriesAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period", - LineItemsTrackingCategoriesAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesCompanyEmployeePaymentTerm: - "line_items,tracking_categories,applied_credit_notes,company,employee,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesCompanyPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,company,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesContact: "line_items,tracking_categories,applied_credit_notes,contact", - LineItemsTrackingCategoriesAppliedCreditNotesContactAccountingPeriod: - "line_items,tracking_categories,applied_credit_notes,contact,accounting_period", - LineItemsTrackingCategoriesAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesContactCompany: - "line_items,tracking_categories,applied_credit_notes,contact,company", - LineItemsTrackingCategoriesAppliedCreditNotesContactCompanyAccountingPeriod: - "line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period", - LineItemsTrackingCategoriesAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesContactCompanyEmployee: - "line_items,tracking_categories,applied_credit_notes,contact,company,employee", - LineItemsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period", - LineItemsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "line_items,tracking_categories,applied_credit_notes,contact,company,employee,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesContactCompanyPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,contact,company,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesContactEmployee: - "line_items,tracking_categories,applied_credit_notes,contact,employee", - LineItemsTrackingCategoriesAppliedCreditNotesContactEmployeeAccountingPeriod: - "line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period", - LineItemsTrackingCategoriesAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesContactEmployeePaymentTerm: - "line_items,tracking_categories,applied_credit_notes,contact,employee,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesContactPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,contact,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesEmployee: - "line_items,tracking_categories,applied_credit_notes,employee", - LineItemsTrackingCategoriesAppliedCreditNotesEmployeeAccountingPeriod: - "line_items,tracking_categories,applied_credit_notes,employee,accounting_period", - LineItemsTrackingCategoriesAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesEmployeePaymentTerm: - "line_items,tracking_categories,applied_credit_notes,employee,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,payment_term", - LineItemsTrackingCategoriesAppliedVendorCredits: "line_items,tracking_categories,applied_vendor_credits", - LineItemsTrackingCategoriesAppliedVendorCreditsAccountingPeriod: - "line_items,tracking_categories,applied_vendor_credits,accounting_period", - LineItemsTrackingCategoriesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_vendor_credits,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedVendorCreditsCompany: - "line_items,tracking_categories,applied_vendor_credits,company", - LineItemsTrackingCategoriesAppliedVendorCreditsCompanyAccountingPeriod: - "line_items,tracking_categories,applied_vendor_credits,company,accounting_period", - LineItemsTrackingCategoriesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedVendorCreditsCompanyEmployee: - "line_items,tracking_categories,applied_vendor_credits,company,employee", - LineItemsTrackingCategoriesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period", - LineItemsTrackingCategoriesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "line_items,tracking_categories,applied_vendor_credits,company,employee,payment_term", - LineItemsTrackingCategoriesAppliedVendorCreditsCompanyPaymentTerm: - "line_items,tracking_categories,applied_vendor_credits,company,payment_term", - LineItemsTrackingCategoriesAppliedVendorCreditsContact: - "line_items,tracking_categories,applied_vendor_credits,contact", - LineItemsTrackingCategoriesAppliedVendorCreditsContactAccountingPeriod: - "line_items,tracking_categories,applied_vendor_credits,contact,accounting_period", - LineItemsTrackingCategoriesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedVendorCreditsContactCompany: - "line_items,tracking_categories,applied_vendor_credits,contact,company", - LineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyAccountingPeriod: - "line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period", - LineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployee: - "line_items,tracking_categories,applied_vendor_credits,contact,company,employee", - LineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period", - LineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "line_items,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term", - LineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyPaymentTerm: - "line_items,tracking_categories,applied_vendor_credits,contact,company,payment_term", - LineItemsTrackingCategoriesAppliedVendorCreditsContactEmployee: - "line_items,tracking_categories,applied_vendor_credits,contact,employee", - LineItemsTrackingCategoriesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period", - LineItemsTrackingCategoriesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedVendorCreditsContactEmployeePaymentTerm: - "line_items,tracking_categories,applied_vendor_credits,contact,employee,payment_term", - LineItemsTrackingCategoriesAppliedVendorCreditsContactPaymentTerm: - "line_items,tracking_categories,applied_vendor_credits,contact,payment_term", - LineItemsTrackingCategoriesAppliedVendorCreditsEmployee: - "line_items,tracking_categories,applied_vendor_credits,employee", - LineItemsTrackingCategoriesAppliedVendorCreditsEmployeeAccountingPeriod: - "line_items,tracking_categories,applied_vendor_credits,employee,accounting_period", - LineItemsTrackingCategoriesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedVendorCreditsEmployeePaymentTerm: - "line_items,tracking_categories,applied_vendor_credits,employee,payment_term", - LineItemsTrackingCategoriesAppliedVendorCreditsPaymentTerm: - "line_items,tracking_categories,applied_vendor_credits,payment_term", - LineItemsTrackingCategoriesCompany: "line_items,tracking_categories,company", - LineItemsTrackingCategoriesCompanyAccountingPeriod: "line_items,tracking_categories,company,accounting_period", - LineItemsTrackingCategoriesCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,company,accounting_period,payment_term", - LineItemsTrackingCategoriesCompanyEmployee: "line_items,tracking_categories,company,employee", - LineItemsTrackingCategoriesCompanyEmployeeAccountingPeriod: - "line_items,tracking_categories,company,employee,accounting_period", - LineItemsTrackingCategoriesCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,company,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesCompanyEmployeePaymentTerm: - "line_items,tracking_categories,company,employee,payment_term", - LineItemsTrackingCategoriesCompanyPaymentTerm: "line_items,tracking_categories,company,payment_term", - LineItemsTrackingCategoriesContact: "line_items,tracking_categories,contact", - LineItemsTrackingCategoriesContactAccountingPeriod: "line_items,tracking_categories,contact,accounting_period", - LineItemsTrackingCategoriesContactAccountingPeriodPaymentTerm: - "line_items,tracking_categories,contact,accounting_period,payment_term", - LineItemsTrackingCategoriesContactCompany: "line_items,tracking_categories,contact,company", - LineItemsTrackingCategoriesContactCompanyAccountingPeriod: - "line_items,tracking_categories,contact,company,accounting_period", - LineItemsTrackingCategoriesContactCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,contact,company,accounting_period,payment_term", - LineItemsTrackingCategoriesContactCompanyEmployee: "line_items,tracking_categories,contact,company,employee", - LineItemsTrackingCategoriesContactCompanyEmployeeAccountingPeriod: - "line_items,tracking_categories,contact,company,employee,accounting_period", - LineItemsTrackingCategoriesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,contact,company,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesContactCompanyEmployeePaymentTerm: - "line_items,tracking_categories,contact,company,employee,payment_term", - LineItemsTrackingCategoriesContactCompanyPaymentTerm: "line_items,tracking_categories,contact,company,payment_term", - LineItemsTrackingCategoriesContactEmployee: "line_items,tracking_categories,contact,employee", - LineItemsTrackingCategoriesContactEmployeeAccountingPeriod: - "line_items,tracking_categories,contact,employee,accounting_period", - LineItemsTrackingCategoriesContactEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,contact,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesContactEmployeePaymentTerm: - "line_items,tracking_categories,contact,employee,payment_term", - LineItemsTrackingCategoriesContactPaymentTerm: "line_items,tracking_categories,contact,payment_term", - LineItemsTrackingCategoriesEmployee: "line_items,tracking_categories,employee", - LineItemsTrackingCategoriesEmployeeAccountingPeriod: "line_items,tracking_categories,employee,accounting_period", - LineItemsTrackingCategoriesEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesEmployeePaymentTerm: "line_items,tracking_categories,employee,payment_term", - LineItemsTrackingCategoriesPaymentTerm: "line_items,tracking_categories,payment_term", - LineItemsTrackingCategoriesPurchaseOrders: "line_items,tracking_categories,purchase_orders", - LineItemsTrackingCategoriesPurchaseOrdersAccountingPeriod: - "line_items,tracking_categories,purchase_orders,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotes: - "line_items,tracking_categories,purchase_orders,applied_credit_notes", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCredits: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompany: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContact: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompany: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployee: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompany: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployee: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeePaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContact: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompany: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployee: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployee: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeePaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployee: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,employee", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeePaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCredits: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompany: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployee: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeePaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContact: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompany: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployee: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployee: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeePaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployee: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeePaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersCompany: "line_items,tracking_categories,purchase_orders,company", - LineItemsTrackingCategoriesPurchaseOrdersCompanyAccountingPeriod: - "line_items,tracking_categories,purchase_orders,company,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,company,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersCompanyEmployee: - "line_items,tracking_categories,purchase_orders,company,employee", - LineItemsTrackingCategoriesPurchaseOrdersCompanyEmployeeAccountingPeriod: - "line_items,tracking_categories,purchase_orders,company,employee,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersCompanyEmployeePaymentTerm: - "line_items,tracking_categories,purchase_orders,company,employee,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersCompanyPaymentTerm: - "line_items,tracking_categories,purchase_orders,company,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersContact: "line_items,tracking_categories,purchase_orders,contact", - LineItemsTrackingCategoriesPurchaseOrdersContactAccountingPeriod: - "line_items,tracking_categories,purchase_orders,contact,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersContactAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,contact,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersContactCompany: - "line_items,tracking_categories,purchase_orders,contact,company", - LineItemsTrackingCategoriesPurchaseOrdersContactCompanyAccountingPeriod: - "line_items,tracking_categories,purchase_orders,contact,company,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersContactCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersContactCompanyEmployee: - "line_items,tracking_categories,purchase_orders,contact,company,employee", - LineItemsTrackingCategoriesPurchaseOrdersContactCompanyEmployeeAccountingPeriod: - "line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersContactCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersContactCompanyEmployeePaymentTerm: - "line_items,tracking_categories,purchase_orders,contact,company,employee,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersContactCompanyPaymentTerm: - "line_items,tracking_categories,purchase_orders,contact,company,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersContactEmployee: - "line_items,tracking_categories,purchase_orders,contact,employee", - LineItemsTrackingCategoriesPurchaseOrdersContactEmployeeAccountingPeriod: - "line_items,tracking_categories,purchase_orders,contact,employee,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersContactEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersContactEmployeePaymentTerm: - "line_items,tracking_categories,purchase_orders,contact,employee,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersContactPaymentTerm: - "line_items,tracking_categories,purchase_orders,contact,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersEmployee: "line_items,tracking_categories,purchase_orders,employee", - LineItemsTrackingCategoriesPurchaseOrdersEmployeeAccountingPeriod: - "line_items,tracking_categories,purchase_orders,employee,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersEmployeePaymentTerm: - "line_items,tracking_categories,purchase_orders,employee,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersPaymentTerm: "line_items,tracking_categories,purchase_orders,payment_term", - PaymentTerm: "payment_term", - Payments: "payments", - PaymentsAccountingPeriod: "payments,accounting_period", - PaymentsAccountingPeriodPaymentTerm: "payments,accounting_period,payment_term", - PaymentsAppliedCreditNotes: "payments,applied_credit_notes", - PaymentsAppliedCreditNotesAccountingPeriod: "payments,applied_credit_notes,accounting_period", - PaymentsAppliedCreditNotesAccountingPeriodPaymentTerm: - "payments,applied_credit_notes,accounting_period,payment_term", - PaymentsAppliedCreditNotesAppliedVendorCredits: "payments,applied_credit_notes,applied_vendor_credits", - PaymentsAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "payments,applied_credit_notes,applied_vendor_credits,accounting_period", - PaymentsAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedCreditNotesAppliedVendorCreditsCompany: - "payments,applied_credit_notes,applied_vendor_credits,company", - PaymentsAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PaymentsAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "payments,applied_credit_notes,applied_vendor_credits,company,employee", - PaymentsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_credit_notes,applied_vendor_credits,company,payment_term", - PaymentsAppliedCreditNotesAppliedVendorCreditsContact: - "payments,applied_credit_notes,applied_vendor_credits,contact", - PaymentsAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedCreditNotesAppliedVendorCreditsContactCompany: - "payments,applied_credit_notes,applied_vendor_credits,contact,company", - PaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "payments,applied_credit_notes,applied_vendor_credits,contact,employee", - PaymentsAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "payments,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PaymentsAppliedCreditNotesAppliedVendorCreditsEmployee: - "payments,applied_credit_notes,applied_vendor_credits,employee", - PaymentsAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PaymentsAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "payments,applied_credit_notes,applied_vendor_credits,payment_term", - PaymentsAppliedCreditNotesCompany: "payments,applied_credit_notes,company", - PaymentsAppliedCreditNotesCompanyAccountingPeriod: "payments,applied_credit_notes,company,accounting_period", - PaymentsAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "payments,applied_credit_notes,company,accounting_period,payment_term", - PaymentsAppliedCreditNotesCompanyEmployee: "payments,applied_credit_notes,company,employee", - PaymentsAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "payments,applied_credit_notes,company,employee,accounting_period", - PaymentsAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_credit_notes,company,employee,accounting_period,payment_term", - PaymentsAppliedCreditNotesCompanyEmployeePaymentTerm: "payments,applied_credit_notes,company,employee,payment_term", - PaymentsAppliedCreditNotesCompanyPaymentTerm: "payments,applied_credit_notes,company,payment_term", - PaymentsAppliedCreditNotesContact: "payments,applied_credit_notes,contact", - PaymentsAppliedCreditNotesContactAccountingPeriod: "payments,applied_credit_notes,contact,accounting_period", - PaymentsAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "payments,applied_credit_notes,contact,accounting_period,payment_term", - PaymentsAppliedCreditNotesContactCompany: "payments,applied_credit_notes,contact,company", - PaymentsAppliedCreditNotesContactCompanyAccountingPeriod: - "payments,applied_credit_notes,contact,company,accounting_period", - PaymentsAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_credit_notes,contact,company,accounting_period,payment_term", - PaymentsAppliedCreditNotesContactCompanyEmployee: "payments,applied_credit_notes,contact,company,employee", - PaymentsAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "payments,applied_credit_notes,contact,company,employee,accounting_period", - PaymentsAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "payments,applied_credit_notes,contact,company,employee,payment_term", - PaymentsAppliedCreditNotesContactCompanyPaymentTerm: "payments,applied_credit_notes,contact,company,payment_term", - PaymentsAppliedCreditNotesContactEmployee: "payments,applied_credit_notes,contact,employee", - PaymentsAppliedCreditNotesContactEmployeeAccountingPeriod: - "payments,applied_credit_notes,contact,employee,accounting_period", - PaymentsAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_credit_notes,contact,employee,accounting_period,payment_term", - PaymentsAppliedCreditNotesContactEmployeePaymentTerm: "payments,applied_credit_notes,contact,employee,payment_term", - PaymentsAppliedCreditNotesContactPaymentTerm: "payments,applied_credit_notes,contact,payment_term", - PaymentsAppliedCreditNotesEmployee: "payments,applied_credit_notes,employee", - PaymentsAppliedCreditNotesEmployeeAccountingPeriod: "payments,applied_credit_notes,employee,accounting_period", - PaymentsAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "payments,applied_credit_notes,employee,accounting_period,payment_term", - PaymentsAppliedCreditNotesEmployeePaymentTerm: "payments,applied_credit_notes,employee,payment_term", - PaymentsAppliedCreditNotesPaymentTerm: "payments,applied_credit_notes,payment_term", - PaymentsAppliedPayments: "payments,applied_payments", - PaymentsAppliedPaymentsAccountingPeriod: "payments,applied_payments,accounting_period", - PaymentsAppliedPaymentsAccountingPeriodPaymentTerm: "payments,applied_payments,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotes: "payments,applied_payments,applied_credit_notes", - PaymentsAppliedPaymentsAppliedCreditNotesAccountingPeriod: - "payments,applied_payments,applied_credit_notes,accounting_period", - PaymentsAppliedPaymentsAppliedCreditNotesAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_credit_notes,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCredits: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,accounting_period", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsCompany: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,employee", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContact: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactCompany: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsEmployee: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,employee", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesCompany: "payments,applied_payments,applied_credit_notes,company", - PaymentsAppliedPaymentsAppliedCreditNotesCompanyAccountingPeriod: - "payments,applied_payments,applied_credit_notes,company,accounting_period", - PaymentsAppliedPaymentsAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_credit_notes,company,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesCompanyEmployee: - "payments,applied_payments,applied_credit_notes,company,employee", - PaymentsAppliedPaymentsAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "payments,applied_payments,applied_credit_notes,company,employee,accounting_period", - PaymentsAppliedPaymentsAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_credit_notes,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesCompanyEmployeePaymentTerm: - "payments,applied_payments,applied_credit_notes,company,employee,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesCompanyPaymentTerm: - "payments,applied_payments,applied_credit_notes,company,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesContact: "payments,applied_payments,applied_credit_notes,contact", - PaymentsAppliedPaymentsAppliedCreditNotesContactAccountingPeriod: - "payments,applied_payments,applied_credit_notes,contact,accounting_period", - PaymentsAppliedPaymentsAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_credit_notes,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesContactCompany: - "payments,applied_payments,applied_credit_notes,contact,company", - PaymentsAppliedPaymentsAppliedCreditNotesContactCompanyAccountingPeriod: - "payments,applied_payments,applied_credit_notes,contact,company,accounting_period", - PaymentsAppliedPaymentsAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_credit_notes,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesContactCompanyEmployee: - "payments,applied_payments,applied_credit_notes,contact,company,employee", - PaymentsAppliedPaymentsAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,applied_credit_notes,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "payments,applied_payments,applied_credit_notes,contact,company,employee,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesContactCompanyPaymentTerm: - "payments,applied_payments,applied_credit_notes,contact,company,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesContactEmployee: - "payments,applied_payments,applied_credit_notes,contact,employee", - PaymentsAppliedPaymentsAppliedCreditNotesContactEmployeeAccountingPeriod: - "payments,applied_payments,applied_credit_notes,contact,employee,accounting_period", - PaymentsAppliedPaymentsAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_credit_notes,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesContactEmployeePaymentTerm: - "payments,applied_payments,applied_credit_notes,contact,employee,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesContactPaymentTerm: - "payments,applied_payments,applied_credit_notes,contact,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesEmployee: "payments,applied_payments,applied_credit_notes,employee", - PaymentsAppliedPaymentsAppliedCreditNotesEmployeeAccountingPeriod: - "payments,applied_payments,applied_credit_notes,employee,accounting_period", - PaymentsAppliedPaymentsAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_credit_notes,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesEmployeePaymentTerm: - "payments,applied_payments,applied_credit_notes,employee,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesPaymentTerm: "payments,applied_payments,applied_credit_notes,payment_term", - PaymentsAppliedPaymentsAppliedVendorCredits: "payments,applied_payments,applied_vendor_credits", - PaymentsAppliedPaymentsAppliedVendorCreditsAccountingPeriod: - "payments,applied_payments,applied_vendor_credits,accounting_period", - PaymentsAppliedPaymentsAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedVendorCreditsCompany: "payments,applied_payments,applied_vendor_credits,company", - PaymentsAppliedPaymentsAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_payments,applied_vendor_credits,company,accounting_period", - PaymentsAppliedPaymentsAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedVendorCreditsCompanyEmployee: - "payments,applied_payments,applied_vendor_credits,company,employee", - PaymentsAppliedPaymentsAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedPaymentsAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_payments,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedPaymentsAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_payments,applied_vendor_credits,company,payment_term", - PaymentsAppliedPaymentsAppliedVendorCreditsContact: "payments,applied_payments,applied_vendor_credits,contact", - PaymentsAppliedPaymentsAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_payments,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedPaymentsAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedVendorCreditsContactCompany: - "payments,applied_payments,applied_vendor_credits,contact,company", - PaymentsAppliedPaymentsAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_payments,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedPaymentsAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_payments,applied_vendor_credits,contact,company,employee", - PaymentsAppliedPaymentsAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedPaymentsAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_payments,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedPaymentsAppliedVendorCreditsContactEmployee: - "payments,applied_payments,applied_vendor_credits,contact,employee", - PaymentsAppliedPaymentsAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_payments,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedPaymentsAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_payments,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedPaymentsAppliedVendorCreditsContactPaymentTerm: - "payments,applied_payments,applied_vendor_credits,contact,payment_term", - PaymentsAppliedPaymentsAppliedVendorCreditsEmployee: "payments,applied_payments,applied_vendor_credits,employee", - PaymentsAppliedPaymentsAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_payments,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedPaymentsAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_payments,applied_vendor_credits,employee,payment_term", - PaymentsAppliedPaymentsAppliedVendorCreditsPaymentTerm: - "payments,applied_payments,applied_vendor_credits,payment_term", - PaymentsAppliedPaymentsCompany: "payments,applied_payments,company", - PaymentsAppliedPaymentsCompanyAccountingPeriod: "payments,applied_payments,company,accounting_period", - PaymentsAppliedPaymentsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,company,accounting_period,payment_term", - PaymentsAppliedPaymentsCompanyEmployee: "payments,applied_payments,company,employee", - PaymentsAppliedPaymentsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,company,employee,accounting_period", - PaymentsAppliedPaymentsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsCompanyEmployeePaymentTerm: "payments,applied_payments,company,employee,payment_term", - PaymentsAppliedPaymentsCompanyPaymentTerm: "payments,applied_payments,company,payment_term", - PaymentsAppliedPaymentsContact: "payments,applied_payments,contact", - PaymentsAppliedPaymentsContactAccountingPeriod: "payments,applied_payments,contact,accounting_period", - PaymentsAppliedPaymentsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsContactCompany: "payments,applied_payments,contact,company", - PaymentsAppliedPaymentsContactCompanyAccountingPeriod: - "payments,applied_payments,contact,company,accounting_period", - PaymentsAppliedPaymentsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsContactCompanyEmployee: "payments,applied_payments,contact,company,employee", - PaymentsAppliedPaymentsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,contact,company,employee,payment_term", - PaymentsAppliedPaymentsContactCompanyPaymentTerm: "payments,applied_payments,contact,company,payment_term", - PaymentsAppliedPaymentsContactEmployee: "payments,applied_payments,contact,employee", - PaymentsAppliedPaymentsContactEmployeeAccountingPeriod: - "payments,applied_payments,contact,employee,accounting_period", - PaymentsAppliedPaymentsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsContactEmployeePaymentTerm: "payments,applied_payments,contact,employee,payment_term", - PaymentsAppliedPaymentsContactPaymentTerm: "payments,applied_payments,contact,payment_term", - PaymentsAppliedPaymentsEmployee: "payments,applied_payments,employee", - PaymentsAppliedPaymentsEmployeeAccountingPeriod: "payments,applied_payments,employee,accounting_period", - PaymentsAppliedPaymentsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsEmployeePaymentTerm: "payments,applied_payments,employee,payment_term", - PaymentsAppliedPaymentsLineItems: "payments,applied_payments,line_items", - PaymentsAppliedPaymentsLineItemsAccountingPeriod: "payments,applied_payments,line_items,accounting_period", - PaymentsAppliedPaymentsLineItemsAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotes: "payments,applied_payments,line_items,applied_credit_notes", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAccountingPeriod: - "payments,applied_payments,line_items,applied_credit_notes,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCredits: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompany: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContact: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompany: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsEmployee: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesCompany: - "payments,applied_payments,line_items,applied_credit_notes,company", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesCompanyAccountingPeriod: - "payments,applied_payments,line_items,applied_credit_notes,company,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesCompanyEmployee: - "payments,applied_payments,line_items,applied_credit_notes,company,employee", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,applied_credit_notes,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesCompanyPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,company,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesContact: - "payments,applied_payments,line_items,applied_credit_notes,contact", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesContactAccountingPeriod: - "payments,applied_payments,line_items,applied_credit_notes,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesContactCompany: - "payments,applied_payments,line_items,applied_credit_notes,contact,company", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,applied_credit_notes,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesContactCompanyEmployee: - "payments,applied_payments,line_items,applied_credit_notes,contact,company,employee", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,applied_credit_notes,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,contact,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesContactCompanyPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,contact,company,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesContactEmployee: - "payments,applied_payments,line_items,applied_credit_notes,contact,employee", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesContactEmployeeAccountingPeriod: - "payments,applied_payments,line_items,applied_credit_notes,contact,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesContactEmployeePaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,contact,employee,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesContactPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,contact,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesEmployee: - "payments,applied_payments,line_items,applied_credit_notes,employee", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesEmployeeAccountingPeriod: - "payments,applied_payments,line_items,applied_credit_notes,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesEmployeePaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,employee,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedVendorCredits: "payments,applied_payments,line_items,applied_vendor_credits", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsAccountingPeriod: - "payments,applied_payments,line_items,applied_vendor_credits,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsCompany: - "payments,applied_payments,line_items,applied_vendor_credits,company", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_payments,line_items,applied_vendor_credits,company,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsCompanyEmployee: - "payments,applied_payments,line_items,applied_vendor_credits,company,employee", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_payments,line_items,applied_vendor_credits,company,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsContact: - "payments,applied_payments,line_items,applied_vendor_credits,contact", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_payments,line_items,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsContactCompany: - "payments,applied_payments,line_items,applied_vendor_credits,contact,company", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,employee", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsContactEmployee: - "payments,applied_payments,line_items,applied_vendor_credits,contact,employee", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_payments,line_items,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_payments,line_items,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsContactPaymentTerm: - "payments,applied_payments,line_items,applied_vendor_credits,contact,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsEmployee: - "payments,applied_payments,line_items,applied_vendor_credits,employee", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_payments,line_items,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_payments,line_items,applied_vendor_credits,employee,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsPaymentTerm: - "payments,applied_payments,line_items,applied_vendor_credits,payment_term", - PaymentsAppliedPaymentsLineItemsCompany: "payments,applied_payments,line_items,company", - PaymentsAppliedPaymentsLineItemsCompanyAccountingPeriod: - "payments,applied_payments,line_items,company,accounting_period", - PaymentsAppliedPaymentsLineItemsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsCompanyEmployee: "payments,applied_payments,line_items,company,employee", - PaymentsAppliedPaymentsLineItemsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsCompanyPaymentTerm: "payments,applied_payments,line_items,company,payment_term", - PaymentsAppliedPaymentsLineItemsContact: "payments,applied_payments,line_items,contact", - PaymentsAppliedPaymentsLineItemsContactAccountingPeriod: - "payments,applied_payments,line_items,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsContactCompany: "payments,applied_payments,line_items,contact,company", - PaymentsAppliedPaymentsLineItemsContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsContactCompanyEmployee: - "payments,applied_payments,line_items,contact,company,employee", - PaymentsAppliedPaymentsLineItemsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,contact,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsContactCompanyPaymentTerm: - "payments,applied_payments,line_items,contact,company,payment_term", - PaymentsAppliedPaymentsLineItemsContactEmployee: "payments,applied_payments,line_items,contact,employee", - PaymentsAppliedPaymentsLineItemsContactEmployeeAccountingPeriod: - "payments,applied_payments,line_items,contact,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsContactEmployeePaymentTerm: - "payments,applied_payments,line_items,contact,employee,payment_term", - PaymentsAppliedPaymentsLineItemsContactPaymentTerm: "payments,applied_payments,line_items,contact,payment_term", - PaymentsAppliedPaymentsLineItemsEmployee: "payments,applied_payments,line_items,employee", - PaymentsAppliedPaymentsLineItemsEmployeeAccountingPeriod: - "payments,applied_payments,line_items,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsEmployeePaymentTerm: "payments,applied_payments,line_items,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPaymentTerm: "payments,applied_payments,line_items,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrders: "payments,applied_payments,line_items,purchase_orders", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotes: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCredits: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompany: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContact: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompany: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployee: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompany: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyEmployee: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContact: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompany: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyEmployee: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactEmployee: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactEmployeePaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesEmployee: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,employee", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesEmployeePaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCredits: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompany: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyEmployee: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContact: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompany: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactEmployee: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsEmployee: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,employee", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersCompany: - "payments,applied_payments,line_items,purchase_orders,company", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersCompanyAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,company,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersCompanyEmployee: - "payments,applied_payments,line_items,purchase_orders,company,employee", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,purchase_orders,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersCompanyPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,company,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersContact: - "payments,applied_payments,line_items,purchase_orders,contact", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersContactAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersContactAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersContactCompany: - "payments,applied_payments,line_items,purchase_orders,contact,company", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersContactCompanyEmployee: - "payments,applied_payments,line_items,purchase_orders,contact,company,employee", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersContactCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,purchase_orders,contact,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersContactCompanyPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,contact,company,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersContactEmployee: - "payments,applied_payments,line_items,purchase_orders,contact,employee", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersContactEmployeeAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,contact,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersContactEmployeePaymentTerm: - "payments,applied_payments,line_items,purchase_orders,contact,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersContactPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,contact,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersEmployee: - "payments,applied_payments,line_items,purchase_orders,employee", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersEmployeeAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersEmployeePaymentTerm: - "payments,applied_payments,line_items,purchase_orders,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategories: "payments,applied_payments,line_items,tracking_categories", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotes: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCredits: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompany: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContact: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompany: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployee: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompany: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyEmployee: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContact: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompany: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyEmployee: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactEmployee: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesEmployee: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCredits: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompany: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyEmployee: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContact: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompany: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactEmployee: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsEmployee: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesCompany: - "payments,applied_payments,line_items,tracking_categories,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesCompanyEmployee: - "payments,applied_payments,line_items,tracking_categories,company,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesCompanyPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,company,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContact: - "payments,applied_payments,line_items,tracking_categories,contact", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactCompany: - "payments,applied_payments,line_items,tracking_categories,contact,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactCompanyEmployee: - "payments,applied_payments,line_items,tracking_categories,contact,company,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,contact,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactCompanyPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,contact,company,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactEmployee: - "payments,applied_payments,line_items,tracking_categories,contact,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,contact,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,contact,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,contact,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesEmployee: - "payments,applied_payments,line_items,tracking_categories,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrders: - "payments,applied_payments,line_items,tracking_categories,purchase_orders", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotes: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCredits: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompany: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContact: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompany: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployee: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompany: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployee: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContact: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompany: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployee: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployee: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployee: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCredits: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompany: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployee: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContact: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompany: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployee: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployee: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersCompany: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyEmployee: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContact: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompany: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyEmployee: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactEmployee: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersEmployee: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,payment_term", - PaymentsAppliedPaymentsPaymentTerm: "payments,applied_payments,payment_term", - PaymentsAppliedPaymentsPurchaseOrders: "payments,applied_payments,purchase_orders", - PaymentsAppliedPaymentsPurchaseOrdersAccountingPeriod: - "payments,applied_payments,purchase_orders,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotes: - "payments,applied_payments,purchase_orders,applied_credit_notes", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_credit_notes,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCredits: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompany: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContact: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompany: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployee: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesCompany: - "payments,applied_payments,purchase_orders,applied_credit_notes,company", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_credit_notes,company,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesCompanyEmployee: - "payments,applied_payments,purchase_orders,applied_credit_notes,company,employee", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_credit_notes,company,employee,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesCompanyEmployeePaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,company,employee,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesCompanyPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,company,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesContact: - "payments,applied_payments,purchase_orders,applied_credit_notes,contact", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesContactAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesContactCompany: - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesContactCompanyEmployee: - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,employee", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesContactCompanyPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesContactEmployee: - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,employee", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesContactEmployeePaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,employee,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesContactPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesEmployee: - "payments,applied_payments,purchase_orders,applied_credit_notes,employee", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_credit_notes,employee,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesEmployeePaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,employee,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCredits: - "payments,applied_payments,purchase_orders,applied_vendor_credits", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_vendor_credits,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsCompany: - "payments,applied_payments,purchase_orders,applied_vendor_credits,company", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsCompanyEmployee: - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,employee", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsContact: - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactCompany: - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactEmployee: - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,employee", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactPaymentTerm: - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsEmployee: - "payments,applied_payments,purchase_orders,applied_vendor_credits,employee", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_payments,purchase_orders,applied_vendor_credits,employee,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsPaymentTerm: - "payments,applied_payments,purchase_orders,applied_vendor_credits,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersCompany: "payments,applied_payments,purchase_orders,company", - PaymentsAppliedPaymentsPurchaseOrdersCompanyAccountingPeriod: - "payments,applied_payments,purchase_orders,company,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,company,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersCompanyEmployee: "payments,applied_payments,purchase_orders,company,employee", - PaymentsAppliedPaymentsPurchaseOrdersCompanyEmployeeAccountingPeriod: - "payments,applied_payments,purchase_orders,company,employee,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersCompanyEmployeePaymentTerm: - "payments,applied_payments,purchase_orders,company,employee,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersCompanyPaymentTerm: - "payments,applied_payments,purchase_orders,company,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersContact: "payments,applied_payments,purchase_orders,contact", - PaymentsAppliedPaymentsPurchaseOrdersContactAccountingPeriod: - "payments,applied_payments,purchase_orders,contact,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersContactAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersContactCompany: "payments,applied_payments,purchase_orders,contact,company", - PaymentsAppliedPaymentsPurchaseOrdersContactCompanyAccountingPeriod: - "payments,applied_payments,purchase_orders,contact,company,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersContactCompanyEmployee: - "payments,applied_payments,purchase_orders,contact,company,employee", - PaymentsAppliedPaymentsPurchaseOrdersContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,purchase_orders,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersContactCompanyEmployeePaymentTerm: - "payments,applied_payments,purchase_orders,contact,company,employee,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersContactCompanyPaymentTerm: - "payments,applied_payments,purchase_orders,contact,company,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersContactEmployee: "payments,applied_payments,purchase_orders,contact,employee", - PaymentsAppliedPaymentsPurchaseOrdersContactEmployeeAccountingPeriod: - "payments,applied_payments,purchase_orders,contact,employee,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersContactEmployeePaymentTerm: - "payments,applied_payments,purchase_orders,contact,employee,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersContactPaymentTerm: - "payments,applied_payments,purchase_orders,contact,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersEmployee: "payments,applied_payments,purchase_orders,employee", - PaymentsAppliedPaymentsPurchaseOrdersEmployeeAccountingPeriod: - "payments,applied_payments,purchase_orders,employee,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersEmployeePaymentTerm: - "payments,applied_payments,purchase_orders,employee,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersPaymentTerm: "payments,applied_payments,purchase_orders,payment_term", - PaymentsAppliedPaymentsTrackingCategories: "payments,applied_payments,tracking_categories", - PaymentsAppliedPaymentsTrackingCategoriesAccountingPeriod: - "payments,applied_payments,tracking_categories,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotes: - "payments,applied_payments,tracking_categories,applied_credit_notes", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_credit_notes,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCredits: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompany: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContact: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompany: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployee: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesCompany: - "payments,applied_payments,tracking_categories,applied_credit_notes,company", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_credit_notes,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,company,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesCompanyEmployee: - "payments,applied_payments,tracking_categories,applied_credit_notes,company,employee", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_credit_notes,company,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesCompanyEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,company,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesCompanyPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,company,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesContact: - "payments,applied_payments,tracking_categories,applied_credit_notes,contact", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesContactAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesContactCompany: - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesContactCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesContactCompanyEmployee: - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,employee", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesContactCompanyPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesContactEmployee: - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,employee", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesContactEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesContactEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesContactPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesEmployee: - "payments,applied_payments,tracking_categories,applied_credit_notes,employee", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_credit_notes,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCredits: - "payments,applied_payments,tracking_categories,applied_vendor_credits", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_vendor_credits,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsCompany: - "payments,applied_payments,tracking_categories,applied_vendor_credits,company", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsCompanyEmployee: - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,employee", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsContact: - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactCompany: - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactEmployee: - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,employee", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactPaymentTerm: - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsEmployee: - "payments,applied_payments,tracking_categories,applied_vendor_credits,employee", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,applied_vendor_credits,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsPaymentTerm: - "payments,applied_payments,tracking_categories,applied_vendor_credits,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesCompany: "payments,applied_payments,tracking_categories,company", - PaymentsAppliedPaymentsTrackingCategoriesCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,company,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesCompanyEmployee: - "payments,applied_payments,tracking_categories,company,employee", - PaymentsAppliedPaymentsTrackingCategoriesCompanyEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,company,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesCompanyEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,company,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesCompanyPaymentTerm: - "payments,applied_payments,tracking_categories,company,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesContact: "payments,applied_payments,tracking_categories,contact", - PaymentsAppliedPaymentsTrackingCategoriesContactAccountingPeriod: - "payments,applied_payments,tracking_categories,contact,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesContactAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesContactCompany: - "payments,applied_payments,tracking_categories,contact,company", - PaymentsAppliedPaymentsTrackingCategoriesContactCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,contact,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesContactCompanyEmployee: - "payments,applied_payments,tracking_categories,contact,company,employee", - PaymentsAppliedPaymentsTrackingCategoriesContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesContactCompanyEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,contact,company,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesContactCompanyPaymentTerm: - "payments,applied_payments,tracking_categories,contact,company,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesContactEmployee: - "payments,applied_payments,tracking_categories,contact,employee", - PaymentsAppliedPaymentsTrackingCategoriesContactEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,contact,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesContactEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,contact,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesContactPaymentTerm: - "payments,applied_payments,tracking_categories,contact,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesEmployee: "payments,applied_payments,tracking_categories,employee", - PaymentsAppliedPaymentsTrackingCategoriesEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPaymentTerm: "payments,applied_payments,tracking_categories,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrders: - "payments,applied_payments,tracking_categories,purchase_orders", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotes: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCredits: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompany: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContact: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompany: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployee: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompany: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployee: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContact: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompany: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployee: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployee: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployee: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCredits: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompany: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployee: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContact: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompany: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployee: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployee: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersCompany: - "payments,applied_payments,tracking_categories,purchase_orders,company", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,company,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersCompanyEmployee: - "payments,applied_payments,tracking_categories,purchase_orders,company,employee", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersCompanyEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,company,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersCompanyEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,company,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersCompanyPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,company,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersContact: - "payments,applied_payments,tracking_categories,purchase_orders,contact", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersContactAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,contact,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersContactAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersContactCompany: - "payments,applied_payments,tracking_categories,purchase_orders,contact,company", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersContactCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersContactCompanyEmployee: - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,employee", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersContactCompanyEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersContactCompanyPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersContactEmployee: - "payments,applied_payments,tracking_categories,purchase_orders,contact,employee", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersContactEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,contact,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersContactEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,contact,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersContactPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,contact,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersEmployee: - "payments,applied_payments,tracking_categories,purchase_orders,employee", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,payment_term", - PaymentsAppliedVendorCredits: "payments,applied_vendor_credits", - PaymentsAppliedVendorCreditsAccountingPeriod: "payments,applied_vendor_credits,accounting_period", - PaymentsAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedVendorCreditsCompany: "payments,applied_vendor_credits,company", - PaymentsAppliedVendorCreditsCompanyAccountingPeriod: "payments,applied_vendor_credits,company,accounting_period", - PaymentsAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedVendorCreditsCompanyEmployee: "payments,applied_vendor_credits,company,employee", - PaymentsAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedVendorCreditsCompanyPaymentTerm: "payments,applied_vendor_credits,company,payment_term", - PaymentsAppliedVendorCreditsContact: "payments,applied_vendor_credits,contact", - PaymentsAppliedVendorCreditsContactAccountingPeriod: "payments,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedVendorCreditsContactCompany: "payments,applied_vendor_credits,contact,company", - PaymentsAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedVendorCreditsContactCompanyEmployee: "payments,applied_vendor_credits,contact,company,employee", - PaymentsAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedVendorCreditsContactEmployee: "payments,applied_vendor_credits,contact,employee", - PaymentsAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedVendorCreditsContactPaymentTerm: "payments,applied_vendor_credits,contact,payment_term", - PaymentsAppliedVendorCreditsEmployee: "payments,applied_vendor_credits,employee", - PaymentsAppliedVendorCreditsEmployeeAccountingPeriod: "payments,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedVendorCreditsEmployeePaymentTerm: "payments,applied_vendor_credits,employee,payment_term", - PaymentsAppliedVendorCreditsPaymentTerm: "payments,applied_vendor_credits,payment_term", - PaymentsCompany: "payments,company", - PaymentsCompanyAccountingPeriod: "payments,company,accounting_period", - PaymentsCompanyAccountingPeriodPaymentTerm: "payments,company,accounting_period,payment_term", - PaymentsCompanyEmployee: "payments,company,employee", - PaymentsCompanyEmployeeAccountingPeriod: "payments,company,employee,accounting_period", - PaymentsCompanyEmployeeAccountingPeriodPaymentTerm: "payments,company,employee,accounting_period,payment_term", - PaymentsCompanyEmployeePaymentTerm: "payments,company,employee,payment_term", - PaymentsCompanyPaymentTerm: "payments,company,payment_term", - PaymentsContact: "payments,contact", - PaymentsContactAccountingPeriod: "payments,contact,accounting_period", - PaymentsContactAccountingPeriodPaymentTerm: "payments,contact,accounting_period,payment_term", - PaymentsContactCompany: "payments,contact,company", - PaymentsContactCompanyAccountingPeriod: "payments,contact,company,accounting_period", - PaymentsContactCompanyAccountingPeriodPaymentTerm: "payments,contact,company,accounting_period,payment_term", - PaymentsContactCompanyEmployee: "payments,contact,company,employee", - PaymentsContactCompanyEmployeeAccountingPeriod: "payments,contact,company,employee,accounting_period", - PaymentsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,contact,company,employee,accounting_period,payment_term", - PaymentsContactCompanyEmployeePaymentTerm: "payments,contact,company,employee,payment_term", - PaymentsContactCompanyPaymentTerm: "payments,contact,company,payment_term", - PaymentsContactEmployee: "payments,contact,employee", - PaymentsContactEmployeeAccountingPeriod: "payments,contact,employee,accounting_period", - PaymentsContactEmployeeAccountingPeriodPaymentTerm: "payments,contact,employee,accounting_period,payment_term", - PaymentsContactEmployeePaymentTerm: "payments,contact,employee,payment_term", - PaymentsContactPaymentTerm: "payments,contact,payment_term", - PaymentsEmployee: "payments,employee", - PaymentsEmployeeAccountingPeriod: "payments,employee,accounting_period", - PaymentsEmployeeAccountingPeriodPaymentTerm: "payments,employee,accounting_period,payment_term", - PaymentsEmployeePaymentTerm: "payments,employee,payment_term", - PaymentsLineItems: "payments,line_items", - PaymentsLineItemsAccountingPeriod: "payments,line_items,accounting_period", - PaymentsLineItemsAccountingPeriodPaymentTerm: "payments,line_items,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotes: "payments,line_items,applied_credit_notes", - PaymentsLineItemsAppliedCreditNotesAccountingPeriod: "payments,line_items,applied_credit_notes,accounting_period", - PaymentsLineItemsAppliedCreditNotesAccountingPeriodPaymentTerm: - "payments,line_items,applied_credit_notes,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCredits: - "payments,line_items,applied_credit_notes,applied_vendor_credits", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompany: - "payments,line_items,applied_credit_notes,applied_vendor_credits,company", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,payment_term", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContact: - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompany: - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsEmployee: - "payments,line_items,applied_credit_notes,applied_vendor_credits,employee", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "payments,line_items,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "payments,line_items,applied_credit_notes,applied_vendor_credits,payment_term", - PaymentsLineItemsAppliedCreditNotesCompany: "payments,line_items,applied_credit_notes,company", - PaymentsLineItemsAppliedCreditNotesCompanyAccountingPeriod: - "payments,line_items,applied_credit_notes,company,accounting_period", - PaymentsLineItemsAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "payments,line_items,applied_credit_notes,company,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotesCompanyEmployee: "payments,line_items,applied_credit_notes,company,employee", - PaymentsLineItemsAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "payments,line_items,applied_credit_notes,company,employee,accounting_period", - PaymentsLineItemsAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,applied_credit_notes,company,employee,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotesCompanyEmployeePaymentTerm: - "payments,line_items,applied_credit_notes,company,employee,payment_term", - PaymentsLineItemsAppliedCreditNotesCompanyPaymentTerm: - "payments,line_items,applied_credit_notes,company,payment_term", - PaymentsLineItemsAppliedCreditNotesContact: "payments,line_items,applied_credit_notes,contact", - PaymentsLineItemsAppliedCreditNotesContactAccountingPeriod: - "payments,line_items,applied_credit_notes,contact,accounting_period", - PaymentsLineItemsAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "payments,line_items,applied_credit_notes,contact,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotesContactCompany: "payments,line_items,applied_credit_notes,contact,company", - PaymentsLineItemsAppliedCreditNotesContactCompanyAccountingPeriod: - "payments,line_items,applied_credit_notes,contact,company,accounting_period", - PaymentsLineItemsAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "payments,line_items,applied_credit_notes,contact,company,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotesContactCompanyEmployee: - "payments,line_items,applied_credit_notes,contact,company,employee", - PaymentsLineItemsAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "payments,line_items,applied_credit_notes,contact,company,employee,accounting_period", - PaymentsLineItemsAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "payments,line_items,applied_credit_notes,contact,company,employee,payment_term", - PaymentsLineItemsAppliedCreditNotesContactCompanyPaymentTerm: - "payments,line_items,applied_credit_notes,contact,company,payment_term", - PaymentsLineItemsAppliedCreditNotesContactEmployee: "payments,line_items,applied_credit_notes,contact,employee", - PaymentsLineItemsAppliedCreditNotesContactEmployeeAccountingPeriod: - "payments,line_items,applied_credit_notes,contact,employee,accounting_period", - PaymentsLineItemsAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,applied_credit_notes,contact,employee,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotesContactEmployeePaymentTerm: - "payments,line_items,applied_credit_notes,contact,employee,payment_term", - PaymentsLineItemsAppliedCreditNotesContactPaymentTerm: - "payments,line_items,applied_credit_notes,contact,payment_term", - PaymentsLineItemsAppliedCreditNotesEmployee: "payments,line_items,applied_credit_notes,employee", - PaymentsLineItemsAppliedCreditNotesEmployeeAccountingPeriod: - "payments,line_items,applied_credit_notes,employee,accounting_period", - PaymentsLineItemsAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,applied_credit_notes,employee,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotesEmployeePaymentTerm: - "payments,line_items,applied_credit_notes,employee,payment_term", - PaymentsLineItemsAppliedCreditNotesPaymentTerm: "payments,line_items,applied_credit_notes,payment_term", - PaymentsLineItemsAppliedVendorCredits: "payments,line_items,applied_vendor_credits", - PaymentsLineItemsAppliedVendorCreditsAccountingPeriod: - "payments,line_items,applied_vendor_credits,accounting_period", - PaymentsLineItemsAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,line_items,applied_vendor_credits,accounting_period,payment_term", - PaymentsLineItemsAppliedVendorCreditsCompany: "payments,line_items,applied_vendor_credits,company", - PaymentsLineItemsAppliedVendorCreditsCompanyAccountingPeriod: - "payments,line_items,applied_vendor_credits,company,accounting_period", - PaymentsLineItemsAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,line_items,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsLineItemsAppliedVendorCreditsCompanyEmployee: "payments,line_items,applied_vendor_credits,company,employee", - PaymentsLineItemsAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,line_items,applied_vendor_credits,company,employee,accounting_period", - PaymentsLineItemsAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsLineItemsAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,line_items,applied_vendor_credits,company,employee,payment_term", - PaymentsLineItemsAppliedVendorCreditsCompanyPaymentTerm: - "payments,line_items,applied_vendor_credits,company,payment_term", - PaymentsLineItemsAppliedVendorCreditsContact: "payments,line_items,applied_vendor_credits,contact", - PaymentsLineItemsAppliedVendorCreditsContactAccountingPeriod: - "payments,line_items,applied_vendor_credits,contact,accounting_period", - PaymentsLineItemsAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,line_items,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsLineItemsAppliedVendorCreditsContactCompany: "payments,line_items,applied_vendor_credits,contact,company", - PaymentsLineItemsAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,line_items,applied_vendor_credits,contact,company,accounting_period", - PaymentsLineItemsAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,line_items,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsLineItemsAppliedVendorCreditsContactCompanyEmployee: - "payments,line_items,applied_vendor_credits,contact,company,employee", - PaymentsLineItemsAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsLineItemsAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsLineItemsAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,line_items,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsLineItemsAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,line_items,applied_vendor_credits,contact,company,payment_term", - PaymentsLineItemsAppliedVendorCreditsContactEmployee: "payments,line_items,applied_vendor_credits,contact,employee", - PaymentsLineItemsAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,line_items,applied_vendor_credits,contact,employee,accounting_period", - PaymentsLineItemsAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsLineItemsAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,line_items,applied_vendor_credits,contact,employee,payment_term", - PaymentsLineItemsAppliedVendorCreditsContactPaymentTerm: - "payments,line_items,applied_vendor_credits,contact,payment_term", - PaymentsLineItemsAppliedVendorCreditsEmployee: "payments,line_items,applied_vendor_credits,employee", - PaymentsLineItemsAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,line_items,applied_vendor_credits,employee,accounting_period", - PaymentsLineItemsAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsLineItemsAppliedVendorCreditsEmployeePaymentTerm: - "payments,line_items,applied_vendor_credits,employee,payment_term", - PaymentsLineItemsAppliedVendorCreditsPaymentTerm: "payments,line_items,applied_vendor_credits,payment_term", - PaymentsLineItemsCompany: "payments,line_items,company", - PaymentsLineItemsCompanyAccountingPeriod: "payments,line_items,company,accounting_period", - PaymentsLineItemsCompanyAccountingPeriodPaymentTerm: "payments,line_items,company,accounting_period,payment_term", - PaymentsLineItemsCompanyEmployee: "payments,line_items,company,employee", - PaymentsLineItemsCompanyEmployeeAccountingPeriod: "payments,line_items,company,employee,accounting_period", - PaymentsLineItemsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,company,employee,accounting_period,payment_term", - PaymentsLineItemsCompanyEmployeePaymentTerm: "payments,line_items,company,employee,payment_term", - PaymentsLineItemsCompanyPaymentTerm: "payments,line_items,company,payment_term", - PaymentsLineItemsContact: "payments,line_items,contact", - PaymentsLineItemsContactAccountingPeriod: "payments,line_items,contact,accounting_period", - PaymentsLineItemsContactAccountingPeriodPaymentTerm: "payments,line_items,contact,accounting_period,payment_term", - PaymentsLineItemsContactCompany: "payments,line_items,contact,company", - PaymentsLineItemsContactCompanyAccountingPeriod: "payments,line_items,contact,company,accounting_period", - PaymentsLineItemsContactCompanyAccountingPeriodPaymentTerm: - "payments,line_items,contact,company,accounting_period,payment_term", - PaymentsLineItemsContactCompanyEmployee: "payments,line_items,contact,company,employee", - PaymentsLineItemsContactCompanyEmployeeAccountingPeriod: - "payments,line_items,contact,company,employee,accounting_period", - PaymentsLineItemsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,contact,company,employee,accounting_period,payment_term", - PaymentsLineItemsContactCompanyEmployeePaymentTerm: "payments,line_items,contact,company,employee,payment_term", - PaymentsLineItemsContactCompanyPaymentTerm: "payments,line_items,contact,company,payment_term", - PaymentsLineItemsContactEmployee: "payments,line_items,contact,employee", - PaymentsLineItemsContactEmployeeAccountingPeriod: "payments,line_items,contact,employee,accounting_period", - PaymentsLineItemsContactEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,contact,employee,accounting_period,payment_term", - PaymentsLineItemsContactEmployeePaymentTerm: "payments,line_items,contact,employee,payment_term", - PaymentsLineItemsContactPaymentTerm: "payments,line_items,contact,payment_term", - PaymentsLineItemsEmployee: "payments,line_items,employee", - PaymentsLineItemsEmployeeAccountingPeriod: "payments,line_items,employee,accounting_period", - PaymentsLineItemsEmployeeAccountingPeriodPaymentTerm: "payments,line_items,employee,accounting_period,payment_term", - PaymentsLineItemsEmployeePaymentTerm: "payments,line_items,employee,payment_term", - PaymentsLineItemsPaymentTerm: "payments,line_items,payment_term", - PaymentsLineItemsPurchaseOrders: "payments,line_items,purchase_orders", - PaymentsLineItemsPurchaseOrdersAccountingPeriod: "payments,line_items,purchase_orders,accounting_period", - PaymentsLineItemsPurchaseOrdersAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotes: "payments,line_items,purchase_orders,applied_credit_notes", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAccountingPeriod: - "payments,line_items,purchase_orders,applied_credit_notes,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCredits: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompany: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContact: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompany: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployee: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompany: - "payments,line_items,purchase_orders,applied_credit_notes,company", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriod: - "payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyEmployee: - "payments,line_items,purchase_orders,applied_credit_notes,company,employee", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyEmployeePaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,company,employee,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,company,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesContact: - "payments,line_items,purchase_orders,applied_credit_notes,contact", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactAccountingPeriod: - "payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompany: - "payments,line_items,purchase_orders,applied_credit_notes,contact,company", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriod: - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyEmployee: - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactEmployee: - "payments,line_items,purchase_orders,applied_credit_notes,contact,employee", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriod: - "payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactEmployeePaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,contact,employee,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,contact,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesEmployee: - "payments,line_items,purchase_orders,applied_credit_notes,employee", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriod: - "payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesEmployeePaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,employee,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedVendorCredits: "payments,line_items,purchase_orders,applied_vendor_credits", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsAccountingPeriod: - "payments,line_items,purchase_orders,applied_vendor_credits,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompany: - "payments,line_items,purchase_orders,applied_vendor_credits,company", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriod: - "payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyEmployee: - "payments,line_items,purchase_orders,applied_vendor_credits,company,employee", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,line_items,purchase_orders,applied_vendor_credits,company,employee,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyPaymentTerm: - "payments,line_items,purchase_orders,applied_vendor_credits,company,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContact: - "payments,line_items,purchase_orders,applied_vendor_credits,contact", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactAccountingPeriod: - "payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompany: - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployee: - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactEmployee: - "payments,line_items,purchase_orders,applied_vendor_credits,contact,employee", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactPaymentTerm: - "payments,line_items,purchase_orders,applied_vendor_credits,contact,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsEmployee: - "payments,line_items,purchase_orders,applied_vendor_credits,employee", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsEmployeePaymentTerm: - "payments,line_items,purchase_orders,applied_vendor_credits,employee,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsPaymentTerm: - "payments,line_items,purchase_orders,applied_vendor_credits,payment_term", - PaymentsLineItemsPurchaseOrdersCompany: "payments,line_items,purchase_orders,company", - PaymentsLineItemsPurchaseOrdersCompanyAccountingPeriod: - "payments,line_items,purchase_orders,company,accounting_period", - PaymentsLineItemsPurchaseOrdersCompanyAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,company,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersCompanyEmployee: "payments,line_items,purchase_orders,company,employee", - PaymentsLineItemsPurchaseOrdersCompanyEmployeeAccountingPeriod: - "payments,line_items,purchase_orders,company,employee,accounting_period", - PaymentsLineItemsPurchaseOrdersCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,company,employee,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersCompanyEmployeePaymentTerm: - "payments,line_items,purchase_orders,company,employee,payment_term", - PaymentsLineItemsPurchaseOrdersCompanyPaymentTerm: "payments,line_items,purchase_orders,company,payment_term", - PaymentsLineItemsPurchaseOrdersContact: "payments,line_items,purchase_orders,contact", - PaymentsLineItemsPurchaseOrdersContactAccountingPeriod: - "payments,line_items,purchase_orders,contact,accounting_period", - PaymentsLineItemsPurchaseOrdersContactAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,contact,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersContactCompany: "payments,line_items,purchase_orders,contact,company", - PaymentsLineItemsPurchaseOrdersContactCompanyAccountingPeriod: - "payments,line_items,purchase_orders,contact,company,accounting_period", - PaymentsLineItemsPurchaseOrdersContactCompanyAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,contact,company,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersContactCompanyEmployee: - "payments,line_items,purchase_orders,contact,company,employee", - PaymentsLineItemsPurchaseOrdersContactCompanyEmployeeAccountingPeriod: - "payments,line_items,purchase_orders,contact,company,employee,accounting_period", - PaymentsLineItemsPurchaseOrdersContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,contact,company,employee,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersContactCompanyEmployeePaymentTerm: - "payments,line_items,purchase_orders,contact,company,employee,payment_term", - PaymentsLineItemsPurchaseOrdersContactCompanyPaymentTerm: - "payments,line_items,purchase_orders,contact,company,payment_term", - PaymentsLineItemsPurchaseOrdersContactEmployee: "payments,line_items,purchase_orders,contact,employee", - PaymentsLineItemsPurchaseOrdersContactEmployeeAccountingPeriod: - "payments,line_items,purchase_orders,contact,employee,accounting_period", - PaymentsLineItemsPurchaseOrdersContactEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,contact,employee,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersContactEmployeePaymentTerm: - "payments,line_items,purchase_orders,contact,employee,payment_term", - PaymentsLineItemsPurchaseOrdersContactPaymentTerm: "payments,line_items,purchase_orders,contact,payment_term", - PaymentsLineItemsPurchaseOrdersEmployee: "payments,line_items,purchase_orders,employee", - PaymentsLineItemsPurchaseOrdersEmployeeAccountingPeriod: - "payments,line_items,purchase_orders,employee,accounting_period", - PaymentsLineItemsPurchaseOrdersEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,employee,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersEmployeePaymentTerm: "payments,line_items,purchase_orders,employee,payment_term", - PaymentsLineItemsPurchaseOrdersPaymentTerm: "payments,line_items,purchase_orders,payment_term", - PaymentsLineItemsTrackingCategories: "payments,line_items,tracking_categories", - PaymentsLineItemsTrackingCategoriesAccountingPeriod: "payments,line_items,tracking_categories,accounting_period", - PaymentsLineItemsTrackingCategoriesAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotes: - "payments,line_items,tracking_categories,applied_credit_notes", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAccountingPeriod: - "payments,line_items,tracking_categories,applied_credit_notes,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCredits: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompany: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContact: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompany: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployee: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompany: - "payments,line_items,tracking_categories,applied_credit_notes,company", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyAccountingPeriod: - "payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyEmployee: - "payments,line_items,tracking_categories,applied_credit_notes,company,employee", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyEmployeePaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,company,employee,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,company,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesContact: - "payments,line_items,tracking_categories,applied_credit_notes,contact", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactAccountingPeriod: - "payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompany: - "payments,line_items,tracking_categories,applied_credit_notes,contact,company", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyAccountingPeriod: - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyEmployee: - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactEmployee: - "payments,line_items,tracking_categories,applied_credit_notes,contact,employee", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactEmployeePaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,contact,employee,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,contact,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesEmployee: - "payments,line_items,tracking_categories,applied_credit_notes,employee", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesEmployeePaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,employee,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedVendorCredits: - "payments,line_items,tracking_categories,applied_vendor_credits", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsAccountingPeriod: - "payments,line_items,tracking_categories,applied_vendor_credits,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_vendor_credits,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompany: - "payments,line_items,tracking_categories,applied_vendor_credits,company", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyEmployee: - "payments,line_items,tracking_categories,applied_vendor_credits,company,employee", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,line_items,tracking_categories,applied_vendor_credits,company,employee,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyPaymentTerm: - "payments,line_items,tracking_categories,applied_vendor_credits,company,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContact: - "payments,line_items,tracking_categories,applied_vendor_credits,contact", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactAccountingPeriod: - "payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompany: - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployee: - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactEmployee: - "payments,line_items,tracking_categories,applied_vendor_credits,contact,employee", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactPaymentTerm: - "payments,line_items,tracking_categories,applied_vendor_credits,contact,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsEmployee: - "payments,line_items,tracking_categories,applied_vendor_credits,employee", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsEmployeePaymentTerm: - "payments,line_items,tracking_categories,applied_vendor_credits,employee,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsPaymentTerm: - "payments,line_items,tracking_categories,applied_vendor_credits,payment_term", - PaymentsLineItemsTrackingCategoriesCompany: "payments,line_items,tracking_categories,company", - PaymentsLineItemsTrackingCategoriesCompanyAccountingPeriod: - "payments,line_items,tracking_categories,company,accounting_period", - PaymentsLineItemsTrackingCategoriesCompanyAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,company,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesCompanyEmployee: "payments,line_items,tracking_categories,company,employee", - PaymentsLineItemsTrackingCategoriesCompanyEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,company,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,company,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesCompanyEmployeePaymentTerm: - "payments,line_items,tracking_categories,company,employee,payment_term", - PaymentsLineItemsTrackingCategoriesCompanyPaymentTerm: - "payments,line_items,tracking_categories,company,payment_term", - PaymentsLineItemsTrackingCategoriesContact: "payments,line_items,tracking_categories,contact", - PaymentsLineItemsTrackingCategoriesContactAccountingPeriod: - "payments,line_items,tracking_categories,contact,accounting_period", - PaymentsLineItemsTrackingCategoriesContactAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,contact,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesContactCompany: "payments,line_items,tracking_categories,contact,company", - PaymentsLineItemsTrackingCategoriesContactCompanyAccountingPeriod: - "payments,line_items,tracking_categories,contact,company,accounting_period", - PaymentsLineItemsTrackingCategoriesContactCompanyAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,contact,company,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesContactCompanyEmployee: - "payments,line_items,tracking_categories,contact,company,employee", - PaymentsLineItemsTrackingCategoriesContactCompanyEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,contact,company,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,contact,company,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesContactCompanyEmployeePaymentTerm: - "payments,line_items,tracking_categories,contact,company,employee,payment_term", - PaymentsLineItemsTrackingCategoriesContactCompanyPaymentTerm: - "payments,line_items,tracking_categories,contact,company,payment_term", - PaymentsLineItemsTrackingCategoriesContactEmployee: "payments,line_items,tracking_categories,contact,employee", - PaymentsLineItemsTrackingCategoriesContactEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,contact,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesContactEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,contact,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesContactEmployeePaymentTerm: - "payments,line_items,tracking_categories,contact,employee,payment_term", - PaymentsLineItemsTrackingCategoriesContactPaymentTerm: - "payments,line_items,tracking_categories,contact,payment_term", - PaymentsLineItemsTrackingCategoriesEmployee: "payments,line_items,tracking_categories,employee", - PaymentsLineItemsTrackingCategoriesEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesEmployeePaymentTerm: - "payments,line_items,tracking_categories,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPaymentTerm: "payments,line_items,tracking_categories,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrders: "payments,line_items,tracking_categories,purchase_orders", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotes: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCredits: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompany: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContact: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompany: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployee: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompany: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployee: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeePaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContact: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompany: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployee: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployee: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeePaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployee: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeePaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCredits: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompany: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployee: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContact: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompany: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployee: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployee: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployee: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeePaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersCompany: - "payments,line_items,tracking_categories,purchase_orders,company", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,company,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,company,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyEmployee: - "payments,line_items,tracking_categories,purchase_orders,company,employee", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyEmployeePaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,company,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,company,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersContact: - "payments,line_items,tracking_categories,purchase_orders,contact", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersContactAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,contact,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersContactAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,contact,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompany: - "payments,line_items,tracking_categories,purchase_orders,contact,company", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyEmployee: - "payments,line_items,tracking_categories,purchase_orders,contact,company,employee", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyEmployeePaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,contact,company,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,contact,company,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersContactEmployee: - "payments,line_items,tracking_categories,purchase_orders,contact,employee", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersContactEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersContactEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersContactEmployeePaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,contact,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersContactPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,contact,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersEmployee: - "payments,line_items,tracking_categories,purchase_orders,employee", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersEmployeePaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,payment_term", - PaymentsPaymentTerm: "payments,payment_term", - PaymentsPurchaseOrders: "payments,purchase_orders", - PaymentsPurchaseOrdersAccountingPeriod: "payments,purchase_orders,accounting_period", - PaymentsPurchaseOrdersAccountingPeriodPaymentTerm: "payments,purchase_orders,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotes: "payments,purchase_orders,applied_credit_notes", - PaymentsPurchaseOrdersAppliedCreditNotesAccountingPeriod: - "payments,purchase_orders,applied_credit_notes,accounting_period", - PaymentsPurchaseOrdersAppliedCreditNotesAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_credit_notes,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCredits: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompany: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContact: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompany: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployee: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesCompany: "payments,purchase_orders,applied_credit_notes,company", - PaymentsPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriod: - "payments,purchase_orders,applied_credit_notes,company,accounting_period", - PaymentsPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesCompanyEmployee: - "payments,purchase_orders,applied_credit_notes,company,employee", - PaymentsPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "payments,purchase_orders,applied_credit_notes,company,employee,accounting_period", - PaymentsPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesCompanyEmployeePaymentTerm: - "payments,purchase_orders,applied_credit_notes,company,employee,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesCompanyPaymentTerm: - "payments,purchase_orders,applied_credit_notes,company,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesContact: "payments,purchase_orders,applied_credit_notes,contact", - PaymentsPurchaseOrdersAppliedCreditNotesContactAccountingPeriod: - "payments,purchase_orders,applied_credit_notes,contact,accounting_period", - PaymentsPurchaseOrdersAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesContactCompany: - "payments,purchase_orders,applied_credit_notes,contact,company", - PaymentsPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriod: - "payments,purchase_orders,applied_credit_notes,contact,company,accounting_period", - PaymentsPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesContactCompanyEmployee: - "payments,purchase_orders,applied_credit_notes,contact,company,employee", - PaymentsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - PaymentsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "payments,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesContactCompanyPaymentTerm: - "payments,purchase_orders,applied_credit_notes,contact,company,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesContactEmployee: - "payments,purchase_orders,applied_credit_notes,contact,employee", - PaymentsPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriod: - "payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - PaymentsPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesContactEmployeePaymentTerm: - "payments,purchase_orders,applied_credit_notes,contact,employee,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesContactPaymentTerm: - "payments,purchase_orders,applied_credit_notes,contact,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesEmployee: "payments,purchase_orders,applied_credit_notes,employee", - PaymentsPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriod: - "payments,purchase_orders,applied_credit_notes,employee,accounting_period", - PaymentsPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesEmployeePaymentTerm: - "payments,purchase_orders,applied_credit_notes,employee,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesPaymentTerm: "payments,purchase_orders,applied_credit_notes,payment_term", - PaymentsPurchaseOrdersAppliedVendorCredits: "payments,purchase_orders,applied_vendor_credits", - PaymentsPurchaseOrdersAppliedVendorCreditsAccountingPeriod: - "payments,purchase_orders,applied_vendor_credits,accounting_period", - PaymentsPurchaseOrdersAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedVendorCreditsCompany: "payments,purchase_orders,applied_vendor_credits,company", - PaymentsPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriod: - "payments,purchase_orders,applied_vendor_credits,company,accounting_period", - PaymentsPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedVendorCreditsCompanyEmployee: - "payments,purchase_orders,applied_vendor_credits,company,employee", - PaymentsPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - PaymentsPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,purchase_orders,applied_vendor_credits,company,employee,payment_term", - PaymentsPurchaseOrdersAppliedVendorCreditsCompanyPaymentTerm: - "payments,purchase_orders,applied_vendor_credits,company,payment_term", - PaymentsPurchaseOrdersAppliedVendorCreditsContact: "payments,purchase_orders,applied_vendor_credits,contact", - PaymentsPurchaseOrdersAppliedVendorCreditsContactAccountingPeriod: - "payments,purchase_orders,applied_vendor_credits,contact,accounting_period", - PaymentsPurchaseOrdersAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedVendorCreditsContactCompany: - "payments,purchase_orders,applied_vendor_credits,contact,company", - PaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - PaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployee: - "payments,purchase_orders,applied_vendor_credits,contact,company,employee", - PaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,purchase_orders,applied_vendor_credits,contact,company,payment_term", - PaymentsPurchaseOrdersAppliedVendorCreditsContactEmployee: - "payments,purchase_orders,applied_vendor_credits,contact,employee", - PaymentsPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - PaymentsPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - PaymentsPurchaseOrdersAppliedVendorCreditsContactPaymentTerm: - "payments,purchase_orders,applied_vendor_credits,contact,payment_term", - PaymentsPurchaseOrdersAppliedVendorCreditsEmployee: "payments,purchase_orders,applied_vendor_credits,employee", - PaymentsPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,purchase_orders,applied_vendor_credits,employee,accounting_period", - PaymentsPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedVendorCreditsEmployeePaymentTerm: - "payments,purchase_orders,applied_vendor_credits,employee,payment_term", - PaymentsPurchaseOrdersAppliedVendorCreditsPaymentTerm: - "payments,purchase_orders,applied_vendor_credits,payment_term", - PaymentsPurchaseOrdersCompany: "payments,purchase_orders,company", - PaymentsPurchaseOrdersCompanyAccountingPeriod: "payments,purchase_orders,company,accounting_period", - PaymentsPurchaseOrdersCompanyAccountingPeriodPaymentTerm: - "payments,purchase_orders,company,accounting_period,payment_term", - PaymentsPurchaseOrdersCompanyEmployee: "payments,purchase_orders,company,employee", - PaymentsPurchaseOrdersCompanyEmployeeAccountingPeriod: - "payments,purchase_orders,company,employee,accounting_period", - PaymentsPurchaseOrdersCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,purchase_orders,company,employee,accounting_period,payment_term", - PaymentsPurchaseOrdersCompanyEmployeePaymentTerm: "payments,purchase_orders,company,employee,payment_term", - PaymentsPurchaseOrdersCompanyPaymentTerm: "payments,purchase_orders,company,payment_term", - PaymentsPurchaseOrdersContact: "payments,purchase_orders,contact", - PaymentsPurchaseOrdersContactAccountingPeriod: "payments,purchase_orders,contact,accounting_period", - PaymentsPurchaseOrdersContactAccountingPeriodPaymentTerm: - "payments,purchase_orders,contact,accounting_period,payment_term", - PaymentsPurchaseOrdersContactCompany: "payments,purchase_orders,contact,company", - PaymentsPurchaseOrdersContactCompanyAccountingPeriod: "payments,purchase_orders,contact,company,accounting_period", - PaymentsPurchaseOrdersContactCompanyAccountingPeriodPaymentTerm: - "payments,purchase_orders,contact,company,accounting_period,payment_term", - PaymentsPurchaseOrdersContactCompanyEmployee: "payments,purchase_orders,contact,company,employee", - PaymentsPurchaseOrdersContactCompanyEmployeeAccountingPeriod: - "payments,purchase_orders,contact,company,employee,accounting_period", - PaymentsPurchaseOrdersContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,purchase_orders,contact,company,employee,accounting_period,payment_term", - PaymentsPurchaseOrdersContactCompanyEmployeePaymentTerm: - "payments,purchase_orders,contact,company,employee,payment_term", - PaymentsPurchaseOrdersContactCompanyPaymentTerm: "payments,purchase_orders,contact,company,payment_term", - PaymentsPurchaseOrdersContactEmployee: "payments,purchase_orders,contact,employee", - PaymentsPurchaseOrdersContactEmployeeAccountingPeriod: - "payments,purchase_orders,contact,employee,accounting_period", - PaymentsPurchaseOrdersContactEmployeeAccountingPeriodPaymentTerm: - "payments,purchase_orders,contact,employee,accounting_period,payment_term", - PaymentsPurchaseOrdersContactEmployeePaymentTerm: "payments,purchase_orders,contact,employee,payment_term", - PaymentsPurchaseOrdersContactPaymentTerm: "payments,purchase_orders,contact,payment_term", - PaymentsPurchaseOrdersEmployee: "payments,purchase_orders,employee", - PaymentsPurchaseOrdersEmployeeAccountingPeriod: "payments,purchase_orders,employee,accounting_period", - PaymentsPurchaseOrdersEmployeeAccountingPeriodPaymentTerm: - "payments,purchase_orders,employee,accounting_period,payment_term", - PaymentsPurchaseOrdersEmployeePaymentTerm: "payments,purchase_orders,employee,payment_term", - PaymentsPurchaseOrdersPaymentTerm: "payments,purchase_orders,payment_term", - PaymentsTrackingCategories: "payments,tracking_categories", - PaymentsTrackingCategoriesAccountingPeriod: "payments,tracking_categories,accounting_period", - PaymentsTrackingCategoriesAccountingPeriodPaymentTerm: - "payments,tracking_categories,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotes: "payments,tracking_categories,applied_credit_notes", - PaymentsTrackingCategoriesAppliedCreditNotesAccountingPeriod: - "payments,tracking_categories,applied_credit_notes,accounting_period", - PaymentsTrackingCategoriesAppliedCreditNotesAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_credit_notes,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCredits: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompany: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContact: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompany: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployee: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesCompany: "payments,tracking_categories,applied_credit_notes,company", - PaymentsTrackingCategoriesAppliedCreditNotesCompanyAccountingPeriod: - "payments,tracking_categories,applied_credit_notes,company,accounting_period", - PaymentsTrackingCategoriesAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_credit_notes,company,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesCompanyEmployee: - "payments,tracking_categories,applied_credit_notes,company,employee", - PaymentsTrackingCategoriesAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "payments,tracking_categories,applied_credit_notes,company,employee,accounting_period", - PaymentsTrackingCategoriesAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesCompanyEmployeePaymentTerm: - "payments,tracking_categories,applied_credit_notes,company,employee,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesCompanyPaymentTerm: - "payments,tracking_categories,applied_credit_notes,company,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesContact: "payments,tracking_categories,applied_credit_notes,contact", - PaymentsTrackingCategoriesAppliedCreditNotesContactAccountingPeriod: - "payments,tracking_categories,applied_credit_notes,contact,accounting_period", - PaymentsTrackingCategoriesAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesContactCompany: - "payments,tracking_categories,applied_credit_notes,contact,company", - PaymentsTrackingCategoriesAppliedCreditNotesContactCompanyAccountingPeriod: - "payments,tracking_categories,applied_credit_notes,contact,company,accounting_period", - PaymentsTrackingCategoriesAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesContactCompanyEmployee: - "payments,tracking_categories,applied_credit_notes,contact,company,employee", - PaymentsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period", - PaymentsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "payments,tracking_categories,applied_credit_notes,contact,company,employee,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesContactCompanyPaymentTerm: - "payments,tracking_categories,applied_credit_notes,contact,company,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesContactEmployee: - "payments,tracking_categories,applied_credit_notes,contact,employee", - PaymentsTrackingCategoriesAppliedCreditNotesContactEmployeeAccountingPeriod: - "payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period", - PaymentsTrackingCategoriesAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesContactEmployeePaymentTerm: - "payments,tracking_categories,applied_credit_notes,contact,employee,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesContactPaymentTerm: - "payments,tracking_categories,applied_credit_notes,contact,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesEmployee: "payments,tracking_categories,applied_credit_notes,employee", - PaymentsTrackingCategoriesAppliedCreditNotesEmployeeAccountingPeriod: - "payments,tracking_categories,applied_credit_notes,employee,accounting_period", - PaymentsTrackingCategoriesAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesEmployeePaymentTerm: - "payments,tracking_categories,applied_credit_notes,employee,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesPaymentTerm: - "payments,tracking_categories,applied_credit_notes,payment_term", - PaymentsTrackingCategoriesAppliedVendorCredits: "payments,tracking_categories,applied_vendor_credits", - PaymentsTrackingCategoriesAppliedVendorCreditsAccountingPeriod: - "payments,tracking_categories,applied_vendor_credits,accounting_period", - PaymentsTrackingCategoriesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_vendor_credits,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedVendorCreditsCompany: - "payments,tracking_categories,applied_vendor_credits,company", - PaymentsTrackingCategoriesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,tracking_categories,applied_vendor_credits,company,accounting_period", - PaymentsTrackingCategoriesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedVendorCreditsCompanyEmployee: - "payments,tracking_categories,applied_vendor_credits,company,employee", - PaymentsTrackingCategoriesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period", - PaymentsTrackingCategoriesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,tracking_categories,applied_vendor_credits,company,employee,payment_term", - PaymentsTrackingCategoriesAppliedVendorCreditsCompanyPaymentTerm: - "payments,tracking_categories,applied_vendor_credits,company,payment_term", - PaymentsTrackingCategoriesAppliedVendorCreditsContact: - "payments,tracking_categories,applied_vendor_credits,contact", - PaymentsTrackingCategoriesAppliedVendorCreditsContactAccountingPeriod: - "payments,tracking_categories,applied_vendor_credits,contact,accounting_period", - PaymentsTrackingCategoriesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedVendorCreditsContactCompany: - "payments,tracking_categories,applied_vendor_credits,contact,company", - PaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period", - PaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployee: - "payments,tracking_categories,applied_vendor_credits,contact,company,employee", - PaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,tracking_categories,applied_vendor_credits,contact,company,payment_term", - PaymentsTrackingCategoriesAppliedVendorCreditsContactEmployee: - "payments,tracking_categories,applied_vendor_credits,contact,employee", - PaymentsTrackingCategoriesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period", - PaymentsTrackingCategoriesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,tracking_categories,applied_vendor_credits,contact,employee,payment_term", - PaymentsTrackingCategoriesAppliedVendorCreditsContactPaymentTerm: - "payments,tracking_categories,applied_vendor_credits,contact,payment_term", - PaymentsTrackingCategoriesAppliedVendorCreditsEmployee: - "payments,tracking_categories,applied_vendor_credits,employee", - PaymentsTrackingCategoriesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,tracking_categories,applied_vendor_credits,employee,accounting_period", - PaymentsTrackingCategoriesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedVendorCreditsEmployeePaymentTerm: - "payments,tracking_categories,applied_vendor_credits,employee,payment_term", - PaymentsTrackingCategoriesAppliedVendorCreditsPaymentTerm: - "payments,tracking_categories,applied_vendor_credits,payment_term", - PaymentsTrackingCategoriesCompany: "payments,tracking_categories,company", - PaymentsTrackingCategoriesCompanyAccountingPeriod: "payments,tracking_categories,company,accounting_period", - PaymentsTrackingCategoriesCompanyAccountingPeriodPaymentTerm: - "payments,tracking_categories,company,accounting_period,payment_term", - PaymentsTrackingCategoriesCompanyEmployee: "payments,tracking_categories,company,employee", - PaymentsTrackingCategoriesCompanyEmployeeAccountingPeriod: - "payments,tracking_categories,company,employee,accounting_period", - PaymentsTrackingCategoriesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,company,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesCompanyEmployeePaymentTerm: "payments,tracking_categories,company,employee,payment_term", - PaymentsTrackingCategoriesCompanyPaymentTerm: "payments,tracking_categories,company,payment_term", - PaymentsTrackingCategoriesContact: "payments,tracking_categories,contact", - PaymentsTrackingCategoriesContactAccountingPeriod: "payments,tracking_categories,contact,accounting_period", - PaymentsTrackingCategoriesContactAccountingPeriodPaymentTerm: - "payments,tracking_categories,contact,accounting_period,payment_term", - PaymentsTrackingCategoriesContactCompany: "payments,tracking_categories,contact,company", - PaymentsTrackingCategoriesContactCompanyAccountingPeriod: - "payments,tracking_categories,contact,company,accounting_period", - PaymentsTrackingCategoriesContactCompanyAccountingPeriodPaymentTerm: - "payments,tracking_categories,contact,company,accounting_period,payment_term", - PaymentsTrackingCategoriesContactCompanyEmployee: "payments,tracking_categories,contact,company,employee", - PaymentsTrackingCategoriesContactCompanyEmployeeAccountingPeriod: - "payments,tracking_categories,contact,company,employee,accounting_period", - PaymentsTrackingCategoriesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,contact,company,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesContactCompanyEmployeePaymentTerm: - "payments,tracking_categories,contact,company,employee,payment_term", - PaymentsTrackingCategoriesContactCompanyPaymentTerm: "payments,tracking_categories,contact,company,payment_term", - PaymentsTrackingCategoriesContactEmployee: "payments,tracking_categories,contact,employee", - PaymentsTrackingCategoriesContactEmployeeAccountingPeriod: - "payments,tracking_categories,contact,employee,accounting_period", - PaymentsTrackingCategoriesContactEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,contact,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesContactEmployeePaymentTerm: "payments,tracking_categories,contact,employee,payment_term", - PaymentsTrackingCategoriesContactPaymentTerm: "payments,tracking_categories,contact,payment_term", - PaymentsTrackingCategoriesEmployee: "payments,tracking_categories,employee", - PaymentsTrackingCategoriesEmployeeAccountingPeriod: "payments,tracking_categories,employee,accounting_period", - PaymentsTrackingCategoriesEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesEmployeePaymentTerm: "payments,tracking_categories,employee,payment_term", - PaymentsTrackingCategoriesPaymentTerm: "payments,tracking_categories,payment_term", - PaymentsTrackingCategoriesPurchaseOrders: "payments,tracking_categories,purchase_orders", - PaymentsTrackingCategoriesPurchaseOrdersAccountingPeriod: - "payments,tracking_categories,purchase_orders,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotes: - "payments,tracking_categories,purchase_orders,applied_credit_notes", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCredits: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompany: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContact: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompany: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployee: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompany: - "payments,tracking_categories,purchase_orders,applied_credit_notes,company", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployee: - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeePaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContact: - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompany: - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployee: - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployee: - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeePaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployee: - "payments,tracking_categories,purchase_orders,applied_credit_notes,employee", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeePaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCredits: - "payments,tracking_categories,purchase_orders,applied_vendor_credits", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompany: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployee: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContact: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompany: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployee: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployee: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployee: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,employee", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeePaymentTerm: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersCompany: "payments,tracking_categories,purchase_orders,company", - PaymentsTrackingCategoriesPurchaseOrdersCompanyAccountingPeriod: - "payments,tracking_categories,purchase_orders,company,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersCompanyAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,company,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersCompanyEmployee: - "payments,tracking_categories,purchase_orders,company,employee", - PaymentsTrackingCategoriesPurchaseOrdersCompanyEmployeeAccountingPeriod: - "payments,tracking_categories,purchase_orders,company,employee,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersCompanyEmployeePaymentTerm: - "payments,tracking_categories,purchase_orders,company,employee,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersCompanyPaymentTerm: - "payments,tracking_categories,purchase_orders,company,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersContact: "payments,tracking_categories,purchase_orders,contact", - PaymentsTrackingCategoriesPurchaseOrdersContactAccountingPeriod: - "payments,tracking_categories,purchase_orders,contact,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersContactAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,contact,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersContactCompany: - "payments,tracking_categories,purchase_orders,contact,company", - PaymentsTrackingCategoriesPurchaseOrdersContactCompanyAccountingPeriod: - "payments,tracking_categories,purchase_orders,contact,company,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersContactCompanyAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersContactCompanyEmployee: - "payments,tracking_categories,purchase_orders,contact,company,employee", - PaymentsTrackingCategoriesPurchaseOrdersContactCompanyEmployeeAccountingPeriod: - "payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersContactCompanyEmployeePaymentTerm: - "payments,tracking_categories,purchase_orders,contact,company,employee,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersContactCompanyPaymentTerm: - "payments,tracking_categories,purchase_orders,contact,company,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersContactEmployee: - "payments,tracking_categories,purchase_orders,contact,employee", - PaymentsTrackingCategoriesPurchaseOrdersContactEmployeeAccountingPeriod: - "payments,tracking_categories,purchase_orders,contact,employee,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersContactEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersContactEmployeePaymentTerm: - "payments,tracking_categories,purchase_orders,contact,employee,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersContactPaymentTerm: - "payments,tracking_categories,purchase_orders,contact,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersEmployee: "payments,tracking_categories,purchase_orders,employee", - PaymentsTrackingCategoriesPurchaseOrdersEmployeeAccountingPeriod: - "payments,tracking_categories,purchase_orders,employee,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersEmployeePaymentTerm: - "payments,tracking_categories,purchase_orders,employee,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersPaymentTerm: "payments,tracking_categories,purchase_orders,payment_term", - PurchaseOrders: "purchase_orders", - PurchaseOrdersAccountingPeriod: "purchase_orders,accounting_period", - PurchaseOrdersAccountingPeriodPaymentTerm: "purchase_orders,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotes: "purchase_orders,applied_credit_notes", - PurchaseOrdersAppliedCreditNotesAccountingPeriod: "purchase_orders,applied_credit_notes,accounting_period", - PurchaseOrdersAppliedCreditNotesAccountingPeriodPaymentTerm: - "purchase_orders,applied_credit_notes,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotesAppliedVendorCredits: "purchase_orders,applied_credit_notes,applied_vendor_credits", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompany: - "purchase_orders,applied_credit_notes,applied_vendor_credits,company", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContact: - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompany: - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployee: - "purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - PurchaseOrdersAppliedCreditNotesCompany: "purchase_orders,applied_credit_notes,company", - PurchaseOrdersAppliedCreditNotesCompanyAccountingPeriod: - "purchase_orders,applied_credit_notes,company,accounting_period", - PurchaseOrdersAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotesCompanyEmployee: "purchase_orders,applied_credit_notes,company,employee", - PurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "purchase_orders,applied_credit_notes,company,employee,accounting_period", - PurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotesCompanyEmployeePaymentTerm: - "purchase_orders,applied_credit_notes,company,employee,payment_term", - PurchaseOrdersAppliedCreditNotesCompanyPaymentTerm: "purchase_orders,applied_credit_notes,company,payment_term", - PurchaseOrdersAppliedCreditNotesContact: "purchase_orders,applied_credit_notes,contact", - PurchaseOrdersAppliedCreditNotesContactAccountingPeriod: - "purchase_orders,applied_credit_notes,contact,accounting_period", - PurchaseOrdersAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotesContactCompany: "purchase_orders,applied_credit_notes,contact,company", - PurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriod: - "purchase_orders,applied_credit_notes,contact,company,accounting_period", - PurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotesContactCompanyEmployee: - "purchase_orders,applied_credit_notes,contact,company,employee", - PurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - PurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - PurchaseOrdersAppliedCreditNotesContactCompanyPaymentTerm: - "purchase_orders,applied_credit_notes,contact,company,payment_term", - PurchaseOrdersAppliedCreditNotesContactEmployee: "purchase_orders,applied_credit_notes,contact,employee", - PurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriod: - "purchase_orders,applied_credit_notes,contact,employee,accounting_period", - PurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotesContactEmployeePaymentTerm: - "purchase_orders,applied_credit_notes,contact,employee,payment_term", - PurchaseOrdersAppliedCreditNotesContactPaymentTerm: "purchase_orders,applied_credit_notes,contact,payment_term", - PurchaseOrdersAppliedCreditNotesEmployee: "purchase_orders,applied_credit_notes,employee", - PurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriod: - "purchase_orders,applied_credit_notes,employee,accounting_period", - PurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotesEmployeePaymentTerm: "purchase_orders,applied_credit_notes,employee,payment_term", - PurchaseOrdersAppliedCreditNotesPaymentTerm: "purchase_orders,applied_credit_notes,payment_term", - PurchaseOrdersAppliedVendorCredits: "purchase_orders,applied_vendor_credits", - PurchaseOrdersAppliedVendorCreditsAccountingPeriod: "purchase_orders,applied_vendor_credits,accounting_period", - PurchaseOrdersAppliedVendorCreditsAccountingPeriodPaymentTerm: - "purchase_orders,applied_vendor_credits,accounting_period,payment_term", - PurchaseOrdersAppliedVendorCreditsCompany: "purchase_orders,applied_vendor_credits,company", - PurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriod: - "purchase_orders,applied_vendor_credits,company,accounting_period", - PurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - PurchaseOrdersAppliedVendorCreditsCompanyEmployee: "purchase_orders,applied_vendor_credits,company,employee", - PurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "purchase_orders,applied_vendor_credits,company,employee,accounting_period", - PurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - PurchaseOrdersAppliedVendorCreditsCompanyEmployeePaymentTerm: - "purchase_orders,applied_vendor_credits,company,employee,payment_term", - PurchaseOrdersAppliedVendorCreditsCompanyPaymentTerm: "purchase_orders,applied_vendor_credits,company,payment_term", - PurchaseOrdersAppliedVendorCreditsContact: "purchase_orders,applied_vendor_credits,contact", - PurchaseOrdersAppliedVendorCreditsContactAccountingPeriod: - "purchase_orders,applied_vendor_credits,contact,accounting_period", - PurchaseOrdersAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - PurchaseOrdersAppliedVendorCreditsContactCompany: "purchase_orders,applied_vendor_credits,contact,company", - PurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriod: - "purchase_orders,applied_vendor_credits,contact,company,accounting_period", - PurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - PurchaseOrdersAppliedVendorCreditsContactCompanyEmployee: - "purchase_orders,applied_vendor_credits,contact,company,employee", - PurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - PurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PurchaseOrdersAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - PurchaseOrdersAppliedVendorCreditsContactCompanyPaymentTerm: - "purchase_orders,applied_vendor_credits,contact,company,payment_term", - PurchaseOrdersAppliedVendorCreditsContactEmployee: "purchase_orders,applied_vendor_credits,contact,employee", - PurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriod: - "purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - PurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PurchaseOrdersAppliedVendorCreditsContactEmployeePaymentTerm: - "purchase_orders,applied_vendor_credits,contact,employee,payment_term", - PurchaseOrdersAppliedVendorCreditsContactPaymentTerm: "purchase_orders,applied_vendor_credits,contact,payment_term", - PurchaseOrdersAppliedVendorCreditsEmployee: "purchase_orders,applied_vendor_credits,employee", - PurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriod: - "purchase_orders,applied_vendor_credits,employee,accounting_period", - PurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - PurchaseOrdersAppliedVendorCreditsEmployeePaymentTerm: - "purchase_orders,applied_vendor_credits,employee,payment_term", - PurchaseOrdersAppliedVendorCreditsPaymentTerm: "purchase_orders,applied_vendor_credits,payment_term", - PurchaseOrdersCompany: "purchase_orders,company", - PurchaseOrdersCompanyAccountingPeriod: "purchase_orders,company,accounting_period", - PurchaseOrdersCompanyAccountingPeriodPaymentTerm: "purchase_orders,company,accounting_period,payment_term", - PurchaseOrdersCompanyEmployee: "purchase_orders,company,employee", - PurchaseOrdersCompanyEmployeeAccountingPeriod: "purchase_orders,company,employee,accounting_period", - PurchaseOrdersCompanyEmployeeAccountingPeriodPaymentTerm: - "purchase_orders,company,employee,accounting_period,payment_term", - PurchaseOrdersCompanyEmployeePaymentTerm: "purchase_orders,company,employee,payment_term", - PurchaseOrdersCompanyPaymentTerm: "purchase_orders,company,payment_term", - PurchaseOrdersContact: "purchase_orders,contact", - PurchaseOrdersContactAccountingPeriod: "purchase_orders,contact,accounting_period", - PurchaseOrdersContactAccountingPeriodPaymentTerm: "purchase_orders,contact,accounting_period,payment_term", - PurchaseOrdersContactCompany: "purchase_orders,contact,company", - PurchaseOrdersContactCompanyAccountingPeriod: "purchase_orders,contact,company,accounting_period", - PurchaseOrdersContactCompanyAccountingPeriodPaymentTerm: - "purchase_orders,contact,company,accounting_period,payment_term", - PurchaseOrdersContactCompanyEmployee: "purchase_orders,contact,company,employee", - PurchaseOrdersContactCompanyEmployeeAccountingPeriod: "purchase_orders,contact,company,employee,accounting_period", - PurchaseOrdersContactCompanyEmployeeAccountingPeriodPaymentTerm: - "purchase_orders,contact,company,employee,accounting_period,payment_term", - PurchaseOrdersContactCompanyEmployeePaymentTerm: "purchase_orders,contact,company,employee,payment_term", - PurchaseOrdersContactCompanyPaymentTerm: "purchase_orders,contact,company,payment_term", - PurchaseOrdersContactEmployee: "purchase_orders,contact,employee", - PurchaseOrdersContactEmployeeAccountingPeriod: "purchase_orders,contact,employee,accounting_period", - PurchaseOrdersContactEmployeeAccountingPeriodPaymentTerm: - "purchase_orders,contact,employee,accounting_period,payment_term", - PurchaseOrdersContactEmployeePaymentTerm: "purchase_orders,contact,employee,payment_term", - PurchaseOrdersContactPaymentTerm: "purchase_orders,contact,payment_term", - PurchaseOrdersEmployee: "purchase_orders,employee", - PurchaseOrdersEmployeeAccountingPeriod: "purchase_orders,employee,accounting_period", - PurchaseOrdersEmployeeAccountingPeriodPaymentTerm: "purchase_orders,employee,accounting_period,payment_term", - PurchaseOrdersEmployeePaymentTerm: "purchase_orders,employee,payment_term", - PurchaseOrdersPaymentTerm: "purchase_orders,payment_term", - TrackingCategories: "tracking_categories", - TrackingCategoriesAccountingPeriod: "tracking_categories,accounting_period", - TrackingCategoriesAccountingPeriodPaymentTerm: "tracking_categories,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotes: "tracking_categories,applied_credit_notes", - TrackingCategoriesAppliedCreditNotesAccountingPeriod: "tracking_categories,applied_credit_notes,accounting_period", - TrackingCategoriesAppliedCreditNotesAccountingPeriodPaymentTerm: - "tracking_categories,applied_credit_notes,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotesAppliedVendorCredits: - "tracking_categories,applied_credit_notes,applied_vendor_credits", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompany: - "tracking_categories,applied_credit_notes,applied_vendor_credits,company", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContact: - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompany: - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployee: - "tracking_categories,applied_credit_notes,applied_vendor_credits,employee", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term", - TrackingCategoriesAppliedCreditNotesCompany: "tracking_categories,applied_credit_notes,company", - TrackingCategoriesAppliedCreditNotesCompanyAccountingPeriod: - "tracking_categories,applied_credit_notes,company,accounting_period", - TrackingCategoriesAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "tracking_categories,applied_credit_notes,company,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotesCompanyEmployee: "tracking_categories,applied_credit_notes,company,employee", - TrackingCategoriesAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "tracking_categories,applied_credit_notes,company,employee,accounting_period", - TrackingCategoriesAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotesCompanyEmployeePaymentTerm: - "tracking_categories,applied_credit_notes,company,employee,payment_term", - TrackingCategoriesAppliedCreditNotesCompanyPaymentTerm: - "tracking_categories,applied_credit_notes,company,payment_term", - TrackingCategoriesAppliedCreditNotesContact: "tracking_categories,applied_credit_notes,contact", - TrackingCategoriesAppliedCreditNotesContactAccountingPeriod: - "tracking_categories,applied_credit_notes,contact,accounting_period", - TrackingCategoriesAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "tracking_categories,applied_credit_notes,contact,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotesContactCompany: "tracking_categories,applied_credit_notes,contact,company", - TrackingCategoriesAppliedCreditNotesContactCompanyAccountingPeriod: - "tracking_categories,applied_credit_notes,contact,company,accounting_period", - TrackingCategoriesAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotesContactCompanyEmployee: - "tracking_categories,applied_credit_notes,contact,company,employee", - TrackingCategoriesAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "tracking_categories,applied_credit_notes,contact,company,employee,accounting_period", - TrackingCategoriesAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "tracking_categories,applied_credit_notes,contact,company,employee,payment_term", - TrackingCategoriesAppliedCreditNotesContactCompanyPaymentTerm: - "tracking_categories,applied_credit_notes,contact,company,payment_term", - TrackingCategoriesAppliedCreditNotesContactEmployee: "tracking_categories,applied_credit_notes,contact,employee", - TrackingCategoriesAppliedCreditNotesContactEmployeeAccountingPeriod: - "tracking_categories,applied_credit_notes,contact,employee,accounting_period", - TrackingCategoriesAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotesContactEmployeePaymentTerm: - "tracking_categories,applied_credit_notes,contact,employee,payment_term", - TrackingCategoriesAppliedCreditNotesContactPaymentTerm: - "tracking_categories,applied_credit_notes,contact,payment_term", - TrackingCategoriesAppliedCreditNotesEmployee: "tracking_categories,applied_credit_notes,employee", - TrackingCategoriesAppliedCreditNotesEmployeeAccountingPeriod: - "tracking_categories,applied_credit_notes,employee,accounting_period", - TrackingCategoriesAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,applied_credit_notes,employee,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotesEmployeePaymentTerm: - "tracking_categories,applied_credit_notes,employee,payment_term", - TrackingCategoriesAppliedCreditNotesPaymentTerm: "tracking_categories,applied_credit_notes,payment_term", - TrackingCategoriesAppliedVendorCredits: "tracking_categories,applied_vendor_credits", - TrackingCategoriesAppliedVendorCreditsAccountingPeriod: - "tracking_categories,applied_vendor_credits,accounting_period", - TrackingCategoriesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "tracking_categories,applied_vendor_credits,accounting_period,payment_term", - TrackingCategoriesAppliedVendorCreditsCompany: "tracking_categories,applied_vendor_credits,company", - TrackingCategoriesAppliedVendorCreditsCompanyAccountingPeriod: - "tracking_categories,applied_vendor_credits,company,accounting_period", - TrackingCategoriesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "tracking_categories,applied_vendor_credits,company,accounting_period,payment_term", - TrackingCategoriesAppliedVendorCreditsCompanyEmployee: - "tracking_categories,applied_vendor_credits,company,employee", - TrackingCategoriesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "tracking_categories,applied_vendor_credits,company,employee,accounting_period", - TrackingCategoriesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term", - TrackingCategoriesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "tracking_categories,applied_vendor_credits,company,employee,payment_term", - TrackingCategoriesAppliedVendorCreditsCompanyPaymentTerm: - "tracking_categories,applied_vendor_credits,company,payment_term", - TrackingCategoriesAppliedVendorCreditsContact: "tracking_categories,applied_vendor_credits,contact", - TrackingCategoriesAppliedVendorCreditsContactAccountingPeriod: - "tracking_categories,applied_vendor_credits,contact,accounting_period", - TrackingCategoriesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term", - TrackingCategoriesAppliedVendorCreditsContactCompany: "tracking_categories,applied_vendor_credits,contact,company", - TrackingCategoriesAppliedVendorCreditsContactCompanyAccountingPeriod: - "tracking_categories,applied_vendor_credits,contact,company,accounting_period", - TrackingCategoriesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term", - TrackingCategoriesAppliedVendorCreditsContactCompanyEmployee: - "tracking_categories,applied_vendor_credits,contact,company,employee", - TrackingCategoriesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period", - TrackingCategoriesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - TrackingCategoriesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "tracking_categories,applied_vendor_credits,contact,company,employee,payment_term", - TrackingCategoriesAppliedVendorCreditsContactCompanyPaymentTerm: - "tracking_categories,applied_vendor_credits,contact,company,payment_term", - TrackingCategoriesAppliedVendorCreditsContactEmployee: - "tracking_categories,applied_vendor_credits,contact,employee", - TrackingCategoriesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "tracking_categories,applied_vendor_credits,contact,employee,accounting_period", - TrackingCategoriesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term", - TrackingCategoriesAppliedVendorCreditsContactEmployeePaymentTerm: - "tracking_categories,applied_vendor_credits,contact,employee,payment_term", - TrackingCategoriesAppliedVendorCreditsContactPaymentTerm: - "tracking_categories,applied_vendor_credits,contact,payment_term", - TrackingCategoriesAppliedVendorCreditsEmployee: "tracking_categories,applied_vendor_credits,employee", - TrackingCategoriesAppliedVendorCreditsEmployeeAccountingPeriod: - "tracking_categories,applied_vendor_credits,employee,accounting_period", - TrackingCategoriesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term", - TrackingCategoriesAppliedVendorCreditsEmployeePaymentTerm: - "tracking_categories,applied_vendor_credits,employee,payment_term", - TrackingCategoriesAppliedVendorCreditsPaymentTerm: "tracking_categories,applied_vendor_credits,payment_term", - TrackingCategoriesCompany: "tracking_categories,company", - TrackingCategoriesCompanyAccountingPeriod: "tracking_categories,company,accounting_period", - TrackingCategoriesCompanyAccountingPeriodPaymentTerm: "tracking_categories,company,accounting_period,payment_term", - TrackingCategoriesCompanyEmployee: "tracking_categories,company,employee", - TrackingCategoriesCompanyEmployeeAccountingPeriod: "tracking_categories,company,employee,accounting_period", - TrackingCategoriesCompanyEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,company,employee,accounting_period,payment_term", - TrackingCategoriesCompanyEmployeePaymentTerm: "tracking_categories,company,employee,payment_term", - TrackingCategoriesCompanyPaymentTerm: "tracking_categories,company,payment_term", - TrackingCategoriesContact: "tracking_categories,contact", - TrackingCategoriesContactAccountingPeriod: "tracking_categories,contact,accounting_period", - TrackingCategoriesContactAccountingPeriodPaymentTerm: "tracking_categories,contact,accounting_period,payment_term", - TrackingCategoriesContactCompany: "tracking_categories,contact,company", - TrackingCategoriesContactCompanyAccountingPeriod: "tracking_categories,contact,company,accounting_period", - TrackingCategoriesContactCompanyAccountingPeriodPaymentTerm: - "tracking_categories,contact,company,accounting_period,payment_term", - TrackingCategoriesContactCompanyEmployee: "tracking_categories,contact,company,employee", - TrackingCategoriesContactCompanyEmployeeAccountingPeriod: - "tracking_categories,contact,company,employee,accounting_period", - TrackingCategoriesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,contact,company,employee,accounting_period,payment_term", - TrackingCategoriesContactCompanyEmployeePaymentTerm: "tracking_categories,contact,company,employee,payment_term", - TrackingCategoriesContactCompanyPaymentTerm: "tracking_categories,contact,company,payment_term", - TrackingCategoriesContactEmployee: "tracking_categories,contact,employee", - TrackingCategoriesContactEmployeeAccountingPeriod: "tracking_categories,contact,employee,accounting_period", - TrackingCategoriesContactEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,contact,employee,accounting_period,payment_term", - TrackingCategoriesContactEmployeePaymentTerm: "tracking_categories,contact,employee,payment_term", - TrackingCategoriesContactPaymentTerm: "tracking_categories,contact,payment_term", - TrackingCategoriesEmployee: "tracking_categories,employee", - TrackingCategoriesEmployeeAccountingPeriod: "tracking_categories,employee,accounting_period", - TrackingCategoriesEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,employee,accounting_period,payment_term", - TrackingCategoriesEmployeePaymentTerm: "tracking_categories,employee,payment_term", - TrackingCategoriesPaymentTerm: "tracking_categories,payment_term", - TrackingCategoriesPurchaseOrders: "tracking_categories,purchase_orders", - TrackingCategoriesPurchaseOrdersAccountingPeriod: "tracking_categories,purchase_orders,accounting_period", - TrackingCategoriesPurchaseOrdersAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotes: "tracking_categories,purchase_orders,applied_credit_notes", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAccountingPeriod: - "tracking_categories,purchase_orders,applied_credit_notes,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCredits: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompany: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContact: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompany: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployee: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesCompany: - "tracking_categories,purchase_orders,applied_credit_notes,company", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriod: - "tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployee: - "tracking_categories,purchase_orders,applied_credit_notes,company,employee", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeePaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,company,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesContact: - "tracking_categories,purchase_orders,applied_credit_notes,contact", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesContactAccountingPeriod: - "tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompany: - "tracking_categories,purchase_orders,applied_credit_notes,contact,company", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriod: - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployee: - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployee: - "tracking_categories,purchase_orders,applied_credit_notes,contact,employee", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriod: - "tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeePaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesContactPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployee: - "tracking_categories,purchase_orders,applied_credit_notes,employee", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriod: - "tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeePaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,payment_term", - TrackingCategoriesPurchaseOrdersAppliedVendorCredits: "tracking_categories,purchase_orders,applied_vendor_credits", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsAccountingPeriod: - "tracking_categories,purchase_orders,applied_vendor_credits,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompany: - "tracking_categories,purchase_orders,applied_vendor_credits,company", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriod: - "tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployee: - "tracking_categories,purchase_orders,applied_vendor_credits,company,employee", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeePaymentTerm: - "tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyPaymentTerm: - "tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsContact: - "tracking_categories,purchase_orders,applied_vendor_credits,contact", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactAccountingPeriod: - "tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompany: - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriod: - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployee: - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyPaymentTerm: - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployee: - "tracking_categories,purchase_orders,applied_vendor_credits,contact,employee", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriod: - "tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeePaymentTerm: - "tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactPaymentTerm: - "tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployee: - "tracking_categories,purchase_orders,applied_vendor_credits,employee", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriod: - "tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeePaymentTerm: - "tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsPaymentTerm: - "tracking_categories,purchase_orders,applied_vendor_credits,payment_term", - TrackingCategoriesPurchaseOrdersCompany: "tracking_categories,purchase_orders,company", - TrackingCategoriesPurchaseOrdersCompanyAccountingPeriod: - "tracking_categories,purchase_orders,company,accounting_period", - TrackingCategoriesPurchaseOrdersCompanyAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,company,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersCompanyEmployee: "tracking_categories,purchase_orders,company,employee", - TrackingCategoriesPurchaseOrdersCompanyEmployeeAccountingPeriod: - "tracking_categories,purchase_orders,company,employee,accounting_period", - TrackingCategoriesPurchaseOrdersCompanyEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,company,employee,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersCompanyEmployeePaymentTerm: - "tracking_categories,purchase_orders,company,employee,payment_term", - TrackingCategoriesPurchaseOrdersCompanyPaymentTerm: "tracking_categories,purchase_orders,company,payment_term", - TrackingCategoriesPurchaseOrdersContact: "tracking_categories,purchase_orders,contact", - TrackingCategoriesPurchaseOrdersContactAccountingPeriod: - "tracking_categories,purchase_orders,contact,accounting_period", - TrackingCategoriesPurchaseOrdersContactAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,contact,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersContactCompany: "tracking_categories,purchase_orders,contact,company", - TrackingCategoriesPurchaseOrdersContactCompanyAccountingPeriod: - "tracking_categories,purchase_orders,contact,company,accounting_period", - TrackingCategoriesPurchaseOrdersContactCompanyAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,contact,company,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersContactCompanyEmployee: - "tracking_categories,purchase_orders,contact,company,employee", - TrackingCategoriesPurchaseOrdersContactCompanyEmployeeAccountingPeriod: - "tracking_categories,purchase_orders,contact,company,employee,accounting_period", - TrackingCategoriesPurchaseOrdersContactCompanyEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersContactCompanyEmployeePaymentTerm: - "tracking_categories,purchase_orders,contact,company,employee,payment_term", - TrackingCategoriesPurchaseOrdersContactCompanyPaymentTerm: - "tracking_categories,purchase_orders,contact,company,payment_term", - TrackingCategoriesPurchaseOrdersContactEmployee: "tracking_categories,purchase_orders,contact,employee", - TrackingCategoriesPurchaseOrdersContactEmployeeAccountingPeriod: - "tracking_categories,purchase_orders,contact,employee,accounting_period", - TrackingCategoriesPurchaseOrdersContactEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersContactEmployeePaymentTerm: - "tracking_categories,purchase_orders,contact,employee,payment_term", - TrackingCategoriesPurchaseOrdersContactPaymentTerm: "tracking_categories,purchase_orders,contact,payment_term", - TrackingCategoriesPurchaseOrdersEmployee: "tracking_categories,purchase_orders,employee", - TrackingCategoriesPurchaseOrdersEmployeeAccountingPeriod: - "tracking_categories,purchase_orders,employee,accounting_period", - TrackingCategoriesPurchaseOrdersEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,employee,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersEmployeePaymentTerm: "tracking_categories,purchase_orders,employee,payment_term", - TrackingCategoriesPurchaseOrdersPaymentTerm: "tracking_categories,purchase_orders,payment_term", -} as const; -export type InvoicesListRequestExpand = (typeof InvoicesListRequestExpand)[keyof typeof InvoicesListRequestExpand]; diff --git a/src/api/resources/accounting/resources/invoices/types/InvoicesListRequestExpandItem.ts b/src/api/resources/accounting/resources/invoices/types/InvoicesListRequestExpandItem.ts new file mode 100644 index 000000000..6321efe6f --- /dev/null +++ b/src/api/resources/accounting/resources/invoices/types/InvoicesListRequestExpandItem.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +export const InvoicesListRequestExpandItem = { + AccountingPeriod: "accounting_period", + AppliedCreditNotes: "applied_credit_notes", + AppliedPayments: "applied_payments", + AppliedVendorCredits: "applied_vendor_credits", + Company: "company", + Contact: "contact", + Employee: "employee", + LineItems: "line_items", + PaymentTerm: "payment_term", + Payments: "payments", + PurchaseOrders: "purchase_orders", + SalesOrders: "sales_orders", + TrackingCategories: "tracking_categories", +} as const; +export type InvoicesListRequestExpandItem = + (typeof InvoicesListRequestExpandItem)[keyof typeof InvoicesListRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/invoices/types/InvoicesRetrieveRequestExpand.ts b/src/api/resources/accounting/resources/invoices/types/InvoicesRetrieveRequestExpand.ts deleted file mode 100644 index 508627ee7..000000000 --- a/src/api/resources/accounting/resources/invoices/types/InvoicesRetrieveRequestExpand.ts +++ /dev/null @@ -1,7517 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const InvoicesRetrieveRequestExpand = { - AccountingPeriod: "accounting_period", - AccountingPeriodPaymentTerm: "accounting_period,payment_term", - AppliedCreditNotes: "applied_credit_notes", - AppliedCreditNotesAccountingPeriod: "applied_credit_notes,accounting_period", - AppliedCreditNotesAccountingPeriodPaymentTerm: "applied_credit_notes,accounting_period,payment_term", - AppliedCreditNotesAppliedVendorCredits: "applied_credit_notes,applied_vendor_credits", - AppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "applied_credit_notes,applied_vendor_credits,accounting_period", - AppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - AppliedCreditNotesAppliedVendorCreditsCompany: "applied_credit_notes,applied_vendor_credits,company", - AppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "applied_credit_notes,applied_vendor_credits,company,accounting_period", - AppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - AppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "applied_credit_notes,applied_vendor_credits,company,employee", - AppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - AppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - AppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "applied_credit_notes,applied_vendor_credits,company,payment_term", - AppliedCreditNotesAppliedVendorCreditsContact: "applied_credit_notes,applied_vendor_credits,contact", - AppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "applied_credit_notes,applied_vendor_credits,contact,accounting_period", - AppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedCreditNotesAppliedVendorCreditsContactCompany: "applied_credit_notes,applied_vendor_credits,contact,company", - AppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - AppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "applied_credit_notes,applied_vendor_credits,contact,company,employee", - AppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - AppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - AppliedCreditNotesAppliedVendorCreditsContactEmployee: - "applied_credit_notes,applied_vendor_credits,contact,employee", - AppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - AppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - AppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "applied_credit_notes,applied_vendor_credits,contact,payment_term", - AppliedCreditNotesAppliedVendorCreditsEmployee: "applied_credit_notes,applied_vendor_credits,employee", - AppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_credit_notes,applied_vendor_credits,employee,accounting_period", - AppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "applied_credit_notes,applied_vendor_credits,employee,payment_term", - AppliedCreditNotesAppliedVendorCreditsPaymentTerm: "applied_credit_notes,applied_vendor_credits,payment_term", - AppliedCreditNotesCompany: "applied_credit_notes,company", - AppliedCreditNotesCompanyAccountingPeriod: "applied_credit_notes,company,accounting_period", - AppliedCreditNotesCompanyAccountingPeriodPaymentTerm: "applied_credit_notes,company,accounting_period,payment_term", - AppliedCreditNotesCompanyEmployee: "applied_credit_notes,company,employee", - AppliedCreditNotesCompanyEmployeeAccountingPeriod: "applied_credit_notes,company,employee,accounting_period", - AppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_credit_notes,company,employee,accounting_period,payment_term", - AppliedCreditNotesCompanyEmployeePaymentTerm: "applied_credit_notes,company,employee,payment_term", - AppliedCreditNotesCompanyPaymentTerm: "applied_credit_notes,company,payment_term", - AppliedCreditNotesContact: "applied_credit_notes,contact", - AppliedCreditNotesContactAccountingPeriod: "applied_credit_notes,contact,accounting_period", - AppliedCreditNotesContactAccountingPeriodPaymentTerm: "applied_credit_notes,contact,accounting_period,payment_term", - AppliedCreditNotesContactCompany: "applied_credit_notes,contact,company", - AppliedCreditNotesContactCompanyAccountingPeriod: "applied_credit_notes,contact,company,accounting_period", - AppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "applied_credit_notes,contact,company,accounting_period,payment_term", - AppliedCreditNotesContactCompanyEmployee: "applied_credit_notes,contact,company,employee", - AppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "applied_credit_notes,contact,company,employee,accounting_period", - AppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_credit_notes,contact,company,employee,accounting_period,payment_term", - AppliedCreditNotesContactCompanyEmployeePaymentTerm: "applied_credit_notes,contact,company,employee,payment_term", - AppliedCreditNotesContactCompanyPaymentTerm: "applied_credit_notes,contact,company,payment_term", - AppliedCreditNotesContactEmployee: "applied_credit_notes,contact,employee", - AppliedCreditNotesContactEmployeeAccountingPeriod: "applied_credit_notes,contact,employee,accounting_period", - AppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "applied_credit_notes,contact,employee,accounting_period,payment_term", - AppliedCreditNotesContactEmployeePaymentTerm: "applied_credit_notes,contact,employee,payment_term", - AppliedCreditNotesContactPaymentTerm: "applied_credit_notes,contact,payment_term", - AppliedCreditNotesEmployee: "applied_credit_notes,employee", - AppliedCreditNotesEmployeeAccountingPeriod: "applied_credit_notes,employee,accounting_period", - AppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "applied_credit_notes,employee,accounting_period,payment_term", - AppliedCreditNotesEmployeePaymentTerm: "applied_credit_notes,employee,payment_term", - AppliedCreditNotesPaymentTerm: "applied_credit_notes,payment_term", - AppliedPayments: "applied_payments", - AppliedPaymentsAccountingPeriod: "applied_payments,accounting_period", - AppliedPaymentsAccountingPeriodPaymentTerm: "applied_payments,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotes: "applied_payments,applied_credit_notes", - AppliedPaymentsAppliedCreditNotesAccountingPeriod: "applied_payments,applied_credit_notes,accounting_period", - AppliedPaymentsAppliedCreditNotesAccountingPeriodPaymentTerm: - "applied_payments,applied_credit_notes,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotesAppliedVendorCredits: - "applied_payments,applied_credit_notes,applied_vendor_credits", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "applied_payments,applied_credit_notes,applied_vendor_credits,accounting_period", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_payments,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsCompany: - "applied_payments,applied_credit_notes,applied_vendor_credits,company", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "applied_payments,applied_credit_notes,applied_vendor_credits,company,accounting_period", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_payments,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "applied_payments,applied_credit_notes,applied_vendor_credits,company,employee", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "applied_payments,applied_credit_notes,applied_vendor_credits,company,payment_term", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContact: - "applied_payments,applied_credit_notes,applied_vendor_credits,contact", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactCompany: - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,payment_term", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsEmployee: - "applied_payments,applied_credit_notes,applied_vendor_credits,employee", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "applied_payments,applied_credit_notes,applied_vendor_credits,employee,payment_term", - AppliedPaymentsAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "applied_payments,applied_credit_notes,applied_vendor_credits,payment_term", - AppliedPaymentsAppliedCreditNotesCompany: "applied_payments,applied_credit_notes,company", - AppliedPaymentsAppliedCreditNotesCompanyAccountingPeriod: - "applied_payments,applied_credit_notes,company,accounting_period", - AppliedPaymentsAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "applied_payments,applied_credit_notes,company,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotesCompanyEmployee: "applied_payments,applied_credit_notes,company,employee", - AppliedPaymentsAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "applied_payments,applied_credit_notes,company,employee,accounting_period", - AppliedPaymentsAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,applied_credit_notes,company,employee,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotesCompanyEmployeePaymentTerm: - "applied_payments,applied_credit_notes,company,employee,payment_term", - AppliedPaymentsAppliedCreditNotesCompanyPaymentTerm: "applied_payments,applied_credit_notes,company,payment_term", - AppliedPaymentsAppliedCreditNotesContact: "applied_payments,applied_credit_notes,contact", - AppliedPaymentsAppliedCreditNotesContactAccountingPeriod: - "applied_payments,applied_credit_notes,contact,accounting_period", - AppliedPaymentsAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "applied_payments,applied_credit_notes,contact,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotesContactCompany: "applied_payments,applied_credit_notes,contact,company", - AppliedPaymentsAppliedCreditNotesContactCompanyAccountingPeriod: - "applied_payments,applied_credit_notes,contact,company,accounting_period", - AppliedPaymentsAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,applied_credit_notes,contact,company,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotesContactCompanyEmployee: - "applied_payments,applied_credit_notes,contact,company,employee", - AppliedPaymentsAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "applied_payments,applied_credit_notes,contact,company,employee,accounting_period", - AppliedPaymentsAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "applied_payments,applied_credit_notes,contact,company,employee,payment_term", - AppliedPaymentsAppliedCreditNotesContactCompanyPaymentTerm: - "applied_payments,applied_credit_notes,contact,company,payment_term", - AppliedPaymentsAppliedCreditNotesContactEmployee: "applied_payments,applied_credit_notes,contact,employee", - AppliedPaymentsAppliedCreditNotesContactEmployeeAccountingPeriod: - "applied_payments,applied_credit_notes,contact,employee,accounting_period", - AppliedPaymentsAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,applied_credit_notes,contact,employee,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotesContactEmployeePaymentTerm: - "applied_payments,applied_credit_notes,contact,employee,payment_term", - AppliedPaymentsAppliedCreditNotesContactPaymentTerm: "applied_payments,applied_credit_notes,contact,payment_term", - AppliedPaymentsAppliedCreditNotesEmployee: "applied_payments,applied_credit_notes,employee", - AppliedPaymentsAppliedCreditNotesEmployeeAccountingPeriod: - "applied_payments,applied_credit_notes,employee,accounting_period", - AppliedPaymentsAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "applied_payments,applied_credit_notes,employee,accounting_period,payment_term", - AppliedPaymentsAppliedCreditNotesEmployeePaymentTerm: "applied_payments,applied_credit_notes,employee,payment_term", - AppliedPaymentsAppliedCreditNotesPaymentTerm: "applied_payments,applied_credit_notes,payment_term", - AppliedPaymentsAppliedVendorCredits: "applied_payments,applied_vendor_credits", - AppliedPaymentsAppliedVendorCreditsAccountingPeriod: "applied_payments,applied_vendor_credits,accounting_period", - AppliedPaymentsAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_payments,applied_vendor_credits,accounting_period,payment_term", - AppliedPaymentsAppliedVendorCreditsCompany: "applied_payments,applied_vendor_credits,company", - AppliedPaymentsAppliedVendorCreditsCompanyAccountingPeriod: - "applied_payments,applied_vendor_credits,company,accounting_period", - AppliedPaymentsAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_payments,applied_vendor_credits,company,accounting_period,payment_term", - AppliedPaymentsAppliedVendorCreditsCompanyEmployee: "applied_payments,applied_vendor_credits,company,employee", - AppliedPaymentsAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_payments,applied_vendor_credits,company,employee,accounting_period", - AppliedPaymentsAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedPaymentsAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_payments,applied_vendor_credits,company,employee,payment_term", - AppliedPaymentsAppliedVendorCreditsCompanyPaymentTerm: - "applied_payments,applied_vendor_credits,company,payment_term", - AppliedPaymentsAppliedVendorCreditsContact: "applied_payments,applied_vendor_credits,contact", - AppliedPaymentsAppliedVendorCreditsContactAccountingPeriod: - "applied_payments,applied_vendor_credits,contact,accounting_period", - AppliedPaymentsAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_payments,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedPaymentsAppliedVendorCreditsContactCompany: "applied_payments,applied_vendor_credits,contact,company", - AppliedPaymentsAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_payments,applied_vendor_credits,contact,company,accounting_period", - AppliedPaymentsAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedPaymentsAppliedVendorCreditsContactCompanyEmployee: - "applied_payments,applied_vendor_credits,contact,company,employee", - AppliedPaymentsAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_payments,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedPaymentsAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_payments,applied_vendor_credits,contact,company,employee,payment_term", - AppliedPaymentsAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_payments,applied_vendor_credits,contact,company,payment_term", - AppliedPaymentsAppliedVendorCreditsContactEmployee: "applied_payments,applied_vendor_credits,contact,employee", - AppliedPaymentsAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_payments,applied_vendor_credits,contact,employee,accounting_period", - AppliedPaymentsAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedPaymentsAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_payments,applied_vendor_credits,contact,employee,payment_term", - AppliedPaymentsAppliedVendorCreditsContactPaymentTerm: - "applied_payments,applied_vendor_credits,contact,payment_term", - AppliedPaymentsAppliedVendorCreditsEmployee: "applied_payments,applied_vendor_credits,employee", - AppliedPaymentsAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_payments,applied_vendor_credits,employee,accounting_period", - AppliedPaymentsAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedPaymentsAppliedVendorCreditsEmployeePaymentTerm: - "applied_payments,applied_vendor_credits,employee,payment_term", - AppliedPaymentsAppliedVendorCreditsPaymentTerm: "applied_payments,applied_vendor_credits,payment_term", - AppliedPaymentsCompany: "applied_payments,company", - AppliedPaymentsCompanyAccountingPeriod: "applied_payments,company,accounting_period", - AppliedPaymentsCompanyAccountingPeriodPaymentTerm: "applied_payments,company,accounting_period,payment_term", - AppliedPaymentsCompanyEmployee: "applied_payments,company,employee", - AppliedPaymentsCompanyEmployeeAccountingPeriod: "applied_payments,company,employee,accounting_period", - AppliedPaymentsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,company,employee,accounting_period,payment_term", - AppliedPaymentsCompanyEmployeePaymentTerm: "applied_payments,company,employee,payment_term", - AppliedPaymentsCompanyPaymentTerm: "applied_payments,company,payment_term", - AppliedPaymentsContact: "applied_payments,contact", - AppliedPaymentsContactAccountingPeriod: "applied_payments,contact,accounting_period", - AppliedPaymentsContactAccountingPeriodPaymentTerm: "applied_payments,contact,accounting_period,payment_term", - AppliedPaymentsContactCompany: "applied_payments,contact,company", - AppliedPaymentsContactCompanyAccountingPeriod: "applied_payments,contact,company,accounting_period", - AppliedPaymentsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,contact,company,accounting_period,payment_term", - AppliedPaymentsContactCompanyEmployee: "applied_payments,contact,company,employee", - AppliedPaymentsContactCompanyEmployeeAccountingPeriod: - "applied_payments,contact,company,employee,accounting_period", - AppliedPaymentsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsContactCompanyEmployeePaymentTerm: "applied_payments,contact,company,employee,payment_term", - AppliedPaymentsContactCompanyPaymentTerm: "applied_payments,contact,company,payment_term", - AppliedPaymentsContactEmployee: "applied_payments,contact,employee", - AppliedPaymentsContactEmployeeAccountingPeriod: "applied_payments,contact,employee,accounting_period", - AppliedPaymentsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,contact,employee,accounting_period,payment_term", - AppliedPaymentsContactEmployeePaymentTerm: "applied_payments,contact,employee,payment_term", - AppliedPaymentsContactPaymentTerm: "applied_payments,contact,payment_term", - AppliedPaymentsEmployee: "applied_payments,employee", - AppliedPaymentsEmployeeAccountingPeriod: "applied_payments,employee,accounting_period", - AppliedPaymentsEmployeeAccountingPeriodPaymentTerm: "applied_payments,employee,accounting_period,payment_term", - AppliedPaymentsEmployeePaymentTerm: "applied_payments,employee,payment_term", - AppliedPaymentsLineItems: "applied_payments,line_items", - AppliedPaymentsLineItemsAccountingPeriod: "applied_payments,line_items,accounting_period", - AppliedPaymentsLineItemsAccountingPeriodPaymentTerm: "applied_payments,line_items,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotes: "applied_payments,line_items,applied_credit_notes", - AppliedPaymentsLineItemsAppliedCreditNotesAccountingPeriod: - "applied_payments,line_items,applied_credit_notes,accounting_period", - AppliedPaymentsLineItemsAppliedCreditNotesAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_credit_notes,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCredits: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompany: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContact: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompany: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsEmployee: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesCompany: "applied_payments,line_items,applied_credit_notes,company", - AppliedPaymentsLineItemsAppliedCreditNotesCompanyAccountingPeriod: - "applied_payments,line_items,applied_credit_notes,company,accounting_period", - AppliedPaymentsLineItemsAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_credit_notes,company,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesCompanyEmployee: - "applied_payments,line_items,applied_credit_notes,company,employee", - AppliedPaymentsLineItemsAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,applied_credit_notes,company,employee,accounting_period", - AppliedPaymentsLineItemsAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_credit_notes,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesCompanyEmployeePaymentTerm: - "applied_payments,line_items,applied_credit_notes,company,employee,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesCompanyPaymentTerm: - "applied_payments,line_items,applied_credit_notes,company,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesContact: "applied_payments,line_items,applied_credit_notes,contact", - AppliedPaymentsLineItemsAppliedCreditNotesContactAccountingPeriod: - "applied_payments,line_items,applied_credit_notes,contact,accounting_period", - AppliedPaymentsLineItemsAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_credit_notes,contact,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesContactCompany: - "applied_payments,line_items,applied_credit_notes,contact,company", - AppliedPaymentsLineItemsAppliedCreditNotesContactCompanyAccountingPeriod: - "applied_payments,line_items,applied_credit_notes,contact,company,accounting_period", - AppliedPaymentsLineItemsAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_credit_notes,contact,company,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesContactCompanyEmployee: - "applied_payments,line_items,applied_credit_notes,contact,company,employee", - AppliedPaymentsLineItemsAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,applied_credit_notes,contact,company,employee,accounting_period", - AppliedPaymentsLineItemsAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "applied_payments,line_items,applied_credit_notes,contact,company,employee,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesContactCompanyPaymentTerm: - "applied_payments,line_items,applied_credit_notes,contact,company,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesContactEmployee: - "applied_payments,line_items,applied_credit_notes,contact,employee", - AppliedPaymentsLineItemsAppliedCreditNotesContactEmployeeAccountingPeriod: - "applied_payments,line_items,applied_credit_notes,contact,employee,accounting_period", - AppliedPaymentsLineItemsAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_credit_notes,contact,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesContactEmployeePaymentTerm: - "applied_payments,line_items,applied_credit_notes,contact,employee,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesContactPaymentTerm: - "applied_payments,line_items,applied_credit_notes,contact,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesEmployee: "applied_payments,line_items,applied_credit_notes,employee", - AppliedPaymentsLineItemsAppliedCreditNotesEmployeeAccountingPeriod: - "applied_payments,line_items,applied_credit_notes,employee,accounting_period", - AppliedPaymentsLineItemsAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_credit_notes,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesEmployeePaymentTerm: - "applied_payments,line_items,applied_credit_notes,employee,payment_term", - AppliedPaymentsLineItemsAppliedCreditNotesPaymentTerm: - "applied_payments,line_items,applied_credit_notes,payment_term", - AppliedPaymentsLineItemsAppliedVendorCredits: "applied_payments,line_items,applied_vendor_credits", - AppliedPaymentsLineItemsAppliedVendorCreditsAccountingPeriod: - "applied_payments,line_items,applied_vendor_credits,accounting_period", - AppliedPaymentsLineItemsAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_vendor_credits,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedVendorCreditsCompany: "applied_payments,line_items,applied_vendor_credits,company", - AppliedPaymentsLineItemsAppliedVendorCreditsCompanyAccountingPeriod: - "applied_payments,line_items,applied_vendor_credits,company,accounting_period", - AppliedPaymentsLineItemsAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_vendor_credits,company,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedVendorCreditsCompanyEmployee: - "applied_payments,line_items,applied_vendor_credits,company,employee", - AppliedPaymentsLineItemsAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,applied_vendor_credits,company,employee,accounting_period", - AppliedPaymentsLineItemsAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_payments,line_items,applied_vendor_credits,company,employee,payment_term", - AppliedPaymentsLineItemsAppliedVendorCreditsCompanyPaymentTerm: - "applied_payments,line_items,applied_vendor_credits,company,payment_term", - AppliedPaymentsLineItemsAppliedVendorCreditsContact: "applied_payments,line_items,applied_vendor_credits,contact", - AppliedPaymentsLineItemsAppliedVendorCreditsContactAccountingPeriod: - "applied_payments,line_items,applied_vendor_credits,contact,accounting_period", - AppliedPaymentsLineItemsAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedVendorCreditsContactCompany: - "applied_payments,line_items,applied_vendor_credits,contact,company", - AppliedPaymentsLineItemsAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_payments,line_items,applied_vendor_credits,contact,company,accounting_period", - AppliedPaymentsLineItemsAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedVendorCreditsContactCompanyEmployee: - "applied_payments,line_items,applied_vendor_credits,contact,company,employee", - AppliedPaymentsLineItemsAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedPaymentsLineItemsAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_payments,line_items,applied_vendor_credits,contact,company,employee,payment_term", - AppliedPaymentsLineItemsAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_payments,line_items,applied_vendor_credits,contact,company,payment_term", - AppliedPaymentsLineItemsAppliedVendorCreditsContactEmployee: - "applied_payments,line_items,applied_vendor_credits,contact,employee", - AppliedPaymentsLineItemsAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_payments,line_items,applied_vendor_credits,contact,employee,accounting_period", - AppliedPaymentsLineItemsAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_payments,line_items,applied_vendor_credits,contact,employee,payment_term", - AppliedPaymentsLineItemsAppliedVendorCreditsContactPaymentTerm: - "applied_payments,line_items,applied_vendor_credits,contact,payment_term", - AppliedPaymentsLineItemsAppliedVendorCreditsEmployee: "applied_payments,line_items,applied_vendor_credits,employee", - AppliedPaymentsLineItemsAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_payments,line_items,applied_vendor_credits,employee,accounting_period", - AppliedPaymentsLineItemsAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsAppliedVendorCreditsEmployeePaymentTerm: - "applied_payments,line_items,applied_vendor_credits,employee,payment_term", - AppliedPaymentsLineItemsAppliedVendorCreditsPaymentTerm: - "applied_payments,line_items,applied_vendor_credits,payment_term", - AppliedPaymentsLineItemsCompany: "applied_payments,line_items,company", - AppliedPaymentsLineItemsCompanyAccountingPeriod: "applied_payments,line_items,company,accounting_period", - AppliedPaymentsLineItemsCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,company,accounting_period,payment_term", - AppliedPaymentsLineItemsCompanyEmployee: "applied_payments,line_items,company,employee", - AppliedPaymentsLineItemsCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,company,employee,accounting_period", - AppliedPaymentsLineItemsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsCompanyEmployeePaymentTerm: "applied_payments,line_items,company,employee,payment_term", - AppliedPaymentsLineItemsCompanyPaymentTerm: "applied_payments,line_items,company,payment_term", - AppliedPaymentsLineItemsContact: "applied_payments,line_items,contact", - AppliedPaymentsLineItemsContactAccountingPeriod: "applied_payments,line_items,contact,accounting_period", - AppliedPaymentsLineItemsContactAccountingPeriodPaymentTerm: - "applied_payments,line_items,contact,accounting_period,payment_term", - AppliedPaymentsLineItemsContactCompany: "applied_payments,line_items,contact,company", - AppliedPaymentsLineItemsContactCompanyAccountingPeriod: - "applied_payments,line_items,contact,company,accounting_period", - AppliedPaymentsLineItemsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,contact,company,accounting_period,payment_term", - AppliedPaymentsLineItemsContactCompanyEmployee: "applied_payments,line_items,contact,company,employee", - AppliedPaymentsLineItemsContactCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,contact,company,employee,accounting_period", - AppliedPaymentsLineItemsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsContactCompanyEmployeePaymentTerm: - "applied_payments,line_items,contact,company,employee,payment_term", - AppliedPaymentsLineItemsContactCompanyPaymentTerm: "applied_payments,line_items,contact,company,payment_term", - AppliedPaymentsLineItemsContactEmployee: "applied_payments,line_items,contact,employee", - AppliedPaymentsLineItemsContactEmployeeAccountingPeriod: - "applied_payments,line_items,contact,employee,accounting_period", - AppliedPaymentsLineItemsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,contact,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsContactEmployeePaymentTerm: "applied_payments,line_items,contact,employee,payment_term", - AppliedPaymentsLineItemsContactPaymentTerm: "applied_payments,line_items,contact,payment_term", - AppliedPaymentsLineItemsEmployee: "applied_payments,line_items,employee", - AppliedPaymentsLineItemsEmployeeAccountingPeriod: "applied_payments,line_items,employee,accounting_period", - AppliedPaymentsLineItemsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsEmployeePaymentTerm: "applied_payments,line_items,employee,payment_term", - AppliedPaymentsLineItemsPaymentTerm: "applied_payments,line_items,payment_term", - AppliedPaymentsLineItemsPurchaseOrders: "applied_payments,line_items,purchase_orders", - AppliedPaymentsLineItemsPurchaseOrdersAccountingPeriod: - "applied_payments,line_items,purchase_orders,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotes: - "applied_payments,line_items,purchase_orders,applied_credit_notes", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_credit_notes,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCredits: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompany: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContact: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompany: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployee: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompany: - "applied_payments,line_items,purchase_orders,applied_credit_notes,company", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyEmployee: - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyEmployeePaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContact: - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompany: - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyEmployee: - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactEmployee: - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactEmployeePaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesEmployee: - "applied_payments,line_items,purchase_orders,applied_credit_notes,employee", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesEmployeePaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,employee,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_credit_notes,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCredits: - "applied_payments,line_items,purchase_orders,applied_vendor_credits", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompany: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyEmployee: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContact: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompany: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployee: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactEmployee: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsEmployee: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,employee", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsEmployeePaymentTerm: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsPaymentTerm: - "applied_payments,line_items,purchase_orders,applied_vendor_credits,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersCompany: "applied_payments,line_items,purchase_orders,company", - AppliedPaymentsLineItemsPurchaseOrdersCompanyAccountingPeriod: - "applied_payments,line_items,purchase_orders,company,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,company,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersCompanyEmployee: - "applied_payments,line_items,purchase_orders,company,employee", - AppliedPaymentsLineItemsPurchaseOrdersCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,purchase_orders,company,employee,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersCompanyEmployeePaymentTerm: - "applied_payments,line_items,purchase_orders,company,employee,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersCompanyPaymentTerm: - "applied_payments,line_items,purchase_orders,company,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersContact: "applied_payments,line_items,purchase_orders,contact", - AppliedPaymentsLineItemsPurchaseOrdersContactAccountingPeriod: - "applied_payments,line_items,purchase_orders,contact,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersContactAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,contact,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersContactCompany: "applied_payments,line_items,purchase_orders,contact,company", - AppliedPaymentsLineItemsPurchaseOrdersContactCompanyAccountingPeriod: - "applied_payments,line_items,purchase_orders,contact,company,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,contact,company,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersContactCompanyEmployee: - "applied_payments,line_items,purchase_orders,contact,company,employee", - AppliedPaymentsLineItemsPurchaseOrdersContactCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,purchase_orders,contact,company,employee,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersContactCompanyEmployeePaymentTerm: - "applied_payments,line_items,purchase_orders,contact,company,employee,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersContactCompanyPaymentTerm: - "applied_payments,line_items,purchase_orders,contact,company,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersContactEmployee: - "applied_payments,line_items,purchase_orders,contact,employee", - AppliedPaymentsLineItemsPurchaseOrdersContactEmployeeAccountingPeriod: - "applied_payments,line_items,purchase_orders,contact,employee,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,contact,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersContactEmployeePaymentTerm: - "applied_payments,line_items,purchase_orders,contact,employee,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersContactPaymentTerm: - "applied_payments,line_items,purchase_orders,contact,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersEmployee: "applied_payments,line_items,purchase_orders,employee", - AppliedPaymentsLineItemsPurchaseOrdersEmployeeAccountingPeriod: - "applied_payments,line_items,purchase_orders,employee,accounting_period", - AppliedPaymentsLineItemsPurchaseOrdersEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,purchase_orders,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersEmployeePaymentTerm: - "applied_payments,line_items,purchase_orders,employee,payment_term", - AppliedPaymentsLineItemsPurchaseOrdersPaymentTerm: "applied_payments,line_items,purchase_orders,payment_term", - AppliedPaymentsLineItemsTrackingCategories: "applied_payments,line_items,tracking_categories", - AppliedPaymentsLineItemsTrackingCategoriesAccountingPeriod: - "applied_payments,line_items,tracking_categories,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotes: - "applied_payments,line_items,tracking_categories,applied_credit_notes", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_credit_notes,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCredits: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompany: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContact: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompany: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployee: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompany: - "applied_payments,line_items,tracking_categories,applied_credit_notes,company", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyEmployee: - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContact: - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompany: - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyEmployee: - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactEmployee: - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesEmployee: - "applied_payments,line_items,tracking_categories,applied_credit_notes,employee", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_credit_notes,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCredits: - "applied_payments,line_items,tracking_categories,applied_vendor_credits", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompany: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyEmployee: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContact: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompany: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployee: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactEmployee: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsEmployee: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,employee", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsPaymentTerm: - "applied_payments,line_items,tracking_categories,applied_vendor_credits,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesCompany: "applied_payments,line_items,tracking_categories,company", - AppliedPaymentsLineItemsTrackingCategoriesCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,company,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesCompanyEmployee: - "applied_payments,line_items,tracking_categories,company,employee", - AppliedPaymentsLineItemsTrackingCategoriesCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,company,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesCompanyEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,company,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesCompanyPaymentTerm: - "applied_payments,line_items,tracking_categories,company,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesContact: "applied_payments,line_items,tracking_categories,contact", - AppliedPaymentsLineItemsTrackingCategoriesContactAccountingPeriod: - "applied_payments,line_items,tracking_categories,contact,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesContactAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,contact,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesContactCompany: - "applied_payments,line_items,tracking_categories,contact,company", - AppliedPaymentsLineItemsTrackingCategoriesContactCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,contact,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,contact,company,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesContactCompanyEmployee: - "applied_payments,line_items,tracking_categories,contact,company,employee", - AppliedPaymentsLineItemsTrackingCategoriesContactCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,contact,company,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesContactCompanyEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,contact,company,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesContactCompanyPaymentTerm: - "applied_payments,line_items,tracking_categories,contact,company,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesContactEmployee: - "applied_payments,line_items,tracking_categories,contact,employee", - AppliedPaymentsLineItemsTrackingCategoriesContactEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,contact,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,contact,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesContactEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,contact,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesContactPaymentTerm: - "applied_payments,line_items,tracking_categories,contact,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesEmployee: "applied_payments,line_items,tracking_categories,employee", - AppliedPaymentsLineItemsTrackingCategoriesEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPaymentTerm: - "applied_payments,line_items,tracking_categories,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrders: - "applied_payments,line_items,tracking_categories,purchase_orders", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotes: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCredits: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompany: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContact: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompany: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployee: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompany: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployee: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContact: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompany: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployee: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployee: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployee: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCredits: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompany: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployee: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContact: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompany: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployee: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployee: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployee: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersCompany: - "applied_payments,line_items,tracking_categories,purchase_orders,company", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,company,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyEmployee: - "applied_payments,line_items,tracking_categories,purchase_orders,company,employee", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,company,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,company,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContact: - "applied_payments,line_items,tracking_categories,purchase_orders,contact", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,contact,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,contact,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompany: - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyEmployee: - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactEmployee: - "applied_payments,line_items,tracking_categories,purchase_orders,contact,employee", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,contact,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersEmployee: - "applied_payments,line_items,tracking_categories,purchase_orders,employee", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersEmployeeAccountingPeriod: - "applied_payments,line_items,tracking_categories,purchase_orders,employee,accounting_period", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersEmployeeAccountingPeriodPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,employee,accounting_period,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersEmployeePaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,employee,payment_term", - AppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersPaymentTerm: - "applied_payments,line_items,tracking_categories,purchase_orders,payment_term", - AppliedPaymentsPaymentTerm: "applied_payments,payment_term", - AppliedPaymentsPurchaseOrders: "applied_payments,purchase_orders", - AppliedPaymentsPurchaseOrdersAccountingPeriod: "applied_payments,purchase_orders,accounting_period", - AppliedPaymentsPurchaseOrdersAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotes: "applied_payments,purchase_orders,applied_credit_notes", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAccountingPeriod: - "applied_payments,purchase_orders,applied_credit_notes,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCredits: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompany: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContact: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompany: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployee: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesCompany: - "applied_payments,purchase_orders,applied_credit_notes,company", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriod: - "applied_payments,purchase_orders,applied_credit_notes,company,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesCompanyEmployee: - "applied_payments,purchase_orders,applied_credit_notes,company,employee", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "applied_payments,purchase_orders,applied_credit_notes,company,employee,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesCompanyEmployeePaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,company,employee,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesCompanyPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,company,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesContact: - "applied_payments,purchase_orders,applied_credit_notes,contact", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesContactAccountingPeriod: - "applied_payments,purchase_orders,applied_credit_notes,contact,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesContactCompany: - "applied_payments,purchase_orders,applied_credit_notes,contact,company", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriod: - "applied_payments,purchase_orders,applied_credit_notes,contact,company,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesContactCompanyEmployee: - "applied_payments,purchase_orders,applied_credit_notes,contact,company,employee", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesContactCompanyPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,contact,company,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesContactEmployee: - "applied_payments,purchase_orders,applied_credit_notes,contact,employee", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriod: - "applied_payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesContactEmployeePaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,contact,employee,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesContactPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,contact,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesEmployee: - "applied_payments,purchase_orders,applied_credit_notes,employee", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriod: - "applied_payments,purchase_orders,applied_credit_notes,employee,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesEmployeePaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,employee,payment_term", - AppliedPaymentsPurchaseOrdersAppliedCreditNotesPaymentTerm: - "applied_payments,purchase_orders,applied_credit_notes,payment_term", - AppliedPaymentsPurchaseOrdersAppliedVendorCredits: "applied_payments,purchase_orders,applied_vendor_credits", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsAccountingPeriod: - "applied_payments,purchase_orders,applied_vendor_credits,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsCompany: - "applied_payments,purchase_orders,applied_vendor_credits,company", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriod: - "applied_payments,purchase_orders,applied_vendor_credits,company,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsCompanyEmployee: - "applied_payments,purchase_orders,applied_vendor_credits,company,employee", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_payments,purchase_orders,applied_vendor_credits,company,employee,payment_term", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsCompanyPaymentTerm: - "applied_payments,purchase_orders,applied_vendor_credits,company,payment_term", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsContact: - "applied_payments,purchase_orders,applied_vendor_credits,contact", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactAccountingPeriod: - "applied_payments,purchase_orders,applied_vendor_credits,contact,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactCompany: - "applied_payments,purchase_orders,applied_vendor_credits,contact,company", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployee: - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,payment_term", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactEmployee: - "applied_payments,purchase_orders,applied_vendor_credits,contact,employee", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_payments,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactPaymentTerm: - "applied_payments,purchase_orders,applied_vendor_credits,contact,payment_term", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsEmployee: - "applied_payments,purchase_orders,applied_vendor_credits,employee", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_payments,purchase_orders,applied_vendor_credits,employee,accounting_period", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsEmployeePaymentTerm: - "applied_payments,purchase_orders,applied_vendor_credits,employee,payment_term", - AppliedPaymentsPurchaseOrdersAppliedVendorCreditsPaymentTerm: - "applied_payments,purchase_orders,applied_vendor_credits,payment_term", - AppliedPaymentsPurchaseOrdersCompany: "applied_payments,purchase_orders,company", - AppliedPaymentsPurchaseOrdersCompanyAccountingPeriod: "applied_payments,purchase_orders,company,accounting_period", - AppliedPaymentsPurchaseOrdersCompanyAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,company,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersCompanyEmployee: "applied_payments,purchase_orders,company,employee", - AppliedPaymentsPurchaseOrdersCompanyEmployeeAccountingPeriod: - "applied_payments,purchase_orders,company,employee,accounting_period", - AppliedPaymentsPurchaseOrdersCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,company,employee,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersCompanyEmployeePaymentTerm: - "applied_payments,purchase_orders,company,employee,payment_term", - AppliedPaymentsPurchaseOrdersCompanyPaymentTerm: "applied_payments,purchase_orders,company,payment_term", - AppliedPaymentsPurchaseOrdersContact: "applied_payments,purchase_orders,contact", - AppliedPaymentsPurchaseOrdersContactAccountingPeriod: "applied_payments,purchase_orders,contact,accounting_period", - AppliedPaymentsPurchaseOrdersContactAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,contact,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersContactCompany: "applied_payments,purchase_orders,contact,company", - AppliedPaymentsPurchaseOrdersContactCompanyAccountingPeriod: - "applied_payments,purchase_orders,contact,company,accounting_period", - AppliedPaymentsPurchaseOrdersContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,contact,company,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersContactCompanyEmployee: "applied_payments,purchase_orders,contact,company,employee", - AppliedPaymentsPurchaseOrdersContactCompanyEmployeeAccountingPeriod: - "applied_payments,purchase_orders,contact,company,employee,accounting_period", - AppliedPaymentsPurchaseOrdersContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersContactCompanyEmployeePaymentTerm: - "applied_payments,purchase_orders,contact,company,employee,payment_term", - AppliedPaymentsPurchaseOrdersContactCompanyPaymentTerm: - "applied_payments,purchase_orders,contact,company,payment_term", - AppliedPaymentsPurchaseOrdersContactEmployee: "applied_payments,purchase_orders,contact,employee", - AppliedPaymentsPurchaseOrdersContactEmployeeAccountingPeriod: - "applied_payments,purchase_orders,contact,employee,accounting_period", - AppliedPaymentsPurchaseOrdersContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,contact,employee,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersContactEmployeePaymentTerm: - "applied_payments,purchase_orders,contact,employee,payment_term", - AppliedPaymentsPurchaseOrdersContactPaymentTerm: "applied_payments,purchase_orders,contact,payment_term", - AppliedPaymentsPurchaseOrdersEmployee: "applied_payments,purchase_orders,employee", - AppliedPaymentsPurchaseOrdersEmployeeAccountingPeriod: - "applied_payments,purchase_orders,employee,accounting_period", - AppliedPaymentsPurchaseOrdersEmployeeAccountingPeriodPaymentTerm: - "applied_payments,purchase_orders,employee,accounting_period,payment_term", - AppliedPaymentsPurchaseOrdersEmployeePaymentTerm: "applied_payments,purchase_orders,employee,payment_term", - AppliedPaymentsPurchaseOrdersPaymentTerm: "applied_payments,purchase_orders,payment_term", - AppliedPaymentsTrackingCategories: "applied_payments,tracking_categories", - AppliedPaymentsTrackingCategoriesAccountingPeriod: "applied_payments,tracking_categories,accounting_period", - AppliedPaymentsTrackingCategoriesAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotes: "applied_payments,tracking_categories,applied_credit_notes", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAccountingPeriod: - "applied_payments,tracking_categories,applied_credit_notes,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCredits: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompany: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContact: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompany: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployee: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesCompany: - "applied_payments,tracking_categories,applied_credit_notes,company", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesCompanyAccountingPeriod: - "applied_payments,tracking_categories,applied_credit_notes,company,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,company,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesCompanyEmployee: - "applied_payments,tracking_categories,applied_credit_notes,company,employee", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "applied_payments,tracking_categories,applied_credit_notes,company,employee,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesCompanyEmployeePaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,company,employee,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesCompanyPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,company,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesContact: - "applied_payments,tracking_categories,applied_credit_notes,contact", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesContactAccountingPeriod: - "applied_payments,tracking_categories,applied_credit_notes,contact,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesContactCompany: - "applied_payments,tracking_categories,applied_credit_notes,contact,company", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesContactCompanyAccountingPeriod: - "applied_payments,tracking_categories,applied_credit_notes,contact,company,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesContactCompanyEmployee: - "applied_payments,tracking_categories,applied_credit_notes,contact,company,employee", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesContactCompanyPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,contact,company,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesContactEmployee: - "applied_payments,tracking_categories,applied_credit_notes,contact,employee", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesContactEmployeeAccountingPeriod: - "applied_payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesContactEmployeePaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,contact,employee,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesContactPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,contact,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesEmployee: - "applied_payments,tracking_categories,applied_credit_notes,employee", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesEmployeeAccountingPeriod: - "applied_payments,tracking_categories,applied_credit_notes,employee,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesEmployeePaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,employee,payment_term", - AppliedPaymentsTrackingCategoriesAppliedCreditNotesPaymentTerm: - "applied_payments,tracking_categories,applied_credit_notes,payment_term", - AppliedPaymentsTrackingCategoriesAppliedVendorCredits: - "applied_payments,tracking_categories,applied_vendor_credits", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsAccountingPeriod: - "applied_payments,tracking_categories,applied_vendor_credits,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_vendor_credits,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsCompany: - "applied_payments,tracking_categories,applied_vendor_credits,company", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsCompanyAccountingPeriod: - "applied_payments,tracking_categories,applied_vendor_credits,company,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsCompanyEmployee: - "applied_payments,tracking_categories,applied_vendor_credits,company,employee", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_payments,tracking_categories,applied_vendor_credits,company,employee,payment_term", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsCompanyPaymentTerm: - "applied_payments,tracking_categories,applied_vendor_credits,company,payment_term", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsContact: - "applied_payments,tracking_categories,applied_vendor_credits,contact", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactAccountingPeriod: - "applied_payments,tracking_categories,applied_vendor_credits,contact,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactCompany: - "applied_payments,tracking_categories,applied_vendor_credits,contact,company", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployee: - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,payment_term", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactEmployee: - "applied_payments,tracking_categories,applied_vendor_credits,contact,employee", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_payments,tracking_categories,applied_vendor_credits,contact,employee,payment_term", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactPaymentTerm: - "applied_payments,tracking_categories,applied_vendor_credits,contact,payment_term", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsEmployee: - "applied_payments,tracking_categories,applied_vendor_credits,employee", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_payments,tracking_categories,applied_vendor_credits,employee,accounting_period", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsEmployeePaymentTerm: - "applied_payments,tracking_categories,applied_vendor_credits,employee,payment_term", - AppliedPaymentsTrackingCategoriesAppliedVendorCreditsPaymentTerm: - "applied_payments,tracking_categories,applied_vendor_credits,payment_term", - AppliedPaymentsTrackingCategoriesCompany: "applied_payments,tracking_categories,company", - AppliedPaymentsTrackingCategoriesCompanyAccountingPeriod: - "applied_payments,tracking_categories,company,accounting_period", - AppliedPaymentsTrackingCategoriesCompanyAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,company,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesCompanyEmployee: "applied_payments,tracking_categories,company,employee", - AppliedPaymentsTrackingCategoriesCompanyEmployeeAccountingPeriod: - "applied_payments,tracking_categories,company,employee,accounting_period", - AppliedPaymentsTrackingCategoriesCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,company,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesCompanyEmployeePaymentTerm: - "applied_payments,tracking_categories,company,employee,payment_term", - AppliedPaymentsTrackingCategoriesCompanyPaymentTerm: "applied_payments,tracking_categories,company,payment_term", - AppliedPaymentsTrackingCategoriesContact: "applied_payments,tracking_categories,contact", - AppliedPaymentsTrackingCategoriesContactAccountingPeriod: - "applied_payments,tracking_categories,contact,accounting_period", - AppliedPaymentsTrackingCategoriesContactAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,contact,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesContactCompany: "applied_payments,tracking_categories,contact,company", - AppliedPaymentsTrackingCategoriesContactCompanyAccountingPeriod: - "applied_payments,tracking_categories,contact,company,accounting_period", - AppliedPaymentsTrackingCategoriesContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,contact,company,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesContactCompanyEmployee: - "applied_payments,tracking_categories,contact,company,employee", - AppliedPaymentsTrackingCategoriesContactCompanyEmployeeAccountingPeriod: - "applied_payments,tracking_categories,contact,company,employee,accounting_period", - AppliedPaymentsTrackingCategoriesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesContactCompanyEmployeePaymentTerm: - "applied_payments,tracking_categories,contact,company,employee,payment_term", - AppliedPaymentsTrackingCategoriesContactCompanyPaymentTerm: - "applied_payments,tracking_categories,contact,company,payment_term", - AppliedPaymentsTrackingCategoriesContactEmployee: "applied_payments,tracking_categories,contact,employee", - AppliedPaymentsTrackingCategoriesContactEmployeeAccountingPeriod: - "applied_payments,tracking_categories,contact,employee,accounting_period", - AppliedPaymentsTrackingCategoriesContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,contact,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesContactEmployeePaymentTerm: - "applied_payments,tracking_categories,contact,employee,payment_term", - AppliedPaymentsTrackingCategoriesContactPaymentTerm: "applied_payments,tracking_categories,contact,payment_term", - AppliedPaymentsTrackingCategoriesEmployee: "applied_payments,tracking_categories,employee", - AppliedPaymentsTrackingCategoriesEmployeeAccountingPeriod: - "applied_payments,tracking_categories,employee,accounting_period", - AppliedPaymentsTrackingCategoriesEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesEmployeePaymentTerm: "applied_payments,tracking_categories,employee,payment_term", - AppliedPaymentsTrackingCategoriesPaymentTerm: "applied_payments,tracking_categories,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrders: "applied_payments,tracking_categories,purchase_orders", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotes: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCredits: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompany: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContact: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompany: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployee: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompany: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployee: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeePaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContact: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompany: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployee: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployee: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeePaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployee: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeePaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCredits: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompany: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployee: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeePaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContact: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompany: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployee: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployee: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeePaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployee: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeePaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersCompany: - "applied_payments,tracking_categories,purchase_orders,company", - AppliedPaymentsTrackingCategoriesPurchaseOrdersCompanyAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,company,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersCompanyAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,company,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersCompanyEmployee: - "applied_payments,tracking_categories,purchase_orders,company,employee", - AppliedPaymentsTrackingCategoriesPurchaseOrdersCompanyEmployeeAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,company,employee,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersCompanyEmployeePaymentTerm: - "applied_payments,tracking_categories,purchase_orders,company,employee,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersCompanyPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,company,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersContact: - "applied_payments,tracking_categories,purchase_orders,contact", - AppliedPaymentsTrackingCategoriesPurchaseOrdersContactAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,contact,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersContactAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,contact,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersContactCompany: - "applied_payments,tracking_categories,purchase_orders,contact,company", - AppliedPaymentsTrackingCategoriesPurchaseOrdersContactCompanyAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,contact,company,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersContactCompanyAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersContactCompanyEmployee: - "applied_payments,tracking_categories,purchase_orders,contact,company,employee", - AppliedPaymentsTrackingCategoriesPurchaseOrdersContactCompanyEmployeeAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersContactCompanyEmployeePaymentTerm: - "applied_payments,tracking_categories,purchase_orders,contact,company,employee,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersContactCompanyPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,contact,company,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersContactEmployee: - "applied_payments,tracking_categories,purchase_orders,contact,employee", - AppliedPaymentsTrackingCategoriesPurchaseOrdersContactEmployeeAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,contact,employee,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersContactEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersContactEmployeePaymentTerm: - "applied_payments,tracking_categories,purchase_orders,contact,employee,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersContactPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,contact,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersEmployee: - "applied_payments,tracking_categories,purchase_orders,employee", - AppliedPaymentsTrackingCategoriesPurchaseOrdersEmployeeAccountingPeriod: - "applied_payments,tracking_categories,purchase_orders,employee,accounting_period", - AppliedPaymentsTrackingCategoriesPurchaseOrdersEmployeeAccountingPeriodPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,employee,accounting_period,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersEmployeePaymentTerm: - "applied_payments,tracking_categories,purchase_orders,employee,payment_term", - AppliedPaymentsTrackingCategoriesPurchaseOrdersPaymentTerm: - "applied_payments,tracking_categories,purchase_orders,payment_term", - AppliedVendorCredits: "applied_vendor_credits", - AppliedVendorCreditsAccountingPeriod: "applied_vendor_credits,accounting_period", - AppliedVendorCreditsAccountingPeriodPaymentTerm: "applied_vendor_credits,accounting_period,payment_term", - AppliedVendorCreditsCompany: "applied_vendor_credits,company", - AppliedVendorCreditsCompanyAccountingPeriod: "applied_vendor_credits,company,accounting_period", - AppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "applied_vendor_credits,company,accounting_period,payment_term", - AppliedVendorCreditsCompanyEmployee: "applied_vendor_credits,company,employee", - AppliedVendorCreditsCompanyEmployeeAccountingPeriod: "applied_vendor_credits,company,employee,accounting_period", - AppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_vendor_credits,company,employee,accounting_period,payment_term", - AppliedVendorCreditsCompanyEmployeePaymentTerm: "applied_vendor_credits,company,employee,payment_term", - AppliedVendorCreditsCompanyPaymentTerm: "applied_vendor_credits,company,payment_term", - AppliedVendorCreditsContact: "applied_vendor_credits,contact", - AppliedVendorCreditsContactAccountingPeriod: "applied_vendor_credits,contact,accounting_period", - AppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "applied_vendor_credits,contact,accounting_period,payment_term", - AppliedVendorCreditsContactCompany: "applied_vendor_credits,contact,company", - AppliedVendorCreditsContactCompanyAccountingPeriod: "applied_vendor_credits,contact,company,accounting_period", - AppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "applied_vendor_credits,contact,company,accounting_period,payment_term", - AppliedVendorCreditsContactCompanyEmployee: "applied_vendor_credits,contact,company,employee", - AppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "applied_vendor_credits,contact,company,employee,accounting_period", - AppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - AppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "applied_vendor_credits,contact,company,employee,payment_term", - AppliedVendorCreditsContactCompanyPaymentTerm: "applied_vendor_credits,contact,company,payment_term", - AppliedVendorCreditsContactEmployee: "applied_vendor_credits,contact,employee", - AppliedVendorCreditsContactEmployeeAccountingPeriod: "applied_vendor_credits,contact,employee,accounting_period", - AppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "applied_vendor_credits,contact,employee,accounting_period,payment_term", - AppliedVendorCreditsContactEmployeePaymentTerm: "applied_vendor_credits,contact,employee,payment_term", - AppliedVendorCreditsContactPaymentTerm: "applied_vendor_credits,contact,payment_term", - AppliedVendorCreditsEmployee: "applied_vendor_credits,employee", - AppliedVendorCreditsEmployeeAccountingPeriod: "applied_vendor_credits,employee,accounting_period", - AppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "applied_vendor_credits,employee,accounting_period,payment_term", - AppliedVendorCreditsEmployeePaymentTerm: "applied_vendor_credits,employee,payment_term", - AppliedVendorCreditsPaymentTerm: "applied_vendor_credits,payment_term", - Company: "company", - CompanyAccountingPeriod: "company,accounting_period", - CompanyAccountingPeriodPaymentTerm: "company,accounting_period,payment_term", - CompanyEmployee: "company,employee", - CompanyEmployeeAccountingPeriod: "company,employee,accounting_period", - CompanyEmployeeAccountingPeriodPaymentTerm: "company,employee,accounting_period,payment_term", - CompanyEmployeePaymentTerm: "company,employee,payment_term", - CompanyPaymentTerm: "company,payment_term", - Contact: "contact", - ContactAccountingPeriod: "contact,accounting_period", - ContactAccountingPeriodPaymentTerm: "contact,accounting_period,payment_term", - ContactCompany: "contact,company", - ContactCompanyAccountingPeriod: "contact,company,accounting_period", - ContactCompanyAccountingPeriodPaymentTerm: "contact,company,accounting_period,payment_term", - ContactCompanyEmployee: "contact,company,employee", - ContactCompanyEmployeeAccountingPeriod: "contact,company,employee,accounting_period", - ContactCompanyEmployeeAccountingPeriodPaymentTerm: "contact,company,employee,accounting_period,payment_term", - ContactCompanyEmployeePaymentTerm: "contact,company,employee,payment_term", - ContactCompanyPaymentTerm: "contact,company,payment_term", - ContactEmployee: "contact,employee", - ContactEmployeeAccountingPeriod: "contact,employee,accounting_period", - ContactEmployeeAccountingPeriodPaymentTerm: "contact,employee,accounting_period,payment_term", - ContactEmployeePaymentTerm: "contact,employee,payment_term", - ContactPaymentTerm: "contact,payment_term", - Employee: "employee", - EmployeeAccountingPeriod: "employee,accounting_period", - EmployeeAccountingPeriodPaymentTerm: "employee,accounting_period,payment_term", - EmployeePaymentTerm: "employee,payment_term", - LineItems: "line_items", - LineItemsAccountingPeriod: "line_items,accounting_period", - LineItemsAccountingPeriodPaymentTerm: "line_items,accounting_period,payment_term", - LineItemsAppliedCreditNotes: "line_items,applied_credit_notes", - LineItemsAppliedCreditNotesAccountingPeriod: "line_items,applied_credit_notes,accounting_period", - LineItemsAppliedCreditNotesAccountingPeriodPaymentTerm: - "line_items,applied_credit_notes,accounting_period,payment_term", - LineItemsAppliedCreditNotesAppliedVendorCredits: "line_items,applied_credit_notes,applied_vendor_credits", - LineItemsAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "line_items,applied_credit_notes,applied_vendor_credits,accounting_period", - LineItemsAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "line_items,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - LineItemsAppliedCreditNotesAppliedVendorCreditsCompany: - "line_items,applied_credit_notes,applied_vendor_credits,company", - LineItemsAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period", - LineItemsAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - LineItemsAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "line_items,applied_credit_notes,applied_vendor_credits,company,employee", - LineItemsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - LineItemsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - LineItemsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "line_items,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - LineItemsAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "line_items,applied_credit_notes,applied_vendor_credits,company,payment_term", - LineItemsAppliedCreditNotesAppliedVendorCreditsContact: - "line_items,applied_credit_notes,applied_vendor_credits,contact", - LineItemsAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - LineItemsAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - LineItemsAppliedCreditNotesAppliedVendorCreditsContactCompany: - "line_items,applied_credit_notes,applied_vendor_credits,contact,company", - LineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - LineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - LineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee", - LineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - LineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - LineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - LineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - LineItemsAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "line_items,applied_credit_notes,applied_vendor_credits,contact,employee", - LineItemsAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - LineItemsAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - LineItemsAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "line_items,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - LineItemsAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "line_items,applied_credit_notes,applied_vendor_credits,contact,payment_term", - LineItemsAppliedCreditNotesAppliedVendorCreditsEmployee: - "line_items,applied_credit_notes,applied_vendor_credits,employee", - LineItemsAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - LineItemsAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - LineItemsAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "line_items,applied_credit_notes,applied_vendor_credits,employee,payment_term", - LineItemsAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "line_items,applied_credit_notes,applied_vendor_credits,payment_term", - LineItemsAppliedCreditNotesCompany: "line_items,applied_credit_notes,company", - LineItemsAppliedCreditNotesCompanyAccountingPeriod: "line_items,applied_credit_notes,company,accounting_period", - LineItemsAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "line_items,applied_credit_notes,company,accounting_period,payment_term", - LineItemsAppliedCreditNotesCompanyEmployee: "line_items,applied_credit_notes,company,employee", - LineItemsAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "line_items,applied_credit_notes,company,employee,accounting_period", - LineItemsAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,applied_credit_notes,company,employee,accounting_period,payment_term", - LineItemsAppliedCreditNotesCompanyEmployeePaymentTerm: - "line_items,applied_credit_notes,company,employee,payment_term", - LineItemsAppliedCreditNotesCompanyPaymentTerm: "line_items,applied_credit_notes,company,payment_term", - LineItemsAppliedCreditNotesContact: "line_items,applied_credit_notes,contact", - LineItemsAppliedCreditNotesContactAccountingPeriod: "line_items,applied_credit_notes,contact,accounting_period", - LineItemsAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "line_items,applied_credit_notes,contact,accounting_period,payment_term", - LineItemsAppliedCreditNotesContactCompany: "line_items,applied_credit_notes,contact,company", - LineItemsAppliedCreditNotesContactCompanyAccountingPeriod: - "line_items,applied_credit_notes,contact,company,accounting_period", - LineItemsAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "line_items,applied_credit_notes,contact,company,accounting_period,payment_term", - LineItemsAppliedCreditNotesContactCompanyEmployee: "line_items,applied_credit_notes,contact,company,employee", - LineItemsAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "line_items,applied_credit_notes,contact,company,employee,accounting_period", - LineItemsAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - LineItemsAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "line_items,applied_credit_notes,contact,company,employee,payment_term", - LineItemsAppliedCreditNotesContactCompanyPaymentTerm: - "line_items,applied_credit_notes,contact,company,payment_term", - LineItemsAppliedCreditNotesContactEmployee: "line_items,applied_credit_notes,contact,employee", - LineItemsAppliedCreditNotesContactEmployeeAccountingPeriod: - "line_items,applied_credit_notes,contact,employee,accounting_period", - LineItemsAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "line_items,applied_credit_notes,contact,employee,accounting_period,payment_term", - LineItemsAppliedCreditNotesContactEmployeePaymentTerm: - "line_items,applied_credit_notes,contact,employee,payment_term", - LineItemsAppliedCreditNotesContactPaymentTerm: "line_items,applied_credit_notes,contact,payment_term", - LineItemsAppliedCreditNotesEmployee: "line_items,applied_credit_notes,employee", - LineItemsAppliedCreditNotesEmployeeAccountingPeriod: "line_items,applied_credit_notes,employee,accounting_period", - LineItemsAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "line_items,applied_credit_notes,employee,accounting_period,payment_term", - LineItemsAppliedCreditNotesEmployeePaymentTerm: "line_items,applied_credit_notes,employee,payment_term", - LineItemsAppliedCreditNotesPaymentTerm: "line_items,applied_credit_notes,payment_term", - LineItemsAppliedVendorCredits: "line_items,applied_vendor_credits", - LineItemsAppliedVendorCreditsAccountingPeriod: "line_items,applied_vendor_credits,accounting_period", - LineItemsAppliedVendorCreditsAccountingPeriodPaymentTerm: - "line_items,applied_vendor_credits,accounting_period,payment_term", - LineItemsAppliedVendorCreditsCompany: "line_items,applied_vendor_credits,company", - LineItemsAppliedVendorCreditsCompanyAccountingPeriod: "line_items,applied_vendor_credits,company,accounting_period", - LineItemsAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "line_items,applied_vendor_credits,company,accounting_period,payment_term", - LineItemsAppliedVendorCreditsCompanyEmployee: "line_items,applied_vendor_credits,company,employee", - LineItemsAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "line_items,applied_vendor_credits,company,employee,accounting_period", - LineItemsAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,applied_vendor_credits,company,employee,accounting_period,payment_term", - LineItemsAppliedVendorCreditsCompanyEmployeePaymentTerm: - "line_items,applied_vendor_credits,company,employee,payment_term", - LineItemsAppliedVendorCreditsCompanyPaymentTerm: "line_items,applied_vendor_credits,company,payment_term", - LineItemsAppliedVendorCreditsContact: "line_items,applied_vendor_credits,contact", - LineItemsAppliedVendorCreditsContactAccountingPeriod: "line_items,applied_vendor_credits,contact,accounting_period", - LineItemsAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "line_items,applied_vendor_credits,contact,accounting_period,payment_term", - LineItemsAppliedVendorCreditsContactCompany: "line_items,applied_vendor_credits,contact,company", - LineItemsAppliedVendorCreditsContactCompanyAccountingPeriod: - "line_items,applied_vendor_credits,contact,company,accounting_period", - LineItemsAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "line_items,applied_vendor_credits,contact,company,accounting_period,payment_term", - LineItemsAppliedVendorCreditsContactCompanyEmployee: "line_items,applied_vendor_credits,contact,company,employee", - LineItemsAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "line_items,applied_vendor_credits,contact,company,employee,accounting_period", - LineItemsAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - LineItemsAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "line_items,applied_vendor_credits,contact,company,employee,payment_term", - LineItemsAppliedVendorCreditsContactCompanyPaymentTerm: - "line_items,applied_vendor_credits,contact,company,payment_term", - LineItemsAppliedVendorCreditsContactEmployee: "line_items,applied_vendor_credits,contact,employee", - LineItemsAppliedVendorCreditsContactEmployeeAccountingPeriod: - "line_items,applied_vendor_credits,contact,employee,accounting_period", - LineItemsAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "line_items,applied_vendor_credits,contact,employee,accounting_period,payment_term", - LineItemsAppliedVendorCreditsContactEmployeePaymentTerm: - "line_items,applied_vendor_credits,contact,employee,payment_term", - LineItemsAppliedVendorCreditsContactPaymentTerm: "line_items,applied_vendor_credits,contact,payment_term", - LineItemsAppliedVendorCreditsEmployee: "line_items,applied_vendor_credits,employee", - LineItemsAppliedVendorCreditsEmployeeAccountingPeriod: - "line_items,applied_vendor_credits,employee,accounting_period", - LineItemsAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "line_items,applied_vendor_credits,employee,accounting_period,payment_term", - LineItemsAppliedVendorCreditsEmployeePaymentTerm: "line_items,applied_vendor_credits,employee,payment_term", - LineItemsAppliedVendorCreditsPaymentTerm: "line_items,applied_vendor_credits,payment_term", - LineItemsCompany: "line_items,company", - LineItemsCompanyAccountingPeriod: "line_items,company,accounting_period", - LineItemsCompanyAccountingPeriodPaymentTerm: "line_items,company,accounting_period,payment_term", - LineItemsCompanyEmployee: "line_items,company,employee", - LineItemsCompanyEmployeeAccountingPeriod: "line_items,company,employee,accounting_period", - LineItemsCompanyEmployeeAccountingPeriodPaymentTerm: "line_items,company,employee,accounting_period,payment_term", - LineItemsCompanyEmployeePaymentTerm: "line_items,company,employee,payment_term", - LineItemsCompanyPaymentTerm: "line_items,company,payment_term", - LineItemsContact: "line_items,contact", - LineItemsContactAccountingPeriod: "line_items,contact,accounting_period", - LineItemsContactAccountingPeriodPaymentTerm: "line_items,contact,accounting_period,payment_term", - LineItemsContactCompany: "line_items,contact,company", - LineItemsContactCompanyAccountingPeriod: "line_items,contact,company,accounting_period", - LineItemsContactCompanyAccountingPeriodPaymentTerm: "line_items,contact,company,accounting_period,payment_term", - LineItemsContactCompanyEmployee: "line_items,contact,company,employee", - LineItemsContactCompanyEmployeeAccountingPeriod: "line_items,contact,company,employee,accounting_period", - LineItemsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,contact,company,employee,accounting_period,payment_term", - LineItemsContactCompanyEmployeePaymentTerm: "line_items,contact,company,employee,payment_term", - LineItemsContactCompanyPaymentTerm: "line_items,contact,company,payment_term", - LineItemsContactEmployee: "line_items,contact,employee", - LineItemsContactEmployeeAccountingPeriod: "line_items,contact,employee,accounting_period", - LineItemsContactEmployeeAccountingPeriodPaymentTerm: "line_items,contact,employee,accounting_period,payment_term", - LineItemsContactEmployeePaymentTerm: "line_items,contact,employee,payment_term", - LineItemsContactPaymentTerm: "line_items,contact,payment_term", - LineItemsEmployee: "line_items,employee", - LineItemsEmployeeAccountingPeriod: "line_items,employee,accounting_period", - LineItemsEmployeeAccountingPeriodPaymentTerm: "line_items,employee,accounting_period,payment_term", - LineItemsEmployeePaymentTerm: "line_items,employee,payment_term", - LineItemsPaymentTerm: "line_items,payment_term", - LineItemsPurchaseOrders: "line_items,purchase_orders", - LineItemsPurchaseOrdersAccountingPeriod: "line_items,purchase_orders,accounting_period", - LineItemsPurchaseOrdersAccountingPeriodPaymentTerm: "line_items,purchase_orders,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotes: "line_items,purchase_orders,applied_credit_notes", - LineItemsPurchaseOrdersAppliedCreditNotesAccountingPeriod: - "line_items,purchase_orders,applied_credit_notes,accounting_period", - LineItemsPurchaseOrdersAppliedCreditNotesAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCredits: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompany: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContact: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompany: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployee: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesCompany: "line_items,purchase_orders,applied_credit_notes,company", - LineItemsPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriod: - "line_items,purchase_orders,applied_credit_notes,company,accounting_period", - LineItemsPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesCompanyEmployee: - "line_items,purchase_orders,applied_credit_notes,company,employee", - LineItemsPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period", - LineItemsPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesCompanyEmployeePaymentTerm: - "line_items,purchase_orders,applied_credit_notes,company,employee,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesCompanyPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,company,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesContact: "line_items,purchase_orders,applied_credit_notes,contact", - LineItemsPurchaseOrdersAppliedCreditNotesContactAccountingPeriod: - "line_items,purchase_orders,applied_credit_notes,contact,accounting_period", - LineItemsPurchaseOrdersAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesContactCompany: - "line_items,purchase_orders,applied_credit_notes,contact,company", - LineItemsPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriod: - "line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period", - LineItemsPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesContactCompanyEmployee: - "line_items,purchase_orders,applied_credit_notes,contact,company,employee", - LineItemsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - LineItemsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "line_items,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesContactCompanyPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,contact,company,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesContactEmployee: - "line_items,purchase_orders,applied_credit_notes,contact,employee", - LineItemsPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriod: - "line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - LineItemsPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesContactEmployeePaymentTerm: - "line_items,purchase_orders,applied_credit_notes,contact,employee,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesContactPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,contact,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesEmployee: "line_items,purchase_orders,applied_credit_notes,employee", - LineItemsPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriod: - "line_items,purchase_orders,applied_credit_notes,employee,accounting_period", - LineItemsPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesEmployeePaymentTerm: - "line_items,purchase_orders,applied_credit_notes,employee,payment_term", - LineItemsPurchaseOrdersAppliedCreditNotesPaymentTerm: - "line_items,purchase_orders,applied_credit_notes,payment_term", - LineItemsPurchaseOrdersAppliedVendorCredits: "line_items,purchase_orders,applied_vendor_credits", - LineItemsPurchaseOrdersAppliedVendorCreditsAccountingPeriod: - "line_items,purchase_orders,applied_vendor_credits,accounting_period", - LineItemsPurchaseOrdersAppliedVendorCreditsAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedVendorCreditsCompany: "line_items,purchase_orders,applied_vendor_credits,company", - LineItemsPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriod: - "line_items,purchase_orders,applied_vendor_credits,company,accounting_period", - LineItemsPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedVendorCreditsCompanyEmployee: - "line_items,purchase_orders,applied_vendor_credits,company,employee", - LineItemsPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - LineItemsPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedVendorCreditsCompanyEmployeePaymentTerm: - "line_items,purchase_orders,applied_vendor_credits,company,employee,payment_term", - LineItemsPurchaseOrdersAppliedVendorCreditsCompanyPaymentTerm: - "line_items,purchase_orders,applied_vendor_credits,company,payment_term", - LineItemsPurchaseOrdersAppliedVendorCreditsContact: "line_items,purchase_orders,applied_vendor_credits,contact", - LineItemsPurchaseOrdersAppliedVendorCreditsContactAccountingPeriod: - "line_items,purchase_orders,applied_vendor_credits,contact,accounting_period", - LineItemsPurchaseOrdersAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedVendorCreditsContactCompany: - "line_items,purchase_orders,applied_vendor_credits,contact,company", - LineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriod: - "line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - LineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployee: - "line_items,purchase_orders,applied_vendor_credits,contact,company,employee", - LineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - LineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "line_items,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - LineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyPaymentTerm: - "line_items,purchase_orders,applied_vendor_credits,contact,company,payment_term", - LineItemsPurchaseOrdersAppliedVendorCreditsContactEmployee: - "line_items,purchase_orders,applied_vendor_credits,contact,employee", - LineItemsPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriod: - "line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - LineItemsPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedVendorCreditsContactEmployeePaymentTerm: - "line_items,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - LineItemsPurchaseOrdersAppliedVendorCreditsContactPaymentTerm: - "line_items,purchase_orders,applied_vendor_credits,contact,payment_term", - LineItemsPurchaseOrdersAppliedVendorCreditsEmployee: "line_items,purchase_orders,applied_vendor_credits,employee", - LineItemsPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriod: - "line_items,purchase_orders,applied_vendor_credits,employee,accounting_period", - LineItemsPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "line_items,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - LineItemsPurchaseOrdersAppliedVendorCreditsEmployeePaymentTerm: - "line_items,purchase_orders,applied_vendor_credits,employee,payment_term", - LineItemsPurchaseOrdersAppliedVendorCreditsPaymentTerm: - "line_items,purchase_orders,applied_vendor_credits,payment_term", - LineItemsPurchaseOrdersCompany: "line_items,purchase_orders,company", - LineItemsPurchaseOrdersCompanyAccountingPeriod: "line_items,purchase_orders,company,accounting_period", - LineItemsPurchaseOrdersCompanyAccountingPeriodPaymentTerm: - "line_items,purchase_orders,company,accounting_period,payment_term", - LineItemsPurchaseOrdersCompanyEmployee: "line_items,purchase_orders,company,employee", - LineItemsPurchaseOrdersCompanyEmployeeAccountingPeriod: - "line_items,purchase_orders,company,employee,accounting_period", - LineItemsPurchaseOrdersCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,purchase_orders,company,employee,accounting_period,payment_term", - LineItemsPurchaseOrdersCompanyEmployeePaymentTerm: "line_items,purchase_orders,company,employee,payment_term", - LineItemsPurchaseOrdersCompanyPaymentTerm: "line_items,purchase_orders,company,payment_term", - LineItemsPurchaseOrdersContact: "line_items,purchase_orders,contact", - LineItemsPurchaseOrdersContactAccountingPeriod: "line_items,purchase_orders,contact,accounting_period", - LineItemsPurchaseOrdersContactAccountingPeriodPaymentTerm: - "line_items,purchase_orders,contact,accounting_period,payment_term", - LineItemsPurchaseOrdersContactCompany: "line_items,purchase_orders,contact,company", - LineItemsPurchaseOrdersContactCompanyAccountingPeriod: - "line_items,purchase_orders,contact,company,accounting_period", - LineItemsPurchaseOrdersContactCompanyAccountingPeriodPaymentTerm: - "line_items,purchase_orders,contact,company,accounting_period,payment_term", - LineItemsPurchaseOrdersContactCompanyEmployee: "line_items,purchase_orders,contact,company,employee", - LineItemsPurchaseOrdersContactCompanyEmployeeAccountingPeriod: - "line_items,purchase_orders,contact,company,employee,accounting_period", - LineItemsPurchaseOrdersContactCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,purchase_orders,contact,company,employee,accounting_period,payment_term", - LineItemsPurchaseOrdersContactCompanyEmployeePaymentTerm: - "line_items,purchase_orders,contact,company,employee,payment_term", - LineItemsPurchaseOrdersContactCompanyPaymentTerm: "line_items,purchase_orders,contact,company,payment_term", - LineItemsPurchaseOrdersContactEmployee: "line_items,purchase_orders,contact,employee", - LineItemsPurchaseOrdersContactEmployeeAccountingPeriod: - "line_items,purchase_orders,contact,employee,accounting_period", - LineItemsPurchaseOrdersContactEmployeeAccountingPeriodPaymentTerm: - "line_items,purchase_orders,contact,employee,accounting_period,payment_term", - LineItemsPurchaseOrdersContactEmployeePaymentTerm: "line_items,purchase_orders,contact,employee,payment_term", - LineItemsPurchaseOrdersContactPaymentTerm: "line_items,purchase_orders,contact,payment_term", - LineItemsPurchaseOrdersEmployee: "line_items,purchase_orders,employee", - LineItemsPurchaseOrdersEmployeeAccountingPeriod: "line_items,purchase_orders,employee,accounting_period", - LineItemsPurchaseOrdersEmployeeAccountingPeriodPaymentTerm: - "line_items,purchase_orders,employee,accounting_period,payment_term", - LineItemsPurchaseOrdersEmployeePaymentTerm: "line_items,purchase_orders,employee,payment_term", - LineItemsPurchaseOrdersPaymentTerm: "line_items,purchase_orders,payment_term", - LineItemsTrackingCategories: "line_items,tracking_categories", - LineItemsTrackingCategoriesAccountingPeriod: "line_items,tracking_categories,accounting_period", - LineItemsTrackingCategoriesAccountingPeriodPaymentTerm: - "line_items,tracking_categories,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotes: "line_items,tracking_categories,applied_credit_notes", - LineItemsTrackingCategoriesAppliedCreditNotesAccountingPeriod: - "line_items,tracking_categories,applied_credit_notes,accounting_period", - LineItemsTrackingCategoriesAppliedCreditNotesAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCredits: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompany: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContact: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompany: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployee: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesCompany: "line_items,tracking_categories,applied_credit_notes,company", - LineItemsTrackingCategoriesAppliedCreditNotesCompanyAccountingPeriod: - "line_items,tracking_categories,applied_credit_notes,company,accounting_period", - LineItemsTrackingCategoriesAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,company,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesCompanyEmployee: - "line_items,tracking_categories,applied_credit_notes,company,employee", - LineItemsTrackingCategoriesAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period", - LineItemsTrackingCategoriesAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesCompanyEmployeePaymentTerm: - "line_items,tracking_categories,applied_credit_notes,company,employee,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesCompanyPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,company,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesContact: "line_items,tracking_categories,applied_credit_notes,contact", - LineItemsTrackingCategoriesAppliedCreditNotesContactAccountingPeriod: - "line_items,tracking_categories,applied_credit_notes,contact,accounting_period", - LineItemsTrackingCategoriesAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesContactCompany: - "line_items,tracking_categories,applied_credit_notes,contact,company", - LineItemsTrackingCategoriesAppliedCreditNotesContactCompanyAccountingPeriod: - "line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period", - LineItemsTrackingCategoriesAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesContactCompanyEmployee: - "line_items,tracking_categories,applied_credit_notes,contact,company,employee", - LineItemsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period", - LineItemsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "line_items,tracking_categories,applied_credit_notes,contact,company,employee,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesContactCompanyPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,contact,company,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesContactEmployee: - "line_items,tracking_categories,applied_credit_notes,contact,employee", - LineItemsTrackingCategoriesAppliedCreditNotesContactEmployeeAccountingPeriod: - "line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period", - LineItemsTrackingCategoriesAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesContactEmployeePaymentTerm: - "line_items,tracking_categories,applied_credit_notes,contact,employee,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesContactPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,contact,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesEmployee: - "line_items,tracking_categories,applied_credit_notes,employee", - LineItemsTrackingCategoriesAppliedCreditNotesEmployeeAccountingPeriod: - "line_items,tracking_categories,applied_credit_notes,employee,accounting_period", - LineItemsTrackingCategoriesAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesEmployeePaymentTerm: - "line_items,tracking_categories,applied_credit_notes,employee,payment_term", - LineItemsTrackingCategoriesAppliedCreditNotesPaymentTerm: - "line_items,tracking_categories,applied_credit_notes,payment_term", - LineItemsTrackingCategoriesAppliedVendorCredits: "line_items,tracking_categories,applied_vendor_credits", - LineItemsTrackingCategoriesAppliedVendorCreditsAccountingPeriod: - "line_items,tracking_categories,applied_vendor_credits,accounting_period", - LineItemsTrackingCategoriesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_vendor_credits,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedVendorCreditsCompany: - "line_items,tracking_categories,applied_vendor_credits,company", - LineItemsTrackingCategoriesAppliedVendorCreditsCompanyAccountingPeriod: - "line_items,tracking_categories,applied_vendor_credits,company,accounting_period", - LineItemsTrackingCategoriesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedVendorCreditsCompanyEmployee: - "line_items,tracking_categories,applied_vendor_credits,company,employee", - LineItemsTrackingCategoriesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period", - LineItemsTrackingCategoriesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "line_items,tracking_categories,applied_vendor_credits,company,employee,payment_term", - LineItemsTrackingCategoriesAppliedVendorCreditsCompanyPaymentTerm: - "line_items,tracking_categories,applied_vendor_credits,company,payment_term", - LineItemsTrackingCategoriesAppliedVendorCreditsContact: - "line_items,tracking_categories,applied_vendor_credits,contact", - LineItemsTrackingCategoriesAppliedVendorCreditsContactAccountingPeriod: - "line_items,tracking_categories,applied_vendor_credits,contact,accounting_period", - LineItemsTrackingCategoriesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedVendorCreditsContactCompany: - "line_items,tracking_categories,applied_vendor_credits,contact,company", - LineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyAccountingPeriod: - "line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period", - LineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployee: - "line_items,tracking_categories,applied_vendor_credits,contact,company,employee", - LineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period", - LineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "line_items,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term", - LineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyPaymentTerm: - "line_items,tracking_categories,applied_vendor_credits,contact,company,payment_term", - LineItemsTrackingCategoriesAppliedVendorCreditsContactEmployee: - "line_items,tracking_categories,applied_vendor_credits,contact,employee", - LineItemsTrackingCategoriesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period", - LineItemsTrackingCategoriesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedVendorCreditsContactEmployeePaymentTerm: - "line_items,tracking_categories,applied_vendor_credits,contact,employee,payment_term", - LineItemsTrackingCategoriesAppliedVendorCreditsContactPaymentTerm: - "line_items,tracking_categories,applied_vendor_credits,contact,payment_term", - LineItemsTrackingCategoriesAppliedVendorCreditsEmployee: - "line_items,tracking_categories,applied_vendor_credits,employee", - LineItemsTrackingCategoriesAppliedVendorCreditsEmployeeAccountingPeriod: - "line_items,tracking_categories,applied_vendor_credits,employee,accounting_period", - LineItemsTrackingCategoriesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesAppliedVendorCreditsEmployeePaymentTerm: - "line_items,tracking_categories,applied_vendor_credits,employee,payment_term", - LineItemsTrackingCategoriesAppliedVendorCreditsPaymentTerm: - "line_items,tracking_categories,applied_vendor_credits,payment_term", - LineItemsTrackingCategoriesCompany: "line_items,tracking_categories,company", - LineItemsTrackingCategoriesCompanyAccountingPeriod: "line_items,tracking_categories,company,accounting_period", - LineItemsTrackingCategoriesCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,company,accounting_period,payment_term", - LineItemsTrackingCategoriesCompanyEmployee: "line_items,tracking_categories,company,employee", - LineItemsTrackingCategoriesCompanyEmployeeAccountingPeriod: - "line_items,tracking_categories,company,employee,accounting_period", - LineItemsTrackingCategoriesCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,company,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesCompanyEmployeePaymentTerm: - "line_items,tracking_categories,company,employee,payment_term", - LineItemsTrackingCategoriesCompanyPaymentTerm: "line_items,tracking_categories,company,payment_term", - LineItemsTrackingCategoriesContact: "line_items,tracking_categories,contact", - LineItemsTrackingCategoriesContactAccountingPeriod: "line_items,tracking_categories,contact,accounting_period", - LineItemsTrackingCategoriesContactAccountingPeriodPaymentTerm: - "line_items,tracking_categories,contact,accounting_period,payment_term", - LineItemsTrackingCategoriesContactCompany: "line_items,tracking_categories,contact,company", - LineItemsTrackingCategoriesContactCompanyAccountingPeriod: - "line_items,tracking_categories,contact,company,accounting_period", - LineItemsTrackingCategoriesContactCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,contact,company,accounting_period,payment_term", - LineItemsTrackingCategoriesContactCompanyEmployee: "line_items,tracking_categories,contact,company,employee", - LineItemsTrackingCategoriesContactCompanyEmployeeAccountingPeriod: - "line_items,tracking_categories,contact,company,employee,accounting_period", - LineItemsTrackingCategoriesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,contact,company,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesContactCompanyEmployeePaymentTerm: - "line_items,tracking_categories,contact,company,employee,payment_term", - LineItemsTrackingCategoriesContactCompanyPaymentTerm: "line_items,tracking_categories,contact,company,payment_term", - LineItemsTrackingCategoriesContactEmployee: "line_items,tracking_categories,contact,employee", - LineItemsTrackingCategoriesContactEmployeeAccountingPeriod: - "line_items,tracking_categories,contact,employee,accounting_period", - LineItemsTrackingCategoriesContactEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,contact,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesContactEmployeePaymentTerm: - "line_items,tracking_categories,contact,employee,payment_term", - LineItemsTrackingCategoriesContactPaymentTerm: "line_items,tracking_categories,contact,payment_term", - LineItemsTrackingCategoriesEmployee: "line_items,tracking_categories,employee", - LineItemsTrackingCategoriesEmployeeAccountingPeriod: "line_items,tracking_categories,employee,accounting_period", - LineItemsTrackingCategoriesEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesEmployeePaymentTerm: "line_items,tracking_categories,employee,payment_term", - LineItemsTrackingCategoriesPaymentTerm: "line_items,tracking_categories,payment_term", - LineItemsTrackingCategoriesPurchaseOrders: "line_items,tracking_categories,purchase_orders", - LineItemsTrackingCategoriesPurchaseOrdersAccountingPeriod: - "line_items,tracking_categories,purchase_orders,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotes: - "line_items,tracking_categories,purchase_orders,applied_credit_notes", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCredits: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompany: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContact: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompany: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployee: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompany: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployee: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeePaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContact: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompany: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployee: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployee: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeePaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployee: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,employee", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeePaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_credit_notes,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCredits: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompany: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployee: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeePaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContact: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompany: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployee: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployee: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeePaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployee: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriod: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeePaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsPaymentTerm: - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersCompany: "line_items,tracking_categories,purchase_orders,company", - LineItemsTrackingCategoriesPurchaseOrdersCompanyAccountingPeriod: - "line_items,tracking_categories,purchase_orders,company,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,company,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersCompanyEmployee: - "line_items,tracking_categories,purchase_orders,company,employee", - LineItemsTrackingCategoriesPurchaseOrdersCompanyEmployeeAccountingPeriod: - "line_items,tracking_categories,purchase_orders,company,employee,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersCompanyEmployeePaymentTerm: - "line_items,tracking_categories,purchase_orders,company,employee,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersCompanyPaymentTerm: - "line_items,tracking_categories,purchase_orders,company,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersContact: "line_items,tracking_categories,purchase_orders,contact", - LineItemsTrackingCategoriesPurchaseOrdersContactAccountingPeriod: - "line_items,tracking_categories,purchase_orders,contact,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersContactAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,contact,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersContactCompany: - "line_items,tracking_categories,purchase_orders,contact,company", - LineItemsTrackingCategoriesPurchaseOrdersContactCompanyAccountingPeriod: - "line_items,tracking_categories,purchase_orders,contact,company,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersContactCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersContactCompanyEmployee: - "line_items,tracking_categories,purchase_orders,contact,company,employee", - LineItemsTrackingCategoriesPurchaseOrdersContactCompanyEmployeeAccountingPeriod: - "line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersContactCompanyEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersContactCompanyEmployeePaymentTerm: - "line_items,tracking_categories,purchase_orders,contact,company,employee,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersContactCompanyPaymentTerm: - "line_items,tracking_categories,purchase_orders,contact,company,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersContactEmployee: - "line_items,tracking_categories,purchase_orders,contact,employee", - LineItemsTrackingCategoriesPurchaseOrdersContactEmployeeAccountingPeriod: - "line_items,tracking_categories,purchase_orders,contact,employee,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersContactEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersContactEmployeePaymentTerm: - "line_items,tracking_categories,purchase_orders,contact,employee,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersContactPaymentTerm: - "line_items,tracking_categories,purchase_orders,contact,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersEmployee: "line_items,tracking_categories,purchase_orders,employee", - LineItemsTrackingCategoriesPurchaseOrdersEmployeeAccountingPeriod: - "line_items,tracking_categories,purchase_orders,employee,accounting_period", - LineItemsTrackingCategoriesPurchaseOrdersEmployeeAccountingPeriodPaymentTerm: - "line_items,tracking_categories,purchase_orders,employee,accounting_period,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersEmployeePaymentTerm: - "line_items,tracking_categories,purchase_orders,employee,payment_term", - LineItemsTrackingCategoriesPurchaseOrdersPaymentTerm: "line_items,tracking_categories,purchase_orders,payment_term", - PaymentTerm: "payment_term", - Payments: "payments", - PaymentsAccountingPeriod: "payments,accounting_period", - PaymentsAccountingPeriodPaymentTerm: "payments,accounting_period,payment_term", - PaymentsAppliedCreditNotes: "payments,applied_credit_notes", - PaymentsAppliedCreditNotesAccountingPeriod: "payments,applied_credit_notes,accounting_period", - PaymentsAppliedCreditNotesAccountingPeriodPaymentTerm: - "payments,applied_credit_notes,accounting_period,payment_term", - PaymentsAppliedCreditNotesAppliedVendorCredits: "payments,applied_credit_notes,applied_vendor_credits", - PaymentsAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "payments,applied_credit_notes,applied_vendor_credits,accounting_period", - PaymentsAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedCreditNotesAppliedVendorCreditsCompany: - "payments,applied_credit_notes,applied_vendor_credits,company", - PaymentsAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PaymentsAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "payments,applied_credit_notes,applied_vendor_credits,company,employee", - PaymentsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_credit_notes,applied_vendor_credits,company,payment_term", - PaymentsAppliedCreditNotesAppliedVendorCreditsContact: - "payments,applied_credit_notes,applied_vendor_credits,contact", - PaymentsAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedCreditNotesAppliedVendorCreditsContactCompany: - "payments,applied_credit_notes,applied_vendor_credits,contact,company", - PaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "payments,applied_credit_notes,applied_vendor_credits,contact,employee", - PaymentsAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "payments,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PaymentsAppliedCreditNotesAppliedVendorCreditsEmployee: - "payments,applied_credit_notes,applied_vendor_credits,employee", - PaymentsAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PaymentsAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "payments,applied_credit_notes,applied_vendor_credits,payment_term", - PaymentsAppliedCreditNotesCompany: "payments,applied_credit_notes,company", - PaymentsAppliedCreditNotesCompanyAccountingPeriod: "payments,applied_credit_notes,company,accounting_period", - PaymentsAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "payments,applied_credit_notes,company,accounting_period,payment_term", - PaymentsAppliedCreditNotesCompanyEmployee: "payments,applied_credit_notes,company,employee", - PaymentsAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "payments,applied_credit_notes,company,employee,accounting_period", - PaymentsAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_credit_notes,company,employee,accounting_period,payment_term", - PaymentsAppliedCreditNotesCompanyEmployeePaymentTerm: "payments,applied_credit_notes,company,employee,payment_term", - PaymentsAppliedCreditNotesCompanyPaymentTerm: "payments,applied_credit_notes,company,payment_term", - PaymentsAppliedCreditNotesContact: "payments,applied_credit_notes,contact", - PaymentsAppliedCreditNotesContactAccountingPeriod: "payments,applied_credit_notes,contact,accounting_period", - PaymentsAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "payments,applied_credit_notes,contact,accounting_period,payment_term", - PaymentsAppliedCreditNotesContactCompany: "payments,applied_credit_notes,contact,company", - PaymentsAppliedCreditNotesContactCompanyAccountingPeriod: - "payments,applied_credit_notes,contact,company,accounting_period", - PaymentsAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_credit_notes,contact,company,accounting_period,payment_term", - PaymentsAppliedCreditNotesContactCompanyEmployee: "payments,applied_credit_notes,contact,company,employee", - PaymentsAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "payments,applied_credit_notes,contact,company,employee,accounting_period", - PaymentsAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "payments,applied_credit_notes,contact,company,employee,payment_term", - PaymentsAppliedCreditNotesContactCompanyPaymentTerm: "payments,applied_credit_notes,contact,company,payment_term", - PaymentsAppliedCreditNotesContactEmployee: "payments,applied_credit_notes,contact,employee", - PaymentsAppliedCreditNotesContactEmployeeAccountingPeriod: - "payments,applied_credit_notes,contact,employee,accounting_period", - PaymentsAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_credit_notes,contact,employee,accounting_period,payment_term", - PaymentsAppliedCreditNotesContactEmployeePaymentTerm: "payments,applied_credit_notes,contact,employee,payment_term", - PaymentsAppliedCreditNotesContactPaymentTerm: "payments,applied_credit_notes,contact,payment_term", - PaymentsAppliedCreditNotesEmployee: "payments,applied_credit_notes,employee", - PaymentsAppliedCreditNotesEmployeeAccountingPeriod: "payments,applied_credit_notes,employee,accounting_period", - PaymentsAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "payments,applied_credit_notes,employee,accounting_period,payment_term", - PaymentsAppliedCreditNotesEmployeePaymentTerm: "payments,applied_credit_notes,employee,payment_term", - PaymentsAppliedCreditNotesPaymentTerm: "payments,applied_credit_notes,payment_term", - PaymentsAppliedPayments: "payments,applied_payments", - PaymentsAppliedPaymentsAccountingPeriod: "payments,applied_payments,accounting_period", - PaymentsAppliedPaymentsAccountingPeriodPaymentTerm: "payments,applied_payments,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotes: "payments,applied_payments,applied_credit_notes", - PaymentsAppliedPaymentsAppliedCreditNotesAccountingPeriod: - "payments,applied_payments,applied_credit_notes,accounting_period", - PaymentsAppliedPaymentsAppliedCreditNotesAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_credit_notes,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCredits: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,accounting_period", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsCompany: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,employee", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContact: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactCompany: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsEmployee: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,employee", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesCompany: "payments,applied_payments,applied_credit_notes,company", - PaymentsAppliedPaymentsAppliedCreditNotesCompanyAccountingPeriod: - "payments,applied_payments,applied_credit_notes,company,accounting_period", - PaymentsAppliedPaymentsAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_credit_notes,company,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesCompanyEmployee: - "payments,applied_payments,applied_credit_notes,company,employee", - PaymentsAppliedPaymentsAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "payments,applied_payments,applied_credit_notes,company,employee,accounting_period", - PaymentsAppliedPaymentsAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_credit_notes,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesCompanyEmployeePaymentTerm: - "payments,applied_payments,applied_credit_notes,company,employee,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesCompanyPaymentTerm: - "payments,applied_payments,applied_credit_notes,company,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesContact: "payments,applied_payments,applied_credit_notes,contact", - PaymentsAppliedPaymentsAppliedCreditNotesContactAccountingPeriod: - "payments,applied_payments,applied_credit_notes,contact,accounting_period", - PaymentsAppliedPaymentsAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_credit_notes,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesContactCompany: - "payments,applied_payments,applied_credit_notes,contact,company", - PaymentsAppliedPaymentsAppliedCreditNotesContactCompanyAccountingPeriod: - "payments,applied_payments,applied_credit_notes,contact,company,accounting_period", - PaymentsAppliedPaymentsAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_credit_notes,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesContactCompanyEmployee: - "payments,applied_payments,applied_credit_notes,contact,company,employee", - PaymentsAppliedPaymentsAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,applied_credit_notes,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "payments,applied_payments,applied_credit_notes,contact,company,employee,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesContactCompanyPaymentTerm: - "payments,applied_payments,applied_credit_notes,contact,company,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesContactEmployee: - "payments,applied_payments,applied_credit_notes,contact,employee", - PaymentsAppliedPaymentsAppliedCreditNotesContactEmployeeAccountingPeriod: - "payments,applied_payments,applied_credit_notes,contact,employee,accounting_period", - PaymentsAppliedPaymentsAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_credit_notes,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesContactEmployeePaymentTerm: - "payments,applied_payments,applied_credit_notes,contact,employee,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesContactPaymentTerm: - "payments,applied_payments,applied_credit_notes,contact,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesEmployee: "payments,applied_payments,applied_credit_notes,employee", - PaymentsAppliedPaymentsAppliedCreditNotesEmployeeAccountingPeriod: - "payments,applied_payments,applied_credit_notes,employee,accounting_period", - PaymentsAppliedPaymentsAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_credit_notes,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesEmployeePaymentTerm: - "payments,applied_payments,applied_credit_notes,employee,payment_term", - PaymentsAppliedPaymentsAppliedCreditNotesPaymentTerm: "payments,applied_payments,applied_credit_notes,payment_term", - PaymentsAppliedPaymentsAppliedVendorCredits: "payments,applied_payments,applied_vendor_credits", - PaymentsAppliedPaymentsAppliedVendorCreditsAccountingPeriod: - "payments,applied_payments,applied_vendor_credits,accounting_period", - PaymentsAppliedPaymentsAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedVendorCreditsCompany: "payments,applied_payments,applied_vendor_credits,company", - PaymentsAppliedPaymentsAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_payments,applied_vendor_credits,company,accounting_period", - PaymentsAppliedPaymentsAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedVendorCreditsCompanyEmployee: - "payments,applied_payments,applied_vendor_credits,company,employee", - PaymentsAppliedPaymentsAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedPaymentsAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_payments,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedPaymentsAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_payments,applied_vendor_credits,company,payment_term", - PaymentsAppliedPaymentsAppliedVendorCreditsContact: "payments,applied_payments,applied_vendor_credits,contact", - PaymentsAppliedPaymentsAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_payments,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedPaymentsAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedVendorCreditsContactCompany: - "payments,applied_payments,applied_vendor_credits,contact,company", - PaymentsAppliedPaymentsAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_payments,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedPaymentsAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_payments,applied_vendor_credits,contact,company,employee", - PaymentsAppliedPaymentsAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedPaymentsAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_payments,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedPaymentsAppliedVendorCreditsContactEmployee: - "payments,applied_payments,applied_vendor_credits,contact,employee", - PaymentsAppliedPaymentsAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_payments,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedPaymentsAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_payments,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedPaymentsAppliedVendorCreditsContactPaymentTerm: - "payments,applied_payments,applied_vendor_credits,contact,payment_term", - PaymentsAppliedPaymentsAppliedVendorCreditsEmployee: "payments,applied_payments,applied_vendor_credits,employee", - PaymentsAppliedPaymentsAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_payments,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedPaymentsAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_payments,applied_vendor_credits,employee,payment_term", - PaymentsAppliedPaymentsAppliedVendorCreditsPaymentTerm: - "payments,applied_payments,applied_vendor_credits,payment_term", - PaymentsAppliedPaymentsCompany: "payments,applied_payments,company", - PaymentsAppliedPaymentsCompanyAccountingPeriod: "payments,applied_payments,company,accounting_period", - PaymentsAppliedPaymentsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,company,accounting_period,payment_term", - PaymentsAppliedPaymentsCompanyEmployee: "payments,applied_payments,company,employee", - PaymentsAppliedPaymentsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,company,employee,accounting_period", - PaymentsAppliedPaymentsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsCompanyEmployeePaymentTerm: "payments,applied_payments,company,employee,payment_term", - PaymentsAppliedPaymentsCompanyPaymentTerm: "payments,applied_payments,company,payment_term", - PaymentsAppliedPaymentsContact: "payments,applied_payments,contact", - PaymentsAppliedPaymentsContactAccountingPeriod: "payments,applied_payments,contact,accounting_period", - PaymentsAppliedPaymentsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsContactCompany: "payments,applied_payments,contact,company", - PaymentsAppliedPaymentsContactCompanyAccountingPeriod: - "payments,applied_payments,contact,company,accounting_period", - PaymentsAppliedPaymentsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsContactCompanyEmployee: "payments,applied_payments,contact,company,employee", - PaymentsAppliedPaymentsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,contact,company,employee,payment_term", - PaymentsAppliedPaymentsContactCompanyPaymentTerm: "payments,applied_payments,contact,company,payment_term", - PaymentsAppliedPaymentsContactEmployee: "payments,applied_payments,contact,employee", - PaymentsAppliedPaymentsContactEmployeeAccountingPeriod: - "payments,applied_payments,contact,employee,accounting_period", - PaymentsAppliedPaymentsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsContactEmployeePaymentTerm: "payments,applied_payments,contact,employee,payment_term", - PaymentsAppliedPaymentsContactPaymentTerm: "payments,applied_payments,contact,payment_term", - PaymentsAppliedPaymentsEmployee: "payments,applied_payments,employee", - PaymentsAppliedPaymentsEmployeeAccountingPeriod: "payments,applied_payments,employee,accounting_period", - PaymentsAppliedPaymentsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsEmployeePaymentTerm: "payments,applied_payments,employee,payment_term", - PaymentsAppliedPaymentsLineItems: "payments,applied_payments,line_items", - PaymentsAppliedPaymentsLineItemsAccountingPeriod: "payments,applied_payments,line_items,accounting_period", - PaymentsAppliedPaymentsLineItemsAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotes: "payments,applied_payments,line_items,applied_credit_notes", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAccountingPeriod: - "payments,applied_payments,line_items,applied_credit_notes,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCredits: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompany: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContact: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompany: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsEmployee: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesCompany: - "payments,applied_payments,line_items,applied_credit_notes,company", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesCompanyAccountingPeriod: - "payments,applied_payments,line_items,applied_credit_notes,company,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesCompanyEmployee: - "payments,applied_payments,line_items,applied_credit_notes,company,employee", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,applied_credit_notes,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesCompanyPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,company,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesContact: - "payments,applied_payments,line_items,applied_credit_notes,contact", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesContactAccountingPeriod: - "payments,applied_payments,line_items,applied_credit_notes,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesContactCompany: - "payments,applied_payments,line_items,applied_credit_notes,contact,company", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,applied_credit_notes,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesContactCompanyEmployee: - "payments,applied_payments,line_items,applied_credit_notes,contact,company,employee", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,applied_credit_notes,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,contact,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesContactCompanyPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,contact,company,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesContactEmployee: - "payments,applied_payments,line_items,applied_credit_notes,contact,employee", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesContactEmployeeAccountingPeriod: - "payments,applied_payments,line_items,applied_credit_notes,contact,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesContactEmployeePaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,contact,employee,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesContactPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,contact,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesEmployee: - "payments,applied_payments,line_items,applied_credit_notes,employee", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesEmployeeAccountingPeriod: - "payments,applied_payments,line_items,applied_credit_notes,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesEmployeePaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,employee,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedCreditNotesPaymentTerm: - "payments,applied_payments,line_items,applied_credit_notes,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedVendorCredits: "payments,applied_payments,line_items,applied_vendor_credits", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsAccountingPeriod: - "payments,applied_payments,line_items,applied_vendor_credits,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsCompany: - "payments,applied_payments,line_items,applied_vendor_credits,company", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_payments,line_items,applied_vendor_credits,company,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsCompanyEmployee: - "payments,applied_payments,line_items,applied_vendor_credits,company,employee", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_payments,line_items,applied_vendor_credits,company,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsContact: - "payments,applied_payments,line_items,applied_vendor_credits,contact", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_payments,line_items,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsContactCompany: - "payments,applied_payments,line_items,applied_vendor_credits,contact,company", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,employee", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsContactEmployee: - "payments,applied_payments,line_items,applied_vendor_credits,contact,employee", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_payments,line_items,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_payments,line_items,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsContactPaymentTerm: - "payments,applied_payments,line_items,applied_vendor_credits,contact,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsEmployee: - "payments,applied_payments,line_items,applied_vendor_credits,employee", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_payments,line_items,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_payments,line_items,applied_vendor_credits,employee,payment_term", - PaymentsAppliedPaymentsLineItemsAppliedVendorCreditsPaymentTerm: - "payments,applied_payments,line_items,applied_vendor_credits,payment_term", - PaymentsAppliedPaymentsLineItemsCompany: "payments,applied_payments,line_items,company", - PaymentsAppliedPaymentsLineItemsCompanyAccountingPeriod: - "payments,applied_payments,line_items,company,accounting_period", - PaymentsAppliedPaymentsLineItemsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsCompanyEmployee: "payments,applied_payments,line_items,company,employee", - PaymentsAppliedPaymentsLineItemsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsCompanyPaymentTerm: "payments,applied_payments,line_items,company,payment_term", - PaymentsAppliedPaymentsLineItemsContact: "payments,applied_payments,line_items,contact", - PaymentsAppliedPaymentsLineItemsContactAccountingPeriod: - "payments,applied_payments,line_items,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsContactCompany: "payments,applied_payments,line_items,contact,company", - PaymentsAppliedPaymentsLineItemsContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsContactCompanyEmployee: - "payments,applied_payments,line_items,contact,company,employee", - PaymentsAppliedPaymentsLineItemsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,contact,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsContactCompanyPaymentTerm: - "payments,applied_payments,line_items,contact,company,payment_term", - PaymentsAppliedPaymentsLineItemsContactEmployee: "payments,applied_payments,line_items,contact,employee", - PaymentsAppliedPaymentsLineItemsContactEmployeeAccountingPeriod: - "payments,applied_payments,line_items,contact,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsContactEmployeePaymentTerm: - "payments,applied_payments,line_items,contact,employee,payment_term", - PaymentsAppliedPaymentsLineItemsContactPaymentTerm: "payments,applied_payments,line_items,contact,payment_term", - PaymentsAppliedPaymentsLineItemsEmployee: "payments,applied_payments,line_items,employee", - PaymentsAppliedPaymentsLineItemsEmployeeAccountingPeriod: - "payments,applied_payments,line_items,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsEmployeePaymentTerm: "payments,applied_payments,line_items,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPaymentTerm: "payments,applied_payments,line_items,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrders: "payments,applied_payments,line_items,purchase_orders", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotes: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCredits: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompany: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContact: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompany: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployee: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompany: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyEmployee: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContact: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompany: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyEmployee: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactEmployee: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactEmployeePaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesEmployee: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,employee", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesEmployeePaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedCreditNotesPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCredits: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompany: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyEmployee: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContact: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompany: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactEmployee: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsEmployee: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,employee", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersAppliedVendorCreditsPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersCompany: - "payments,applied_payments,line_items,purchase_orders,company", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersCompanyAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,company,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersCompanyEmployee: - "payments,applied_payments,line_items,purchase_orders,company,employee", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,purchase_orders,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersCompanyPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,company,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersContact: - "payments,applied_payments,line_items,purchase_orders,contact", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersContactAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersContactAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersContactCompany: - "payments,applied_payments,line_items,purchase_orders,contact,company", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersContactCompanyEmployee: - "payments,applied_payments,line_items,purchase_orders,contact,company,employee", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersContactCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,purchase_orders,contact,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersContactCompanyPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,contact,company,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersContactEmployee: - "payments,applied_payments,line_items,purchase_orders,contact,employee", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersContactEmployeeAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,contact,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersContactEmployeePaymentTerm: - "payments,applied_payments,line_items,purchase_orders,contact,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersContactPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,contact,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersEmployee: - "payments,applied_payments,line_items,purchase_orders,employee", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersEmployeeAccountingPeriod: - "payments,applied_payments,line_items,purchase_orders,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersEmployeePaymentTerm: - "payments,applied_payments,line_items,purchase_orders,employee,payment_term", - PaymentsAppliedPaymentsLineItemsPurchaseOrdersPaymentTerm: - "payments,applied_payments,line_items,purchase_orders,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategories: "payments,applied_payments,line_items,tracking_categories", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotes: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCredits: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompany: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContact: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompany: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployee: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompany: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyEmployee: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContact: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompany: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyEmployee: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactEmployee: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesEmployee: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedCreditNotesPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCredits: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompany: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyEmployee: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContact: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompany: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactEmployee: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsEmployee: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesAppliedVendorCreditsPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesCompany: - "payments,applied_payments,line_items,tracking_categories,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesCompanyEmployee: - "payments,applied_payments,line_items,tracking_categories,company,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesCompanyPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,company,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContact: - "payments,applied_payments,line_items,tracking_categories,contact", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactCompany: - "payments,applied_payments,line_items,tracking_categories,contact,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactCompanyEmployee: - "payments,applied_payments,line_items,tracking_categories,contact,company,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,contact,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactCompanyPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,contact,company,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactEmployee: - "payments,applied_payments,line_items,tracking_categories,contact,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,contact,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,contact,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesContactPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,contact,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesEmployee: - "payments,applied_payments,line_items,tracking_categories,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrders: - "payments,applied_payments,line_items,tracking_categories,purchase_orders", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotes: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCredits: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompany: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContact: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompany: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployee: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompany: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployee: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContact: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompany: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployee: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployee: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployee: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCredits: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompany: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployee: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContact: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompany: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployee: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployee: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersCompany: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyEmployee: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContact: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompany: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyEmployee: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactEmployee: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersContactPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersEmployee: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,employee", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersEmployeeAccountingPeriod: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,employee,accounting_period", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersEmployeePaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,employee,payment_term", - PaymentsAppliedPaymentsLineItemsTrackingCategoriesPurchaseOrdersPaymentTerm: - "payments,applied_payments,line_items,tracking_categories,purchase_orders,payment_term", - PaymentsAppliedPaymentsPaymentTerm: "payments,applied_payments,payment_term", - PaymentsAppliedPaymentsPurchaseOrders: "payments,applied_payments,purchase_orders", - PaymentsAppliedPaymentsPurchaseOrdersAccountingPeriod: - "payments,applied_payments,purchase_orders,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotes: - "payments,applied_payments,purchase_orders,applied_credit_notes", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_credit_notes,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCredits: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompany: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContact: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompany: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployee: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesCompany: - "payments,applied_payments,purchase_orders,applied_credit_notes,company", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_credit_notes,company,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesCompanyEmployee: - "payments,applied_payments,purchase_orders,applied_credit_notes,company,employee", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_credit_notes,company,employee,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesCompanyEmployeePaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,company,employee,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesCompanyPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,company,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesContact: - "payments,applied_payments,purchase_orders,applied_credit_notes,contact", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesContactAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesContactCompany: - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesContactCompanyEmployee: - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,employee", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesContactCompanyPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesContactEmployee: - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,employee", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesContactEmployeePaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,employee,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesContactPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesEmployee: - "payments,applied_payments,purchase_orders,applied_credit_notes,employee", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_credit_notes,employee,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesEmployeePaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,employee,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedCreditNotesPaymentTerm: - "payments,applied_payments,purchase_orders,applied_credit_notes,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCredits: - "payments,applied_payments,purchase_orders,applied_vendor_credits", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_vendor_credits,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsCompany: - "payments,applied_payments,purchase_orders,applied_vendor_credits,company", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsCompanyEmployee: - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,employee", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsContact: - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactCompany: - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactEmployee: - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,employee", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsContactPaymentTerm: - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsEmployee: - "payments,applied_payments,purchase_orders,applied_vendor_credits,employee", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_payments,purchase_orders,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_payments,purchase_orders,applied_vendor_credits,employee,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersAppliedVendorCreditsPaymentTerm: - "payments,applied_payments,purchase_orders,applied_vendor_credits,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersCompany: "payments,applied_payments,purchase_orders,company", - PaymentsAppliedPaymentsPurchaseOrdersCompanyAccountingPeriod: - "payments,applied_payments,purchase_orders,company,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,company,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersCompanyEmployee: "payments,applied_payments,purchase_orders,company,employee", - PaymentsAppliedPaymentsPurchaseOrdersCompanyEmployeeAccountingPeriod: - "payments,applied_payments,purchase_orders,company,employee,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersCompanyEmployeePaymentTerm: - "payments,applied_payments,purchase_orders,company,employee,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersCompanyPaymentTerm: - "payments,applied_payments,purchase_orders,company,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersContact: "payments,applied_payments,purchase_orders,contact", - PaymentsAppliedPaymentsPurchaseOrdersContactAccountingPeriod: - "payments,applied_payments,purchase_orders,contact,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersContactAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersContactCompany: "payments,applied_payments,purchase_orders,contact,company", - PaymentsAppliedPaymentsPurchaseOrdersContactCompanyAccountingPeriod: - "payments,applied_payments,purchase_orders,contact,company,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersContactCompanyEmployee: - "payments,applied_payments,purchase_orders,contact,company,employee", - PaymentsAppliedPaymentsPurchaseOrdersContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,purchase_orders,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersContactCompanyEmployeePaymentTerm: - "payments,applied_payments,purchase_orders,contact,company,employee,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersContactCompanyPaymentTerm: - "payments,applied_payments,purchase_orders,contact,company,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersContactEmployee: "payments,applied_payments,purchase_orders,contact,employee", - PaymentsAppliedPaymentsPurchaseOrdersContactEmployeeAccountingPeriod: - "payments,applied_payments,purchase_orders,contact,employee,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersContactEmployeePaymentTerm: - "payments,applied_payments,purchase_orders,contact,employee,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersContactPaymentTerm: - "payments,applied_payments,purchase_orders,contact,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersEmployee: "payments,applied_payments,purchase_orders,employee", - PaymentsAppliedPaymentsPurchaseOrdersEmployeeAccountingPeriod: - "payments,applied_payments,purchase_orders,employee,accounting_period", - PaymentsAppliedPaymentsPurchaseOrdersEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,purchase_orders,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersEmployeePaymentTerm: - "payments,applied_payments,purchase_orders,employee,payment_term", - PaymentsAppliedPaymentsPurchaseOrdersPaymentTerm: "payments,applied_payments,purchase_orders,payment_term", - PaymentsAppliedPaymentsTrackingCategories: "payments,applied_payments,tracking_categories", - PaymentsAppliedPaymentsTrackingCategoriesAccountingPeriod: - "payments,applied_payments,tracking_categories,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotes: - "payments,applied_payments,tracking_categories,applied_credit_notes", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_credit_notes,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCredits: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompany: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContact: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompany: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployee: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesCompany: - "payments,applied_payments,tracking_categories,applied_credit_notes,company", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_credit_notes,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,company,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesCompanyEmployee: - "payments,applied_payments,tracking_categories,applied_credit_notes,company,employee", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_credit_notes,company,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesCompanyEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,company,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesCompanyPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,company,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesContact: - "payments,applied_payments,tracking_categories,applied_credit_notes,contact", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesContactAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesContactCompany: - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesContactCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesContactCompanyEmployee: - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,employee", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesContactCompanyPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesContactEmployee: - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,employee", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesContactEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesContactEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesContactPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesEmployee: - "payments,applied_payments,tracking_categories,applied_credit_notes,employee", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_credit_notes,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedCreditNotesPaymentTerm: - "payments,applied_payments,tracking_categories,applied_credit_notes,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCredits: - "payments,applied_payments,tracking_categories,applied_vendor_credits", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_vendor_credits,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsCompany: - "payments,applied_payments,tracking_categories,applied_vendor_credits,company", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsCompanyEmployee: - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,employee", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsContact: - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactCompany: - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactEmployee: - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,employee", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsContactPaymentTerm: - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsEmployee: - "payments,applied_payments,tracking_categories,applied_vendor_credits,employee", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,applied_vendor_credits,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesAppliedVendorCreditsPaymentTerm: - "payments,applied_payments,tracking_categories,applied_vendor_credits,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesCompany: "payments,applied_payments,tracking_categories,company", - PaymentsAppliedPaymentsTrackingCategoriesCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,company,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesCompanyEmployee: - "payments,applied_payments,tracking_categories,company,employee", - PaymentsAppliedPaymentsTrackingCategoriesCompanyEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,company,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesCompanyEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,company,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesCompanyPaymentTerm: - "payments,applied_payments,tracking_categories,company,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesContact: "payments,applied_payments,tracking_categories,contact", - PaymentsAppliedPaymentsTrackingCategoriesContactAccountingPeriod: - "payments,applied_payments,tracking_categories,contact,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesContactAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesContactCompany: - "payments,applied_payments,tracking_categories,contact,company", - PaymentsAppliedPaymentsTrackingCategoriesContactCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,contact,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesContactCompanyEmployee: - "payments,applied_payments,tracking_categories,contact,company,employee", - PaymentsAppliedPaymentsTrackingCategoriesContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesContactCompanyEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,contact,company,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesContactCompanyPaymentTerm: - "payments,applied_payments,tracking_categories,contact,company,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesContactEmployee: - "payments,applied_payments,tracking_categories,contact,employee", - PaymentsAppliedPaymentsTrackingCategoriesContactEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,contact,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesContactEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,contact,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesContactPaymentTerm: - "payments,applied_payments,tracking_categories,contact,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesEmployee: "payments,applied_payments,tracking_categories,employee", - PaymentsAppliedPaymentsTrackingCategoriesEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPaymentTerm: "payments,applied_payments,tracking_categories,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrders: - "payments,applied_payments,tracking_categories,purchase_orders", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotes: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCredits: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompany: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContact: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompany: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployee: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompany: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployee: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContact: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompany: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployee: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployee: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployee: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCredits: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompany: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployee: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContact: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompany: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployee: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployee: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployee: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersCompany: - "payments,applied_payments,tracking_categories,purchase_orders,company", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,company,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersCompanyEmployee: - "payments,applied_payments,tracking_categories,purchase_orders,company,employee", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersCompanyEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,company,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersCompanyEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,company,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersCompanyPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,company,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersContact: - "payments,applied_payments,tracking_categories,purchase_orders,contact", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersContactAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,contact,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersContactAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,contact,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersContactCompany: - "payments,applied_payments,tracking_categories,purchase_orders,contact,company", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersContactCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersContactCompanyEmployee: - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,employee", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersContactCompanyEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersContactCompanyEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersContactCompanyPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersContactEmployee: - "payments,applied_payments,tracking_categories,purchase_orders,contact,employee", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersContactEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,contact,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersContactEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,contact,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersContactPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,contact,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersEmployee: - "payments,applied_payments,tracking_categories,purchase_orders,employee", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersEmployeeAccountingPeriod: - "payments,applied_payments,tracking_categories,purchase_orders,employee,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersEmployeeAccountingPeriodPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,employee,accounting_period,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersEmployeePaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,employee,payment_term", - PaymentsAppliedPaymentsTrackingCategoriesPurchaseOrdersPaymentTerm: - "payments,applied_payments,tracking_categories,purchase_orders,payment_term", - PaymentsAppliedVendorCredits: "payments,applied_vendor_credits", - PaymentsAppliedVendorCreditsAccountingPeriod: "payments,applied_vendor_credits,accounting_period", - PaymentsAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,applied_vendor_credits,accounting_period,payment_term", - PaymentsAppliedVendorCreditsCompany: "payments,applied_vendor_credits,company", - PaymentsAppliedVendorCreditsCompanyAccountingPeriod: "payments,applied_vendor_credits,company,accounting_period", - PaymentsAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsAppliedVendorCreditsCompanyEmployee: "payments,applied_vendor_credits,company,employee", - PaymentsAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,applied_vendor_credits,company,employee,accounting_period", - PaymentsAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,applied_vendor_credits,company,employee,payment_term", - PaymentsAppliedVendorCreditsCompanyPaymentTerm: "payments,applied_vendor_credits,company,payment_term", - PaymentsAppliedVendorCreditsContact: "payments,applied_vendor_credits,contact", - PaymentsAppliedVendorCreditsContactAccountingPeriod: "payments,applied_vendor_credits,contact,accounting_period", - PaymentsAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsAppliedVendorCreditsContactCompany: "payments,applied_vendor_credits,contact,company", - PaymentsAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,applied_vendor_credits,contact,company,accounting_period", - PaymentsAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsAppliedVendorCreditsContactCompanyEmployee: "payments,applied_vendor_credits,contact,company,employee", - PaymentsAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,applied_vendor_credits,contact,company,payment_term", - PaymentsAppliedVendorCreditsContactEmployee: "payments,applied_vendor_credits,contact,employee", - PaymentsAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,applied_vendor_credits,contact,employee,accounting_period", - PaymentsAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,applied_vendor_credits,contact,employee,payment_term", - PaymentsAppliedVendorCreditsContactPaymentTerm: "payments,applied_vendor_credits,contact,payment_term", - PaymentsAppliedVendorCreditsEmployee: "payments,applied_vendor_credits,employee", - PaymentsAppliedVendorCreditsEmployeeAccountingPeriod: "payments,applied_vendor_credits,employee,accounting_period", - PaymentsAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsAppliedVendorCreditsEmployeePaymentTerm: "payments,applied_vendor_credits,employee,payment_term", - PaymentsAppliedVendorCreditsPaymentTerm: "payments,applied_vendor_credits,payment_term", - PaymentsCompany: "payments,company", - PaymentsCompanyAccountingPeriod: "payments,company,accounting_period", - PaymentsCompanyAccountingPeriodPaymentTerm: "payments,company,accounting_period,payment_term", - PaymentsCompanyEmployee: "payments,company,employee", - PaymentsCompanyEmployeeAccountingPeriod: "payments,company,employee,accounting_period", - PaymentsCompanyEmployeeAccountingPeriodPaymentTerm: "payments,company,employee,accounting_period,payment_term", - PaymentsCompanyEmployeePaymentTerm: "payments,company,employee,payment_term", - PaymentsCompanyPaymentTerm: "payments,company,payment_term", - PaymentsContact: "payments,contact", - PaymentsContactAccountingPeriod: "payments,contact,accounting_period", - PaymentsContactAccountingPeriodPaymentTerm: "payments,contact,accounting_period,payment_term", - PaymentsContactCompany: "payments,contact,company", - PaymentsContactCompanyAccountingPeriod: "payments,contact,company,accounting_period", - PaymentsContactCompanyAccountingPeriodPaymentTerm: "payments,contact,company,accounting_period,payment_term", - PaymentsContactCompanyEmployee: "payments,contact,company,employee", - PaymentsContactCompanyEmployeeAccountingPeriod: "payments,contact,company,employee,accounting_period", - PaymentsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,contact,company,employee,accounting_period,payment_term", - PaymentsContactCompanyEmployeePaymentTerm: "payments,contact,company,employee,payment_term", - PaymentsContactCompanyPaymentTerm: "payments,contact,company,payment_term", - PaymentsContactEmployee: "payments,contact,employee", - PaymentsContactEmployeeAccountingPeriod: "payments,contact,employee,accounting_period", - PaymentsContactEmployeeAccountingPeriodPaymentTerm: "payments,contact,employee,accounting_period,payment_term", - PaymentsContactEmployeePaymentTerm: "payments,contact,employee,payment_term", - PaymentsContactPaymentTerm: "payments,contact,payment_term", - PaymentsEmployee: "payments,employee", - PaymentsEmployeeAccountingPeriod: "payments,employee,accounting_period", - PaymentsEmployeeAccountingPeriodPaymentTerm: "payments,employee,accounting_period,payment_term", - PaymentsEmployeePaymentTerm: "payments,employee,payment_term", - PaymentsLineItems: "payments,line_items", - PaymentsLineItemsAccountingPeriod: "payments,line_items,accounting_period", - PaymentsLineItemsAccountingPeriodPaymentTerm: "payments,line_items,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotes: "payments,line_items,applied_credit_notes", - PaymentsLineItemsAppliedCreditNotesAccountingPeriod: "payments,line_items,applied_credit_notes,accounting_period", - PaymentsLineItemsAppliedCreditNotesAccountingPeriodPaymentTerm: - "payments,line_items,applied_credit_notes,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCredits: - "payments,line_items,applied_credit_notes,applied_vendor_credits", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompany: - "payments,line_items,applied_credit_notes,applied_vendor_credits,company", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,payment_term", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContact: - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompany: - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsEmployee: - "payments,line_items,applied_credit_notes,applied_vendor_credits,employee", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "payments,line_items,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PaymentsLineItemsAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "payments,line_items,applied_credit_notes,applied_vendor_credits,payment_term", - PaymentsLineItemsAppliedCreditNotesCompany: "payments,line_items,applied_credit_notes,company", - PaymentsLineItemsAppliedCreditNotesCompanyAccountingPeriod: - "payments,line_items,applied_credit_notes,company,accounting_period", - PaymentsLineItemsAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "payments,line_items,applied_credit_notes,company,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotesCompanyEmployee: "payments,line_items,applied_credit_notes,company,employee", - PaymentsLineItemsAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "payments,line_items,applied_credit_notes,company,employee,accounting_period", - PaymentsLineItemsAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,applied_credit_notes,company,employee,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotesCompanyEmployeePaymentTerm: - "payments,line_items,applied_credit_notes,company,employee,payment_term", - PaymentsLineItemsAppliedCreditNotesCompanyPaymentTerm: - "payments,line_items,applied_credit_notes,company,payment_term", - PaymentsLineItemsAppliedCreditNotesContact: "payments,line_items,applied_credit_notes,contact", - PaymentsLineItemsAppliedCreditNotesContactAccountingPeriod: - "payments,line_items,applied_credit_notes,contact,accounting_period", - PaymentsLineItemsAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "payments,line_items,applied_credit_notes,contact,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotesContactCompany: "payments,line_items,applied_credit_notes,contact,company", - PaymentsLineItemsAppliedCreditNotesContactCompanyAccountingPeriod: - "payments,line_items,applied_credit_notes,contact,company,accounting_period", - PaymentsLineItemsAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "payments,line_items,applied_credit_notes,contact,company,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotesContactCompanyEmployee: - "payments,line_items,applied_credit_notes,contact,company,employee", - PaymentsLineItemsAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "payments,line_items,applied_credit_notes,contact,company,employee,accounting_period", - PaymentsLineItemsAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "payments,line_items,applied_credit_notes,contact,company,employee,payment_term", - PaymentsLineItemsAppliedCreditNotesContactCompanyPaymentTerm: - "payments,line_items,applied_credit_notes,contact,company,payment_term", - PaymentsLineItemsAppliedCreditNotesContactEmployee: "payments,line_items,applied_credit_notes,contact,employee", - PaymentsLineItemsAppliedCreditNotesContactEmployeeAccountingPeriod: - "payments,line_items,applied_credit_notes,contact,employee,accounting_period", - PaymentsLineItemsAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,applied_credit_notes,contact,employee,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotesContactEmployeePaymentTerm: - "payments,line_items,applied_credit_notes,contact,employee,payment_term", - PaymentsLineItemsAppliedCreditNotesContactPaymentTerm: - "payments,line_items,applied_credit_notes,contact,payment_term", - PaymentsLineItemsAppliedCreditNotesEmployee: "payments,line_items,applied_credit_notes,employee", - PaymentsLineItemsAppliedCreditNotesEmployeeAccountingPeriod: - "payments,line_items,applied_credit_notes,employee,accounting_period", - PaymentsLineItemsAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,applied_credit_notes,employee,accounting_period,payment_term", - PaymentsLineItemsAppliedCreditNotesEmployeePaymentTerm: - "payments,line_items,applied_credit_notes,employee,payment_term", - PaymentsLineItemsAppliedCreditNotesPaymentTerm: "payments,line_items,applied_credit_notes,payment_term", - PaymentsLineItemsAppliedVendorCredits: "payments,line_items,applied_vendor_credits", - PaymentsLineItemsAppliedVendorCreditsAccountingPeriod: - "payments,line_items,applied_vendor_credits,accounting_period", - PaymentsLineItemsAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,line_items,applied_vendor_credits,accounting_period,payment_term", - PaymentsLineItemsAppliedVendorCreditsCompany: "payments,line_items,applied_vendor_credits,company", - PaymentsLineItemsAppliedVendorCreditsCompanyAccountingPeriod: - "payments,line_items,applied_vendor_credits,company,accounting_period", - PaymentsLineItemsAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,line_items,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsLineItemsAppliedVendorCreditsCompanyEmployee: "payments,line_items,applied_vendor_credits,company,employee", - PaymentsLineItemsAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,line_items,applied_vendor_credits,company,employee,accounting_period", - PaymentsLineItemsAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsLineItemsAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,line_items,applied_vendor_credits,company,employee,payment_term", - PaymentsLineItemsAppliedVendorCreditsCompanyPaymentTerm: - "payments,line_items,applied_vendor_credits,company,payment_term", - PaymentsLineItemsAppliedVendorCreditsContact: "payments,line_items,applied_vendor_credits,contact", - PaymentsLineItemsAppliedVendorCreditsContactAccountingPeriod: - "payments,line_items,applied_vendor_credits,contact,accounting_period", - PaymentsLineItemsAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,line_items,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsLineItemsAppliedVendorCreditsContactCompany: "payments,line_items,applied_vendor_credits,contact,company", - PaymentsLineItemsAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,line_items,applied_vendor_credits,contact,company,accounting_period", - PaymentsLineItemsAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,line_items,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsLineItemsAppliedVendorCreditsContactCompanyEmployee: - "payments,line_items,applied_vendor_credits,contact,company,employee", - PaymentsLineItemsAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsLineItemsAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsLineItemsAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,line_items,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsLineItemsAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,line_items,applied_vendor_credits,contact,company,payment_term", - PaymentsLineItemsAppliedVendorCreditsContactEmployee: "payments,line_items,applied_vendor_credits,contact,employee", - PaymentsLineItemsAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,line_items,applied_vendor_credits,contact,employee,accounting_period", - PaymentsLineItemsAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsLineItemsAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,line_items,applied_vendor_credits,contact,employee,payment_term", - PaymentsLineItemsAppliedVendorCreditsContactPaymentTerm: - "payments,line_items,applied_vendor_credits,contact,payment_term", - PaymentsLineItemsAppliedVendorCreditsEmployee: "payments,line_items,applied_vendor_credits,employee", - PaymentsLineItemsAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,line_items,applied_vendor_credits,employee,accounting_period", - PaymentsLineItemsAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsLineItemsAppliedVendorCreditsEmployeePaymentTerm: - "payments,line_items,applied_vendor_credits,employee,payment_term", - PaymentsLineItemsAppliedVendorCreditsPaymentTerm: "payments,line_items,applied_vendor_credits,payment_term", - PaymentsLineItemsCompany: "payments,line_items,company", - PaymentsLineItemsCompanyAccountingPeriod: "payments,line_items,company,accounting_period", - PaymentsLineItemsCompanyAccountingPeriodPaymentTerm: "payments,line_items,company,accounting_period,payment_term", - PaymentsLineItemsCompanyEmployee: "payments,line_items,company,employee", - PaymentsLineItemsCompanyEmployeeAccountingPeriod: "payments,line_items,company,employee,accounting_period", - PaymentsLineItemsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,company,employee,accounting_period,payment_term", - PaymentsLineItemsCompanyEmployeePaymentTerm: "payments,line_items,company,employee,payment_term", - PaymentsLineItemsCompanyPaymentTerm: "payments,line_items,company,payment_term", - PaymentsLineItemsContact: "payments,line_items,contact", - PaymentsLineItemsContactAccountingPeriod: "payments,line_items,contact,accounting_period", - PaymentsLineItemsContactAccountingPeriodPaymentTerm: "payments,line_items,contact,accounting_period,payment_term", - PaymentsLineItemsContactCompany: "payments,line_items,contact,company", - PaymentsLineItemsContactCompanyAccountingPeriod: "payments,line_items,contact,company,accounting_period", - PaymentsLineItemsContactCompanyAccountingPeriodPaymentTerm: - "payments,line_items,contact,company,accounting_period,payment_term", - PaymentsLineItemsContactCompanyEmployee: "payments,line_items,contact,company,employee", - PaymentsLineItemsContactCompanyEmployeeAccountingPeriod: - "payments,line_items,contact,company,employee,accounting_period", - PaymentsLineItemsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,contact,company,employee,accounting_period,payment_term", - PaymentsLineItemsContactCompanyEmployeePaymentTerm: "payments,line_items,contact,company,employee,payment_term", - PaymentsLineItemsContactCompanyPaymentTerm: "payments,line_items,contact,company,payment_term", - PaymentsLineItemsContactEmployee: "payments,line_items,contact,employee", - PaymentsLineItemsContactEmployeeAccountingPeriod: "payments,line_items,contact,employee,accounting_period", - PaymentsLineItemsContactEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,contact,employee,accounting_period,payment_term", - PaymentsLineItemsContactEmployeePaymentTerm: "payments,line_items,contact,employee,payment_term", - PaymentsLineItemsContactPaymentTerm: "payments,line_items,contact,payment_term", - PaymentsLineItemsEmployee: "payments,line_items,employee", - PaymentsLineItemsEmployeeAccountingPeriod: "payments,line_items,employee,accounting_period", - PaymentsLineItemsEmployeeAccountingPeriodPaymentTerm: "payments,line_items,employee,accounting_period,payment_term", - PaymentsLineItemsEmployeePaymentTerm: "payments,line_items,employee,payment_term", - PaymentsLineItemsPaymentTerm: "payments,line_items,payment_term", - PaymentsLineItemsPurchaseOrders: "payments,line_items,purchase_orders", - PaymentsLineItemsPurchaseOrdersAccountingPeriod: "payments,line_items,purchase_orders,accounting_period", - PaymentsLineItemsPurchaseOrdersAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotes: "payments,line_items,purchase_orders,applied_credit_notes", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAccountingPeriod: - "payments,line_items,purchase_orders,applied_credit_notes,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCredits: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompany: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContact: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompany: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployee: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompany: - "payments,line_items,purchase_orders,applied_credit_notes,company", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriod: - "payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyEmployee: - "payments,line_items,purchase_orders,applied_credit_notes,company,employee", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyEmployeePaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,company,employee,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesCompanyPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,company,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesContact: - "payments,line_items,purchase_orders,applied_credit_notes,contact", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactAccountingPeriod: - "payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompany: - "payments,line_items,purchase_orders,applied_credit_notes,contact,company", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriod: - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyEmployee: - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactCompanyPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactEmployee: - "payments,line_items,purchase_orders,applied_credit_notes,contact,employee", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriod: - "payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactEmployeePaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,contact,employee,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesContactPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,contact,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesEmployee: - "payments,line_items,purchase_orders,applied_credit_notes,employee", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriod: - "payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesEmployeePaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,employee,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedCreditNotesPaymentTerm: - "payments,line_items,purchase_orders,applied_credit_notes,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedVendorCredits: "payments,line_items,purchase_orders,applied_vendor_credits", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsAccountingPeriod: - "payments,line_items,purchase_orders,applied_vendor_credits,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompany: - "payments,line_items,purchase_orders,applied_vendor_credits,company", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriod: - "payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyEmployee: - "payments,line_items,purchase_orders,applied_vendor_credits,company,employee", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,line_items,purchase_orders,applied_vendor_credits,company,employee,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsCompanyPaymentTerm: - "payments,line_items,purchase_orders,applied_vendor_credits,company,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContact: - "payments,line_items,purchase_orders,applied_vendor_credits,contact", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactAccountingPeriod: - "payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompany: - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployee: - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactEmployee: - "payments,line_items,purchase_orders,applied_vendor_credits,contact,employee", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsContactPaymentTerm: - "payments,line_items,purchase_orders,applied_vendor_credits,contact,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsEmployee: - "payments,line_items,purchase_orders,applied_vendor_credits,employee", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsEmployeePaymentTerm: - "payments,line_items,purchase_orders,applied_vendor_credits,employee,payment_term", - PaymentsLineItemsPurchaseOrdersAppliedVendorCreditsPaymentTerm: - "payments,line_items,purchase_orders,applied_vendor_credits,payment_term", - PaymentsLineItemsPurchaseOrdersCompany: "payments,line_items,purchase_orders,company", - PaymentsLineItemsPurchaseOrdersCompanyAccountingPeriod: - "payments,line_items,purchase_orders,company,accounting_period", - PaymentsLineItemsPurchaseOrdersCompanyAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,company,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersCompanyEmployee: "payments,line_items,purchase_orders,company,employee", - PaymentsLineItemsPurchaseOrdersCompanyEmployeeAccountingPeriod: - "payments,line_items,purchase_orders,company,employee,accounting_period", - PaymentsLineItemsPurchaseOrdersCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,company,employee,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersCompanyEmployeePaymentTerm: - "payments,line_items,purchase_orders,company,employee,payment_term", - PaymentsLineItemsPurchaseOrdersCompanyPaymentTerm: "payments,line_items,purchase_orders,company,payment_term", - PaymentsLineItemsPurchaseOrdersContact: "payments,line_items,purchase_orders,contact", - PaymentsLineItemsPurchaseOrdersContactAccountingPeriod: - "payments,line_items,purchase_orders,contact,accounting_period", - PaymentsLineItemsPurchaseOrdersContactAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,contact,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersContactCompany: "payments,line_items,purchase_orders,contact,company", - PaymentsLineItemsPurchaseOrdersContactCompanyAccountingPeriod: - "payments,line_items,purchase_orders,contact,company,accounting_period", - PaymentsLineItemsPurchaseOrdersContactCompanyAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,contact,company,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersContactCompanyEmployee: - "payments,line_items,purchase_orders,contact,company,employee", - PaymentsLineItemsPurchaseOrdersContactCompanyEmployeeAccountingPeriod: - "payments,line_items,purchase_orders,contact,company,employee,accounting_period", - PaymentsLineItemsPurchaseOrdersContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,contact,company,employee,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersContactCompanyEmployeePaymentTerm: - "payments,line_items,purchase_orders,contact,company,employee,payment_term", - PaymentsLineItemsPurchaseOrdersContactCompanyPaymentTerm: - "payments,line_items,purchase_orders,contact,company,payment_term", - PaymentsLineItemsPurchaseOrdersContactEmployee: "payments,line_items,purchase_orders,contact,employee", - PaymentsLineItemsPurchaseOrdersContactEmployeeAccountingPeriod: - "payments,line_items,purchase_orders,contact,employee,accounting_period", - PaymentsLineItemsPurchaseOrdersContactEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,contact,employee,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersContactEmployeePaymentTerm: - "payments,line_items,purchase_orders,contact,employee,payment_term", - PaymentsLineItemsPurchaseOrdersContactPaymentTerm: "payments,line_items,purchase_orders,contact,payment_term", - PaymentsLineItemsPurchaseOrdersEmployee: "payments,line_items,purchase_orders,employee", - PaymentsLineItemsPurchaseOrdersEmployeeAccountingPeriod: - "payments,line_items,purchase_orders,employee,accounting_period", - PaymentsLineItemsPurchaseOrdersEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,purchase_orders,employee,accounting_period,payment_term", - PaymentsLineItemsPurchaseOrdersEmployeePaymentTerm: "payments,line_items,purchase_orders,employee,payment_term", - PaymentsLineItemsPurchaseOrdersPaymentTerm: "payments,line_items,purchase_orders,payment_term", - PaymentsLineItemsTrackingCategories: "payments,line_items,tracking_categories", - PaymentsLineItemsTrackingCategoriesAccountingPeriod: "payments,line_items,tracking_categories,accounting_period", - PaymentsLineItemsTrackingCategoriesAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotes: - "payments,line_items,tracking_categories,applied_credit_notes", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAccountingPeriod: - "payments,line_items,tracking_categories,applied_credit_notes,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCredits: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompany: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContact: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompany: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployee: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompany: - "payments,line_items,tracking_categories,applied_credit_notes,company", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyAccountingPeriod: - "payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyEmployee: - "payments,line_items,tracking_categories,applied_credit_notes,company,employee", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyEmployeePaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,company,employee,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesCompanyPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,company,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesContact: - "payments,line_items,tracking_categories,applied_credit_notes,contact", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactAccountingPeriod: - "payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompany: - "payments,line_items,tracking_categories,applied_credit_notes,contact,company", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyAccountingPeriod: - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyEmployee: - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactCompanyPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactEmployee: - "payments,line_items,tracking_categories,applied_credit_notes,contact,employee", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactEmployeePaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,contact,employee,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesContactPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,contact,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesEmployee: - "payments,line_items,tracking_categories,applied_credit_notes,employee", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesEmployeePaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,employee,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedCreditNotesPaymentTerm: - "payments,line_items,tracking_categories,applied_credit_notes,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedVendorCredits: - "payments,line_items,tracking_categories,applied_vendor_credits", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsAccountingPeriod: - "payments,line_items,tracking_categories,applied_vendor_credits,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_vendor_credits,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompany: - "payments,line_items,tracking_categories,applied_vendor_credits,company", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyEmployee: - "payments,line_items,tracking_categories,applied_vendor_credits,company,employee", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,line_items,tracking_categories,applied_vendor_credits,company,employee,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsCompanyPaymentTerm: - "payments,line_items,tracking_categories,applied_vendor_credits,company,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContact: - "payments,line_items,tracking_categories,applied_vendor_credits,contact", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactAccountingPeriod: - "payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompany: - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployee: - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactEmployee: - "payments,line_items,tracking_categories,applied_vendor_credits,contact,employee", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsContactPaymentTerm: - "payments,line_items,tracking_categories,applied_vendor_credits,contact,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsEmployee: - "payments,line_items,tracking_categories,applied_vendor_credits,employee", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsEmployeePaymentTerm: - "payments,line_items,tracking_categories,applied_vendor_credits,employee,payment_term", - PaymentsLineItemsTrackingCategoriesAppliedVendorCreditsPaymentTerm: - "payments,line_items,tracking_categories,applied_vendor_credits,payment_term", - PaymentsLineItemsTrackingCategoriesCompany: "payments,line_items,tracking_categories,company", - PaymentsLineItemsTrackingCategoriesCompanyAccountingPeriod: - "payments,line_items,tracking_categories,company,accounting_period", - PaymentsLineItemsTrackingCategoriesCompanyAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,company,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesCompanyEmployee: "payments,line_items,tracking_categories,company,employee", - PaymentsLineItemsTrackingCategoriesCompanyEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,company,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,company,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesCompanyEmployeePaymentTerm: - "payments,line_items,tracking_categories,company,employee,payment_term", - PaymentsLineItemsTrackingCategoriesCompanyPaymentTerm: - "payments,line_items,tracking_categories,company,payment_term", - PaymentsLineItemsTrackingCategoriesContact: "payments,line_items,tracking_categories,contact", - PaymentsLineItemsTrackingCategoriesContactAccountingPeriod: - "payments,line_items,tracking_categories,contact,accounting_period", - PaymentsLineItemsTrackingCategoriesContactAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,contact,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesContactCompany: "payments,line_items,tracking_categories,contact,company", - PaymentsLineItemsTrackingCategoriesContactCompanyAccountingPeriod: - "payments,line_items,tracking_categories,contact,company,accounting_period", - PaymentsLineItemsTrackingCategoriesContactCompanyAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,contact,company,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesContactCompanyEmployee: - "payments,line_items,tracking_categories,contact,company,employee", - PaymentsLineItemsTrackingCategoriesContactCompanyEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,contact,company,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,contact,company,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesContactCompanyEmployeePaymentTerm: - "payments,line_items,tracking_categories,contact,company,employee,payment_term", - PaymentsLineItemsTrackingCategoriesContactCompanyPaymentTerm: - "payments,line_items,tracking_categories,contact,company,payment_term", - PaymentsLineItemsTrackingCategoriesContactEmployee: "payments,line_items,tracking_categories,contact,employee", - PaymentsLineItemsTrackingCategoriesContactEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,contact,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesContactEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,contact,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesContactEmployeePaymentTerm: - "payments,line_items,tracking_categories,contact,employee,payment_term", - PaymentsLineItemsTrackingCategoriesContactPaymentTerm: - "payments,line_items,tracking_categories,contact,payment_term", - PaymentsLineItemsTrackingCategoriesEmployee: "payments,line_items,tracking_categories,employee", - PaymentsLineItemsTrackingCategoriesEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesEmployeePaymentTerm: - "payments,line_items,tracking_categories,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPaymentTerm: "payments,line_items,tracking_categories,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrders: "payments,line_items,tracking_categories,purchase_orders", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotes: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCredits: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompany: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContact: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompany: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployee: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompany: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployee: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeePaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContact: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompany: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployee: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployee: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeePaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployee: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeePaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedCreditNotesPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCredits: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompany: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployee: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContact: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompany: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployee: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployee: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployee: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeePaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersCompany: - "payments,line_items,tracking_categories,purchase_orders,company", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,company,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,company,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyEmployee: - "payments,line_items,tracking_categories,purchase_orders,company,employee", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyEmployeePaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,company,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersCompanyPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,company,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersContact: - "payments,line_items,tracking_categories,purchase_orders,contact", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersContactAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,contact,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersContactAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,contact,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompany: - "payments,line_items,tracking_categories,purchase_orders,contact,company", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyEmployee: - "payments,line_items,tracking_categories,purchase_orders,contact,company,employee", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyEmployeePaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,contact,company,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersContactCompanyPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,contact,company,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersContactEmployee: - "payments,line_items,tracking_categories,purchase_orders,contact,employee", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersContactEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersContactEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersContactEmployeePaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,contact,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersContactPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,contact,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersEmployee: - "payments,line_items,tracking_categories,purchase_orders,employee", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersEmployeeAccountingPeriod: - "payments,line_items,tracking_categories,purchase_orders,employee,accounting_period", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersEmployeeAccountingPeriodPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,employee,accounting_period,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersEmployeePaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,employee,payment_term", - PaymentsLineItemsTrackingCategoriesPurchaseOrdersPaymentTerm: - "payments,line_items,tracking_categories,purchase_orders,payment_term", - PaymentsPaymentTerm: "payments,payment_term", - PaymentsPurchaseOrders: "payments,purchase_orders", - PaymentsPurchaseOrdersAccountingPeriod: "payments,purchase_orders,accounting_period", - PaymentsPurchaseOrdersAccountingPeriodPaymentTerm: "payments,purchase_orders,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotes: "payments,purchase_orders,applied_credit_notes", - PaymentsPurchaseOrdersAppliedCreditNotesAccountingPeriod: - "payments,purchase_orders,applied_credit_notes,accounting_period", - PaymentsPurchaseOrdersAppliedCreditNotesAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_credit_notes,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCredits: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompany: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContact: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompany: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployee: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesCompany: "payments,purchase_orders,applied_credit_notes,company", - PaymentsPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriod: - "payments,purchase_orders,applied_credit_notes,company,accounting_period", - PaymentsPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesCompanyEmployee: - "payments,purchase_orders,applied_credit_notes,company,employee", - PaymentsPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "payments,purchase_orders,applied_credit_notes,company,employee,accounting_period", - PaymentsPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesCompanyEmployeePaymentTerm: - "payments,purchase_orders,applied_credit_notes,company,employee,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesCompanyPaymentTerm: - "payments,purchase_orders,applied_credit_notes,company,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesContact: "payments,purchase_orders,applied_credit_notes,contact", - PaymentsPurchaseOrdersAppliedCreditNotesContactAccountingPeriod: - "payments,purchase_orders,applied_credit_notes,contact,accounting_period", - PaymentsPurchaseOrdersAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesContactCompany: - "payments,purchase_orders,applied_credit_notes,contact,company", - PaymentsPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriod: - "payments,purchase_orders,applied_credit_notes,contact,company,accounting_period", - PaymentsPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesContactCompanyEmployee: - "payments,purchase_orders,applied_credit_notes,contact,company,employee", - PaymentsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - PaymentsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "payments,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesContactCompanyPaymentTerm: - "payments,purchase_orders,applied_credit_notes,contact,company,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesContactEmployee: - "payments,purchase_orders,applied_credit_notes,contact,employee", - PaymentsPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriod: - "payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - PaymentsPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesContactEmployeePaymentTerm: - "payments,purchase_orders,applied_credit_notes,contact,employee,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesContactPaymentTerm: - "payments,purchase_orders,applied_credit_notes,contact,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesEmployee: "payments,purchase_orders,applied_credit_notes,employee", - PaymentsPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriod: - "payments,purchase_orders,applied_credit_notes,employee,accounting_period", - PaymentsPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesEmployeePaymentTerm: - "payments,purchase_orders,applied_credit_notes,employee,payment_term", - PaymentsPurchaseOrdersAppliedCreditNotesPaymentTerm: "payments,purchase_orders,applied_credit_notes,payment_term", - PaymentsPurchaseOrdersAppliedVendorCredits: "payments,purchase_orders,applied_vendor_credits", - PaymentsPurchaseOrdersAppliedVendorCreditsAccountingPeriod: - "payments,purchase_orders,applied_vendor_credits,accounting_period", - PaymentsPurchaseOrdersAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedVendorCreditsCompany: "payments,purchase_orders,applied_vendor_credits,company", - PaymentsPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriod: - "payments,purchase_orders,applied_vendor_credits,company,accounting_period", - PaymentsPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedVendorCreditsCompanyEmployee: - "payments,purchase_orders,applied_vendor_credits,company,employee", - PaymentsPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - PaymentsPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,purchase_orders,applied_vendor_credits,company,employee,payment_term", - PaymentsPurchaseOrdersAppliedVendorCreditsCompanyPaymentTerm: - "payments,purchase_orders,applied_vendor_credits,company,payment_term", - PaymentsPurchaseOrdersAppliedVendorCreditsContact: "payments,purchase_orders,applied_vendor_credits,contact", - PaymentsPurchaseOrdersAppliedVendorCreditsContactAccountingPeriod: - "payments,purchase_orders,applied_vendor_credits,contact,accounting_period", - PaymentsPurchaseOrdersAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedVendorCreditsContactCompany: - "payments,purchase_orders,applied_vendor_credits,contact,company", - PaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - PaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployee: - "payments,purchase_orders,applied_vendor_credits,contact,company,employee", - PaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsPurchaseOrdersAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,purchase_orders,applied_vendor_credits,contact,company,payment_term", - PaymentsPurchaseOrdersAppliedVendorCreditsContactEmployee: - "payments,purchase_orders,applied_vendor_credits,contact,employee", - PaymentsPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - PaymentsPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - PaymentsPurchaseOrdersAppliedVendorCreditsContactPaymentTerm: - "payments,purchase_orders,applied_vendor_credits,contact,payment_term", - PaymentsPurchaseOrdersAppliedVendorCreditsEmployee: "payments,purchase_orders,applied_vendor_credits,employee", - PaymentsPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,purchase_orders,applied_vendor_credits,employee,accounting_period", - PaymentsPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsPurchaseOrdersAppliedVendorCreditsEmployeePaymentTerm: - "payments,purchase_orders,applied_vendor_credits,employee,payment_term", - PaymentsPurchaseOrdersAppliedVendorCreditsPaymentTerm: - "payments,purchase_orders,applied_vendor_credits,payment_term", - PaymentsPurchaseOrdersCompany: "payments,purchase_orders,company", - PaymentsPurchaseOrdersCompanyAccountingPeriod: "payments,purchase_orders,company,accounting_period", - PaymentsPurchaseOrdersCompanyAccountingPeriodPaymentTerm: - "payments,purchase_orders,company,accounting_period,payment_term", - PaymentsPurchaseOrdersCompanyEmployee: "payments,purchase_orders,company,employee", - PaymentsPurchaseOrdersCompanyEmployeeAccountingPeriod: - "payments,purchase_orders,company,employee,accounting_period", - PaymentsPurchaseOrdersCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,purchase_orders,company,employee,accounting_period,payment_term", - PaymentsPurchaseOrdersCompanyEmployeePaymentTerm: "payments,purchase_orders,company,employee,payment_term", - PaymentsPurchaseOrdersCompanyPaymentTerm: "payments,purchase_orders,company,payment_term", - PaymentsPurchaseOrdersContact: "payments,purchase_orders,contact", - PaymentsPurchaseOrdersContactAccountingPeriod: "payments,purchase_orders,contact,accounting_period", - PaymentsPurchaseOrdersContactAccountingPeriodPaymentTerm: - "payments,purchase_orders,contact,accounting_period,payment_term", - PaymentsPurchaseOrdersContactCompany: "payments,purchase_orders,contact,company", - PaymentsPurchaseOrdersContactCompanyAccountingPeriod: "payments,purchase_orders,contact,company,accounting_period", - PaymentsPurchaseOrdersContactCompanyAccountingPeriodPaymentTerm: - "payments,purchase_orders,contact,company,accounting_period,payment_term", - PaymentsPurchaseOrdersContactCompanyEmployee: "payments,purchase_orders,contact,company,employee", - PaymentsPurchaseOrdersContactCompanyEmployeeAccountingPeriod: - "payments,purchase_orders,contact,company,employee,accounting_period", - PaymentsPurchaseOrdersContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,purchase_orders,contact,company,employee,accounting_period,payment_term", - PaymentsPurchaseOrdersContactCompanyEmployeePaymentTerm: - "payments,purchase_orders,contact,company,employee,payment_term", - PaymentsPurchaseOrdersContactCompanyPaymentTerm: "payments,purchase_orders,contact,company,payment_term", - PaymentsPurchaseOrdersContactEmployee: "payments,purchase_orders,contact,employee", - PaymentsPurchaseOrdersContactEmployeeAccountingPeriod: - "payments,purchase_orders,contact,employee,accounting_period", - PaymentsPurchaseOrdersContactEmployeeAccountingPeriodPaymentTerm: - "payments,purchase_orders,contact,employee,accounting_period,payment_term", - PaymentsPurchaseOrdersContactEmployeePaymentTerm: "payments,purchase_orders,contact,employee,payment_term", - PaymentsPurchaseOrdersContactPaymentTerm: "payments,purchase_orders,contact,payment_term", - PaymentsPurchaseOrdersEmployee: "payments,purchase_orders,employee", - PaymentsPurchaseOrdersEmployeeAccountingPeriod: "payments,purchase_orders,employee,accounting_period", - PaymentsPurchaseOrdersEmployeeAccountingPeriodPaymentTerm: - "payments,purchase_orders,employee,accounting_period,payment_term", - PaymentsPurchaseOrdersEmployeePaymentTerm: "payments,purchase_orders,employee,payment_term", - PaymentsPurchaseOrdersPaymentTerm: "payments,purchase_orders,payment_term", - PaymentsTrackingCategories: "payments,tracking_categories", - PaymentsTrackingCategoriesAccountingPeriod: "payments,tracking_categories,accounting_period", - PaymentsTrackingCategoriesAccountingPeriodPaymentTerm: - "payments,tracking_categories,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotes: "payments,tracking_categories,applied_credit_notes", - PaymentsTrackingCategoriesAppliedCreditNotesAccountingPeriod: - "payments,tracking_categories,applied_credit_notes,accounting_period", - PaymentsTrackingCategoriesAppliedCreditNotesAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_credit_notes,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCredits: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompany: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContact: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompany: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployee: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesCompany: "payments,tracking_categories,applied_credit_notes,company", - PaymentsTrackingCategoriesAppliedCreditNotesCompanyAccountingPeriod: - "payments,tracking_categories,applied_credit_notes,company,accounting_period", - PaymentsTrackingCategoriesAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_credit_notes,company,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesCompanyEmployee: - "payments,tracking_categories,applied_credit_notes,company,employee", - PaymentsTrackingCategoriesAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "payments,tracking_categories,applied_credit_notes,company,employee,accounting_period", - PaymentsTrackingCategoriesAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesCompanyEmployeePaymentTerm: - "payments,tracking_categories,applied_credit_notes,company,employee,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesCompanyPaymentTerm: - "payments,tracking_categories,applied_credit_notes,company,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesContact: "payments,tracking_categories,applied_credit_notes,contact", - PaymentsTrackingCategoriesAppliedCreditNotesContactAccountingPeriod: - "payments,tracking_categories,applied_credit_notes,contact,accounting_period", - PaymentsTrackingCategoriesAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesContactCompany: - "payments,tracking_categories,applied_credit_notes,contact,company", - PaymentsTrackingCategoriesAppliedCreditNotesContactCompanyAccountingPeriod: - "payments,tracking_categories,applied_credit_notes,contact,company,accounting_period", - PaymentsTrackingCategoriesAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesContactCompanyEmployee: - "payments,tracking_categories,applied_credit_notes,contact,company,employee", - PaymentsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period", - PaymentsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "payments,tracking_categories,applied_credit_notes,contact,company,employee,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesContactCompanyPaymentTerm: - "payments,tracking_categories,applied_credit_notes,contact,company,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesContactEmployee: - "payments,tracking_categories,applied_credit_notes,contact,employee", - PaymentsTrackingCategoriesAppliedCreditNotesContactEmployeeAccountingPeriod: - "payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period", - PaymentsTrackingCategoriesAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesContactEmployeePaymentTerm: - "payments,tracking_categories,applied_credit_notes,contact,employee,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesContactPaymentTerm: - "payments,tracking_categories,applied_credit_notes,contact,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesEmployee: "payments,tracking_categories,applied_credit_notes,employee", - PaymentsTrackingCategoriesAppliedCreditNotesEmployeeAccountingPeriod: - "payments,tracking_categories,applied_credit_notes,employee,accounting_period", - PaymentsTrackingCategoriesAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesEmployeePaymentTerm: - "payments,tracking_categories,applied_credit_notes,employee,payment_term", - PaymentsTrackingCategoriesAppliedCreditNotesPaymentTerm: - "payments,tracking_categories,applied_credit_notes,payment_term", - PaymentsTrackingCategoriesAppliedVendorCredits: "payments,tracking_categories,applied_vendor_credits", - PaymentsTrackingCategoriesAppliedVendorCreditsAccountingPeriod: - "payments,tracking_categories,applied_vendor_credits,accounting_period", - PaymentsTrackingCategoriesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_vendor_credits,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedVendorCreditsCompany: - "payments,tracking_categories,applied_vendor_credits,company", - PaymentsTrackingCategoriesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,tracking_categories,applied_vendor_credits,company,accounting_period", - PaymentsTrackingCategoriesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedVendorCreditsCompanyEmployee: - "payments,tracking_categories,applied_vendor_credits,company,employee", - PaymentsTrackingCategoriesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period", - PaymentsTrackingCategoriesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,tracking_categories,applied_vendor_credits,company,employee,payment_term", - PaymentsTrackingCategoriesAppliedVendorCreditsCompanyPaymentTerm: - "payments,tracking_categories,applied_vendor_credits,company,payment_term", - PaymentsTrackingCategoriesAppliedVendorCreditsContact: - "payments,tracking_categories,applied_vendor_credits,contact", - PaymentsTrackingCategoriesAppliedVendorCreditsContactAccountingPeriod: - "payments,tracking_categories,applied_vendor_credits,contact,accounting_period", - PaymentsTrackingCategoriesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedVendorCreditsContactCompany: - "payments,tracking_categories,applied_vendor_credits,contact,company", - PaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period", - PaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployee: - "payments,tracking_categories,applied_vendor_credits,contact,company,employee", - PaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsTrackingCategoriesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,tracking_categories,applied_vendor_credits,contact,company,payment_term", - PaymentsTrackingCategoriesAppliedVendorCreditsContactEmployee: - "payments,tracking_categories,applied_vendor_credits,contact,employee", - PaymentsTrackingCategoriesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period", - PaymentsTrackingCategoriesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,tracking_categories,applied_vendor_credits,contact,employee,payment_term", - PaymentsTrackingCategoriesAppliedVendorCreditsContactPaymentTerm: - "payments,tracking_categories,applied_vendor_credits,contact,payment_term", - PaymentsTrackingCategoriesAppliedVendorCreditsEmployee: - "payments,tracking_categories,applied_vendor_credits,employee", - PaymentsTrackingCategoriesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,tracking_categories,applied_vendor_credits,employee,accounting_period", - PaymentsTrackingCategoriesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesAppliedVendorCreditsEmployeePaymentTerm: - "payments,tracking_categories,applied_vendor_credits,employee,payment_term", - PaymentsTrackingCategoriesAppliedVendorCreditsPaymentTerm: - "payments,tracking_categories,applied_vendor_credits,payment_term", - PaymentsTrackingCategoriesCompany: "payments,tracking_categories,company", - PaymentsTrackingCategoriesCompanyAccountingPeriod: "payments,tracking_categories,company,accounting_period", - PaymentsTrackingCategoriesCompanyAccountingPeriodPaymentTerm: - "payments,tracking_categories,company,accounting_period,payment_term", - PaymentsTrackingCategoriesCompanyEmployee: "payments,tracking_categories,company,employee", - PaymentsTrackingCategoriesCompanyEmployeeAccountingPeriod: - "payments,tracking_categories,company,employee,accounting_period", - PaymentsTrackingCategoriesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,company,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesCompanyEmployeePaymentTerm: "payments,tracking_categories,company,employee,payment_term", - PaymentsTrackingCategoriesCompanyPaymentTerm: "payments,tracking_categories,company,payment_term", - PaymentsTrackingCategoriesContact: "payments,tracking_categories,contact", - PaymentsTrackingCategoriesContactAccountingPeriod: "payments,tracking_categories,contact,accounting_period", - PaymentsTrackingCategoriesContactAccountingPeriodPaymentTerm: - "payments,tracking_categories,contact,accounting_period,payment_term", - PaymentsTrackingCategoriesContactCompany: "payments,tracking_categories,contact,company", - PaymentsTrackingCategoriesContactCompanyAccountingPeriod: - "payments,tracking_categories,contact,company,accounting_period", - PaymentsTrackingCategoriesContactCompanyAccountingPeriodPaymentTerm: - "payments,tracking_categories,contact,company,accounting_period,payment_term", - PaymentsTrackingCategoriesContactCompanyEmployee: "payments,tracking_categories,contact,company,employee", - PaymentsTrackingCategoriesContactCompanyEmployeeAccountingPeriod: - "payments,tracking_categories,contact,company,employee,accounting_period", - PaymentsTrackingCategoriesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,contact,company,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesContactCompanyEmployeePaymentTerm: - "payments,tracking_categories,contact,company,employee,payment_term", - PaymentsTrackingCategoriesContactCompanyPaymentTerm: "payments,tracking_categories,contact,company,payment_term", - PaymentsTrackingCategoriesContactEmployee: "payments,tracking_categories,contact,employee", - PaymentsTrackingCategoriesContactEmployeeAccountingPeriod: - "payments,tracking_categories,contact,employee,accounting_period", - PaymentsTrackingCategoriesContactEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,contact,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesContactEmployeePaymentTerm: "payments,tracking_categories,contact,employee,payment_term", - PaymentsTrackingCategoriesContactPaymentTerm: "payments,tracking_categories,contact,payment_term", - PaymentsTrackingCategoriesEmployee: "payments,tracking_categories,employee", - PaymentsTrackingCategoriesEmployeeAccountingPeriod: "payments,tracking_categories,employee,accounting_period", - PaymentsTrackingCategoriesEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesEmployeePaymentTerm: "payments,tracking_categories,employee,payment_term", - PaymentsTrackingCategoriesPaymentTerm: "payments,tracking_categories,payment_term", - PaymentsTrackingCategoriesPurchaseOrders: "payments,tracking_categories,purchase_orders", - PaymentsTrackingCategoriesPurchaseOrdersAccountingPeriod: - "payments,tracking_categories,purchase_orders,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotes: - "payments,tracking_categories,purchase_orders,applied_credit_notes", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCredits: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompany: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContact: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompany: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployee: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompany: - "payments,tracking_categories,purchase_orders,applied_credit_notes,company", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployee: - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeePaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContact: - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompany: - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployee: - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployee: - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeePaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesContactPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployee: - "payments,tracking_categories,purchase_orders,applied_credit_notes,employee", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeePaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedCreditNotesPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_credit_notes,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCredits: - "payments,tracking_categories,purchase_orders,applied_vendor_credits", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompany: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployee: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeePaymentTerm: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContact: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompany: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployee: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployee: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeePaymentTerm: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployee: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,employee", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriod: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeePaymentTerm: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersAppliedVendorCreditsPaymentTerm: - "payments,tracking_categories,purchase_orders,applied_vendor_credits,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersCompany: "payments,tracking_categories,purchase_orders,company", - PaymentsTrackingCategoriesPurchaseOrdersCompanyAccountingPeriod: - "payments,tracking_categories,purchase_orders,company,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersCompanyAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,company,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersCompanyEmployee: - "payments,tracking_categories,purchase_orders,company,employee", - PaymentsTrackingCategoriesPurchaseOrdersCompanyEmployeeAccountingPeriod: - "payments,tracking_categories,purchase_orders,company,employee,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersCompanyEmployeePaymentTerm: - "payments,tracking_categories,purchase_orders,company,employee,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersCompanyPaymentTerm: - "payments,tracking_categories,purchase_orders,company,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersContact: "payments,tracking_categories,purchase_orders,contact", - PaymentsTrackingCategoriesPurchaseOrdersContactAccountingPeriod: - "payments,tracking_categories,purchase_orders,contact,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersContactAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,contact,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersContactCompany: - "payments,tracking_categories,purchase_orders,contact,company", - PaymentsTrackingCategoriesPurchaseOrdersContactCompanyAccountingPeriod: - "payments,tracking_categories,purchase_orders,contact,company,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersContactCompanyAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersContactCompanyEmployee: - "payments,tracking_categories,purchase_orders,contact,company,employee", - PaymentsTrackingCategoriesPurchaseOrdersContactCompanyEmployeeAccountingPeriod: - "payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersContactCompanyEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersContactCompanyEmployeePaymentTerm: - "payments,tracking_categories,purchase_orders,contact,company,employee,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersContactCompanyPaymentTerm: - "payments,tracking_categories,purchase_orders,contact,company,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersContactEmployee: - "payments,tracking_categories,purchase_orders,contact,employee", - PaymentsTrackingCategoriesPurchaseOrdersContactEmployeeAccountingPeriod: - "payments,tracking_categories,purchase_orders,contact,employee,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersContactEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersContactEmployeePaymentTerm: - "payments,tracking_categories,purchase_orders,contact,employee,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersContactPaymentTerm: - "payments,tracking_categories,purchase_orders,contact,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersEmployee: "payments,tracking_categories,purchase_orders,employee", - PaymentsTrackingCategoriesPurchaseOrdersEmployeeAccountingPeriod: - "payments,tracking_categories,purchase_orders,employee,accounting_period", - PaymentsTrackingCategoriesPurchaseOrdersEmployeeAccountingPeriodPaymentTerm: - "payments,tracking_categories,purchase_orders,employee,accounting_period,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersEmployeePaymentTerm: - "payments,tracking_categories,purchase_orders,employee,payment_term", - PaymentsTrackingCategoriesPurchaseOrdersPaymentTerm: "payments,tracking_categories,purchase_orders,payment_term", - PurchaseOrders: "purchase_orders", - PurchaseOrdersAccountingPeriod: "purchase_orders,accounting_period", - PurchaseOrdersAccountingPeriodPaymentTerm: "purchase_orders,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotes: "purchase_orders,applied_credit_notes", - PurchaseOrdersAppliedCreditNotesAccountingPeriod: "purchase_orders,applied_credit_notes,accounting_period", - PurchaseOrdersAppliedCreditNotesAccountingPeriodPaymentTerm: - "purchase_orders,applied_credit_notes,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotesAppliedVendorCredits: "purchase_orders,applied_credit_notes,applied_vendor_credits", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompany: - "purchase_orders,applied_credit_notes,applied_vendor_credits,company", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContact: - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompany: - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployee: - "purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - PurchaseOrdersAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - PurchaseOrdersAppliedCreditNotesCompany: "purchase_orders,applied_credit_notes,company", - PurchaseOrdersAppliedCreditNotesCompanyAccountingPeriod: - "purchase_orders,applied_credit_notes,company,accounting_period", - PurchaseOrdersAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotesCompanyEmployee: "purchase_orders,applied_credit_notes,company,employee", - PurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "purchase_orders,applied_credit_notes,company,employee,accounting_period", - PurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotesCompanyEmployeePaymentTerm: - "purchase_orders,applied_credit_notes,company,employee,payment_term", - PurchaseOrdersAppliedCreditNotesCompanyPaymentTerm: "purchase_orders,applied_credit_notes,company,payment_term", - PurchaseOrdersAppliedCreditNotesContact: "purchase_orders,applied_credit_notes,contact", - PurchaseOrdersAppliedCreditNotesContactAccountingPeriod: - "purchase_orders,applied_credit_notes,contact,accounting_period", - PurchaseOrdersAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotesContactCompany: "purchase_orders,applied_credit_notes,contact,company", - PurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriod: - "purchase_orders,applied_credit_notes,contact,company,accounting_period", - PurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotesContactCompanyEmployee: - "purchase_orders,applied_credit_notes,contact,company,employee", - PurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - PurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - PurchaseOrdersAppliedCreditNotesContactCompanyPaymentTerm: - "purchase_orders,applied_credit_notes,contact,company,payment_term", - PurchaseOrdersAppliedCreditNotesContactEmployee: "purchase_orders,applied_credit_notes,contact,employee", - PurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriod: - "purchase_orders,applied_credit_notes,contact,employee,accounting_period", - PurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotesContactEmployeePaymentTerm: - "purchase_orders,applied_credit_notes,contact,employee,payment_term", - PurchaseOrdersAppliedCreditNotesContactPaymentTerm: "purchase_orders,applied_credit_notes,contact,payment_term", - PurchaseOrdersAppliedCreditNotesEmployee: "purchase_orders,applied_credit_notes,employee", - PurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriod: - "purchase_orders,applied_credit_notes,employee,accounting_period", - PurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - PurchaseOrdersAppliedCreditNotesEmployeePaymentTerm: "purchase_orders,applied_credit_notes,employee,payment_term", - PurchaseOrdersAppliedCreditNotesPaymentTerm: "purchase_orders,applied_credit_notes,payment_term", - PurchaseOrdersAppliedVendorCredits: "purchase_orders,applied_vendor_credits", - PurchaseOrdersAppliedVendorCreditsAccountingPeriod: "purchase_orders,applied_vendor_credits,accounting_period", - PurchaseOrdersAppliedVendorCreditsAccountingPeriodPaymentTerm: - "purchase_orders,applied_vendor_credits,accounting_period,payment_term", - PurchaseOrdersAppliedVendorCreditsCompany: "purchase_orders,applied_vendor_credits,company", - PurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriod: - "purchase_orders,applied_vendor_credits,company,accounting_period", - PurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - PurchaseOrdersAppliedVendorCreditsCompanyEmployee: "purchase_orders,applied_vendor_credits,company,employee", - PurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "purchase_orders,applied_vendor_credits,company,employee,accounting_period", - PurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - PurchaseOrdersAppliedVendorCreditsCompanyEmployeePaymentTerm: - "purchase_orders,applied_vendor_credits,company,employee,payment_term", - PurchaseOrdersAppliedVendorCreditsCompanyPaymentTerm: "purchase_orders,applied_vendor_credits,company,payment_term", - PurchaseOrdersAppliedVendorCreditsContact: "purchase_orders,applied_vendor_credits,contact", - PurchaseOrdersAppliedVendorCreditsContactAccountingPeriod: - "purchase_orders,applied_vendor_credits,contact,accounting_period", - PurchaseOrdersAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - PurchaseOrdersAppliedVendorCreditsContactCompany: "purchase_orders,applied_vendor_credits,contact,company", - PurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriod: - "purchase_orders,applied_vendor_credits,contact,company,accounting_period", - PurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - PurchaseOrdersAppliedVendorCreditsContactCompanyEmployee: - "purchase_orders,applied_vendor_credits,contact,company,employee", - PurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - PurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - PurchaseOrdersAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - PurchaseOrdersAppliedVendorCreditsContactCompanyPaymentTerm: - "purchase_orders,applied_vendor_credits,contact,company,payment_term", - PurchaseOrdersAppliedVendorCreditsContactEmployee: "purchase_orders,applied_vendor_credits,contact,employee", - PurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriod: - "purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - PurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - PurchaseOrdersAppliedVendorCreditsContactEmployeePaymentTerm: - "purchase_orders,applied_vendor_credits,contact,employee,payment_term", - PurchaseOrdersAppliedVendorCreditsContactPaymentTerm: "purchase_orders,applied_vendor_credits,contact,payment_term", - PurchaseOrdersAppliedVendorCreditsEmployee: "purchase_orders,applied_vendor_credits,employee", - PurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriod: - "purchase_orders,applied_vendor_credits,employee,accounting_period", - PurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - PurchaseOrdersAppliedVendorCreditsEmployeePaymentTerm: - "purchase_orders,applied_vendor_credits,employee,payment_term", - PurchaseOrdersAppliedVendorCreditsPaymentTerm: "purchase_orders,applied_vendor_credits,payment_term", - PurchaseOrdersCompany: "purchase_orders,company", - PurchaseOrdersCompanyAccountingPeriod: "purchase_orders,company,accounting_period", - PurchaseOrdersCompanyAccountingPeriodPaymentTerm: "purchase_orders,company,accounting_period,payment_term", - PurchaseOrdersCompanyEmployee: "purchase_orders,company,employee", - PurchaseOrdersCompanyEmployeeAccountingPeriod: "purchase_orders,company,employee,accounting_period", - PurchaseOrdersCompanyEmployeeAccountingPeriodPaymentTerm: - "purchase_orders,company,employee,accounting_period,payment_term", - PurchaseOrdersCompanyEmployeePaymentTerm: "purchase_orders,company,employee,payment_term", - PurchaseOrdersCompanyPaymentTerm: "purchase_orders,company,payment_term", - PurchaseOrdersContact: "purchase_orders,contact", - PurchaseOrdersContactAccountingPeriod: "purchase_orders,contact,accounting_period", - PurchaseOrdersContactAccountingPeriodPaymentTerm: "purchase_orders,contact,accounting_period,payment_term", - PurchaseOrdersContactCompany: "purchase_orders,contact,company", - PurchaseOrdersContactCompanyAccountingPeriod: "purchase_orders,contact,company,accounting_period", - PurchaseOrdersContactCompanyAccountingPeriodPaymentTerm: - "purchase_orders,contact,company,accounting_period,payment_term", - PurchaseOrdersContactCompanyEmployee: "purchase_orders,contact,company,employee", - PurchaseOrdersContactCompanyEmployeeAccountingPeriod: "purchase_orders,contact,company,employee,accounting_period", - PurchaseOrdersContactCompanyEmployeeAccountingPeriodPaymentTerm: - "purchase_orders,contact,company,employee,accounting_period,payment_term", - PurchaseOrdersContactCompanyEmployeePaymentTerm: "purchase_orders,contact,company,employee,payment_term", - PurchaseOrdersContactCompanyPaymentTerm: "purchase_orders,contact,company,payment_term", - PurchaseOrdersContactEmployee: "purchase_orders,contact,employee", - PurchaseOrdersContactEmployeeAccountingPeriod: "purchase_orders,contact,employee,accounting_period", - PurchaseOrdersContactEmployeeAccountingPeriodPaymentTerm: - "purchase_orders,contact,employee,accounting_period,payment_term", - PurchaseOrdersContactEmployeePaymentTerm: "purchase_orders,contact,employee,payment_term", - PurchaseOrdersContactPaymentTerm: "purchase_orders,contact,payment_term", - PurchaseOrdersEmployee: "purchase_orders,employee", - PurchaseOrdersEmployeeAccountingPeriod: "purchase_orders,employee,accounting_period", - PurchaseOrdersEmployeeAccountingPeriodPaymentTerm: "purchase_orders,employee,accounting_period,payment_term", - PurchaseOrdersEmployeePaymentTerm: "purchase_orders,employee,payment_term", - PurchaseOrdersPaymentTerm: "purchase_orders,payment_term", - TrackingCategories: "tracking_categories", - TrackingCategoriesAccountingPeriod: "tracking_categories,accounting_period", - TrackingCategoriesAccountingPeriodPaymentTerm: "tracking_categories,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotes: "tracking_categories,applied_credit_notes", - TrackingCategoriesAppliedCreditNotesAccountingPeriod: "tracking_categories,applied_credit_notes,accounting_period", - TrackingCategoriesAppliedCreditNotesAccountingPeriodPaymentTerm: - "tracking_categories,applied_credit_notes,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotesAppliedVendorCredits: - "tracking_categories,applied_credit_notes,applied_vendor_credits", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompany: - "tracking_categories,applied_credit_notes,applied_vendor_credits,company", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContact: - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompany: - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployee: - "tracking_categories,applied_credit_notes,applied_vendor_credits,employee", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term", - TrackingCategoriesAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term", - TrackingCategoriesAppliedCreditNotesCompany: "tracking_categories,applied_credit_notes,company", - TrackingCategoriesAppliedCreditNotesCompanyAccountingPeriod: - "tracking_categories,applied_credit_notes,company,accounting_period", - TrackingCategoriesAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "tracking_categories,applied_credit_notes,company,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotesCompanyEmployee: "tracking_categories,applied_credit_notes,company,employee", - TrackingCategoriesAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "tracking_categories,applied_credit_notes,company,employee,accounting_period", - TrackingCategoriesAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotesCompanyEmployeePaymentTerm: - "tracking_categories,applied_credit_notes,company,employee,payment_term", - TrackingCategoriesAppliedCreditNotesCompanyPaymentTerm: - "tracking_categories,applied_credit_notes,company,payment_term", - TrackingCategoriesAppliedCreditNotesContact: "tracking_categories,applied_credit_notes,contact", - TrackingCategoriesAppliedCreditNotesContactAccountingPeriod: - "tracking_categories,applied_credit_notes,contact,accounting_period", - TrackingCategoriesAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "tracking_categories,applied_credit_notes,contact,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotesContactCompany: "tracking_categories,applied_credit_notes,contact,company", - TrackingCategoriesAppliedCreditNotesContactCompanyAccountingPeriod: - "tracking_categories,applied_credit_notes,contact,company,accounting_period", - TrackingCategoriesAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotesContactCompanyEmployee: - "tracking_categories,applied_credit_notes,contact,company,employee", - TrackingCategoriesAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "tracking_categories,applied_credit_notes,contact,company,employee,accounting_period", - TrackingCategoriesAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "tracking_categories,applied_credit_notes,contact,company,employee,payment_term", - TrackingCategoriesAppliedCreditNotesContactCompanyPaymentTerm: - "tracking_categories,applied_credit_notes,contact,company,payment_term", - TrackingCategoriesAppliedCreditNotesContactEmployee: "tracking_categories,applied_credit_notes,contact,employee", - TrackingCategoriesAppliedCreditNotesContactEmployeeAccountingPeriod: - "tracking_categories,applied_credit_notes,contact,employee,accounting_period", - TrackingCategoriesAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotesContactEmployeePaymentTerm: - "tracking_categories,applied_credit_notes,contact,employee,payment_term", - TrackingCategoriesAppliedCreditNotesContactPaymentTerm: - "tracking_categories,applied_credit_notes,contact,payment_term", - TrackingCategoriesAppliedCreditNotesEmployee: "tracking_categories,applied_credit_notes,employee", - TrackingCategoriesAppliedCreditNotesEmployeeAccountingPeriod: - "tracking_categories,applied_credit_notes,employee,accounting_period", - TrackingCategoriesAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,applied_credit_notes,employee,accounting_period,payment_term", - TrackingCategoriesAppliedCreditNotesEmployeePaymentTerm: - "tracking_categories,applied_credit_notes,employee,payment_term", - TrackingCategoriesAppliedCreditNotesPaymentTerm: "tracking_categories,applied_credit_notes,payment_term", - TrackingCategoriesAppliedVendorCredits: "tracking_categories,applied_vendor_credits", - TrackingCategoriesAppliedVendorCreditsAccountingPeriod: - "tracking_categories,applied_vendor_credits,accounting_period", - TrackingCategoriesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "tracking_categories,applied_vendor_credits,accounting_period,payment_term", - TrackingCategoriesAppliedVendorCreditsCompany: "tracking_categories,applied_vendor_credits,company", - TrackingCategoriesAppliedVendorCreditsCompanyAccountingPeriod: - "tracking_categories,applied_vendor_credits,company,accounting_period", - TrackingCategoriesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "tracking_categories,applied_vendor_credits,company,accounting_period,payment_term", - TrackingCategoriesAppliedVendorCreditsCompanyEmployee: - "tracking_categories,applied_vendor_credits,company,employee", - TrackingCategoriesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "tracking_categories,applied_vendor_credits,company,employee,accounting_period", - TrackingCategoriesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term", - TrackingCategoriesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "tracking_categories,applied_vendor_credits,company,employee,payment_term", - TrackingCategoriesAppliedVendorCreditsCompanyPaymentTerm: - "tracking_categories,applied_vendor_credits,company,payment_term", - TrackingCategoriesAppliedVendorCreditsContact: "tracking_categories,applied_vendor_credits,contact", - TrackingCategoriesAppliedVendorCreditsContactAccountingPeriod: - "tracking_categories,applied_vendor_credits,contact,accounting_period", - TrackingCategoriesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term", - TrackingCategoriesAppliedVendorCreditsContactCompany: "tracking_categories,applied_vendor_credits,contact,company", - TrackingCategoriesAppliedVendorCreditsContactCompanyAccountingPeriod: - "tracking_categories,applied_vendor_credits,contact,company,accounting_period", - TrackingCategoriesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term", - TrackingCategoriesAppliedVendorCreditsContactCompanyEmployee: - "tracking_categories,applied_vendor_credits,contact,company,employee", - TrackingCategoriesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period", - TrackingCategoriesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - TrackingCategoriesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "tracking_categories,applied_vendor_credits,contact,company,employee,payment_term", - TrackingCategoriesAppliedVendorCreditsContactCompanyPaymentTerm: - "tracking_categories,applied_vendor_credits,contact,company,payment_term", - TrackingCategoriesAppliedVendorCreditsContactEmployee: - "tracking_categories,applied_vendor_credits,contact,employee", - TrackingCategoriesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "tracking_categories,applied_vendor_credits,contact,employee,accounting_period", - TrackingCategoriesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term", - TrackingCategoriesAppliedVendorCreditsContactEmployeePaymentTerm: - "tracking_categories,applied_vendor_credits,contact,employee,payment_term", - TrackingCategoriesAppliedVendorCreditsContactPaymentTerm: - "tracking_categories,applied_vendor_credits,contact,payment_term", - TrackingCategoriesAppliedVendorCreditsEmployee: "tracking_categories,applied_vendor_credits,employee", - TrackingCategoriesAppliedVendorCreditsEmployeeAccountingPeriod: - "tracking_categories,applied_vendor_credits,employee,accounting_period", - TrackingCategoriesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term", - TrackingCategoriesAppliedVendorCreditsEmployeePaymentTerm: - "tracking_categories,applied_vendor_credits,employee,payment_term", - TrackingCategoriesAppliedVendorCreditsPaymentTerm: "tracking_categories,applied_vendor_credits,payment_term", - TrackingCategoriesCompany: "tracking_categories,company", - TrackingCategoriesCompanyAccountingPeriod: "tracking_categories,company,accounting_period", - TrackingCategoriesCompanyAccountingPeriodPaymentTerm: "tracking_categories,company,accounting_period,payment_term", - TrackingCategoriesCompanyEmployee: "tracking_categories,company,employee", - TrackingCategoriesCompanyEmployeeAccountingPeriod: "tracking_categories,company,employee,accounting_period", - TrackingCategoriesCompanyEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,company,employee,accounting_period,payment_term", - TrackingCategoriesCompanyEmployeePaymentTerm: "tracking_categories,company,employee,payment_term", - TrackingCategoriesCompanyPaymentTerm: "tracking_categories,company,payment_term", - TrackingCategoriesContact: "tracking_categories,contact", - TrackingCategoriesContactAccountingPeriod: "tracking_categories,contact,accounting_period", - TrackingCategoriesContactAccountingPeriodPaymentTerm: "tracking_categories,contact,accounting_period,payment_term", - TrackingCategoriesContactCompany: "tracking_categories,contact,company", - TrackingCategoriesContactCompanyAccountingPeriod: "tracking_categories,contact,company,accounting_period", - TrackingCategoriesContactCompanyAccountingPeriodPaymentTerm: - "tracking_categories,contact,company,accounting_period,payment_term", - TrackingCategoriesContactCompanyEmployee: "tracking_categories,contact,company,employee", - TrackingCategoriesContactCompanyEmployeeAccountingPeriod: - "tracking_categories,contact,company,employee,accounting_period", - TrackingCategoriesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,contact,company,employee,accounting_period,payment_term", - TrackingCategoriesContactCompanyEmployeePaymentTerm: "tracking_categories,contact,company,employee,payment_term", - TrackingCategoriesContactCompanyPaymentTerm: "tracking_categories,contact,company,payment_term", - TrackingCategoriesContactEmployee: "tracking_categories,contact,employee", - TrackingCategoriesContactEmployeeAccountingPeriod: "tracking_categories,contact,employee,accounting_period", - TrackingCategoriesContactEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,contact,employee,accounting_period,payment_term", - TrackingCategoriesContactEmployeePaymentTerm: "tracking_categories,contact,employee,payment_term", - TrackingCategoriesContactPaymentTerm: "tracking_categories,contact,payment_term", - TrackingCategoriesEmployee: "tracking_categories,employee", - TrackingCategoriesEmployeeAccountingPeriod: "tracking_categories,employee,accounting_period", - TrackingCategoriesEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,employee,accounting_period,payment_term", - TrackingCategoriesEmployeePaymentTerm: "tracking_categories,employee,payment_term", - TrackingCategoriesPaymentTerm: "tracking_categories,payment_term", - TrackingCategoriesPurchaseOrders: "tracking_categories,purchase_orders", - TrackingCategoriesPurchaseOrdersAccountingPeriod: "tracking_categories,purchase_orders,accounting_period", - TrackingCategoriesPurchaseOrdersAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotes: "tracking_categories,purchase_orders,applied_credit_notes", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAccountingPeriod: - "tracking_categories,purchase_orders,applied_credit_notes,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCredits: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriod: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompany: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriod: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployee: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyEmployeePaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsCompanyPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContact: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriod: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompany: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriod: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployee: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactCompanyPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployee: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriod: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactEmployeePaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsContactPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployee: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriod: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsEmployeePaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesAppliedVendorCreditsPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesCompany: - "tracking_categories,purchase_orders,applied_credit_notes,company", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriod: - "tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployee: - "tracking_categories,purchase_orders,applied_credit_notes,company,employee", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriod: - "tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyEmployeePaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesCompanyPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,company,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesContact: - "tracking_categories,purchase_orders,applied_credit_notes,contact", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesContactAccountingPeriod: - "tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesContactAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompany: - "tracking_categories,purchase_orders,applied_credit_notes,contact,company", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriod: - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployee: - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriod: - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyEmployeePaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesContactCompanyPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployee: - "tracking_categories,purchase_orders,applied_credit_notes,contact,employee", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriod: - "tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesContactEmployeePaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesContactPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployee: - "tracking_categories,purchase_orders,applied_credit_notes,employee", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriod: - "tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesEmployeePaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term", - TrackingCategoriesPurchaseOrdersAppliedCreditNotesPaymentTerm: - "tracking_categories,purchase_orders,applied_credit_notes,payment_term", - TrackingCategoriesPurchaseOrdersAppliedVendorCredits: "tracking_categories,purchase_orders,applied_vendor_credits", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsAccountingPeriod: - "tracking_categories,purchase_orders,applied_vendor_credits,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompany: - "tracking_categories,purchase_orders,applied_vendor_credits,company", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriod: - "tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployee: - "tracking_categories,purchase_orders,applied_vendor_credits,company,employee", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriod: - "tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyEmployeePaymentTerm: - "tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsCompanyPaymentTerm: - "tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsContact: - "tracking_categories,purchase_orders,applied_vendor_credits,contact", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactAccountingPeriod: - "tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompany: - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriod: - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployee: - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriod: - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyEmployeePaymentTerm: - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactCompanyPaymentTerm: - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployee: - "tracking_categories,purchase_orders,applied_vendor_credits,contact,employee", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriod: - "tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactEmployeePaymentTerm: - "tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsContactPaymentTerm: - "tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployee: - "tracking_categories,purchase_orders,applied_vendor_credits,employee", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriod: - "tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsEmployeePaymentTerm: - "tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term", - TrackingCategoriesPurchaseOrdersAppliedVendorCreditsPaymentTerm: - "tracking_categories,purchase_orders,applied_vendor_credits,payment_term", - TrackingCategoriesPurchaseOrdersCompany: "tracking_categories,purchase_orders,company", - TrackingCategoriesPurchaseOrdersCompanyAccountingPeriod: - "tracking_categories,purchase_orders,company,accounting_period", - TrackingCategoriesPurchaseOrdersCompanyAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,company,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersCompanyEmployee: "tracking_categories,purchase_orders,company,employee", - TrackingCategoriesPurchaseOrdersCompanyEmployeeAccountingPeriod: - "tracking_categories,purchase_orders,company,employee,accounting_period", - TrackingCategoriesPurchaseOrdersCompanyEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,company,employee,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersCompanyEmployeePaymentTerm: - "tracking_categories,purchase_orders,company,employee,payment_term", - TrackingCategoriesPurchaseOrdersCompanyPaymentTerm: "tracking_categories,purchase_orders,company,payment_term", - TrackingCategoriesPurchaseOrdersContact: "tracking_categories,purchase_orders,contact", - TrackingCategoriesPurchaseOrdersContactAccountingPeriod: - "tracking_categories,purchase_orders,contact,accounting_period", - TrackingCategoriesPurchaseOrdersContactAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,contact,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersContactCompany: "tracking_categories,purchase_orders,contact,company", - TrackingCategoriesPurchaseOrdersContactCompanyAccountingPeriod: - "tracking_categories,purchase_orders,contact,company,accounting_period", - TrackingCategoriesPurchaseOrdersContactCompanyAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,contact,company,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersContactCompanyEmployee: - "tracking_categories,purchase_orders,contact,company,employee", - TrackingCategoriesPurchaseOrdersContactCompanyEmployeeAccountingPeriod: - "tracking_categories,purchase_orders,contact,company,employee,accounting_period", - TrackingCategoriesPurchaseOrdersContactCompanyEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersContactCompanyEmployeePaymentTerm: - "tracking_categories,purchase_orders,contact,company,employee,payment_term", - TrackingCategoriesPurchaseOrdersContactCompanyPaymentTerm: - "tracking_categories,purchase_orders,contact,company,payment_term", - TrackingCategoriesPurchaseOrdersContactEmployee: "tracking_categories,purchase_orders,contact,employee", - TrackingCategoriesPurchaseOrdersContactEmployeeAccountingPeriod: - "tracking_categories,purchase_orders,contact,employee,accounting_period", - TrackingCategoriesPurchaseOrdersContactEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersContactEmployeePaymentTerm: - "tracking_categories,purchase_orders,contact,employee,payment_term", - TrackingCategoriesPurchaseOrdersContactPaymentTerm: "tracking_categories,purchase_orders,contact,payment_term", - TrackingCategoriesPurchaseOrdersEmployee: "tracking_categories,purchase_orders,employee", - TrackingCategoriesPurchaseOrdersEmployeeAccountingPeriod: - "tracking_categories,purchase_orders,employee,accounting_period", - TrackingCategoriesPurchaseOrdersEmployeeAccountingPeriodPaymentTerm: - "tracking_categories,purchase_orders,employee,accounting_period,payment_term", - TrackingCategoriesPurchaseOrdersEmployeePaymentTerm: "tracking_categories,purchase_orders,employee,payment_term", - TrackingCategoriesPurchaseOrdersPaymentTerm: "tracking_categories,purchase_orders,payment_term", -} as const; -export type InvoicesRetrieveRequestExpand = - (typeof InvoicesRetrieveRequestExpand)[keyof typeof InvoicesRetrieveRequestExpand]; diff --git a/src/api/resources/accounting/resources/invoices/types/InvoicesRetrieveRequestExpandItem.ts b/src/api/resources/accounting/resources/invoices/types/InvoicesRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..68cfb148c --- /dev/null +++ b/src/api/resources/accounting/resources/invoices/types/InvoicesRetrieveRequestExpandItem.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +export const InvoicesRetrieveRequestExpandItem = { + AccountingPeriod: "accounting_period", + AppliedCreditNotes: "applied_credit_notes", + AppliedPayments: "applied_payments", + AppliedVendorCredits: "applied_vendor_credits", + Company: "company", + Contact: "contact", + Employee: "employee", + LineItems: "line_items", + PaymentTerm: "payment_term", + Payments: "payments", + PurchaseOrders: "purchase_orders", + SalesOrders: "sales_orders", + TrackingCategories: "tracking_categories", +} as const; +export type InvoicesRetrieveRequestExpandItem = + (typeof InvoicesRetrieveRequestExpandItem)[keyof typeof InvoicesRetrieveRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/invoices/types/index.ts b/src/api/resources/accounting/resources/invoices/types/index.ts index 6066a0bb6..d690b827a 100644 --- a/src/api/resources/accounting/resources/invoices/types/index.ts +++ b/src/api/resources/accounting/resources/invoices/types/index.ts @@ -1,4 +1,7 @@ -export * from "./InvoicesListRequestExpand"; +export * from "./InvoicesBatchObjectsListRequestExpandItem"; +export * from "./InvoicesBatchObjectsListRequestStatus"; +export * from "./InvoicesBatchObjectsListRequestType"; +export * from "./InvoicesListRequestExpandItem"; export * from "./InvoicesListRequestStatus"; export * from "./InvoicesListRequestType"; -export * from "./InvoicesRetrieveRequestExpand"; +export * from "./InvoicesRetrieveRequestExpandItem"; diff --git a/src/api/resources/accounting/resources/issues/client/Client.ts b/src/api/resources/accounting/resources/issues/client/Client.ts index 5ff77e394..073e3a212 100644 --- a/src/api/resources/accounting/resources/issues/client/Client.ts +++ b/src/api/resources/accounting/resources/issues/client/Client.ts @@ -47,99 +47,109 @@ export class IssuesClient { * status: "ONGOING" * }) */ - public list( + public async list( request: Merge.accounting.IssuesListRequest = {}, requestOptions?: IssuesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.accounting.IssuesListRequest = {}, - requestOptions?: IssuesClient.RequestOptions, - ): Promise> { - const { - accountToken, - cursor, - endDate, - endUserOrganizationName, - firstIncidentTimeAfter, - firstIncidentTimeBefore, - includeMuted, - integrationName, - lastIncidentTimeAfter, - lastIncidentTimeBefore, - linkedAccountId, - pageSize, - startDate, - status, - } = request; - const _queryParams: Record = { - account_token: accountToken, - cursor, - end_date: endDate, - end_user_organization_name: endUserOrganizationName, - first_incident_time_after: firstIncidentTimeAfter?.toISOString(), - first_incident_time_before: firstIncidentTimeBefore?.toISOString(), - include_muted: includeMuted, - integration_name: integrationName, - last_incident_time_after: lastIncidentTimeAfter?.toISOString(), - last_incident_time_before: lastIncidentTimeBefore?.toISOString(), - linked_account_id: linkedAccountId, - page_size: pageSize, - start_date: startDate, - status: - status != null - ? serializers.accounting.IssuesListRequestStatus.jsonOrThrow(status, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.IssuesListRequest, + ): Promise> => { + const { + accountToken, + cursor, + endDate, + endUserOrganizationName, + firstIncidentTimeAfter, + firstIncidentTimeBefore, + includeMuted, + integrationName, + lastIncidentTimeAfter, + lastIncidentTimeBefore, + linkedAccountId, + pageSize, + startDate, + status, + } = request; + const _queryParams: Record = { + account_token: accountToken, + cursor, + end_date: endDate, + end_user_organization_name: endUserOrganizationName, + first_incident_time_after: firstIncidentTimeAfter?.toISOString(), + first_incident_time_before: firstIncidentTimeBefore?.toISOString(), + include_muted: includeMuted, + integration_name: integrationName, + last_incident_time_after: lastIncidentTimeAfter?.toISOString(), + last_incident_time_before: lastIncidentTimeBefore?.toISOString(), + linked_account_id: linkedAccountId, + page_size: pageSize, + start_date: startDate, + status: + status != null + ? serializers.accounting.IssuesListRequestStatus.jsonOrThrow(status, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/issues", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedIssueList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/accounting/v1/issues"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "accounting/v1/issues", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.accounting.PaginatedIssueList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/accounting/v1/issues"); } /** diff --git a/src/api/resources/accounting/resources/issues/client/requests/IssuesListRequest.ts b/src/api/resources/accounting/resources/issues/client/requests/IssuesListRequest.ts index 1365131c7..802295613 100644 --- a/src/api/resources/accounting/resources/issues/client/requests/IssuesListRequest.ts +++ b/src/api/resources/accounting/resources/issues/client/requests/IssuesListRequest.ts @@ -41,7 +41,7 @@ export interface IssuesListRequest { lastIncidentTimeBefore?: Date; /** If provided, will only include issues pertaining to the linked account passed in. */ linkedAccountId?: string; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** If included, will only include issues whose most recent action occurred after this time */ startDate?: string; diff --git a/src/api/resources/accounting/resources/itemFulfillments/client/Client.ts b/src/api/resources/accounting/resources/itemFulfillments/client/Client.ts new file mode 100644 index 000000000..a2c54508a --- /dev/null +++ b/src/api/resources/accounting/resources/itemFulfillments/client/Client.ts @@ -0,0 +1,829 @@ +// This file was auto-generated by Fern from our API Definition. + +import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient"; +import { type NormalizedClientOptionsWithAuth, normalizeClientOptionsWithAuth } from "../../../../../../BaseClient"; +import * as core from "../../../../../../core"; +import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers"; +import * as environments from "../../../../../../environments"; +import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError"; +import * as errors from "../../../../../../errors/index"; +import * as serializers from "../../../../../../serialization/index"; +import type * as Merge from "../../../../../index"; + +export declare namespace ItemFulfillmentsClient { + export type Options = BaseClientOptions; + + export interface RequestOptions extends BaseRequestOptions {} +} + +export class ItemFulfillmentsClient { + protected readonly _options: NormalizedClientOptionsWithAuth; + + constructor(options: ItemFulfillmentsClient.Options) { + this._options = normalizeClientOptionsWithAuth(options); + } + + /** + * Returns a list of `ItemFulfillment` objects. + * + * @param {Merge.accounting.ItemFulfillmentsListRequest} request + * @param {ItemFulfillmentsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.itemFulfillments.list({ + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeRemoteFields: true, + * includeShellData: true, + * pageSize: 1, + * remoteFields: "status", + * showEnumOrigins: "status" + * }) + */ + public async list( + request: Merge.accounting.ItemFulfillmentsListRequest = {}, + requestOptions?: ItemFulfillmentsClient.RequestOptions, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.ItemFulfillmentsListRequest, + ): Promise> => { + const { + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + pageSize, + remoteFields, + showEnumOrigins, + } = request; + const _queryParams: Record = { + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.ItemFulfillmentsListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.accounting.ItemFulfillmentsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + page_size: pageSize, + remote_fields: remoteFields != null ? remoteFields : undefined, + show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/item-fulfillments", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedItemFulfillmentList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/item-fulfillments", + ); + }, + ); + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, + }); + } + + /** + * Creates an `ItemFulfillment` object with the given values. + * + * @param {Merge.accounting.ItemFulfillmentsCreateRequest} request + * @param {ItemFulfillmentsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.itemFulfillments.create({ + * isDebugMode: true, + * runAsync: true, + * body: { + * model: {} + * } + * }) + */ + public create( + request: Merge.accounting.ItemFulfillmentsCreateRequest, + requestOptions?: ItemFulfillmentsClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); + } + + private async __create( + request: Merge.accounting.ItemFulfillmentsCreateRequest, + requestOptions?: ItemFulfillmentsClient.RequestOptions, + ): Promise> { + const { isDebugMode, runAsync, body: _body } = request; + const _queryParams: Record = { + is_debug_mode: isDebugMode, + run_async: runAsync, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/item-fulfillments", + ), + method: "POST", + headers: _headers, + contentType: "application/json", + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + requestType: "json", + body: serializers.accounting.ItemFulfillmentEndpointRequest.jsonOrThrow(_body, { + unrecognizedObjectKeys: "strip", + }), + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.ItemFulfillmentResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "POST", + "/accounting/v1/item-fulfillments", + ); + } + + /** + * Returns an `ItemFulfillment` object with the given `id`. + * + * @param {string} id + * @param {Merge.accounting.ItemFulfillmentsRetrieveRequest} request + * @param {ItemFulfillmentsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.itemFulfillments.retrieve("id", { + * includeRemoteData: true, + * includeRemoteFields: true, + * includeShellData: true, + * remoteFields: "status", + * showEnumOrigins: "status" + * }) + */ + public retrieve( + id: string, + request: Merge.accounting.ItemFulfillmentsRetrieveRequest = {}, + requestOptions?: ItemFulfillmentsClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); + } + + private async __retrieve( + id: string, + request: Merge.accounting.ItemFulfillmentsRetrieveRequest = {}, + requestOptions?: ItemFulfillmentsClient.RequestOptions, + ): Promise> { + const { expand, includeRemoteData, includeRemoteFields, includeShellData, remoteFields, showEnumOrigins } = + request; + const _queryParams: Record = { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.ItemFulfillmentsRetrieveRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.accounting.ItemFulfillmentsRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + remote_fields: remoteFields != null ? remoteFields : undefined, + show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + `accounting/v1/item-fulfillments/${core.url.encodePathParam(id)}`, + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.ItemFulfillment.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/item-fulfillments/{id}", + ); + } + + /** + * Returns a list of `ItemFulfillment` objects. + * + * @param {string} batch_id + * @param {Merge.accounting.ItemFulfillmentsBatchObjectsListRequest} request + * @param {ItemFulfillmentsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.itemFulfillments.batchObjectsList("batch_id", { + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeRemoteFields: true, + * includeShellData: true, + * pageSize: 1, + * remoteFields: "status", + * showEnumOrigins: "status" + * }) + */ + public batchObjectsList( + batch_id: string, + request: Merge.accounting.ItemFulfillmentsBatchObjectsListRequest = {}, + requestOptions?: ItemFulfillmentsClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__batchObjectsList(batch_id, request, requestOptions)); + } + + private async __batchObjectsList( + batch_id: string, + request: Merge.accounting.ItemFulfillmentsBatchObjectsListRequest = {}, + requestOptions?: ItemFulfillmentsClient.RequestOptions, + ): Promise> { + const { + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + pageSize, + remoteFields, + showEnumOrigins, + } = request; + const _queryParams: Record = { + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.ItemFulfillmentsBatchObjectsListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.accounting.ItemFulfillmentsBatchObjectsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + page_size: pageSize, + remote_fields: remoteFields != null ? remoteFields : undefined, + show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + `accounting/v1/item-fulfillments/batch/${core.url.encodePathParam(batch_id)}/objects`, + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedItemFulfillmentList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/item-fulfillments/batch/{batch_id}/objects", + ); + } + + /** + * Creates an `ItemFulfillment` object with the given values. + * + * @param {Merge.accounting.ItemFulfillmentBulkRequest} request + * @param {ItemFulfillmentsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.itemFulfillments.asyncBulkCreate({ + * isDebugMode: true, + * runAsync: true, + * batchItems: [{ + * itemId: "item_id", + * payload: { + * model: {} + * } + * }] + * }) + */ + public asyncBulkCreate( + request: Merge.accounting.ItemFulfillmentBulkRequest, + requestOptions?: ItemFulfillmentsClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__asyncBulkCreate(request, requestOptions)); + } + + private async __asyncBulkCreate( + request: Merge.accounting.ItemFulfillmentBulkRequest, + requestOptions?: ItemFulfillmentsClient.RequestOptions, + ): Promise> { + const { isDebugMode, runAsync, ..._body } = request; + const _queryParams: Record = { + is_debug_mode: isDebugMode, + run_async: runAsync, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/item-fulfillments/async/bulk", + ), + method: "POST", + headers: _headers, + contentType: "application/json", + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + requestType: "json", + body: serializers.accounting.ItemFulfillmentBulkRequest.jsonOrThrow(_body, { + unrecognizedObjectKeys: "strip", + }), + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.ItemFulfillmentResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "POST", + "/accounting/v1/item-fulfillments/async/bulk", + ); + } + + /** + * Returns a list of `RemoteFieldClass` objects. + * + * @param {Merge.accounting.ItemFulfillmentsLinesRemoteFieldClassesListRequest} request + * @param {ItemFulfillmentsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.itemFulfillments.linesRemoteFieldClassesList({ + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeShellData: true, + * isCommonModelField: true, + * isCustom: true, + * pageSize: 1 + * }) + */ + public async linesRemoteFieldClassesList( + request: Merge.accounting.ItemFulfillmentsLinesRemoteFieldClassesListRequest = {}, + requestOptions?: ItemFulfillmentsClient.RequestOptions, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.ItemFulfillmentsLinesRemoteFieldClassesListRequest, + ): Promise> => { + const { + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + isCommonModelField, + isCustom, + pageSize, + } = request; + const _queryParams: Record = { + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + is_common_model_field: isCommonModelField, + is_custom: isCustom, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/item-fulfillments/lines/remote-field-classes", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/item-fulfillments/lines/remote-field-classes", + ); + }, + ); + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, + }); + } + + /** + * Returns metadata for `ItemFulfillment` POSTs. + * + * @param {ItemFulfillmentsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.itemFulfillments.metaPostRetrieve() + */ + public metaPostRetrieve( + requestOptions?: ItemFulfillmentsClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); + } + + private async __metaPostRetrieve( + requestOptions?: ItemFulfillmentsClient.RequestOptions, + ): Promise> { + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/item-fulfillments/meta/post", + ), + method: "GET", + headers: _headers, + queryParameters: requestOptions?.queryParams, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.MetaResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/item-fulfillments/meta/post", + ); + } + + /** + * Returns a list of `RemoteFieldClass` objects. + * + * @param {Merge.accounting.ItemFulfillmentsRemoteFieldClassesListRequest} request + * @param {ItemFulfillmentsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.itemFulfillments.remoteFieldClassesList({ + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeShellData: true, + * isCommonModelField: true, + * isCustom: true, + * pageSize: 1 + * }) + */ + public async remoteFieldClassesList( + request: Merge.accounting.ItemFulfillmentsRemoteFieldClassesListRequest = {}, + requestOptions?: ItemFulfillmentsClient.RequestOptions, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.ItemFulfillmentsRemoteFieldClassesListRequest, + ): Promise> => { + const { + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + isCommonModelField, + isCustom, + pageSize, + } = request; + const _queryParams: Record = { + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + is_common_model_field: isCommonModelField, + is_custom: isCustom, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/item-fulfillments/remote-field-classes", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/item-fulfillments/remote-field-classes", + ); + }, + ); + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, + }); + } +} diff --git a/src/api/resources/accounting/resources/itemFulfillments/client/index.ts b/src/api/resources/accounting/resources/itemFulfillments/client/index.ts new file mode 100644 index 000000000..415726b7f --- /dev/null +++ b/src/api/resources/accounting/resources/itemFulfillments/client/index.ts @@ -0,0 +1 @@ +export * from "./requests"; diff --git a/src/api/resources/accounting/resources/itemFulfillments/client/requests/ItemFulfillmentBulkRequest.ts b/src/api/resources/accounting/resources/itemFulfillments/client/requests/ItemFulfillmentBulkRequest.ts new file mode 100644 index 000000000..267349325 --- /dev/null +++ b/src/api/resources/accounting/resources/itemFulfillments/client/requests/ItemFulfillmentBulkRequest.ts @@ -0,0 +1,24 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * batchItems: [{ + * itemId: "item_id", + * payload: { + * model: {} + * } + * }] + * } + */ +export interface ItemFulfillmentBulkRequest { + /** 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; + batchItems: Merge.accounting.ItemFulfillmentBatchItemRequest[]; +} diff --git a/src/api/resources/accounting/resources/itemFulfillments/client/requests/ItemFulfillmentsBatchObjectsListRequest.ts b/src/api/resources/accounting/resources/itemFulfillments/client/requests/ItemFulfillmentsBatchObjectsListRequest.ts new file mode 100644 index 000000000..8a8f7de3f --- /dev/null +++ b/src/api/resources/accounting/resources/itemFulfillments/client/requests/ItemFulfillmentsBatchObjectsListRequest.ts @@ -0,0 +1,39 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeRemoteFields: true, + * includeShellData: true, + * pageSize: 1, + * remoteFields: "status", + * showEnumOrigins: "status" + * } + */ +export interface ItemFulfillmentsBatchObjectsListRequest { + /** The pagination cursor value. */ + cursor?: string; + /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ + expand?: + | Merge.accounting.ItemFulfillmentsBatchObjectsListRequestExpandItem + | Merge.accounting.ItemFulfillmentsBatchObjectsListRequestExpandItem[]; + /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ + includeDeletedData?: boolean; + /** Whether to include the original data Merge fetched from the third-party to produce these models. */ + includeRemoteData?: boolean; + /** Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. */ + includeRemoteFields?: boolean; + /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ + includeShellData?: boolean; + /** Number of results to return per page. The maximum limit is 100. */ + pageSize?: number; + /** Deprecated. Use show_enum_origins. */ + remoteFields?: "status"; + /** A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) */ + showEnumOrigins?: "status"; +} diff --git a/src/api/resources/accounting/resources/itemFulfillments/client/requests/ItemFulfillmentsCreateRequest.ts b/src/api/resources/accounting/resources/itemFulfillments/client/requests/ItemFulfillmentsCreateRequest.ts new file mode 100644 index 000000000..fd01aeacb --- /dev/null +++ b/src/api/resources/accounting/resources/itemFulfillments/client/requests/ItemFulfillmentsCreateRequest.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * body: { + * model: {} + * } + * } + */ +export interface ItemFulfillmentsCreateRequest { + /** 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; + body: Merge.accounting.ItemFulfillmentEndpointRequest; +} diff --git a/src/api/resources/accounting/resources/itemFulfillments/client/requests/ItemFulfillmentsLinesRemoteFieldClassesListRequest.ts b/src/api/resources/accounting/resources/itemFulfillments/client/requests/ItemFulfillmentsLinesRemoteFieldClassesListRequest.ts new file mode 100644 index 000000000..863fbaec6 --- /dev/null +++ b/src/api/resources/accounting/resources/itemFulfillments/client/requests/ItemFulfillmentsLinesRemoteFieldClassesListRequest.ts @@ -0,0 +1,30 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * @example + * { + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeShellData: true, + * isCommonModelField: true, + * isCustom: true, + * pageSize: 1 + * } + */ +export interface ItemFulfillmentsLinesRemoteFieldClassesListRequest { + /** The pagination cursor value. */ + cursor?: string; + /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ + includeDeletedData?: boolean; + /** Whether to include the original data Merge fetched from the third-party to produce these models. */ + includeRemoteData?: boolean; + /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ + includeShellData?: boolean; + /** If provided, will only return remote field classes with this is_common_model_field value */ + isCommonModelField?: boolean; + /** If provided, will only return remote fields classes with this is_custom value */ + isCustom?: boolean; + /** Number of results to return per page. The maximum limit is 100. */ + pageSize?: number; +} diff --git a/src/api/resources/accounting/resources/itemFulfillments/client/requests/ItemFulfillmentsListRequest.ts b/src/api/resources/accounting/resources/itemFulfillments/client/requests/ItemFulfillmentsListRequest.ts new file mode 100644 index 000000000..cf4f44a92 --- /dev/null +++ b/src/api/resources/accounting/resources/itemFulfillments/client/requests/ItemFulfillmentsListRequest.ts @@ -0,0 +1,39 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeRemoteFields: true, + * includeShellData: true, + * pageSize: 1, + * remoteFields: "status", + * showEnumOrigins: "status" + * } + */ +export interface ItemFulfillmentsListRequest { + /** The pagination cursor value. */ + cursor?: string; + /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ + expand?: + | Merge.accounting.ItemFulfillmentsListRequestExpandItem + | Merge.accounting.ItemFulfillmentsListRequestExpandItem[]; + /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ + includeDeletedData?: boolean; + /** Whether to include the original data Merge fetched from the third-party to produce these models. */ + includeRemoteData?: boolean; + /** Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. */ + includeRemoteFields?: boolean; + /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ + includeShellData?: boolean; + /** Number of results to return per page. The maximum limit is 100. */ + pageSize?: number; + /** Deprecated. Use show_enum_origins. */ + remoteFields?: "status"; + /** A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) */ + showEnumOrigins?: "status"; +} diff --git a/src/api/resources/accounting/resources/itemFulfillments/client/requests/ItemFulfillmentsRemoteFieldClassesListRequest.ts b/src/api/resources/accounting/resources/itemFulfillments/client/requests/ItemFulfillmentsRemoteFieldClassesListRequest.ts new file mode 100644 index 000000000..646b3f446 --- /dev/null +++ b/src/api/resources/accounting/resources/itemFulfillments/client/requests/ItemFulfillmentsRemoteFieldClassesListRequest.ts @@ -0,0 +1,30 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * @example + * { + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeShellData: true, + * isCommonModelField: true, + * isCustom: true, + * pageSize: 1 + * } + */ +export interface ItemFulfillmentsRemoteFieldClassesListRequest { + /** The pagination cursor value. */ + cursor?: string; + /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ + includeDeletedData?: boolean; + /** Whether to include the original data Merge fetched from the third-party to produce these models. */ + includeRemoteData?: boolean; + /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ + includeShellData?: boolean; + /** If provided, will only return remote field classes with this is_common_model_field value */ + isCommonModelField?: boolean; + /** If provided, will only return remote fields classes with this is_custom value */ + isCustom?: boolean; + /** Number of results to return per page. The maximum limit is 100. */ + pageSize?: number; +} diff --git a/src/api/resources/accounting/resources/itemFulfillments/client/requests/ItemFulfillmentsRetrieveRequest.ts b/src/api/resources/accounting/resources/itemFulfillments/client/requests/ItemFulfillmentsRetrieveRequest.ts new file mode 100644 index 000000000..9fd5ab0d1 --- /dev/null +++ b/src/api/resources/accounting/resources/itemFulfillments/client/requests/ItemFulfillmentsRetrieveRequest.ts @@ -0,0 +1,30 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * includeRemoteData: true, + * includeRemoteFields: true, + * includeShellData: true, + * remoteFields: "status", + * showEnumOrigins: "status" + * } + */ +export interface ItemFulfillmentsRetrieveRequest { + /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ + expand?: + | Merge.accounting.ItemFulfillmentsRetrieveRequestExpandItem + | Merge.accounting.ItemFulfillmentsRetrieveRequestExpandItem[]; + /** Whether to include the original data Merge fetched from the third-party to produce these models. */ + includeRemoteData?: boolean; + /** Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. */ + includeRemoteFields?: boolean; + /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ + includeShellData?: boolean; + /** Deprecated. Use show_enum_origins. */ + remoteFields?: "status"; + /** A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) */ + showEnumOrigins?: "status"; +} diff --git a/src/api/resources/accounting/resources/itemFulfillments/client/requests/index.ts b/src/api/resources/accounting/resources/itemFulfillments/client/requests/index.ts new file mode 100644 index 000000000..53e7972a4 --- /dev/null +++ b/src/api/resources/accounting/resources/itemFulfillments/client/requests/index.ts @@ -0,0 +1,7 @@ +export type { ItemFulfillmentBulkRequest } from "./ItemFulfillmentBulkRequest"; +export type { ItemFulfillmentsBatchObjectsListRequest } from "./ItemFulfillmentsBatchObjectsListRequest"; +export type { ItemFulfillmentsCreateRequest } from "./ItemFulfillmentsCreateRequest"; +export type { ItemFulfillmentsLinesRemoteFieldClassesListRequest } from "./ItemFulfillmentsLinesRemoteFieldClassesListRequest"; +export type { ItemFulfillmentsListRequest } from "./ItemFulfillmentsListRequest"; +export type { ItemFulfillmentsRemoteFieldClassesListRequest } from "./ItemFulfillmentsRemoteFieldClassesListRequest"; +export type { ItemFulfillmentsRetrieveRequest } from "./ItemFulfillmentsRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/itemFulfillments/exports.ts b/src/api/resources/accounting/resources/itemFulfillments/exports.ts new file mode 100644 index 000000000..bdd8bb972 --- /dev/null +++ b/src/api/resources/accounting/resources/itemFulfillments/exports.ts @@ -0,0 +1,4 @@ +// This file was auto-generated by Fern from our API Definition. + +export { ItemFulfillmentsClient } from "./client/Client"; +export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/itemFulfillments/index.ts b/src/api/resources/accounting/resources/itemFulfillments/index.ts new file mode 100644 index 000000000..d2ec2302c --- /dev/null +++ b/src/api/resources/accounting/resources/itemFulfillments/index.ts @@ -0,0 +1,2 @@ +export * from "./client"; +export * from "./types"; diff --git a/src/api/resources/accounting/resources/itemFulfillments/types/ItemFulfillmentsBatchObjectsListRequestExpandItem.ts b/src/api/resources/accounting/resources/itemFulfillments/types/ItemFulfillmentsBatchObjectsListRequestExpandItem.ts new file mode 100644 index 000000000..26df5d834 --- /dev/null +++ b/src/api/resources/accounting/resources/itemFulfillments/types/ItemFulfillmentsBatchObjectsListRequestExpandItem.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +export const ItemFulfillmentsBatchObjectsListRequestExpandItem = { + Company: "company", + Customer: "customer", + Lines: "lines", + SalesOrder: "sales_order", +} as const; +export type ItemFulfillmentsBatchObjectsListRequestExpandItem = + (typeof ItemFulfillmentsBatchObjectsListRequestExpandItem)[keyof typeof ItemFulfillmentsBatchObjectsListRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/itemFulfillments/types/ItemFulfillmentsListRequestExpandItem.ts b/src/api/resources/accounting/resources/itemFulfillments/types/ItemFulfillmentsListRequestExpandItem.ts new file mode 100644 index 000000000..de1b58042 --- /dev/null +++ b/src/api/resources/accounting/resources/itemFulfillments/types/ItemFulfillmentsListRequestExpandItem.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +export const ItemFulfillmentsListRequestExpandItem = { + Company: "company", + Customer: "customer", + Lines: "lines", + SalesOrder: "sales_order", +} as const; +export type ItemFulfillmentsListRequestExpandItem = + (typeof ItemFulfillmentsListRequestExpandItem)[keyof typeof ItemFulfillmentsListRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/itemFulfillments/types/ItemFulfillmentsRetrieveRequestExpandItem.ts b/src/api/resources/accounting/resources/itemFulfillments/types/ItemFulfillmentsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..38aa3f8c7 --- /dev/null +++ b/src/api/resources/accounting/resources/itemFulfillments/types/ItemFulfillmentsRetrieveRequestExpandItem.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +export const ItemFulfillmentsRetrieveRequestExpandItem = { + Company: "company", + Customer: "customer", + Lines: "lines", + SalesOrder: "sales_order", +} as const; +export type ItemFulfillmentsRetrieveRequestExpandItem = + (typeof ItemFulfillmentsRetrieveRequestExpandItem)[keyof typeof ItemFulfillmentsRetrieveRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/itemFulfillments/types/index.ts b/src/api/resources/accounting/resources/itemFulfillments/types/index.ts new file mode 100644 index 000000000..64e091163 --- /dev/null +++ b/src/api/resources/accounting/resources/itemFulfillments/types/index.ts @@ -0,0 +1,3 @@ +export * from "./ItemFulfillmentsBatchObjectsListRequestExpandItem"; +export * from "./ItemFulfillmentsListRequestExpandItem"; +export * from "./ItemFulfillmentsRetrieveRequestExpandItem"; diff --git a/src/api/resources/accounting/resources/items/client/Client.ts b/src/api/resources/accounting/resources/items/client/Client.ts index a19022648..58ada4f50 100644 --- a/src/api/resources/accounting/resources/items/client/Client.ts +++ b/src/api/resources/accounting/resources/items/client/Client.ts @@ -35,64 +35,255 @@ export class ItemsClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "company", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * name: "name", * pageSize: 1, * remoteFields: "status", * remoteId: "remote_id", * showEnumOrigins: "status" * }) */ - public list( + public async list( request: Merge.accounting.ItemsListRequest = {}, requestOptions?: ItemsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.ItemsListRequest, + ): Promise> => { + const { + companyId, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + name, + pageSize, + remoteFields, + remoteId, + showEnumOrigins, + } = request; + const _queryParams: Record = { + company_id: companyId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.ItemsListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.accounting.ItemsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + name, + page_size: pageSize, + remote_fields: remoteFields != null ? remoteFields : undefined, + remote_id: remoteId, + show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/items", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedItemList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/accounting/v1/items"); + }, + ); + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, + }); } - private async __list( - request: Merge.accounting.ItemsListRequest = {}, + /** + * Creates an `Item` object with the given values. + * + * @param {Merge.accounting.ItemsCreateRequest} request + * @param {ItemsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.items.create({ + * isDebugMode: true, + * runAsync: true, + * body: { + * model: {} + * } + * }) + */ + public create( + request: Merge.accounting.ItemsCreateRequest, requestOptions?: ItemsClient.RequestOptions, - ): Promise> { - const { - companyId, - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteFields, - remoteId, - showEnumOrigins, - } = request; + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); + } + + private async __create( + request: Merge.accounting.ItemsCreateRequest, + requestOptions?: ItemsClient.RequestOptions, + ): Promise> { + const { isDebugMode, runAsync, body: _body } = request; const _queryParams: Record = { - company_id: companyId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: - expand != null - ? serializers.accounting.ItemsListRequestExpand.jsonOrThrow(expand, { + is_debug_mode: isDebugMode, + run_async: runAsync, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/items", + ), + method: "POST", + headers: _headers, + contentType: "application/json", + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + requestType: "json", + body: serializers.accounting.ItemEndpointRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.ItemResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + + return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/accounting/v1/items"); + } + + /** + * Returns an `Item` object with the given `id`. + * + * @param {string} id + * @param {Merge.accounting.ItemsRetrieveRequest} request + * @param {ItemsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.items.retrieve("id", { + * includeRemoteData: true, + * includeShellData: true, + * remoteFields: "status", + * showEnumOrigins: "status" + * }) + */ + public retrieve( + id: string, + request: Merge.accounting.ItemsRetrieveRequest = {}, + requestOptions?: ItemsClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); + } + + private async __retrieve( + id: string, + request: Merge.accounting.ItemsRetrieveRequest = {}, + requestOptions?: ItemsClient.RequestOptions, + ): Promise> { + const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; + const _queryParams: Record = { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.ItemsRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, - include_deleted_data: includeDeletedData, + }), + ) + : expand != null + ? serializers.accounting.ItemsRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, remote_fields: remoteFields != null ? remoteFields : undefined, - remote_id: remoteId, show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); @@ -107,7 +298,7 @@ export class ItemsClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/items", + `accounting/v1/items/${core.url.encodePathParam(id)}`, ), method: "GET", headers: _headers, @@ -120,7 +311,7 @@ export class ItemsClient { }); if (_response.ok) { return { - data: serializers.accounting.PaginatedItemList.parseOrThrow(_response.body, { + data: serializers.accounting.Item.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -139,31 +330,34 @@ export class ItemsClient { }); } - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/accounting/v1/items"); + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/accounting/v1/items/{id}"); } /** - * Creates an `Item` object with the given values. + * Updates an `Item` object with the given `id`. * - * @param {Merge.accounting.ItemEndpointRequest} request + * @param {string} id + * @param {Merge.accounting.PatchedItemEndpointRequest} request * @param {ItemsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.items.create({ + * await client.accounting.items.partialUpdate("id", { * isDebugMode: true, * runAsync: true, * model: {} * }) */ - public create( - request: Merge.accounting.ItemEndpointRequest, + public partialUpdate( + id: string, + request: Merge.accounting.PatchedItemEndpointRequest, requestOptions?: ItemsClient.RequestOptions, ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); + return core.HttpResponsePromise.fromPromise(this.__partialUpdate(id, request, requestOptions)); } - private async __create( - request: Merge.accounting.ItemEndpointRequest, + private async __partialUpdate( + id: string, + request: Merge.accounting.PatchedItemEndpointRequest, requestOptions?: ItemsClient.RequestOptions, ): Promise> { const { isDebugMode, runAsync, ..._body } = request; @@ -183,14 +377,16 @@ export class ItemsClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/items", + `accounting/v1/items/${core.url.encodePathParam(id)}`, ), - method: "POST", + method: "PATCH", headers: _headers, contentType: "application/json", queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, requestType: "json", - body: serializers.accounting.ItemEndpointRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + body: serializers.accounting.PatchedItemEndpointRequest.jsonOrThrow(_body, { + unrecognizedObjectKeys: "strip", + }), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -218,49 +414,89 @@ export class ItemsClient { }); } - return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/accounting/v1/items"); + return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/accounting/v1/items/{id}"); } /** - * Returns an `Item` object with the given `id`. + * Returns a list of `Item` objects. * - * @param {string} id - * @param {Merge.accounting.ItemsRetrieveRequest} request + * @param {string} batch_id + * @param {Merge.accounting.ItemsBatchObjectsListRequest} request * @param {ItemsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.items.retrieve("id", { - * expand: "company", + * await client.accounting.items.batchObjectsList("batch_id", { + * companyId: "company_id", + * createdAfter: new Date("2024-01-15T09:30:00.000Z"), + * createdBefore: new Date("2024-01-15T09:30:00.000Z"), + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, + * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * name: "name", + * pageSize: 1, * remoteFields: "status", + * remoteId: "remote_id", * showEnumOrigins: "status" * }) */ - public retrieve( - id: string, - request: Merge.accounting.ItemsRetrieveRequest = {}, + public batchObjectsList( + batch_id: string, + request: Merge.accounting.ItemsBatchObjectsListRequest = {}, requestOptions?: ItemsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__batchObjectsList(batch_id, request, requestOptions)); } - private async __retrieve( - id: string, - request: Merge.accounting.ItemsRetrieveRequest = {}, + private async __batchObjectsList( + batch_id: string, + request: Merge.accounting.ItemsBatchObjectsListRequest = {}, requestOptions?: ItemsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; + ): Promise> { + const { + companyId, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + name, + pageSize, + remoteFields, + remoteId, + showEnumOrigins, + } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.accounting.ItemsRetrieveRequestExpand.jsonOrThrow(expand, { + company_id: companyId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.ItemsBatchObjectsListRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.accounting.ItemsBatchObjectsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, include_remote_data: includeRemoteData, include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + name, + page_size: pageSize, remote_fields: remoteFields != null ? remoteFields : undefined, + remote_id: remoteId, show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); @@ -275,7 +511,7 @@ export class ItemsClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - `accounting/v1/items/${core.url.encodePathParam(id)}`, + `accounting/v1/items/batch/${core.url.encodePathParam(batch_id)}/objects`, ), method: "GET", headers: _headers, @@ -288,7 +524,7 @@ export class ItemsClient { }); if (_response.ok) { return { - data: serializers.accounting.Item.parseOrThrow(_response.body, { + data: serializers.accounting.PaginatedItemList.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -307,34 +543,41 @@ export class ItemsClient { }); } - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/accounting/v1/items/{id}"); + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/items/batch/{batch_id}/objects", + ); } /** - * Updates an `Item` object with the given `id`. + * Creates an `Item` object with the given values. * - * @param {string} id - * @param {Merge.accounting.PatchedItemEndpointRequest} request + * @param {Merge.accounting.ItemBulkRequest} request * @param {ItemsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.items.partialUpdate("id", { + * await client.accounting.items.asyncBulkCreate({ * isDebugMode: true, * runAsync: true, - * model: {} + * batchItems: [{ + * itemId: "item_id", + * payload: { + * model: {} + * } + * }] * }) */ - public partialUpdate( - id: string, - request: Merge.accounting.PatchedItemEndpointRequest, + public asyncBulkCreate( + request: Merge.accounting.ItemBulkRequest, requestOptions?: ItemsClient.RequestOptions, ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__partialUpdate(id, request, requestOptions)); + return core.HttpResponsePromise.fromPromise(this.__asyncBulkCreate(request, requestOptions)); } - private async __partialUpdate( - id: string, - request: Merge.accounting.PatchedItemEndpointRequest, + private async __asyncBulkCreate( + request: Merge.accounting.ItemBulkRequest, requestOptions?: ItemsClient.RequestOptions, ): Promise> { const { isDebugMode, runAsync, ..._body } = request; @@ -354,16 +597,14 @@ export class ItemsClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - `accounting/v1/items/${core.url.encodePathParam(id)}`, + "accounting/v1/items/async/bulk", ), - method: "PATCH", + method: "POST", headers: _headers, contentType: "application/json", queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, requestType: "json", - body: serializers.accounting.PatchedItemEndpointRequest.jsonOrThrow(_body, { - unrecognizedObjectKeys: "strip", - }), + body: serializers.accounting.ItemBulkRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -391,7 +632,12 @@ export class ItemsClient { }); } - return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/accounting/v1/items/{id}"); + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "POST", + "/accounting/v1/items/async/bulk", + ); } /** diff --git a/src/api/resources/accounting/resources/items/client/requests/ItemBulkRequest.ts b/src/api/resources/accounting/resources/items/client/requests/ItemBulkRequest.ts new file mode 100644 index 000000000..1a4105bdc --- /dev/null +++ b/src/api/resources/accounting/resources/items/client/requests/ItemBulkRequest.ts @@ -0,0 +1,24 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * batchItems: [{ + * itemId: "item_id", + * payload: { + * model: {} + * } + * }] + * } + */ +export interface ItemBulkRequest { + /** 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; + batchItems: Merge.accounting.ItemBatchItemRequest[]; +} diff --git a/src/api/resources/accounting/resources/items/client/requests/ItemEndpointRequest.ts b/src/api/resources/accounting/resources/items/client/requests/ItemEndpointRequest.ts deleted file mode 100644 index 81b3857cc..000000000 --- a/src/api/resources/accounting/resources/items/client/requests/ItemEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface ItemEndpointRequest { - /** 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.accounting.ItemRequestRequest; -} diff --git a/src/api/resources/accounting/resources/items/client/requests/ItemsBatchObjectsListRequest.ts b/src/api/resources/accounting/resources/items/client/requests/ItemsBatchObjectsListRequest.ts new file mode 100644 index 000000000..216323e80 --- /dev/null +++ b/src/api/resources/accounting/resources/items/client/requests/ItemsBatchObjectsListRequest.ts @@ -0,0 +1,57 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * companyId: "company_id", + * createdAfter: new Date("2024-01-15T09:30:00.000Z"), + * createdBefore: new Date("2024-01-15T09:30:00.000Z"), + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeShellData: true, + * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * name: "name", + * pageSize: 1, + * remoteFields: "status", + * remoteId: "remote_id", + * showEnumOrigins: "status" + * } + */ +export interface ItemsBatchObjectsListRequest { + /** If provided, will only return items for this company. */ + companyId?: string; + /** If provided, will only return objects created after this datetime. */ + createdAfter?: Date; + /** If provided, will only return objects created before this datetime. */ + createdBefore?: Date; + /** The pagination cursor value. */ + cursor?: string; + /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ + expand?: + | Merge.accounting.ItemsBatchObjectsListRequestExpandItem + | Merge.accounting.ItemsBatchObjectsListRequestExpandItem[]; + /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ + includeDeletedData?: boolean; + /** Whether to include the original data Merge fetched from the third-party to produce these models. */ + includeRemoteData?: boolean; + /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ + includeShellData?: boolean; + /** If provided, only objects synced by Merge after this date time will be returned. */ + modifiedAfter?: Date; + /** If provided, only objects synced by Merge before this date time will be returned. */ + modifiedBefore?: Date; + /** If provided, will only return items with this name. */ + name?: string; + /** Number of results to return per page. The maximum limit is 100. */ + pageSize?: number; + /** Deprecated. Use show_enum_origins. */ + remoteFields?: "status"; + /** The API provider's ID for the given object. */ + remoteId?: string; + /** A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) */ + showEnumOrigins?: "status"; +} diff --git a/src/api/resources/accounting/resources/items/client/requests/ItemsCreateRequest.ts b/src/api/resources/accounting/resources/items/client/requests/ItemsCreateRequest.ts new file mode 100644 index 000000000..18d1fa807 --- /dev/null +++ b/src/api/resources/accounting/resources/items/client/requests/ItemsCreateRequest.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * body: { + * model: {} + * } + * } + */ +export interface ItemsCreateRequest { + /** 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; + body: Merge.accounting.ItemEndpointRequest; +} diff --git a/src/api/resources/accounting/resources/items/client/requests/ItemsListRequest.ts b/src/api/resources/accounting/resources/items/client/requests/ItemsListRequest.ts index d9e0451f7..151d5b0d9 100644 --- a/src/api/resources/accounting/resources/items/client/requests/ItemsListRequest.ts +++ b/src/api/resources/accounting/resources/items/client/requests/ItemsListRequest.ts @@ -9,12 +9,12 @@ import type * as Merge from "../../../../../../index"; * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "company", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * name: "name", * pageSize: 1, * remoteFields: "status", * remoteId: "remote_id", @@ -31,7 +31,7 @@ export interface ItemsListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.ItemsListRequestExpand; + expand?: Merge.accounting.ItemsListRequestExpandItem | Merge.accounting.ItemsListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -42,7 +42,9 @@ export interface ItemsListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** If provided, will only return items with this name. */ + name?: string; + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** Deprecated. Use show_enum_origins. */ remoteFields?: "status"; diff --git a/src/api/resources/accounting/resources/items/client/requests/ItemsRetrieveRequest.ts b/src/api/resources/accounting/resources/items/client/requests/ItemsRetrieveRequest.ts index a675f786f..046f22ccd 100644 --- a/src/api/resources/accounting/resources/items/client/requests/ItemsRetrieveRequest.ts +++ b/src/api/resources/accounting/resources/items/client/requests/ItemsRetrieveRequest.ts @@ -5,7 +5,6 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "company", * includeRemoteData: true, * includeShellData: true, * remoteFields: "status", @@ -14,7 +13,7 @@ import type * as Merge from "../../../../../../index"; */ export interface ItemsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.ItemsRetrieveRequestExpand; + expand?: Merge.accounting.ItemsRetrieveRequestExpandItem | Merge.accounting.ItemsRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/accounting/resources/items/client/requests/index.ts b/src/api/resources/accounting/resources/items/client/requests/index.ts index ee1c37b7c..94f5bb358 100644 --- a/src/api/resources/accounting/resources/items/client/requests/index.ts +++ b/src/api/resources/accounting/resources/items/client/requests/index.ts @@ -1,4 +1,6 @@ -export type { ItemEndpointRequest } from "./ItemEndpointRequest"; +export type { ItemBulkRequest } from "./ItemBulkRequest"; +export type { ItemsBatchObjectsListRequest } from "./ItemsBatchObjectsListRequest"; +export type { ItemsCreateRequest } from "./ItemsCreateRequest"; export type { ItemsListRequest } from "./ItemsListRequest"; export type { ItemsRetrieveRequest } from "./ItemsRetrieveRequest"; export type { PatchedItemEndpointRequest } from "./PatchedItemEndpointRequest"; diff --git a/src/api/resources/accounting/resources/items/types/ItemsBatchObjectsListRequestExpandItem.ts b/src/api/resources/accounting/resources/items/types/ItemsBatchObjectsListRequestExpandItem.ts new file mode 100644 index 000000000..1895ef537 --- /dev/null +++ b/src/api/resources/accounting/resources/items/types/ItemsBatchObjectsListRequestExpandItem.ts @@ -0,0 +1,11 @@ +// This file was auto-generated by Fern from our API Definition. + +export const ItemsBatchObjectsListRequestExpandItem = { + Company: "company", + PurchaseAccount: "purchase_account", + PurchaseTaxRate: "purchase_tax_rate", + SalesAccount: "sales_account", + SalesTaxRate: "sales_tax_rate", +} as const; +export type ItemsBatchObjectsListRequestExpandItem = + (typeof ItemsBatchObjectsListRequestExpandItem)[keyof typeof ItemsBatchObjectsListRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/items/types/ItemsListRequestExpand.ts b/src/api/resources/accounting/resources/items/types/ItemsListRequestExpand.ts deleted file mode 100644 index 1fe87cca8..000000000 --- a/src/api/resources/accounting/resources/items/types/ItemsListRequestExpand.ts +++ /dev/null @@ -1,38 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const ItemsListRequestExpand = { - Company: "company", - CompanyPurchaseTaxRate: "company,purchase_tax_rate", - CompanySalesTaxRate: "company,sales_tax_rate", - CompanySalesTaxRatePurchaseTaxRate: "company,sales_tax_rate,purchase_tax_rate", - PurchaseAccount: "purchase_account", - PurchaseAccountCompany: "purchase_account,company", - PurchaseAccountCompanyPurchaseTaxRate: "purchase_account,company,purchase_tax_rate", - PurchaseAccountCompanySalesTaxRate: "purchase_account,company,sales_tax_rate", - PurchaseAccountCompanySalesTaxRatePurchaseTaxRate: "purchase_account,company,sales_tax_rate,purchase_tax_rate", - PurchaseAccountPurchaseTaxRate: "purchase_account,purchase_tax_rate", - PurchaseAccountSalesAccount: "purchase_account,sales_account", - PurchaseAccountSalesAccountCompany: "purchase_account,sales_account,company", - PurchaseAccountSalesAccountCompanyPurchaseTaxRate: "purchase_account,sales_account,company,purchase_tax_rate", - PurchaseAccountSalesAccountCompanySalesTaxRate: "purchase_account,sales_account,company,sales_tax_rate", - PurchaseAccountSalesAccountCompanySalesTaxRatePurchaseTaxRate: - "purchase_account,sales_account,company,sales_tax_rate,purchase_tax_rate", - PurchaseAccountSalesAccountPurchaseTaxRate: "purchase_account,sales_account,purchase_tax_rate", - PurchaseAccountSalesAccountSalesTaxRate: "purchase_account,sales_account,sales_tax_rate", - PurchaseAccountSalesAccountSalesTaxRatePurchaseTaxRate: - "purchase_account,sales_account,sales_tax_rate,purchase_tax_rate", - PurchaseAccountSalesTaxRate: "purchase_account,sales_tax_rate", - PurchaseAccountSalesTaxRatePurchaseTaxRate: "purchase_account,sales_tax_rate,purchase_tax_rate", - PurchaseTaxRate: "purchase_tax_rate", - SalesAccount: "sales_account", - SalesAccountCompany: "sales_account,company", - SalesAccountCompanyPurchaseTaxRate: "sales_account,company,purchase_tax_rate", - SalesAccountCompanySalesTaxRate: "sales_account,company,sales_tax_rate", - SalesAccountCompanySalesTaxRatePurchaseTaxRate: "sales_account,company,sales_tax_rate,purchase_tax_rate", - SalesAccountPurchaseTaxRate: "sales_account,purchase_tax_rate", - SalesAccountSalesTaxRate: "sales_account,sales_tax_rate", - SalesAccountSalesTaxRatePurchaseTaxRate: "sales_account,sales_tax_rate,purchase_tax_rate", - SalesTaxRate: "sales_tax_rate", - SalesTaxRatePurchaseTaxRate: "sales_tax_rate,purchase_tax_rate", -} as const; -export type ItemsListRequestExpand = (typeof ItemsListRequestExpand)[keyof typeof ItemsListRequestExpand]; diff --git a/src/api/resources/accounting/resources/items/types/ItemsListRequestExpandItem.ts b/src/api/resources/accounting/resources/items/types/ItemsListRequestExpandItem.ts new file mode 100644 index 000000000..a0f2fd6af --- /dev/null +++ b/src/api/resources/accounting/resources/items/types/ItemsListRequestExpandItem.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +export const ItemsListRequestExpandItem = { + Company: "company", + PurchaseAccount: "purchase_account", + PurchaseTaxRate: "purchase_tax_rate", + SalesAccount: "sales_account", + SalesTaxRate: "sales_tax_rate", +} as const; +export type ItemsListRequestExpandItem = (typeof ItemsListRequestExpandItem)[keyof typeof ItemsListRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/items/types/ItemsRetrieveRequestExpand.ts b/src/api/resources/accounting/resources/items/types/ItemsRetrieveRequestExpand.ts deleted file mode 100644 index 916602479..000000000 --- a/src/api/resources/accounting/resources/items/types/ItemsRetrieveRequestExpand.ts +++ /dev/null @@ -1,38 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const ItemsRetrieveRequestExpand = { - Company: "company", - CompanyPurchaseTaxRate: "company,purchase_tax_rate", - CompanySalesTaxRate: "company,sales_tax_rate", - CompanySalesTaxRatePurchaseTaxRate: "company,sales_tax_rate,purchase_tax_rate", - PurchaseAccount: "purchase_account", - PurchaseAccountCompany: "purchase_account,company", - PurchaseAccountCompanyPurchaseTaxRate: "purchase_account,company,purchase_tax_rate", - PurchaseAccountCompanySalesTaxRate: "purchase_account,company,sales_tax_rate", - PurchaseAccountCompanySalesTaxRatePurchaseTaxRate: "purchase_account,company,sales_tax_rate,purchase_tax_rate", - PurchaseAccountPurchaseTaxRate: "purchase_account,purchase_tax_rate", - PurchaseAccountSalesAccount: "purchase_account,sales_account", - PurchaseAccountSalesAccountCompany: "purchase_account,sales_account,company", - PurchaseAccountSalesAccountCompanyPurchaseTaxRate: "purchase_account,sales_account,company,purchase_tax_rate", - PurchaseAccountSalesAccountCompanySalesTaxRate: "purchase_account,sales_account,company,sales_tax_rate", - PurchaseAccountSalesAccountCompanySalesTaxRatePurchaseTaxRate: - "purchase_account,sales_account,company,sales_tax_rate,purchase_tax_rate", - PurchaseAccountSalesAccountPurchaseTaxRate: "purchase_account,sales_account,purchase_tax_rate", - PurchaseAccountSalesAccountSalesTaxRate: "purchase_account,sales_account,sales_tax_rate", - PurchaseAccountSalesAccountSalesTaxRatePurchaseTaxRate: - "purchase_account,sales_account,sales_tax_rate,purchase_tax_rate", - PurchaseAccountSalesTaxRate: "purchase_account,sales_tax_rate", - PurchaseAccountSalesTaxRatePurchaseTaxRate: "purchase_account,sales_tax_rate,purchase_tax_rate", - PurchaseTaxRate: "purchase_tax_rate", - SalesAccount: "sales_account", - SalesAccountCompany: "sales_account,company", - SalesAccountCompanyPurchaseTaxRate: "sales_account,company,purchase_tax_rate", - SalesAccountCompanySalesTaxRate: "sales_account,company,sales_tax_rate", - SalesAccountCompanySalesTaxRatePurchaseTaxRate: "sales_account,company,sales_tax_rate,purchase_tax_rate", - SalesAccountPurchaseTaxRate: "sales_account,purchase_tax_rate", - SalesAccountSalesTaxRate: "sales_account,sales_tax_rate", - SalesAccountSalesTaxRatePurchaseTaxRate: "sales_account,sales_tax_rate,purchase_tax_rate", - SalesTaxRate: "sales_tax_rate", - SalesTaxRatePurchaseTaxRate: "sales_tax_rate,purchase_tax_rate", -} as const; -export type ItemsRetrieveRequestExpand = (typeof ItemsRetrieveRequestExpand)[keyof typeof ItemsRetrieveRequestExpand]; diff --git a/src/api/resources/accounting/resources/items/types/ItemsRetrieveRequestExpandItem.ts b/src/api/resources/accounting/resources/items/types/ItemsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..2d85b7389 --- /dev/null +++ b/src/api/resources/accounting/resources/items/types/ItemsRetrieveRequestExpandItem.ts @@ -0,0 +1,11 @@ +// This file was auto-generated by Fern from our API Definition. + +export const ItemsRetrieveRequestExpandItem = { + Company: "company", + PurchaseAccount: "purchase_account", + PurchaseTaxRate: "purchase_tax_rate", + SalesAccount: "sales_account", + SalesTaxRate: "sales_tax_rate", +} as const; +export type ItemsRetrieveRequestExpandItem = + (typeof ItemsRetrieveRequestExpandItem)[keyof typeof ItemsRetrieveRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/items/types/index.ts b/src/api/resources/accounting/resources/items/types/index.ts index 2d4c475ae..0a2ceac39 100644 --- a/src/api/resources/accounting/resources/items/types/index.ts +++ b/src/api/resources/accounting/resources/items/types/index.ts @@ -1,2 +1,3 @@ -export * from "./ItemsListRequestExpand"; -export * from "./ItemsRetrieveRequestExpand"; +export * from "./ItemsBatchObjectsListRequestExpandItem"; +export * from "./ItemsListRequestExpandItem"; +export * from "./ItemsRetrieveRequestExpandItem"; diff --git a/src/api/resources/accounting/resources/journalEntries/client/Client.ts b/src/api/resources/accounting/resources/journalEntries/client/Client.ts index abea0e10b..0f79e9969 100644 --- a/src/api/resources/accounting/resources/journalEntries/client/Client.ts +++ b/src/api/resources/accounting/resources/journalEntries/client/Client.ts @@ -35,7 +35,6 @@ export class JournalEntriesClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "accounting_period", * includeDeletedData: true, * includeRemoteData: true, * includeRemoteFields: true, @@ -48,133 +47,150 @@ export class JournalEntriesClient { * transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") * }) */ - public list( + public async list( request: Merge.accounting.JournalEntriesListRequest = {}, requestOptions?: JournalEntriesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.accounting.JournalEntriesListRequest = {}, - requestOptions?: JournalEntriesClient.RequestOptions, - ): Promise> { - const { - companyId, - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeRemoteFields, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - transactionDateAfter, - transactionDateBefore, - } = request; - const _queryParams: Record = { - company_id: companyId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: - expand != null - ? serializers.accounting.JournalEntriesListRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - transaction_date_after: transactionDateAfter?.toISOString(), - transaction_date_before: transactionDateBefore?.toISOString(), - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.JournalEntriesListRequest, + ): Promise> => { + const { + companyId, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + transactionDateAfter, + transactionDateBefore, + } = request; + const _queryParams: Record = { + company_id: companyId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.JournalEntriesListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.accounting.JournalEntriesListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + transaction_date_after: transactionDateAfter?.toISOString(), + transaction_date_before: transactionDateBefore?.toISOString(), + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/journal-entries", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedJournalEntryList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/journal-entries", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "accounting/v1/journal-entries", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.accounting.PaginatedJournalEntryList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/accounting/v1/journal-entries", - ); } /** * Creates a `JournalEntry` object with the given values. * - * @param {Merge.accounting.JournalEntryEndpointRequest} request + * @param {Merge.accounting.JournalEntriesCreateRequest} request * @param {JournalEntriesClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.accounting.journalEntries.create({ * isDebugMode: true, * runAsync: true, - * model: {} + * body: { + * model: {} + * } * }) */ public create( - request: Merge.accounting.JournalEntryEndpointRequest, + request: Merge.accounting.JournalEntriesCreateRequest, requestOptions?: JournalEntriesClient.RequestOptions, ): core.HttpResponsePromise { return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); } private async __create( - request: Merge.accounting.JournalEntryEndpointRequest, + request: Merge.accounting.JournalEntriesCreateRequest, requestOptions?: JournalEntriesClient.RequestOptions, ): Promise> { - const { isDebugMode, runAsync, ..._body } = request; + const { isDebugMode, runAsync, body: _body } = request; const _queryParams: Record = { is_debug_mode: isDebugMode, run_async: runAsync, @@ -245,7 +261,6 @@ export class JournalEntriesClient { * * @example * await client.accounting.journalEntries.retrieve("id", { - * expand: "accounting_period", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true @@ -266,12 +281,17 @@ export class JournalEntriesClient { ): Promise> { const { expand, includeRemoteData, includeRemoteFields, includeShellData } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.accounting.JournalEntriesRetrieveRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.JournalEntriesRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.accounting.JournalEntriesRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_remote_fields: includeRemoteFields, include_shell_data: includeShellData, @@ -329,50 +349,86 @@ export class JournalEntriesClient { } /** - * Returns a list of `RemoteFieldClass` objects. + * Returns a list of `JournalEntry` objects. * - * @param {Merge.accounting.JournalEntriesLinesRemoteFieldClassesListRequest} request + * @param {string} batch_id + * @param {Merge.accounting.JournalEntriesBatchObjectsListRequest} request * @param {JournalEntriesClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.journalEntries.linesRemoteFieldClassesList({ + * await client.accounting.journalEntries.batchObjectsList("batch_id", { + * companyId: "company_id", + * createdAfter: new Date("2024-01-15T09:30:00.000Z"), + * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * includeDeletedData: true, * includeRemoteData: true, + * includeRemoteFields: true, * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 + * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * pageSize: 1, + * remoteId: "remote_id", + * transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + * transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") * }) */ - public linesRemoteFieldClassesList( - request: Merge.accounting.JournalEntriesLinesRemoteFieldClassesListRequest = {}, + public batchObjectsList( + batch_id: string, + request: Merge.accounting.JournalEntriesBatchObjectsListRequest = {}, requestOptions?: JournalEntriesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__linesRemoteFieldClassesList(request, requestOptions)); + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__batchObjectsList(batch_id, request, requestOptions)); } - private async __linesRemoteFieldClassesList( - request: Merge.accounting.JournalEntriesLinesRemoteFieldClassesListRequest = {}, + private async __batchObjectsList( + batch_id: string, + request: Merge.accounting.JournalEntriesBatchObjectsListRequest = {}, requestOptions?: JournalEntriesClient.RequestOptions, - ): Promise> { + ): Promise> { const { + companyId, + createdAfter, + createdBefore, cursor, + expand, includeDeletedData, includeRemoteData, + includeRemoteFields, includeShellData, - isCommonModelField, - isCustom, + modifiedAfter, + modifiedBefore, pageSize, + remoteId, + transactionDateAfter, + transactionDateBefore, } = request; const _queryParams: Record = { + company_id: companyId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.JournalEntriesBatchObjectsListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.accounting.JournalEntriesBatchObjectsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_deleted_data: includeDeletedData, include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, include_shell_data: includeShellData, - is_common_model_field: isCommonModelField, - is_custom: isCustom, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), page_size: pageSize, + remote_id: remoteId, + transaction_date_after: transactionDateAfter?.toISOString(), + transaction_date_before: transactionDateBefore?.toISOString(), }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( @@ -386,7 +442,7 @@ export class JournalEntriesClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/journal-entries/lines/remote-field-classes", + `accounting/v1/journal-entries/batch/${core.url.encodePathParam(batch_id)}/objects`, ), method: "GET", headers: _headers, @@ -399,7 +455,7 @@ export class JournalEntriesClient { }); if (_response.ok) { return { - data: serializers.accounting.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + data: serializers.accounting.PaginatedJournalEntryList.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -422,27 +478,44 @@ export class JournalEntriesClient { _response.error, _response.rawResponse, "GET", - "/accounting/v1/journal-entries/lines/remote-field-classes", + "/accounting/v1/journal-entries/batch/{batch_id}/objects", ); } /** - * Returns metadata for `JournalEntry` POSTs. + * Creates a `JournalEntry` object with the given values. * + * @param {Merge.accounting.JournalEntryBulkRequest} request * @param {JournalEntriesClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.journalEntries.metaPostRetrieve() + * await client.accounting.journalEntries.asyncBulkCreate({ + * isDebugMode: true, + * runAsync: true, + * batchItems: [{ + * itemId: "item_id", + * payload: { + * model: {} + * } + * }] + * }) */ - public metaPostRetrieve( + public asyncBulkCreate( + request: Merge.accounting.JournalEntryBulkRequest, requestOptions?: JournalEntriesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__asyncBulkCreate(request, requestOptions)); } - private async __metaPostRetrieve( + private async __asyncBulkCreate( + request: Merge.accounting.JournalEntryBulkRequest, requestOptions?: JournalEntriesClient.RequestOptions, - ): Promise> { + ): Promise> { + const { isDebugMode, runAsync, ..._body } = request; + const _queryParams: Record = { + is_debug_mode: isDebugMode, + run_async: runAsync, + }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, @@ -455,11 +528,16 @@ export class JournalEntriesClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/journal-entries/meta/post", + "accounting/v1/journal-entries/async/bulk", ), - method: "GET", + method: "POST", headers: _headers, - queryParameters: requestOptions?.queryParams, + contentType: "application/json", + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + requestType: "json", + body: serializers.accounting.JournalEntryBulkRequest.jsonOrThrow(_body, { + unrecognizedObjectKeys: "strip", + }), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -468,7 +546,7 @@ export class JournalEntriesClient { }); if (_response.ok) { return { - data: serializers.accounting.MetaResponse.parseOrThrow(_response.body, { + data: serializers.accounting.JournalEntryResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -490,19 +568,19 @@ export class JournalEntriesClient { return handleNonStatusCodeError( _response.error, _response.rawResponse, - "GET", - "/accounting/v1/journal-entries/meta/post", + "POST", + "/accounting/v1/journal-entries/async/bulk", ); } /** * Returns a list of `RemoteFieldClass` objects. * - * @param {Merge.accounting.JournalEntriesRemoteFieldClassesListRequest} request + * @param {Merge.accounting.JournalEntriesLinesRemoteFieldClassesListRequest} request * @param {JournalEntriesClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.journalEntries.remoteFieldClassesList({ + * await client.accounting.journalEntries.linesRemoteFieldClassesList({ * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * includeDeletedData: true, * includeRemoteData: true, @@ -512,35 +590,114 @@ export class JournalEntriesClient { * pageSize: 1 * }) */ - public remoteFieldClassesList( - request: Merge.accounting.JournalEntriesRemoteFieldClassesListRequest = {}, + public async linesRemoteFieldClassesList( + request: Merge.accounting.JournalEntriesLinesRemoteFieldClassesListRequest = {}, requestOptions?: JournalEntriesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldClassesList(request, requestOptions)); + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.JournalEntriesLinesRemoteFieldClassesListRequest, + ): Promise> => { + const { + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + isCommonModelField, + isCustom, + pageSize, + } = request; + const _queryParams: Record = { + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + is_common_model_field: isCommonModelField, + is_custom: isCustom, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/journal-entries/lines/remote-field-classes", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/journal-entries/lines/remote-field-classes", + ); + }, + ); + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, + }); } - private async __remoteFieldClassesList( - request: Merge.accounting.JournalEntriesRemoteFieldClassesListRequest = {}, + /** + * Returns metadata for `JournalEntry` POSTs. + * + * @param {JournalEntriesClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.journalEntries.metaPostRetrieve() + */ + public metaPostRetrieve( requestOptions?: JournalEntriesClient.RequestOptions, - ): Promise> { - const { - cursor, - includeDeletedData, - includeRemoteData, - includeShellData, - isCommonModelField, - isCustom, - pageSize, - } = request; - const _queryParams: Record = { - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - is_common_model_field: isCommonModelField, - is_custom: isCustom, - page_size: pageSize, - }; + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); + } + + private async __metaPostRetrieve( + requestOptions?: JournalEntriesClient.RequestOptions, + ): Promise> { const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, @@ -553,11 +710,11 @@ export class JournalEntriesClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/journal-entries/remote-field-classes", + "accounting/v1/journal-entries/meta/post", ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryParameters: requestOptions?.queryParams, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -566,7 +723,7 @@ export class JournalEntriesClient { }); if (_response.ok) { return { - data: serializers.accounting.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + data: serializers.accounting.MetaResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -589,7 +746,115 @@ export class JournalEntriesClient { _response.error, _response.rawResponse, "GET", - "/accounting/v1/journal-entries/remote-field-classes", + "/accounting/v1/journal-entries/meta/post", + ); + } + + /** + * Returns a list of `RemoteFieldClass` objects. + * + * @param {Merge.accounting.JournalEntriesRemoteFieldClassesListRequest} request + * @param {JournalEntriesClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.journalEntries.remoteFieldClassesList({ + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeShellData: true, + * isCommonModelField: true, + * isCustom: true, + * pageSize: 1 + * }) + */ + public async remoteFieldClassesList( + request: Merge.accounting.JournalEntriesRemoteFieldClassesListRequest = {}, + requestOptions?: JournalEntriesClient.RequestOptions, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.JournalEntriesRemoteFieldClassesListRequest, + ): Promise> => { + const { + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + isCommonModelField, + isCustom, + pageSize, + } = request; + const _queryParams: Record = { + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + is_common_model_field: isCommonModelField, + is_custom: isCustom, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/journal-entries/remote-field-classes", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/journal-entries/remote-field-classes", + ); + }, ); + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, + }); } } diff --git a/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntriesBatchObjectsListRequest.ts b/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntriesBatchObjectsListRequest.ts new file mode 100644 index 000000000..df2f1216a --- /dev/null +++ b/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntriesBatchObjectsListRequest.ts @@ -0,0 +1,57 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * companyId: "company_id", + * createdAfter: new Date("2024-01-15T09:30:00.000Z"), + * createdBefore: new Date("2024-01-15T09:30:00.000Z"), + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeRemoteFields: true, + * includeShellData: true, + * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * pageSize: 1, + * remoteId: "remote_id", + * transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + * transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") + * } + */ +export interface JournalEntriesBatchObjectsListRequest { + /** If provided, will only return journal entries for this company. */ + companyId?: string; + /** If provided, will only return objects created after this datetime. */ + createdAfter?: Date; + /** If provided, will only return objects created before this datetime. */ + createdBefore?: Date; + /** The pagination cursor value. */ + cursor?: string; + /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ + expand?: + | Merge.accounting.JournalEntriesBatchObjectsListRequestExpandItem + | Merge.accounting.JournalEntriesBatchObjectsListRequestExpandItem[]; + /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ + includeDeletedData?: boolean; + /** Whether to include the original data Merge fetched from the third-party to produce these models. */ + includeRemoteData?: boolean; + /** Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. */ + includeRemoteFields?: boolean; + /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ + includeShellData?: boolean; + /** If provided, only objects synced by Merge after this date time will be returned. */ + modifiedAfter?: Date; + /** If provided, only objects synced by Merge before this date time will be returned. */ + modifiedBefore?: Date; + /** Number of results to return per page. The maximum limit is 100. */ + pageSize?: number; + /** The API provider's ID for the given object. */ + remoteId?: string; + /** If provided, will only return objects created after this datetime. */ + transactionDateAfter?: Date; + /** If provided, will only return objects created before this datetime. */ + transactionDateBefore?: Date; +} diff --git a/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntriesCreateRequest.ts b/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntriesCreateRequest.ts new file mode 100644 index 000000000..3b379a1ae --- /dev/null +++ b/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntriesCreateRequest.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * body: { + * model: {} + * } + * } + */ +export interface JournalEntriesCreateRequest { + /** 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; + body: Merge.accounting.JournalEntryEndpointRequest; +} diff --git a/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntriesLinesRemoteFieldClassesListRequest.ts b/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntriesLinesRemoteFieldClassesListRequest.ts index db0bd44e6..0bd4c6cf1 100644 --- a/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntriesLinesRemoteFieldClassesListRequest.ts +++ b/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntriesLinesRemoteFieldClassesListRequest.ts @@ -25,6 +25,6 @@ export interface JournalEntriesLinesRemoteFieldClassesListRequest { isCommonModelField?: boolean; /** If provided, will only return remote fields classes with this is_custom value */ isCustom?: boolean; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; } diff --git a/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntriesListRequest.ts b/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntriesListRequest.ts index 29d32ceca..b70257d4d 100644 --- a/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntriesListRequest.ts +++ b/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntriesListRequest.ts @@ -9,7 +9,6 @@ import type * as Merge from "../../../../../../index"; * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "accounting_period", * includeDeletedData: true, * includeRemoteData: true, * includeRemoteFields: true, @@ -32,7 +31,9 @@ export interface JournalEntriesListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.JournalEntriesListRequestExpand; + expand?: + | Merge.accounting.JournalEntriesListRequestExpandItem + | Merge.accounting.JournalEntriesListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -45,7 +46,7 @@ export interface JournalEntriesListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; diff --git a/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntriesRemoteFieldClassesListRequest.ts b/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntriesRemoteFieldClassesListRequest.ts index 28540fe92..18efcea24 100644 --- a/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntriesRemoteFieldClassesListRequest.ts +++ b/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntriesRemoteFieldClassesListRequest.ts @@ -25,6 +25,6 @@ export interface JournalEntriesRemoteFieldClassesListRequest { isCommonModelField?: boolean; /** If provided, will only return remote fields classes with this is_custom value */ isCustom?: boolean; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; } diff --git a/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntriesRetrieveRequest.ts b/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntriesRetrieveRequest.ts index 72fd451b6..51c99a421 100644 --- a/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntriesRetrieveRequest.ts +++ b/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntriesRetrieveRequest.ts @@ -5,7 +5,6 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "accounting_period", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true @@ -13,7 +12,9 @@ import type * as Merge from "../../../../../../index"; */ export interface JournalEntriesRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.JournalEntriesRetrieveRequestExpand; + expand?: + | Merge.accounting.JournalEntriesRetrieveRequestExpandItem + | Merge.accounting.JournalEntriesRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. */ diff --git a/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntryBulkRequest.ts b/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntryBulkRequest.ts new file mode 100644 index 000000000..1728fd0e2 --- /dev/null +++ b/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntryBulkRequest.ts @@ -0,0 +1,24 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * batchItems: [{ + * itemId: "item_id", + * payload: { + * model: {} + * } + * }] + * } + */ +export interface JournalEntryBulkRequest { + /** 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; + batchItems: Merge.accounting.JournalEntryBatchItemRequest[]; +} diff --git a/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntryEndpointRequest.ts b/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntryEndpointRequest.ts deleted file mode 100644 index f4f70855a..000000000 --- a/src/api/resources/accounting/resources/journalEntries/client/requests/JournalEntryEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface JournalEntryEndpointRequest { - /** 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.accounting.JournalEntryRequest; -} diff --git a/src/api/resources/accounting/resources/journalEntries/client/requests/index.ts b/src/api/resources/accounting/resources/journalEntries/client/requests/index.ts index cda14e06d..0947dffe1 100644 --- a/src/api/resources/accounting/resources/journalEntries/client/requests/index.ts +++ b/src/api/resources/accounting/resources/journalEntries/client/requests/index.ts @@ -1,5 +1,7 @@ +export type { JournalEntriesBatchObjectsListRequest } from "./JournalEntriesBatchObjectsListRequest"; +export type { JournalEntriesCreateRequest } from "./JournalEntriesCreateRequest"; export type { JournalEntriesLinesRemoteFieldClassesListRequest } from "./JournalEntriesLinesRemoteFieldClassesListRequest"; export type { JournalEntriesListRequest } from "./JournalEntriesListRequest"; export type { JournalEntriesRemoteFieldClassesListRequest } from "./JournalEntriesRemoteFieldClassesListRequest"; export type { JournalEntriesRetrieveRequest } from "./JournalEntriesRetrieveRequest"; -export type { JournalEntryEndpointRequest } from "./JournalEntryEndpointRequest"; +export type { JournalEntryBulkRequest } from "./JournalEntryBulkRequest"; diff --git a/src/api/resources/accounting/resources/journalEntries/types/JournalEntriesBatchObjectsListRequestExpandItem.ts b/src/api/resources/accounting/resources/journalEntries/types/JournalEntriesBatchObjectsListRequestExpandItem.ts new file mode 100644 index 000000000..35b35afa6 --- /dev/null +++ b/src/api/resources/accounting/resources/journalEntries/types/JournalEntriesBatchObjectsListRequestExpandItem.ts @@ -0,0 +1,12 @@ +// This file was auto-generated by Fern from our API Definition. + +export const JournalEntriesBatchObjectsListRequestExpandItem = { + AccountingPeriod: "accounting_period", + AppliedPayments: "applied_payments", + Company: "company", + Lines: "lines", + Payments: "payments", + TrackingCategories: "tracking_categories", +} as const; +export type JournalEntriesBatchObjectsListRequestExpandItem = + (typeof JournalEntriesBatchObjectsListRequestExpandItem)[keyof typeof JournalEntriesBatchObjectsListRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/journalEntries/types/JournalEntriesListRequestExpand.ts b/src/api/resources/accounting/resources/journalEntries/types/JournalEntriesListRequestExpand.ts deleted file mode 100644 index ee9c04ad6..000000000 --- a/src/api/resources/accounting/resources/journalEntries/types/JournalEntriesListRequestExpand.ts +++ /dev/null @@ -1,78 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const JournalEntriesListRequestExpand = { - AccountingPeriod: "accounting_period", - AppliedPayments: "applied_payments", - AppliedPaymentsAccountingPeriod: "applied_payments,accounting_period", - AppliedPaymentsCompany: "applied_payments,company", - AppliedPaymentsCompanyAccountingPeriod: "applied_payments,company,accounting_period", - AppliedPaymentsTrackingCategories: "applied_payments,tracking_categories", - AppliedPaymentsTrackingCategoriesAccountingPeriod: "applied_payments,tracking_categories,accounting_period", - AppliedPaymentsTrackingCategoriesCompany: "applied_payments,tracking_categories,company", - AppliedPaymentsTrackingCategoriesCompanyAccountingPeriod: - "applied_payments,tracking_categories,company,accounting_period", - Company: "company", - CompanyAccountingPeriod: "company,accounting_period", - Lines: "lines", - LinesAccountingPeriod: "lines,accounting_period", - LinesAppliedPayments: "lines,applied_payments", - LinesAppliedPaymentsAccountingPeriod: "lines,applied_payments,accounting_period", - LinesAppliedPaymentsCompany: "lines,applied_payments,company", - LinesAppliedPaymentsCompanyAccountingPeriod: "lines,applied_payments,company,accounting_period", - LinesAppliedPaymentsTrackingCategories: "lines,applied_payments,tracking_categories", - LinesAppliedPaymentsTrackingCategoriesAccountingPeriod: - "lines,applied_payments,tracking_categories,accounting_period", - LinesAppliedPaymentsTrackingCategoriesCompany: "lines,applied_payments,tracking_categories,company", - LinesAppliedPaymentsTrackingCategoriesCompanyAccountingPeriod: - "lines,applied_payments,tracking_categories,company,accounting_period", - LinesCompany: "lines,company", - LinesCompanyAccountingPeriod: "lines,company,accounting_period", - LinesPayments: "lines,payments", - LinesPaymentsAccountingPeriod: "lines,payments,accounting_period", - LinesPaymentsAppliedPayments: "lines,payments,applied_payments", - LinesPaymentsAppliedPaymentsAccountingPeriod: "lines,payments,applied_payments,accounting_period", - LinesPaymentsAppliedPaymentsCompany: "lines,payments,applied_payments,company", - LinesPaymentsAppliedPaymentsCompanyAccountingPeriod: "lines,payments,applied_payments,company,accounting_period", - LinesPaymentsAppliedPaymentsTrackingCategories: "lines,payments,applied_payments,tracking_categories", - LinesPaymentsAppliedPaymentsTrackingCategoriesAccountingPeriod: - "lines,payments,applied_payments,tracking_categories,accounting_period", - LinesPaymentsAppliedPaymentsTrackingCategoriesCompany: - "lines,payments,applied_payments,tracking_categories,company", - LinesPaymentsAppliedPaymentsTrackingCategoriesCompanyAccountingPeriod: - "lines,payments,applied_payments,tracking_categories,company,accounting_period", - LinesPaymentsCompany: "lines,payments,company", - LinesPaymentsCompanyAccountingPeriod: "lines,payments,company,accounting_period", - LinesPaymentsTrackingCategories: "lines,payments,tracking_categories", - LinesPaymentsTrackingCategoriesAccountingPeriod: "lines,payments,tracking_categories,accounting_period", - LinesPaymentsTrackingCategoriesCompany: "lines,payments,tracking_categories,company", - LinesPaymentsTrackingCategoriesCompanyAccountingPeriod: - "lines,payments,tracking_categories,company,accounting_period", - LinesTrackingCategories: "lines,tracking_categories", - LinesTrackingCategoriesAccountingPeriod: "lines,tracking_categories,accounting_period", - LinesTrackingCategoriesCompany: "lines,tracking_categories,company", - LinesTrackingCategoriesCompanyAccountingPeriod: "lines,tracking_categories,company,accounting_period", - Payments: "payments", - PaymentsAccountingPeriod: "payments,accounting_period", - PaymentsAppliedPayments: "payments,applied_payments", - PaymentsAppliedPaymentsAccountingPeriod: "payments,applied_payments,accounting_period", - PaymentsAppliedPaymentsCompany: "payments,applied_payments,company", - PaymentsAppliedPaymentsCompanyAccountingPeriod: "payments,applied_payments,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategories: "payments,applied_payments,tracking_categories", - PaymentsAppliedPaymentsTrackingCategoriesAccountingPeriod: - "payments,applied_payments,tracking_categories,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesCompany: "payments,applied_payments,tracking_categories,company", - PaymentsAppliedPaymentsTrackingCategoriesCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,company,accounting_period", - PaymentsCompany: "payments,company", - PaymentsCompanyAccountingPeriod: "payments,company,accounting_period", - PaymentsTrackingCategories: "payments,tracking_categories", - PaymentsTrackingCategoriesAccountingPeriod: "payments,tracking_categories,accounting_period", - PaymentsTrackingCategoriesCompany: "payments,tracking_categories,company", - PaymentsTrackingCategoriesCompanyAccountingPeriod: "payments,tracking_categories,company,accounting_period", - TrackingCategories: "tracking_categories", - TrackingCategoriesAccountingPeriod: "tracking_categories,accounting_period", - TrackingCategoriesCompany: "tracking_categories,company", - TrackingCategoriesCompanyAccountingPeriod: "tracking_categories,company,accounting_period", -} as const; -export type JournalEntriesListRequestExpand = - (typeof JournalEntriesListRequestExpand)[keyof typeof JournalEntriesListRequestExpand]; diff --git a/src/api/resources/accounting/resources/journalEntries/types/JournalEntriesListRequestExpandItem.ts b/src/api/resources/accounting/resources/journalEntries/types/JournalEntriesListRequestExpandItem.ts new file mode 100644 index 000000000..87f7cf35e --- /dev/null +++ b/src/api/resources/accounting/resources/journalEntries/types/JournalEntriesListRequestExpandItem.ts @@ -0,0 +1,12 @@ +// This file was auto-generated by Fern from our API Definition. + +export const JournalEntriesListRequestExpandItem = { + AccountingPeriod: "accounting_period", + AppliedPayments: "applied_payments", + Company: "company", + Lines: "lines", + Payments: "payments", + TrackingCategories: "tracking_categories", +} as const; +export type JournalEntriesListRequestExpandItem = + (typeof JournalEntriesListRequestExpandItem)[keyof typeof JournalEntriesListRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/journalEntries/types/JournalEntriesRetrieveRequestExpand.ts b/src/api/resources/accounting/resources/journalEntries/types/JournalEntriesRetrieveRequestExpand.ts deleted file mode 100644 index fb3e356c5..000000000 --- a/src/api/resources/accounting/resources/journalEntries/types/JournalEntriesRetrieveRequestExpand.ts +++ /dev/null @@ -1,78 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const JournalEntriesRetrieveRequestExpand = { - AccountingPeriod: "accounting_period", - AppliedPayments: "applied_payments", - AppliedPaymentsAccountingPeriod: "applied_payments,accounting_period", - AppliedPaymentsCompany: "applied_payments,company", - AppliedPaymentsCompanyAccountingPeriod: "applied_payments,company,accounting_period", - AppliedPaymentsTrackingCategories: "applied_payments,tracking_categories", - AppliedPaymentsTrackingCategoriesAccountingPeriod: "applied_payments,tracking_categories,accounting_period", - AppliedPaymentsTrackingCategoriesCompany: "applied_payments,tracking_categories,company", - AppliedPaymentsTrackingCategoriesCompanyAccountingPeriod: - "applied_payments,tracking_categories,company,accounting_period", - Company: "company", - CompanyAccountingPeriod: "company,accounting_period", - Lines: "lines", - LinesAccountingPeriod: "lines,accounting_period", - LinesAppliedPayments: "lines,applied_payments", - LinesAppliedPaymentsAccountingPeriod: "lines,applied_payments,accounting_period", - LinesAppliedPaymentsCompany: "lines,applied_payments,company", - LinesAppliedPaymentsCompanyAccountingPeriod: "lines,applied_payments,company,accounting_period", - LinesAppliedPaymentsTrackingCategories: "lines,applied_payments,tracking_categories", - LinesAppliedPaymentsTrackingCategoriesAccountingPeriod: - "lines,applied_payments,tracking_categories,accounting_period", - LinesAppliedPaymentsTrackingCategoriesCompany: "lines,applied_payments,tracking_categories,company", - LinesAppliedPaymentsTrackingCategoriesCompanyAccountingPeriod: - "lines,applied_payments,tracking_categories,company,accounting_period", - LinesCompany: "lines,company", - LinesCompanyAccountingPeriod: "lines,company,accounting_period", - LinesPayments: "lines,payments", - LinesPaymentsAccountingPeriod: "lines,payments,accounting_period", - LinesPaymentsAppliedPayments: "lines,payments,applied_payments", - LinesPaymentsAppliedPaymentsAccountingPeriod: "lines,payments,applied_payments,accounting_period", - LinesPaymentsAppliedPaymentsCompany: "lines,payments,applied_payments,company", - LinesPaymentsAppliedPaymentsCompanyAccountingPeriod: "lines,payments,applied_payments,company,accounting_period", - LinesPaymentsAppliedPaymentsTrackingCategories: "lines,payments,applied_payments,tracking_categories", - LinesPaymentsAppliedPaymentsTrackingCategoriesAccountingPeriod: - "lines,payments,applied_payments,tracking_categories,accounting_period", - LinesPaymentsAppliedPaymentsTrackingCategoriesCompany: - "lines,payments,applied_payments,tracking_categories,company", - LinesPaymentsAppliedPaymentsTrackingCategoriesCompanyAccountingPeriod: - "lines,payments,applied_payments,tracking_categories,company,accounting_period", - LinesPaymentsCompany: "lines,payments,company", - LinesPaymentsCompanyAccountingPeriod: "lines,payments,company,accounting_period", - LinesPaymentsTrackingCategories: "lines,payments,tracking_categories", - LinesPaymentsTrackingCategoriesAccountingPeriod: "lines,payments,tracking_categories,accounting_period", - LinesPaymentsTrackingCategoriesCompany: "lines,payments,tracking_categories,company", - LinesPaymentsTrackingCategoriesCompanyAccountingPeriod: - "lines,payments,tracking_categories,company,accounting_period", - LinesTrackingCategories: "lines,tracking_categories", - LinesTrackingCategoriesAccountingPeriod: "lines,tracking_categories,accounting_period", - LinesTrackingCategoriesCompany: "lines,tracking_categories,company", - LinesTrackingCategoriesCompanyAccountingPeriod: "lines,tracking_categories,company,accounting_period", - Payments: "payments", - PaymentsAccountingPeriod: "payments,accounting_period", - PaymentsAppliedPayments: "payments,applied_payments", - PaymentsAppliedPaymentsAccountingPeriod: "payments,applied_payments,accounting_period", - PaymentsAppliedPaymentsCompany: "payments,applied_payments,company", - PaymentsAppliedPaymentsCompanyAccountingPeriod: "payments,applied_payments,company,accounting_period", - PaymentsAppliedPaymentsTrackingCategories: "payments,applied_payments,tracking_categories", - PaymentsAppliedPaymentsTrackingCategoriesAccountingPeriod: - "payments,applied_payments,tracking_categories,accounting_period", - PaymentsAppliedPaymentsTrackingCategoriesCompany: "payments,applied_payments,tracking_categories,company", - PaymentsAppliedPaymentsTrackingCategoriesCompanyAccountingPeriod: - "payments,applied_payments,tracking_categories,company,accounting_period", - PaymentsCompany: "payments,company", - PaymentsCompanyAccountingPeriod: "payments,company,accounting_period", - PaymentsTrackingCategories: "payments,tracking_categories", - PaymentsTrackingCategoriesAccountingPeriod: "payments,tracking_categories,accounting_period", - PaymentsTrackingCategoriesCompany: "payments,tracking_categories,company", - PaymentsTrackingCategoriesCompanyAccountingPeriod: "payments,tracking_categories,company,accounting_period", - TrackingCategories: "tracking_categories", - TrackingCategoriesAccountingPeriod: "tracking_categories,accounting_period", - TrackingCategoriesCompany: "tracking_categories,company", - TrackingCategoriesCompanyAccountingPeriod: "tracking_categories,company,accounting_period", -} as const; -export type JournalEntriesRetrieveRequestExpand = - (typeof JournalEntriesRetrieveRequestExpand)[keyof typeof JournalEntriesRetrieveRequestExpand]; diff --git a/src/api/resources/accounting/resources/journalEntries/types/JournalEntriesRetrieveRequestExpandItem.ts b/src/api/resources/accounting/resources/journalEntries/types/JournalEntriesRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..8447b2964 --- /dev/null +++ b/src/api/resources/accounting/resources/journalEntries/types/JournalEntriesRetrieveRequestExpandItem.ts @@ -0,0 +1,12 @@ +// This file was auto-generated by Fern from our API Definition. + +export const JournalEntriesRetrieveRequestExpandItem = { + AccountingPeriod: "accounting_period", + AppliedPayments: "applied_payments", + Company: "company", + Lines: "lines", + Payments: "payments", + TrackingCategories: "tracking_categories", +} as const; +export type JournalEntriesRetrieveRequestExpandItem = + (typeof JournalEntriesRetrieveRequestExpandItem)[keyof typeof JournalEntriesRetrieveRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/journalEntries/types/index.ts b/src/api/resources/accounting/resources/journalEntries/types/index.ts index d0572d020..194e7ae6a 100644 --- a/src/api/resources/accounting/resources/journalEntries/types/index.ts +++ b/src/api/resources/accounting/resources/journalEntries/types/index.ts @@ -1,2 +1,3 @@ -export * from "./JournalEntriesListRequestExpand"; -export * from "./JournalEntriesRetrieveRequestExpand"; +export * from "./JournalEntriesBatchObjectsListRequestExpandItem"; +export * from "./JournalEntriesListRequestExpandItem"; +export * from "./JournalEntriesRetrieveRequestExpandItem"; diff --git a/src/api/resources/accounting/resources/linkToken/client/Client.ts b/src/api/resources/accounting/resources/linkToken/client/Client.ts index 5bab57788..b9450d99b 100644 --- a/src/api/resources/accounting/resources/linkToken/client/Client.ts +++ b/src/api/resources/accounting/resources/linkToken/client/Client.ts @@ -24,7 +24,7 @@ export class LinkTokenClient { } /** - * Creates a link token to be used when linking a new end user. + * Creates a link token to be used when linking a new end user. The link token expires after single use. * * @param {Merge.accounting.EndUserDetailsRequest} request * @param {LinkTokenClient.RequestOptions} requestOptions - Request-specific configuration. diff --git a/src/api/resources/accounting/resources/linkedAccounts/client/Client.ts b/src/api/resources/accounting/resources/linkedAccounts/client/Client.ts index 8e681524d..389b3ebf5 100644 --- a/src/api/resources/accounting/resources/linkedAccounts/client/Client.ts +++ b/src/api/resources/accounting/resources/linkedAccounts/client/Client.ts @@ -46,101 +46,119 @@ export class LinkedAccountsClient { * status: "status" * }) */ - public list( + public async list( request: Merge.accounting.LinkedAccountsListRequest = {}, requestOptions?: LinkedAccountsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.accounting.LinkedAccountsListRequest = {}, - requestOptions?: LinkedAccountsClient.RequestOptions, - ): Promise> { - const { - category, - cursor, - endUserEmailAddress, - endUserOrganizationName, - endUserOriginId, - endUserOriginIds, - id, - ids, - includeDuplicates, - integrationName, - isTestAccount, - pageSize, - status, - } = request; - const _queryParams: Record = { - category: - category != null - ? serializers.accounting.LinkedAccountsListRequestCategory.jsonOrThrow(category, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - cursor, - end_user_email_address: endUserEmailAddress, - end_user_organization_name: endUserOrganizationName, - end_user_origin_id: endUserOriginId, - end_user_origin_ids: endUserOriginIds, - id, - ids, - include_duplicates: includeDuplicates, - integration_name: integrationName, - is_test_account: isTestAccount, - page_size: pageSize, - status, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise< + core.Page + > { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.LinkedAccountsListRequest, + ): Promise> => { + const { + category, + cursor, + endUserEmailAddress, + endUserOrganizationName, + endUserOriginId, + endUserOriginIds, + id, + ids, + includeDuplicates, + integrationName, + isTestAccount, + pageSize, + status, + } = request; + const _queryParams: Record = { + category: + category != null + ? serializers.accounting.LinkedAccountsListRequestCategory.jsonOrThrow(category, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + cursor, + end_user_email_address: endUserEmailAddress, + end_user_organization_name: endUserOrganizationName, + end_user_origin_id: endUserOriginId, + end_user_origin_ids: endUserOriginIds, + id, + ids, + include_duplicates: includeDuplicates, + integration_name: integrationName, + is_test_account: isTestAccount, + page_size: pageSize, + status, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/linked-accounts", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedAccountDetailsAndActionsList.parseOrThrow( + _response.body, + { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }, + ), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/linked-accounts", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "accounting/v1/linked-accounts", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page< + Merge.accounting.AccountDetailsAndActions, + Merge.accounting.PaginatedAccountDetailsAndActionsList + >({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.accounting.PaginatedAccountDetailsAndActionsList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/accounting/v1/linked-accounts", - ); } } diff --git a/src/api/resources/accounting/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts b/src/api/resources/accounting/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts index 4fb089f78..dbb60268e 100644 --- a/src/api/resources/accounting/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts +++ b/src/api/resources/accounting/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts @@ -52,7 +52,7 @@ export interface LinkedAccountsListRequest { integrationName?: string; /** If included, will only include test linked accounts. If not included, will only include non-test linked accounts. */ isTestAccount?: string; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` */ status?: string; diff --git a/src/api/resources/accounting/resources/paymentMethods/client/Client.ts b/src/api/resources/accounting/resources/paymentMethods/client/Client.ts index 718a2415c..880d9b19a 100644 --- a/src/api/resources/accounting/resources/paymentMethods/client/Client.ts +++ b/src/api/resources/accounting/resources/paymentMethods/client/Client.ts @@ -38,75 +38,85 @@ export class PaymentMethodsClient { * pageSize: 1 * }) */ - public list( + public async list( request: Merge.accounting.PaymentMethodsListRequest = {}, requestOptions?: PaymentMethodsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.accounting.PaymentMethodsListRequest = {}, - requestOptions?: PaymentMethodsClient.RequestOptions, - ): Promise> { - const { cursor, includeDeletedData, includeRemoteData, includeShellData, pageSize } = request; - const _queryParams: Record = { - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - page_size: pageSize, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.PaymentMethodsListRequest, + ): Promise> => { + const { cursor, includeDeletedData, includeRemoteData, includeShellData, pageSize } = request; + const _queryParams: Record = { + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/payment-methods", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedPaymentMethodList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/payment-methods", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "accounting/v1/payment-methods", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.accounting.PaginatedPaymentMethodList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/accounting/v1/payment-methods", - ); } /** diff --git a/src/api/resources/accounting/resources/paymentTerms/client/Client.ts b/src/api/resources/accounting/resources/paymentTerms/client/Client.ts index 35bf5c61c..30eabd157 100644 --- a/src/api/resources/accounting/resources/paymentTerms/client/Client.ts +++ b/src/api/resources/accounting/resources/paymentTerms/client/Client.ts @@ -32,78 +32,92 @@ export class PaymentTermsClient { * @example * await client.accounting.paymentTerms.list({ * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "company", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, * pageSize: 1 * }) */ - public list( + public async list( request: Merge.accounting.PaymentTermsListRequest = {}, requestOptions?: PaymentTermsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.accounting.PaymentTermsListRequest = {}, - requestOptions?: PaymentTermsClient.RequestOptions, - ): Promise> { - const { cursor, expand, includeDeletedData, includeRemoteData, includeShellData, pageSize } = request; - const _queryParams: Record = { - cursor, - expand: expand != null ? expand : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - page_size: pageSize, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.PaymentTermsListRequest, + ): Promise> => { + const { cursor, expand, includeDeletedData, includeRemoteData, includeShellData, pageSize } = request; + const _queryParams: Record = { + cursor, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/payment-terms", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedPaymentTermList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/payment-terms", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "accounting/v1/payment-terms", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.accounting.PaginatedPaymentTermList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/accounting/v1/payment-terms"); } /** @@ -115,7 +129,6 @@ export class PaymentTermsClient { * * @example * await client.accounting.paymentTerms.retrieve("id", { - * expand: "company", * includeRemoteData: true, * includeShellData: true * }) @@ -135,7 +148,7 @@ export class PaymentTermsClient { ): Promise> { const { expand, includeRemoteData, includeShellData } = request; const _queryParams: Record = { - expand: expand != null ? expand : undefined, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, }; diff --git a/src/api/resources/accounting/resources/paymentTerms/client/requests/PaymentTermsListRequest.ts b/src/api/resources/accounting/resources/paymentTerms/client/requests/PaymentTermsListRequest.ts index b4968983b..80eddc0ba 100644 --- a/src/api/resources/accounting/resources/paymentTerms/client/requests/PaymentTermsListRequest.ts +++ b/src/api/resources/accounting/resources/paymentTerms/client/requests/PaymentTermsListRequest.ts @@ -4,7 +4,6 @@ * @example * { * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "company", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -15,13 +14,13 @@ export interface PaymentTermsListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "company"; + expand?: "company" | "company"[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ includeShellData?: boolean; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; } diff --git a/src/api/resources/accounting/resources/paymentTerms/client/requests/PaymentTermsRetrieveRequest.ts b/src/api/resources/accounting/resources/paymentTerms/client/requests/PaymentTermsRetrieveRequest.ts index a44bdfc42..67afabc28 100644 --- a/src/api/resources/accounting/resources/paymentTerms/client/requests/PaymentTermsRetrieveRequest.ts +++ b/src/api/resources/accounting/resources/paymentTerms/client/requests/PaymentTermsRetrieveRequest.ts @@ -3,14 +3,13 @@ /** * @example * { - * expand: "company", * includeRemoteData: true, * includeShellData: true * } */ export interface PaymentTermsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "company"; + expand?: "company" | "company"[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/accounting/resources/payments/client/Client.ts b/src/api/resources/accounting/resources/payments/client/Client.ts index ab923504e..4ec0bc9eb 100644 --- a/src/api/resources/accounting/resources/payments/client/Client.ts +++ b/src/api/resources/accounting/resources/payments/client/Client.ts @@ -37,7 +37,6 @@ export class PaymentsClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "account", * includeDeletedData: true, * includeRemoteData: true, * includeRemoteFields: true, @@ -50,132 +49,154 @@ export class PaymentsClient { * transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") * }) */ - public list( + public async list( request: Merge.accounting.PaymentsListRequest = {}, requestOptions?: PaymentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.accounting.PaymentsListRequest = {}, - requestOptions?: PaymentsClient.RequestOptions, - ): Promise> { - const { - accountId, - companyId, - contactId, - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeRemoteFields, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - transactionDateAfter, - transactionDateBefore, - } = request; - const _queryParams: Record = { - account_id: accountId, - company_id: companyId, - contact_id: contactId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: - expand != null - ? serializers.accounting.PaymentsListRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - transaction_date_after: transactionDateAfter?.toISOString(), - transaction_date_before: transactionDateBefore?.toISOString(), - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.PaymentsListRequest, + ): Promise> => { + const { + accountId, + companyId, + contactId, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + transactionDateAfter, + transactionDateBefore, + } = request; + const _queryParams: Record = { + account_id: accountId, + company_id: companyId, + contact_id: contactId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.PaymentsListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.accounting.PaymentsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + transaction_date_after: transactionDateAfter?.toISOString(), + transaction_date_before: transactionDateBefore?.toISOString(), + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/payments", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedPaymentList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/payments", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "accounting/v1/payments", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.accounting.PaginatedPaymentList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/accounting/v1/payments"); } /** * Creates a `Payment` object with the given values. * - * @param {Merge.accounting.PaymentEndpointRequest} request + * @param {Merge.accounting.PaymentsCreateRequest} request * @param {PaymentsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.accounting.payments.create({ * isDebugMode: true, * runAsync: true, - * model: {} + * body: { + * model: {} + * } * }) */ public create( - request: Merge.accounting.PaymentEndpointRequest, + request: Merge.accounting.PaymentsCreateRequest, requestOptions?: PaymentsClient.RequestOptions, ): core.HttpResponsePromise { return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); } private async __create( - request: Merge.accounting.PaymentEndpointRequest, + request: Merge.accounting.PaymentsCreateRequest, requestOptions?: PaymentsClient.RequestOptions, ): Promise> { - const { isDebugMode, runAsync, ..._body } = request; + const { isDebugMode, runAsync, body: _body } = request; const _queryParams: Record = { is_debug_mode: isDebugMode, run_async: runAsync, @@ -239,7 +260,6 @@ export class PaymentsClient { * * @example * await client.accounting.payments.retrieve("id", { - * expand: "account", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true @@ -260,12 +280,17 @@ export class PaymentsClient { ): Promise> { const { expand, includeRemoteData, includeRemoteFields, includeShellData } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.accounting.PaymentsRetrieveRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.PaymentsRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.accounting.PaymentsRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_remote_fields: includeRemoteFields, include_shell_data: includeShellData, @@ -407,50 +432,92 @@ export class PaymentsClient { } /** - * Returns a list of `RemoteFieldClass` objects. + * Returns a list of `Payment` objects. * - * @param {Merge.accounting.PaymentsLineItemsRemoteFieldClassesListRequest} request + * @param {string} batch_id + * @param {Merge.accounting.PaymentsBatchObjectsListRequest} request * @param {PaymentsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.payments.lineItemsRemoteFieldClassesList({ + * await client.accounting.payments.batchObjectsList("batch_id", { + * accountId: "account_id", + * companyId: "company_id", + * contactId: "contact_id", + * createdAfter: new Date("2024-01-15T09:30:00.000Z"), + * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * includeDeletedData: true, * includeRemoteData: true, + * includeRemoteFields: true, * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 + * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * pageSize: 1, + * remoteId: "remote_id", + * transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + * transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") * }) */ - public lineItemsRemoteFieldClassesList( - request: Merge.accounting.PaymentsLineItemsRemoteFieldClassesListRequest = {}, + public batchObjectsList( + batch_id: string, + request: Merge.accounting.PaymentsBatchObjectsListRequest = {}, requestOptions?: PaymentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__lineItemsRemoteFieldClassesList(request, requestOptions)); + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__batchObjectsList(batch_id, request, requestOptions)); } - private async __lineItemsRemoteFieldClassesList( - request: Merge.accounting.PaymentsLineItemsRemoteFieldClassesListRequest = {}, + private async __batchObjectsList( + batch_id: string, + request: Merge.accounting.PaymentsBatchObjectsListRequest = {}, requestOptions?: PaymentsClient.RequestOptions, - ): Promise> { + ): Promise> { const { + accountId, + companyId, + contactId, + createdAfter, + createdBefore, cursor, + expand, includeDeletedData, includeRemoteData, + includeRemoteFields, includeShellData, - isCommonModelField, - isCustom, + modifiedAfter, + modifiedBefore, pageSize, + remoteId, + transactionDateAfter, + transactionDateBefore, } = request; const _queryParams: Record = { + account_id: accountId, + company_id: companyId, + contact_id: contactId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.PaymentsBatchObjectsListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.accounting.PaymentsBatchObjectsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_deleted_data: includeDeletedData, include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, include_shell_data: includeShellData, - is_common_model_field: isCommonModelField, - is_custom: isCustom, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), page_size: pageSize, + remote_id: remoteId, + transaction_date_after: transactionDateAfter?.toISOString(), + transaction_date_before: transactionDateBefore?.toISOString(), }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( @@ -464,7 +531,7 @@ export class PaymentsClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/payments/line-items/remote-field-classes", + `accounting/v1/payments/batch/${core.url.encodePathParam(batch_id)}/objects`, ), method: "GET", headers: _headers, @@ -477,7 +544,7 @@ export class PaymentsClient { }); if (_response.ok) { return { - data: serializers.accounting.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + data: serializers.accounting.PaginatedPaymentList.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -500,30 +567,44 @@ export class PaymentsClient { _response.error, _response.rawResponse, "GET", - "/accounting/v1/payments/line-items/remote-field-classes", + "/accounting/v1/payments/batch/{batch_id}/objects", ); } /** - * Returns metadata for `Payment` PATCHs. + * Creates a `Payment` object with the given values. * - * @param {string} id + * @param {Merge.accounting.PaymentBulkRequest} request * @param {PaymentsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.payments.metaPatchRetrieve("id") + * await client.accounting.payments.asyncBulkCreate({ + * isDebugMode: true, + * runAsync: true, + * batchItems: [{ + * itemId: "item_id", + * payload: { + * model: {} + * } + * }] + * }) */ - public metaPatchRetrieve( - id: string, + public asyncBulkCreate( + request: Merge.accounting.PaymentBulkRequest, requestOptions?: PaymentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPatchRetrieve(id, requestOptions)); + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__asyncBulkCreate(request, requestOptions)); } - private async __metaPatchRetrieve( - id: string, + private async __asyncBulkCreate( + request: Merge.accounting.PaymentBulkRequest, requestOptions?: PaymentsClient.RequestOptions, - ): Promise> { + ): Promise> { + const { isDebugMode, runAsync, ..._body } = request; + const _queryParams: Record = { + is_debug_mode: isDebugMode, + run_async: runAsync, + }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, @@ -536,11 +617,14 @@ export class PaymentsClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - `accounting/v1/payments/meta/patch/${core.url.encodePathParam(id)}`, + "accounting/v1/payments/async/bulk", ), - method: "GET", + method: "POST", headers: _headers, - queryParameters: requestOptions?.queryParams, + contentType: "application/json", + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + requestType: "json", + body: serializers.accounting.PaymentBulkRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -549,7 +633,7 @@ export class PaymentsClient { }); if (_response.ok) { return { - data: serializers.accounting.MetaResponse.parseOrThrow(_response.body, { + data: serializers.accounting.PaymentResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -571,26 +655,137 @@ export class PaymentsClient { return handleNonStatusCodeError( _response.error, _response.rawResponse, - "GET", - "/accounting/v1/payments/meta/patch/{id}", + "POST", + "/accounting/v1/payments/async/bulk", ); } /** - * Returns metadata for `Payment` POSTs. + * Returns a list of `RemoteFieldClass` objects. * + * @param {Merge.accounting.PaymentsLineItemsRemoteFieldClassesListRequest} request * @param {PaymentsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.payments.metaPostRetrieve() + * await client.accounting.payments.lineItemsRemoteFieldClassesList({ + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeShellData: true, + * isCommonModelField: true, + * isCustom: true, + * pageSize: 1 + * }) */ - public metaPostRetrieve( + public async lineItemsRemoteFieldClassesList( + request: Merge.accounting.PaymentsLineItemsRemoteFieldClassesListRequest = {}, + requestOptions?: PaymentsClient.RequestOptions, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.PaymentsLineItemsRemoteFieldClassesListRequest, + ): Promise> => { + const { + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + isCommonModelField, + isCustom, + pageSize, + } = request; + const _queryParams: Record = { + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + is_common_model_field: isCommonModelField, + is_custom: isCustom, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/payments/line-items/remote-field-classes", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/payments/line-items/remote-field-classes", + ); + }, + ); + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, + }); + } + + /** + * Returns metadata for `Payment` PATCHs. + * + * @param {string} id + * @param {PaymentsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.payments.metaPatchRetrieve("id") + */ + public metaPatchRetrieve( + id: string, requestOptions?: PaymentsClient.RequestOptions, ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); + return core.HttpResponsePromise.fromPromise(this.__metaPatchRetrieve(id, requestOptions)); } - private async __metaPostRetrieve( + private async __metaPatchRetrieve( + id: string, requestOptions?: PaymentsClient.RequestOptions, ): Promise> { const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); @@ -605,7 +800,7 @@ export class PaymentsClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/payments/meta/post", + `accounting/v1/payments/meta/patch/${core.url.encodePathParam(id)}`, ), method: "GET", headers: _headers, @@ -641,56 +836,27 @@ export class PaymentsClient { _response.error, _response.rawResponse, "GET", - "/accounting/v1/payments/meta/post", + "/accounting/v1/payments/meta/patch/{id}", ); } /** - * Returns a list of `RemoteFieldClass` objects. + * Returns metadata for `Payment` POSTs. * - * @param {Merge.accounting.PaymentsRemoteFieldClassesListRequest} request * @param {PaymentsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.payments.remoteFieldClassesList({ - * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * includeDeletedData: true, - * includeRemoteData: true, - * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 - * }) + * await client.accounting.payments.metaPostRetrieve() */ - public remoteFieldClassesList( - request: Merge.accounting.PaymentsRemoteFieldClassesListRequest = {}, + public metaPostRetrieve( requestOptions?: PaymentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldClassesList(request, requestOptions)); + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); } - private async __remoteFieldClassesList( - request: Merge.accounting.PaymentsRemoteFieldClassesListRequest = {}, + private async __metaPostRetrieve( requestOptions?: PaymentsClient.RequestOptions, - ): Promise> { - const { - cursor, - includeDeletedData, - includeRemoteData, - includeShellData, - isCommonModelField, - isCustom, - pageSize, - } = request; - const _queryParams: Record = { - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - is_common_model_field: isCommonModelField, - is_custom: isCustom, - page_size: pageSize, - }; + ): Promise> { const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, @@ -703,11 +869,11 @@ export class PaymentsClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/payments/remote-field-classes", + "accounting/v1/payments/meta/post", ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryParameters: requestOptions?.queryParams, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -716,7 +882,7 @@ export class PaymentsClient { }); if (_response.ok) { return { - data: serializers.accounting.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + data: serializers.accounting.MetaResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -739,7 +905,115 @@ export class PaymentsClient { _response.error, _response.rawResponse, "GET", - "/accounting/v1/payments/remote-field-classes", + "/accounting/v1/payments/meta/post", ); } + + /** + * Returns a list of `RemoteFieldClass` objects. + * + * @param {Merge.accounting.PaymentsRemoteFieldClassesListRequest} request + * @param {PaymentsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.payments.remoteFieldClassesList({ + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeShellData: true, + * isCommonModelField: true, + * isCustom: true, + * pageSize: 1 + * }) + */ + public async remoteFieldClassesList( + request: Merge.accounting.PaymentsRemoteFieldClassesListRequest = {}, + requestOptions?: PaymentsClient.RequestOptions, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.PaymentsRemoteFieldClassesListRequest, + ): Promise> => { + const { + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + isCommonModelField, + isCustom, + pageSize, + } = request; + const _queryParams: Record = { + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + is_common_model_field: isCommonModelField, + is_custom: isCustom, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/payments/remote-field-classes", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/payments/remote-field-classes", + ); + }, + ); + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, + }); + } } diff --git a/src/api/resources/accounting/resources/payments/client/requests/PaymentBulkRequest.ts b/src/api/resources/accounting/resources/payments/client/requests/PaymentBulkRequest.ts new file mode 100644 index 000000000..70bbc94a2 --- /dev/null +++ b/src/api/resources/accounting/resources/payments/client/requests/PaymentBulkRequest.ts @@ -0,0 +1,24 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * batchItems: [{ + * itemId: "item_id", + * payload: { + * model: {} + * } + * }] + * } + */ +export interface PaymentBulkRequest { + /** 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; + batchItems: Merge.accounting.PaymentBatchItemRequest[]; +} diff --git a/src/api/resources/accounting/resources/payments/client/requests/PaymentEndpointRequest.ts b/src/api/resources/accounting/resources/payments/client/requests/PaymentEndpointRequest.ts deleted file mode 100644 index 4e68380d0..000000000 --- a/src/api/resources/accounting/resources/payments/client/requests/PaymentEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface PaymentEndpointRequest { - /** 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.accounting.PaymentRequest; -} diff --git a/src/api/resources/accounting/resources/payments/client/requests/PaymentsBatchObjectsListRequest.ts b/src/api/resources/accounting/resources/payments/client/requests/PaymentsBatchObjectsListRequest.ts new file mode 100644 index 000000000..23d307451 --- /dev/null +++ b/src/api/resources/accounting/resources/payments/client/requests/PaymentsBatchObjectsListRequest.ts @@ -0,0 +1,63 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * accountId: "account_id", + * companyId: "company_id", + * contactId: "contact_id", + * createdAfter: new Date("2024-01-15T09:30:00.000Z"), + * createdBefore: new Date("2024-01-15T09:30:00.000Z"), + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeRemoteFields: true, + * includeShellData: true, + * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * pageSize: 1, + * remoteId: "remote_id", + * transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + * transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") + * } + */ +export interface PaymentsBatchObjectsListRequest { + /** If provided, will only return payments for this account. */ + accountId?: string; + /** If provided, will only return payments for this company. */ + companyId?: string; + /** If provided, will only return payments for this contact. */ + contactId?: string; + /** If provided, will only return objects created after this datetime. */ + createdAfter?: Date; + /** If provided, will only return objects created before this datetime. */ + createdBefore?: Date; + /** The pagination cursor value. */ + cursor?: string; + /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ + expand?: + | Merge.accounting.PaymentsBatchObjectsListRequestExpandItem + | Merge.accounting.PaymentsBatchObjectsListRequestExpandItem[]; + /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ + includeDeletedData?: boolean; + /** Whether to include the original data Merge fetched from the third-party to produce these models. */ + includeRemoteData?: boolean; + /** Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. */ + includeRemoteFields?: boolean; + /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ + includeShellData?: boolean; + /** If provided, only objects synced by Merge after this date time will be returned. */ + modifiedAfter?: Date; + /** If provided, only objects synced by Merge before this date time will be returned. */ + modifiedBefore?: Date; + /** Number of results to return per page. The maximum limit is 100. */ + pageSize?: number; + /** The API provider's ID for the given object. */ + remoteId?: string; + /** If provided, will only return objects created after this datetime. */ + transactionDateAfter?: Date; + /** If provided, will only return objects created before this datetime. */ + transactionDateBefore?: Date; +} diff --git a/src/api/resources/accounting/resources/payments/client/requests/PaymentsCreateRequest.ts b/src/api/resources/accounting/resources/payments/client/requests/PaymentsCreateRequest.ts new file mode 100644 index 000000000..d646e6c82 --- /dev/null +++ b/src/api/resources/accounting/resources/payments/client/requests/PaymentsCreateRequest.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * body: { + * model: {} + * } + * } + */ +export interface PaymentsCreateRequest { + /** 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; + body: Merge.accounting.PaymentEndpointRequest; +} diff --git a/src/api/resources/accounting/resources/payments/client/requests/PaymentsLineItemsRemoteFieldClassesListRequest.ts b/src/api/resources/accounting/resources/payments/client/requests/PaymentsLineItemsRemoteFieldClassesListRequest.ts index d69350219..a866dbbe3 100644 --- a/src/api/resources/accounting/resources/payments/client/requests/PaymentsLineItemsRemoteFieldClassesListRequest.ts +++ b/src/api/resources/accounting/resources/payments/client/requests/PaymentsLineItemsRemoteFieldClassesListRequest.ts @@ -25,6 +25,6 @@ export interface PaymentsLineItemsRemoteFieldClassesListRequest { isCommonModelField?: boolean; /** If provided, will only return remote fields classes with this is_custom value */ isCustom?: boolean; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; } diff --git a/src/api/resources/accounting/resources/payments/client/requests/PaymentsListRequest.ts b/src/api/resources/accounting/resources/payments/client/requests/PaymentsListRequest.ts index fde75fdae..efb1b7888 100644 --- a/src/api/resources/accounting/resources/payments/client/requests/PaymentsListRequest.ts +++ b/src/api/resources/accounting/resources/payments/client/requests/PaymentsListRequest.ts @@ -11,7 +11,6 @@ import type * as Merge from "../../../../../../index"; * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "account", * includeDeletedData: true, * includeRemoteData: true, * includeRemoteFields: true, @@ -38,7 +37,7 @@ export interface PaymentsListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.PaymentsListRequestExpand; + expand?: Merge.accounting.PaymentsListRequestExpandItem | Merge.accounting.PaymentsListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -51,7 +50,7 @@ export interface PaymentsListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; diff --git a/src/api/resources/accounting/resources/payments/client/requests/PaymentsRemoteFieldClassesListRequest.ts b/src/api/resources/accounting/resources/payments/client/requests/PaymentsRemoteFieldClassesListRequest.ts index 1dfa8f486..faa1901ef 100644 --- a/src/api/resources/accounting/resources/payments/client/requests/PaymentsRemoteFieldClassesListRequest.ts +++ b/src/api/resources/accounting/resources/payments/client/requests/PaymentsRemoteFieldClassesListRequest.ts @@ -25,6 +25,6 @@ export interface PaymentsRemoteFieldClassesListRequest { isCommonModelField?: boolean; /** If provided, will only return remote fields classes with this is_custom value */ isCustom?: boolean; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; } diff --git a/src/api/resources/accounting/resources/payments/client/requests/PaymentsRetrieveRequest.ts b/src/api/resources/accounting/resources/payments/client/requests/PaymentsRetrieveRequest.ts index 871f2743b..c300c0309 100644 --- a/src/api/resources/accounting/resources/payments/client/requests/PaymentsRetrieveRequest.ts +++ b/src/api/resources/accounting/resources/payments/client/requests/PaymentsRetrieveRequest.ts @@ -5,7 +5,6 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "account", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true @@ -13,7 +12,7 @@ import type * as Merge from "../../../../../../index"; */ export interface PaymentsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.PaymentsRetrieveRequestExpand; + expand?: Merge.accounting.PaymentsRetrieveRequestExpandItem | Merge.accounting.PaymentsRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. */ diff --git a/src/api/resources/accounting/resources/payments/client/requests/index.ts b/src/api/resources/accounting/resources/payments/client/requests/index.ts index 89a8f11ac..7bcc1dba8 100644 --- a/src/api/resources/accounting/resources/payments/client/requests/index.ts +++ b/src/api/resources/accounting/resources/payments/client/requests/index.ts @@ -1,5 +1,7 @@ export type { PatchedPaymentEndpointRequest } from "./PatchedPaymentEndpointRequest"; -export type { PaymentEndpointRequest } from "./PaymentEndpointRequest"; +export type { PaymentBulkRequest } from "./PaymentBulkRequest"; +export type { PaymentsBatchObjectsListRequest } from "./PaymentsBatchObjectsListRequest"; +export type { PaymentsCreateRequest } from "./PaymentsCreateRequest"; export type { PaymentsLineItemsRemoteFieldClassesListRequest } from "./PaymentsLineItemsRemoteFieldClassesListRequest"; export type { PaymentsListRequest } from "./PaymentsListRequest"; export type { PaymentsRemoteFieldClassesListRequest } from "./PaymentsRemoteFieldClassesListRequest"; diff --git a/src/api/resources/accounting/resources/payments/types/PaymentsBatchObjectsListRequestExpandItem.ts b/src/api/resources/accounting/resources/payments/types/PaymentsBatchObjectsListRequestExpandItem.ts new file mode 100644 index 000000000..8c69bb1ab --- /dev/null +++ b/src/api/resources/accounting/resources/payments/types/PaymentsBatchObjectsListRequestExpandItem.ts @@ -0,0 +1,13 @@ +// This file was auto-generated by Fern from our API Definition. + +export const PaymentsBatchObjectsListRequestExpandItem = { + Account: "account", + AccountingPeriod: "accounting_period", + AppliedToLines: "applied_to_lines", + Company: "company", + Contact: "contact", + PaymentMethod: "payment_method", + TrackingCategories: "tracking_categories", +} as const; +export type PaymentsBatchObjectsListRequestExpandItem = + (typeof PaymentsBatchObjectsListRequestExpandItem)[keyof typeof PaymentsBatchObjectsListRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/payments/types/PaymentsListRequestExpand.ts b/src/api/resources/accounting/resources/payments/types/PaymentsListRequestExpand.ts deleted file mode 100644 index 250d09c52..000000000 --- a/src/api/resources/accounting/resources/payments/types/PaymentsListRequestExpand.ts +++ /dev/null @@ -1,164 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const PaymentsListRequestExpand = { - Account: "account", - AccountAccountingPeriod: "account,accounting_period", - AccountAccountingPeriodPaymentMethod: "account,accounting_period,payment_method", - AccountCompany: "account,company", - AccountCompanyAccountingPeriod: "account,company,accounting_period", - AccountCompanyAccountingPeriodPaymentMethod: "account,company,accounting_period,payment_method", - AccountCompanyPaymentMethod: "account,company,payment_method", - AccountPaymentMethod: "account,payment_method", - AccountingPeriod: "accounting_period", - AccountingPeriodPaymentMethod: "accounting_period,payment_method", - AppliedToLines: "applied_to_lines", - AppliedToLinesAccount: "applied_to_lines,account", - AppliedToLinesAccountAccountingPeriod: "applied_to_lines,account,accounting_period", - AppliedToLinesAccountAccountingPeriodPaymentMethod: "applied_to_lines,account,accounting_period,payment_method", - AppliedToLinesAccountCompany: "applied_to_lines,account,company", - AppliedToLinesAccountCompanyAccountingPeriod: "applied_to_lines,account,company,accounting_period", - AppliedToLinesAccountCompanyAccountingPeriodPaymentMethod: - "applied_to_lines,account,company,accounting_period,payment_method", - AppliedToLinesAccountCompanyPaymentMethod: "applied_to_lines,account,company,payment_method", - AppliedToLinesAccountPaymentMethod: "applied_to_lines,account,payment_method", - AppliedToLinesAccountingPeriod: "applied_to_lines,accounting_period", - AppliedToLinesAccountingPeriodPaymentMethod: "applied_to_lines,accounting_period,payment_method", - AppliedToLinesCompany: "applied_to_lines,company", - AppliedToLinesCompanyAccountingPeriod: "applied_to_lines,company,accounting_period", - AppliedToLinesCompanyAccountingPeriodPaymentMethod: "applied_to_lines,company,accounting_period,payment_method", - AppliedToLinesCompanyPaymentMethod: "applied_to_lines,company,payment_method", - AppliedToLinesContact: "applied_to_lines,contact", - AppliedToLinesContactAccount: "applied_to_lines,contact,account", - AppliedToLinesContactAccountAccountingPeriod: "applied_to_lines,contact,account,accounting_period", - AppliedToLinesContactAccountAccountingPeriodPaymentMethod: - "applied_to_lines,contact,account,accounting_period,payment_method", - AppliedToLinesContactAccountCompany: "applied_to_lines,contact,account,company", - AppliedToLinesContactAccountCompanyAccountingPeriod: "applied_to_lines,contact,account,company,accounting_period", - AppliedToLinesContactAccountCompanyAccountingPeriodPaymentMethod: - "applied_to_lines,contact,account,company,accounting_period,payment_method", - AppliedToLinesContactAccountCompanyPaymentMethod: "applied_to_lines,contact,account,company,payment_method", - AppliedToLinesContactAccountPaymentMethod: "applied_to_lines,contact,account,payment_method", - AppliedToLinesContactAccountingPeriod: "applied_to_lines,contact,accounting_period", - AppliedToLinesContactAccountingPeriodPaymentMethod: "applied_to_lines,contact,accounting_period,payment_method", - AppliedToLinesContactCompany: "applied_to_lines,contact,company", - AppliedToLinesContactCompanyAccountingPeriod: "applied_to_lines,contact,company,accounting_period", - AppliedToLinesContactCompanyAccountingPeriodPaymentMethod: - "applied_to_lines,contact,company,accounting_period,payment_method", - AppliedToLinesContactCompanyPaymentMethod: "applied_to_lines,contact,company,payment_method", - AppliedToLinesContactPaymentMethod: "applied_to_lines,contact,payment_method", - AppliedToLinesPaymentMethod: "applied_to_lines,payment_method", - Company: "company", - CompanyAccountingPeriod: "company,accounting_period", - CompanyAccountingPeriodPaymentMethod: "company,accounting_period,payment_method", - CompanyPaymentMethod: "company,payment_method", - Contact: "contact", - ContactAccount: "contact,account", - ContactAccountAccountingPeriod: "contact,account,accounting_period", - ContactAccountAccountingPeriodPaymentMethod: "contact,account,accounting_period,payment_method", - ContactAccountCompany: "contact,account,company", - ContactAccountCompanyAccountingPeriod: "contact,account,company,accounting_period", - ContactAccountCompanyAccountingPeriodPaymentMethod: "contact,account,company,accounting_period,payment_method", - ContactAccountCompanyPaymentMethod: "contact,account,company,payment_method", - ContactAccountPaymentMethod: "contact,account,payment_method", - ContactAccountingPeriod: "contact,accounting_period", - ContactAccountingPeriodPaymentMethod: "contact,accounting_period,payment_method", - ContactCompany: "contact,company", - ContactCompanyAccountingPeriod: "contact,company,accounting_period", - ContactCompanyAccountingPeriodPaymentMethod: "contact,company,accounting_period,payment_method", - ContactCompanyPaymentMethod: "contact,company,payment_method", - ContactPaymentMethod: "contact,payment_method", - PaymentMethod: "payment_method", - TrackingCategories: "tracking_categories", - TrackingCategoriesAccount: "tracking_categories,account", - TrackingCategoriesAccountAccountingPeriod: "tracking_categories,account,accounting_period", - TrackingCategoriesAccountAccountingPeriodPaymentMethod: - "tracking_categories,account,accounting_period,payment_method", - TrackingCategoriesAccountCompany: "tracking_categories,account,company", - TrackingCategoriesAccountCompanyAccountingPeriod: "tracking_categories,account,company,accounting_period", - TrackingCategoriesAccountCompanyAccountingPeriodPaymentMethod: - "tracking_categories,account,company,accounting_period,payment_method", - TrackingCategoriesAccountCompanyPaymentMethod: "tracking_categories,account,company,payment_method", - TrackingCategoriesAccountPaymentMethod: "tracking_categories,account,payment_method", - TrackingCategoriesAccountingPeriod: "tracking_categories,accounting_period", - TrackingCategoriesAccountingPeriodPaymentMethod: "tracking_categories,accounting_period,payment_method", - TrackingCategoriesAppliedToLines: "tracking_categories,applied_to_lines", - TrackingCategoriesAppliedToLinesAccount: "tracking_categories,applied_to_lines,account", - TrackingCategoriesAppliedToLinesAccountAccountingPeriod: - "tracking_categories,applied_to_lines,account,accounting_period", - TrackingCategoriesAppliedToLinesAccountAccountingPeriodPaymentMethod: - "tracking_categories,applied_to_lines,account,accounting_period,payment_method", - TrackingCategoriesAppliedToLinesAccountCompany: "tracking_categories,applied_to_lines,account,company", - TrackingCategoriesAppliedToLinesAccountCompanyAccountingPeriod: - "tracking_categories,applied_to_lines,account,company,accounting_period", - TrackingCategoriesAppliedToLinesAccountCompanyAccountingPeriodPaymentMethod: - "tracking_categories,applied_to_lines,account,company,accounting_period,payment_method", - TrackingCategoriesAppliedToLinesAccountCompanyPaymentMethod: - "tracking_categories,applied_to_lines,account,company,payment_method", - TrackingCategoriesAppliedToLinesAccountPaymentMethod: "tracking_categories,applied_to_lines,account,payment_method", - TrackingCategoriesAppliedToLinesAccountingPeriod: "tracking_categories,applied_to_lines,accounting_period", - TrackingCategoriesAppliedToLinesAccountingPeriodPaymentMethod: - "tracking_categories,applied_to_lines,accounting_period,payment_method", - TrackingCategoriesAppliedToLinesCompany: "tracking_categories,applied_to_lines,company", - TrackingCategoriesAppliedToLinesCompanyAccountingPeriod: - "tracking_categories,applied_to_lines,company,accounting_period", - TrackingCategoriesAppliedToLinesCompanyAccountingPeriodPaymentMethod: - "tracking_categories,applied_to_lines,company,accounting_period,payment_method", - TrackingCategoriesAppliedToLinesCompanyPaymentMethod: "tracking_categories,applied_to_lines,company,payment_method", - TrackingCategoriesAppliedToLinesContact: "tracking_categories,applied_to_lines,contact", - TrackingCategoriesAppliedToLinesContactAccount: "tracking_categories,applied_to_lines,contact,account", - TrackingCategoriesAppliedToLinesContactAccountAccountingPeriod: - "tracking_categories,applied_to_lines,contact,account,accounting_period", - TrackingCategoriesAppliedToLinesContactAccountAccountingPeriodPaymentMethod: - "tracking_categories,applied_to_lines,contact,account,accounting_period,payment_method", - TrackingCategoriesAppliedToLinesContactAccountCompany: - "tracking_categories,applied_to_lines,contact,account,company", - TrackingCategoriesAppliedToLinesContactAccountCompanyAccountingPeriod: - "tracking_categories,applied_to_lines,contact,account,company,accounting_period", - TrackingCategoriesAppliedToLinesContactAccountCompanyAccountingPeriodPaymentMethod: - "tracking_categories,applied_to_lines,contact,account,company,accounting_period,payment_method", - TrackingCategoriesAppliedToLinesContactAccountCompanyPaymentMethod: - "tracking_categories,applied_to_lines,contact,account,company,payment_method", - TrackingCategoriesAppliedToLinesContactAccountPaymentMethod: - "tracking_categories,applied_to_lines,contact,account,payment_method", - TrackingCategoriesAppliedToLinesContactAccountingPeriod: - "tracking_categories,applied_to_lines,contact,accounting_period", - TrackingCategoriesAppliedToLinesContactAccountingPeriodPaymentMethod: - "tracking_categories,applied_to_lines,contact,accounting_period,payment_method", - TrackingCategoriesAppliedToLinesContactCompany: "tracking_categories,applied_to_lines,contact,company", - TrackingCategoriesAppliedToLinesContactCompanyAccountingPeriod: - "tracking_categories,applied_to_lines,contact,company,accounting_period", - TrackingCategoriesAppliedToLinesContactCompanyAccountingPeriodPaymentMethod: - "tracking_categories,applied_to_lines,contact,company,accounting_period,payment_method", - TrackingCategoriesAppliedToLinesContactCompanyPaymentMethod: - "tracking_categories,applied_to_lines,contact,company,payment_method", - TrackingCategoriesAppliedToLinesContactPaymentMethod: "tracking_categories,applied_to_lines,contact,payment_method", - TrackingCategoriesAppliedToLinesPaymentMethod: "tracking_categories,applied_to_lines,payment_method", - TrackingCategoriesCompany: "tracking_categories,company", - TrackingCategoriesCompanyAccountingPeriod: "tracking_categories,company,accounting_period", - TrackingCategoriesCompanyAccountingPeriodPaymentMethod: - "tracking_categories,company,accounting_period,payment_method", - TrackingCategoriesCompanyPaymentMethod: "tracking_categories,company,payment_method", - TrackingCategoriesContact: "tracking_categories,contact", - TrackingCategoriesContactAccount: "tracking_categories,contact,account", - TrackingCategoriesContactAccountAccountingPeriod: "tracking_categories,contact,account,accounting_period", - TrackingCategoriesContactAccountAccountingPeriodPaymentMethod: - "tracking_categories,contact,account,accounting_period,payment_method", - TrackingCategoriesContactAccountCompany: "tracking_categories,contact,account,company", - TrackingCategoriesContactAccountCompanyAccountingPeriod: - "tracking_categories,contact,account,company,accounting_period", - TrackingCategoriesContactAccountCompanyAccountingPeriodPaymentMethod: - "tracking_categories,contact,account,company,accounting_period,payment_method", - TrackingCategoriesContactAccountCompanyPaymentMethod: "tracking_categories,contact,account,company,payment_method", - TrackingCategoriesContactAccountPaymentMethod: "tracking_categories,contact,account,payment_method", - TrackingCategoriesContactAccountingPeriod: "tracking_categories,contact,accounting_period", - TrackingCategoriesContactAccountingPeriodPaymentMethod: - "tracking_categories,contact,accounting_period,payment_method", - TrackingCategoriesContactCompany: "tracking_categories,contact,company", - TrackingCategoriesContactCompanyAccountingPeriod: "tracking_categories,contact,company,accounting_period", - TrackingCategoriesContactCompanyAccountingPeriodPaymentMethod: - "tracking_categories,contact,company,accounting_period,payment_method", - TrackingCategoriesContactCompanyPaymentMethod: "tracking_categories,contact,company,payment_method", - TrackingCategoriesContactPaymentMethod: "tracking_categories,contact,payment_method", - TrackingCategoriesPaymentMethod: "tracking_categories,payment_method", -} as const; -export type PaymentsListRequestExpand = (typeof PaymentsListRequestExpand)[keyof typeof PaymentsListRequestExpand]; diff --git a/src/api/resources/accounting/resources/payments/types/PaymentsListRequestExpandItem.ts b/src/api/resources/accounting/resources/payments/types/PaymentsListRequestExpandItem.ts new file mode 100644 index 000000000..25211f181 --- /dev/null +++ b/src/api/resources/accounting/resources/payments/types/PaymentsListRequestExpandItem.ts @@ -0,0 +1,13 @@ +// This file was auto-generated by Fern from our API Definition. + +export const PaymentsListRequestExpandItem = { + Account: "account", + AccountingPeriod: "accounting_period", + AppliedToLines: "applied_to_lines", + Company: "company", + Contact: "contact", + PaymentMethod: "payment_method", + TrackingCategories: "tracking_categories", +} as const; +export type PaymentsListRequestExpandItem = + (typeof PaymentsListRequestExpandItem)[keyof typeof PaymentsListRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/payments/types/PaymentsRetrieveRequestExpand.ts b/src/api/resources/accounting/resources/payments/types/PaymentsRetrieveRequestExpand.ts deleted file mode 100644 index ec58af34d..000000000 --- a/src/api/resources/accounting/resources/payments/types/PaymentsRetrieveRequestExpand.ts +++ /dev/null @@ -1,165 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const PaymentsRetrieveRequestExpand = { - Account: "account", - AccountAccountingPeriod: "account,accounting_period", - AccountAccountingPeriodPaymentMethod: "account,accounting_period,payment_method", - AccountCompany: "account,company", - AccountCompanyAccountingPeriod: "account,company,accounting_period", - AccountCompanyAccountingPeriodPaymentMethod: "account,company,accounting_period,payment_method", - AccountCompanyPaymentMethod: "account,company,payment_method", - AccountPaymentMethod: "account,payment_method", - AccountingPeriod: "accounting_period", - AccountingPeriodPaymentMethod: "accounting_period,payment_method", - AppliedToLines: "applied_to_lines", - AppliedToLinesAccount: "applied_to_lines,account", - AppliedToLinesAccountAccountingPeriod: "applied_to_lines,account,accounting_period", - AppliedToLinesAccountAccountingPeriodPaymentMethod: "applied_to_lines,account,accounting_period,payment_method", - AppliedToLinesAccountCompany: "applied_to_lines,account,company", - AppliedToLinesAccountCompanyAccountingPeriod: "applied_to_lines,account,company,accounting_period", - AppliedToLinesAccountCompanyAccountingPeriodPaymentMethod: - "applied_to_lines,account,company,accounting_period,payment_method", - AppliedToLinesAccountCompanyPaymentMethod: "applied_to_lines,account,company,payment_method", - AppliedToLinesAccountPaymentMethod: "applied_to_lines,account,payment_method", - AppliedToLinesAccountingPeriod: "applied_to_lines,accounting_period", - AppliedToLinesAccountingPeriodPaymentMethod: "applied_to_lines,accounting_period,payment_method", - AppliedToLinesCompany: "applied_to_lines,company", - AppliedToLinesCompanyAccountingPeriod: "applied_to_lines,company,accounting_period", - AppliedToLinesCompanyAccountingPeriodPaymentMethod: "applied_to_lines,company,accounting_period,payment_method", - AppliedToLinesCompanyPaymentMethod: "applied_to_lines,company,payment_method", - AppliedToLinesContact: "applied_to_lines,contact", - AppliedToLinesContactAccount: "applied_to_lines,contact,account", - AppliedToLinesContactAccountAccountingPeriod: "applied_to_lines,contact,account,accounting_period", - AppliedToLinesContactAccountAccountingPeriodPaymentMethod: - "applied_to_lines,contact,account,accounting_period,payment_method", - AppliedToLinesContactAccountCompany: "applied_to_lines,contact,account,company", - AppliedToLinesContactAccountCompanyAccountingPeriod: "applied_to_lines,contact,account,company,accounting_period", - AppliedToLinesContactAccountCompanyAccountingPeriodPaymentMethod: - "applied_to_lines,contact,account,company,accounting_period,payment_method", - AppliedToLinesContactAccountCompanyPaymentMethod: "applied_to_lines,contact,account,company,payment_method", - AppliedToLinesContactAccountPaymentMethod: "applied_to_lines,contact,account,payment_method", - AppliedToLinesContactAccountingPeriod: "applied_to_lines,contact,accounting_period", - AppliedToLinesContactAccountingPeriodPaymentMethod: "applied_to_lines,contact,accounting_period,payment_method", - AppliedToLinesContactCompany: "applied_to_lines,contact,company", - AppliedToLinesContactCompanyAccountingPeriod: "applied_to_lines,contact,company,accounting_period", - AppliedToLinesContactCompanyAccountingPeriodPaymentMethod: - "applied_to_lines,contact,company,accounting_period,payment_method", - AppliedToLinesContactCompanyPaymentMethod: "applied_to_lines,contact,company,payment_method", - AppliedToLinesContactPaymentMethod: "applied_to_lines,contact,payment_method", - AppliedToLinesPaymentMethod: "applied_to_lines,payment_method", - Company: "company", - CompanyAccountingPeriod: "company,accounting_period", - CompanyAccountingPeriodPaymentMethod: "company,accounting_period,payment_method", - CompanyPaymentMethod: "company,payment_method", - Contact: "contact", - ContactAccount: "contact,account", - ContactAccountAccountingPeriod: "contact,account,accounting_period", - ContactAccountAccountingPeriodPaymentMethod: "contact,account,accounting_period,payment_method", - ContactAccountCompany: "contact,account,company", - ContactAccountCompanyAccountingPeriod: "contact,account,company,accounting_period", - ContactAccountCompanyAccountingPeriodPaymentMethod: "contact,account,company,accounting_period,payment_method", - ContactAccountCompanyPaymentMethod: "contact,account,company,payment_method", - ContactAccountPaymentMethod: "contact,account,payment_method", - ContactAccountingPeriod: "contact,accounting_period", - ContactAccountingPeriodPaymentMethod: "contact,accounting_period,payment_method", - ContactCompany: "contact,company", - ContactCompanyAccountingPeriod: "contact,company,accounting_period", - ContactCompanyAccountingPeriodPaymentMethod: "contact,company,accounting_period,payment_method", - ContactCompanyPaymentMethod: "contact,company,payment_method", - ContactPaymentMethod: "contact,payment_method", - PaymentMethod: "payment_method", - TrackingCategories: "tracking_categories", - TrackingCategoriesAccount: "tracking_categories,account", - TrackingCategoriesAccountAccountingPeriod: "tracking_categories,account,accounting_period", - TrackingCategoriesAccountAccountingPeriodPaymentMethod: - "tracking_categories,account,accounting_period,payment_method", - TrackingCategoriesAccountCompany: "tracking_categories,account,company", - TrackingCategoriesAccountCompanyAccountingPeriod: "tracking_categories,account,company,accounting_period", - TrackingCategoriesAccountCompanyAccountingPeriodPaymentMethod: - "tracking_categories,account,company,accounting_period,payment_method", - TrackingCategoriesAccountCompanyPaymentMethod: "tracking_categories,account,company,payment_method", - TrackingCategoriesAccountPaymentMethod: "tracking_categories,account,payment_method", - TrackingCategoriesAccountingPeriod: "tracking_categories,accounting_period", - TrackingCategoriesAccountingPeriodPaymentMethod: "tracking_categories,accounting_period,payment_method", - TrackingCategoriesAppliedToLines: "tracking_categories,applied_to_lines", - TrackingCategoriesAppliedToLinesAccount: "tracking_categories,applied_to_lines,account", - TrackingCategoriesAppliedToLinesAccountAccountingPeriod: - "tracking_categories,applied_to_lines,account,accounting_period", - TrackingCategoriesAppliedToLinesAccountAccountingPeriodPaymentMethod: - "tracking_categories,applied_to_lines,account,accounting_period,payment_method", - TrackingCategoriesAppliedToLinesAccountCompany: "tracking_categories,applied_to_lines,account,company", - TrackingCategoriesAppliedToLinesAccountCompanyAccountingPeriod: - "tracking_categories,applied_to_lines,account,company,accounting_period", - TrackingCategoriesAppliedToLinesAccountCompanyAccountingPeriodPaymentMethod: - "tracking_categories,applied_to_lines,account,company,accounting_period,payment_method", - TrackingCategoriesAppliedToLinesAccountCompanyPaymentMethod: - "tracking_categories,applied_to_lines,account,company,payment_method", - TrackingCategoriesAppliedToLinesAccountPaymentMethod: "tracking_categories,applied_to_lines,account,payment_method", - TrackingCategoriesAppliedToLinesAccountingPeriod: "tracking_categories,applied_to_lines,accounting_period", - TrackingCategoriesAppliedToLinesAccountingPeriodPaymentMethod: - "tracking_categories,applied_to_lines,accounting_period,payment_method", - TrackingCategoriesAppliedToLinesCompany: "tracking_categories,applied_to_lines,company", - TrackingCategoriesAppliedToLinesCompanyAccountingPeriod: - "tracking_categories,applied_to_lines,company,accounting_period", - TrackingCategoriesAppliedToLinesCompanyAccountingPeriodPaymentMethod: - "tracking_categories,applied_to_lines,company,accounting_period,payment_method", - TrackingCategoriesAppliedToLinesCompanyPaymentMethod: "tracking_categories,applied_to_lines,company,payment_method", - TrackingCategoriesAppliedToLinesContact: "tracking_categories,applied_to_lines,contact", - TrackingCategoriesAppliedToLinesContactAccount: "tracking_categories,applied_to_lines,contact,account", - TrackingCategoriesAppliedToLinesContactAccountAccountingPeriod: - "tracking_categories,applied_to_lines,contact,account,accounting_period", - TrackingCategoriesAppliedToLinesContactAccountAccountingPeriodPaymentMethod: - "tracking_categories,applied_to_lines,contact,account,accounting_period,payment_method", - TrackingCategoriesAppliedToLinesContactAccountCompany: - "tracking_categories,applied_to_lines,contact,account,company", - TrackingCategoriesAppliedToLinesContactAccountCompanyAccountingPeriod: - "tracking_categories,applied_to_lines,contact,account,company,accounting_period", - TrackingCategoriesAppliedToLinesContactAccountCompanyAccountingPeriodPaymentMethod: - "tracking_categories,applied_to_lines,contact,account,company,accounting_period,payment_method", - TrackingCategoriesAppliedToLinesContactAccountCompanyPaymentMethod: - "tracking_categories,applied_to_lines,contact,account,company,payment_method", - TrackingCategoriesAppliedToLinesContactAccountPaymentMethod: - "tracking_categories,applied_to_lines,contact,account,payment_method", - TrackingCategoriesAppliedToLinesContactAccountingPeriod: - "tracking_categories,applied_to_lines,contact,accounting_period", - TrackingCategoriesAppliedToLinesContactAccountingPeriodPaymentMethod: - "tracking_categories,applied_to_lines,contact,accounting_period,payment_method", - TrackingCategoriesAppliedToLinesContactCompany: "tracking_categories,applied_to_lines,contact,company", - TrackingCategoriesAppliedToLinesContactCompanyAccountingPeriod: - "tracking_categories,applied_to_lines,contact,company,accounting_period", - TrackingCategoriesAppliedToLinesContactCompanyAccountingPeriodPaymentMethod: - "tracking_categories,applied_to_lines,contact,company,accounting_period,payment_method", - TrackingCategoriesAppliedToLinesContactCompanyPaymentMethod: - "tracking_categories,applied_to_lines,contact,company,payment_method", - TrackingCategoriesAppliedToLinesContactPaymentMethod: "tracking_categories,applied_to_lines,contact,payment_method", - TrackingCategoriesAppliedToLinesPaymentMethod: "tracking_categories,applied_to_lines,payment_method", - TrackingCategoriesCompany: "tracking_categories,company", - TrackingCategoriesCompanyAccountingPeriod: "tracking_categories,company,accounting_period", - TrackingCategoriesCompanyAccountingPeriodPaymentMethod: - "tracking_categories,company,accounting_period,payment_method", - TrackingCategoriesCompanyPaymentMethod: "tracking_categories,company,payment_method", - TrackingCategoriesContact: "tracking_categories,contact", - TrackingCategoriesContactAccount: "tracking_categories,contact,account", - TrackingCategoriesContactAccountAccountingPeriod: "tracking_categories,contact,account,accounting_period", - TrackingCategoriesContactAccountAccountingPeriodPaymentMethod: - "tracking_categories,contact,account,accounting_period,payment_method", - TrackingCategoriesContactAccountCompany: "tracking_categories,contact,account,company", - TrackingCategoriesContactAccountCompanyAccountingPeriod: - "tracking_categories,contact,account,company,accounting_period", - TrackingCategoriesContactAccountCompanyAccountingPeriodPaymentMethod: - "tracking_categories,contact,account,company,accounting_period,payment_method", - TrackingCategoriesContactAccountCompanyPaymentMethod: "tracking_categories,contact,account,company,payment_method", - TrackingCategoriesContactAccountPaymentMethod: "tracking_categories,contact,account,payment_method", - TrackingCategoriesContactAccountingPeriod: "tracking_categories,contact,accounting_period", - TrackingCategoriesContactAccountingPeriodPaymentMethod: - "tracking_categories,contact,accounting_period,payment_method", - TrackingCategoriesContactCompany: "tracking_categories,contact,company", - TrackingCategoriesContactCompanyAccountingPeriod: "tracking_categories,contact,company,accounting_period", - TrackingCategoriesContactCompanyAccountingPeriodPaymentMethod: - "tracking_categories,contact,company,accounting_period,payment_method", - TrackingCategoriesContactCompanyPaymentMethod: "tracking_categories,contact,company,payment_method", - TrackingCategoriesContactPaymentMethod: "tracking_categories,contact,payment_method", - TrackingCategoriesPaymentMethod: "tracking_categories,payment_method", -} as const; -export type PaymentsRetrieveRequestExpand = - (typeof PaymentsRetrieveRequestExpand)[keyof typeof PaymentsRetrieveRequestExpand]; diff --git a/src/api/resources/accounting/resources/payments/types/PaymentsRetrieveRequestExpandItem.ts b/src/api/resources/accounting/resources/payments/types/PaymentsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..8e35f2cf7 --- /dev/null +++ b/src/api/resources/accounting/resources/payments/types/PaymentsRetrieveRequestExpandItem.ts @@ -0,0 +1,13 @@ +// This file was auto-generated by Fern from our API Definition. + +export const PaymentsRetrieveRequestExpandItem = { + Account: "account", + AccountingPeriod: "accounting_period", + AppliedToLines: "applied_to_lines", + Company: "company", + Contact: "contact", + PaymentMethod: "payment_method", + TrackingCategories: "tracking_categories", +} as const; +export type PaymentsRetrieveRequestExpandItem = + (typeof PaymentsRetrieveRequestExpandItem)[keyof typeof PaymentsRetrieveRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/payments/types/index.ts b/src/api/resources/accounting/resources/payments/types/index.ts index 56e4a3693..6f44ec95a 100644 --- a/src/api/resources/accounting/resources/payments/types/index.ts +++ b/src/api/resources/accounting/resources/payments/types/index.ts @@ -1,2 +1,3 @@ -export * from "./PaymentsListRequestExpand"; -export * from "./PaymentsRetrieveRequestExpand"; +export * from "./PaymentsBatchObjectsListRequestExpandItem"; +export * from "./PaymentsListRequestExpandItem"; +export * from "./PaymentsRetrieveRequestExpandItem"; diff --git a/src/api/resources/accounting/resources/projects/client/Client.ts b/src/api/resources/accounting/resources/projects/client/Client.ts index c7b1b6570..1ed7b13d9 100644 --- a/src/api/resources/accounting/resources/projects/client/Client.ts +++ b/src/api/resources/accounting/resources/projects/client/Client.ts @@ -35,7 +35,6 @@ export class ProjectsClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "company", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -45,95 +44,115 @@ export class ProjectsClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.accounting.ProjectsListRequest = {}, requestOptions?: ProjectsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.accounting.ProjectsListRequest = {}, - requestOptions?: ProjectsClient.RequestOptions, - ): Promise> { - const { - companyId, - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - company_id: companyId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: - expand != null - ? serializers.accounting.ProjectsListRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.ProjectsListRequest, + ): Promise> => { + const { + companyId, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + company_id: companyId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.ProjectsListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.accounting.ProjectsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/projects", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedProjectList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/projects", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "accounting/v1/projects", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.accounting.PaginatedProjectList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/accounting/v1/projects"); } /** @@ -145,7 +164,6 @@ export class ProjectsClient { * * @example * await client.accounting.projects.retrieve("id", { - * expand: "company", * includeRemoteData: true, * includeShellData: true * }) @@ -165,12 +183,17 @@ export class ProjectsClient { ): Promise> { const { expand, includeRemoteData, includeShellData } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.accounting.ProjectsRetrieveRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.ProjectsRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.accounting.ProjectsRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, }; diff --git a/src/api/resources/accounting/resources/projects/client/requests/ProjectsListRequest.ts b/src/api/resources/accounting/resources/projects/client/requests/ProjectsListRequest.ts index 99e09809a..9aa8d3e01 100644 --- a/src/api/resources/accounting/resources/projects/client/requests/ProjectsListRequest.ts +++ b/src/api/resources/accounting/resources/projects/client/requests/ProjectsListRequest.ts @@ -9,7 +9,6 @@ import type * as Merge from "../../../../../../index"; * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "company", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -29,7 +28,7 @@ export interface ProjectsListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.ProjectsListRequestExpand; + expand?: Merge.accounting.ProjectsListRequestExpandItem | Merge.accounting.ProjectsListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -40,7 +39,7 @@ export interface ProjectsListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; diff --git a/src/api/resources/accounting/resources/projects/client/requests/ProjectsRetrieveRequest.ts b/src/api/resources/accounting/resources/projects/client/requests/ProjectsRetrieveRequest.ts index 642b36d46..622d7d098 100644 --- a/src/api/resources/accounting/resources/projects/client/requests/ProjectsRetrieveRequest.ts +++ b/src/api/resources/accounting/resources/projects/client/requests/ProjectsRetrieveRequest.ts @@ -5,14 +5,13 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "company", * includeRemoteData: true, * includeShellData: true * } */ export interface ProjectsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.ProjectsRetrieveRequestExpand; + expand?: Merge.accounting.ProjectsRetrieveRequestExpandItem | Merge.accounting.ProjectsRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/accounting/resources/projects/types/ProjectsListRequestExpand.ts b/src/api/resources/accounting/resources/projects/types/ProjectsListRequestExpand.ts deleted file mode 100644 index bebaa2565..000000000 --- a/src/api/resources/accounting/resources/projects/types/ProjectsListRequestExpand.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const ProjectsListRequestExpand = { - Company: "company", - CompanyContact: "company,contact", - Contact: "contact", -} as const; -export type ProjectsListRequestExpand = (typeof ProjectsListRequestExpand)[keyof typeof ProjectsListRequestExpand]; diff --git a/src/api/resources/accounting/resources/projects/types/ProjectsListRequestExpandItem.ts b/src/api/resources/accounting/resources/projects/types/ProjectsListRequestExpandItem.ts new file mode 100644 index 000000000..46cc38b7e --- /dev/null +++ b/src/api/resources/accounting/resources/projects/types/ProjectsListRequestExpandItem.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export const ProjectsListRequestExpandItem = { + Company: "company", + Contact: "contact", +} as const; +export type ProjectsListRequestExpandItem = + (typeof ProjectsListRequestExpandItem)[keyof typeof ProjectsListRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/projects/types/ProjectsRetrieveRequestExpand.ts b/src/api/resources/accounting/resources/projects/types/ProjectsRetrieveRequestExpand.ts deleted file mode 100644 index c02cbb059..000000000 --- a/src/api/resources/accounting/resources/projects/types/ProjectsRetrieveRequestExpand.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const ProjectsRetrieveRequestExpand = { - Company: "company", - CompanyContact: "company,contact", - Contact: "contact", -} as const; -export type ProjectsRetrieveRequestExpand = - (typeof ProjectsRetrieveRequestExpand)[keyof typeof ProjectsRetrieveRequestExpand]; diff --git a/src/api/resources/accounting/resources/projects/types/ProjectsRetrieveRequestExpandItem.ts b/src/api/resources/accounting/resources/projects/types/ProjectsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..243380b90 --- /dev/null +++ b/src/api/resources/accounting/resources/projects/types/ProjectsRetrieveRequestExpandItem.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export const ProjectsRetrieveRequestExpandItem = { + Company: "company", + Contact: "contact", +} as const; +export type ProjectsRetrieveRequestExpandItem = + (typeof ProjectsRetrieveRequestExpandItem)[keyof typeof ProjectsRetrieveRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/projects/types/index.ts b/src/api/resources/accounting/resources/projects/types/index.ts index 5ecd3d28e..ff6eb611a 100644 --- a/src/api/resources/accounting/resources/projects/types/index.ts +++ b/src/api/resources/accounting/resources/projects/types/index.ts @@ -1,2 +1,2 @@ -export * from "./ProjectsListRequestExpand"; -export * from "./ProjectsRetrieveRequestExpand"; +export * from "./ProjectsListRequestExpandItem"; +export * from "./ProjectsRetrieveRequestExpandItem"; diff --git a/src/api/resources/accounting/resources/purchaseOrders/client/Client.ts b/src/api/resources/accounting/resources/purchaseOrders/client/Client.ts index 8d2c2e6d8..21cccf040 100644 --- a/src/api/resources/accounting/resources/purchaseOrders/client/Client.ts +++ b/src/api/resources/accounting/resources/purchaseOrders/client/Client.ts @@ -35,7 +35,6 @@ export class PurchaseOrdersClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "accounting_period", * includeDeletedData: true, * includeRemoteData: true, * includeRemoteFields: true, @@ -50,137 +49,154 @@ export class PurchaseOrdersClient { * showEnumOrigins: "status" * }) */ - public list( + public async list( request: Merge.accounting.PurchaseOrdersListRequest = {}, requestOptions?: PurchaseOrdersClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.accounting.PurchaseOrdersListRequest = {}, - requestOptions?: PurchaseOrdersClient.RequestOptions, - ): Promise> { - const { - companyId, - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeRemoteFields, - includeShellData, - issueDateAfter, - issueDateBefore, - modifiedAfter, - modifiedBefore, - pageSize, - remoteFields, - remoteId, - showEnumOrigins, - } = request; - const _queryParams: Record = { - company_id: companyId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: - expand != null - ? serializers.accounting.PurchaseOrdersListRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - issue_date_after: issueDateAfter?.toISOString(), - issue_date_before: issueDateBefore?.toISOString(), - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_fields: remoteFields != null ? remoteFields : undefined, - remote_id: remoteId, - show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.PurchaseOrdersListRequest, + ): Promise> => { + const { + companyId, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + issueDateAfter, + issueDateBefore, + modifiedAfter, + modifiedBefore, + pageSize, + remoteFields, + remoteId, + showEnumOrigins, + } = request; + const _queryParams: Record = { + company_id: companyId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.PurchaseOrdersListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.accounting.PurchaseOrdersListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + issue_date_after: issueDateAfter?.toISOString(), + issue_date_before: issueDateBefore?.toISOString(), + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_fields: remoteFields != null ? remoteFields : undefined, + remote_id: remoteId, + show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/purchase-orders", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedPurchaseOrderList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/purchase-orders", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "accounting/v1/purchase-orders", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.accounting.PaginatedPurchaseOrderList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/accounting/v1/purchase-orders", - ); } /** * Creates a `PurchaseOrder` object with the given values. * - * @param {Merge.accounting.PurchaseOrderEndpointRequest} request + * @param {Merge.accounting.PurchaseOrdersCreateRequest} request * @param {PurchaseOrdersClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.accounting.purchaseOrders.create({ * isDebugMode: true, * runAsync: true, - * model: {} + * body: { + * model: {} + * } * }) */ public create( - request: Merge.accounting.PurchaseOrderEndpointRequest, + request: Merge.accounting.PurchaseOrdersCreateRequest, requestOptions?: PurchaseOrdersClient.RequestOptions, ): core.HttpResponsePromise { return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); } private async __create( - request: Merge.accounting.PurchaseOrderEndpointRequest, + request: Merge.accounting.PurchaseOrdersCreateRequest, requestOptions?: PurchaseOrdersClient.RequestOptions, ): Promise> { - const { isDebugMode, runAsync, ..._body } = request; + const { isDebugMode, runAsync, body: _body } = request; const _queryParams: Record = { is_debug_mode: isDebugMode, run_async: runAsync, @@ -251,7 +267,6 @@ export class PurchaseOrdersClient { * * @example * await client.accounting.purchaseOrders.retrieve("id", { - * expand: "accounting_period", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true, @@ -275,12 +290,17 @@ export class PurchaseOrdersClient { const { expand, includeRemoteData, includeRemoteFields, includeShellData, remoteFields, showEnumOrigins } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.accounting.PurchaseOrdersRetrieveRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.PurchaseOrdersRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.accounting.PurchaseOrdersRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_remote_fields: includeRemoteFields, include_shell_data: includeShellData, @@ -340,50 +360,92 @@ export class PurchaseOrdersClient { } /** - * Returns a list of `RemoteFieldClass` objects. + * Returns a list of `PurchaseOrder` objects. * - * @param {Merge.accounting.PurchaseOrdersLineItemsRemoteFieldClassesListRequest} request + * @param {string} batch_id + * @param {Merge.accounting.PurchaseOrdersBatchObjectsListRequest} request * @param {PurchaseOrdersClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.purchaseOrders.lineItemsRemoteFieldClassesList({ + * await client.accounting.purchaseOrders.batchObjectsList("batch_id", { + * companyId: "company_id", + * createdAfter: new Date("2024-01-15T09:30:00.000Z"), + * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * includeDeletedData: true, * includeRemoteData: true, + * includeRemoteFields: true, * includeShellData: true, - * isCommonModelField: true, - * isCustom: true, - * pageSize: 1 + * issueDateAfter: new Date("2024-01-15T09:30:00.000Z"), + * issueDateBefore: new Date("2024-01-15T09:30:00.000Z"), + * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * pageSize: 1, + * remoteFields: "status", + * remoteId: "remote_id", + * showEnumOrigins: "status" * }) */ - public lineItemsRemoteFieldClassesList( - request: Merge.accounting.PurchaseOrdersLineItemsRemoteFieldClassesListRequest = {}, + public batchObjectsList( + batch_id: string, + request: Merge.accounting.PurchaseOrdersBatchObjectsListRequest = {}, requestOptions?: PurchaseOrdersClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__lineItemsRemoteFieldClassesList(request, requestOptions)); + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__batchObjectsList(batch_id, request, requestOptions)); } - private async __lineItemsRemoteFieldClassesList( - request: Merge.accounting.PurchaseOrdersLineItemsRemoteFieldClassesListRequest = {}, + private async __batchObjectsList( + batch_id: string, + request: Merge.accounting.PurchaseOrdersBatchObjectsListRequest = {}, requestOptions?: PurchaseOrdersClient.RequestOptions, - ): Promise> { + ): Promise> { const { + companyId, + createdAfter, + createdBefore, cursor, + expand, includeDeletedData, includeRemoteData, + includeRemoteFields, includeShellData, - isCommonModelField, - isCustom, + issueDateAfter, + issueDateBefore, + modifiedAfter, + modifiedBefore, pageSize, + remoteFields, + remoteId, + showEnumOrigins, } = request; const _queryParams: Record = { + company_id: companyId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.PurchaseOrdersBatchObjectsListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.accounting.PurchaseOrdersBatchObjectsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_deleted_data: includeDeletedData, include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, include_shell_data: includeShellData, - is_common_model_field: isCommonModelField, - is_custom: isCustom, + issue_date_after: issueDateAfter?.toISOString(), + issue_date_before: issueDateBefore?.toISOString(), + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), page_size: pageSize, + remote_fields: remoteFields != null ? remoteFields : undefined, + remote_id: remoteId, + show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( @@ -397,7 +459,7 @@ export class PurchaseOrdersClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/purchase-orders/line-items/remote-field-classes", + `accounting/v1/purchase-orders/batch/${core.url.encodePathParam(batch_id)}/objects`, ), method: "GET", headers: _headers, @@ -410,7 +472,7 @@ export class PurchaseOrdersClient { }); if (_response.ok) { return { - data: serializers.accounting.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + data: serializers.accounting.PaginatedPurchaseOrderList.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -433,27 +495,44 @@ export class PurchaseOrdersClient { _response.error, _response.rawResponse, "GET", - "/accounting/v1/purchase-orders/line-items/remote-field-classes", + "/accounting/v1/purchase-orders/batch/{batch_id}/objects", ); } /** - * Returns metadata for `PurchaseOrder` POSTs. + * Creates a `PurchaseOrder` object with the given values. * + * @param {Merge.accounting.PurchaseOrderBulkRequest} request * @param {PurchaseOrdersClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.purchaseOrders.metaPostRetrieve() + * await client.accounting.purchaseOrders.asyncBulkCreate({ + * isDebugMode: true, + * runAsync: true, + * batchItems: [{ + * itemId: "item_id", + * payload: { + * model: {} + * } + * }] + * }) */ - public metaPostRetrieve( + public asyncBulkCreate( + request: Merge.accounting.PurchaseOrderBulkRequest, requestOptions?: PurchaseOrdersClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__asyncBulkCreate(request, requestOptions)); } - private async __metaPostRetrieve( + private async __asyncBulkCreate( + request: Merge.accounting.PurchaseOrderBulkRequest, requestOptions?: PurchaseOrdersClient.RequestOptions, - ): Promise> { + ): Promise> { + const { isDebugMode, runAsync, ..._body } = request; + const _queryParams: Record = { + is_debug_mode: isDebugMode, + run_async: runAsync, + }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, @@ -466,11 +545,16 @@ export class PurchaseOrdersClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/purchase-orders/meta/post", + "accounting/v1/purchase-orders/async/bulk", ), - method: "GET", + method: "POST", headers: _headers, - queryParameters: requestOptions?.queryParams, + contentType: "application/json", + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + requestType: "json", + body: serializers.accounting.PurchaseOrderBulkRequest.jsonOrThrow(_body, { + unrecognizedObjectKeys: "strip", + }), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -479,7 +563,7 @@ export class PurchaseOrdersClient { }); if (_response.ok) { return { - data: serializers.accounting.MetaResponse.parseOrThrow(_response.body, { + data: serializers.accounting.PurchaseOrderResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -501,19 +585,19 @@ export class PurchaseOrdersClient { return handleNonStatusCodeError( _response.error, _response.rawResponse, - "GET", - "/accounting/v1/purchase-orders/meta/post", + "POST", + "/accounting/v1/purchase-orders/async/bulk", ); } /** * Returns a list of `RemoteFieldClass` objects. * - * @param {Merge.accounting.PurchaseOrdersRemoteFieldClassesListRequest} request + * @param {Merge.accounting.PurchaseOrdersLineItemsRemoteFieldClassesListRequest} request * @param {PurchaseOrdersClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.purchaseOrders.remoteFieldClassesList({ + * await client.accounting.purchaseOrders.lineItemsRemoteFieldClassesList({ * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * includeDeletedData: true, * includeRemoteData: true, @@ -523,35 +607,114 @@ export class PurchaseOrdersClient { * pageSize: 1 * }) */ - public remoteFieldClassesList( - request: Merge.accounting.PurchaseOrdersRemoteFieldClassesListRequest = {}, + public async lineItemsRemoteFieldClassesList( + request: Merge.accounting.PurchaseOrdersLineItemsRemoteFieldClassesListRequest = {}, + requestOptions?: PurchaseOrdersClient.RequestOptions, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.PurchaseOrdersLineItemsRemoteFieldClassesListRequest, + ): Promise> => { + const { + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + isCommonModelField, + isCustom, + pageSize, + } = request; + const _queryParams: Record = { + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + is_common_model_field: isCommonModelField, + is_custom: isCustom, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/purchase-orders/line-items/remote-field-classes", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/purchase-orders/line-items/remote-field-classes", + ); + }, + ); + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, + }); + } + + /** + * Returns metadata for `PurchaseOrder` POSTs. + * + * @param {PurchaseOrdersClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.purchaseOrders.metaPostRetrieve() + */ + public metaPostRetrieve( requestOptions?: PurchaseOrdersClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldClassesList(request, requestOptions)); + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); } - private async __remoteFieldClassesList( - request: Merge.accounting.PurchaseOrdersRemoteFieldClassesListRequest = {}, + private async __metaPostRetrieve( requestOptions?: PurchaseOrdersClient.RequestOptions, - ): Promise> { - const { - cursor, - includeDeletedData, - includeRemoteData, - includeShellData, - isCommonModelField, - isCustom, - pageSize, - } = request; - const _queryParams: Record = { - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - is_common_model_field: isCommonModelField, - is_custom: isCustom, - page_size: pageSize, - }; + ): Promise> { const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, @@ -564,11 +727,11 @@ export class PurchaseOrdersClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/purchase-orders/remote-field-classes", + "accounting/v1/purchase-orders/meta/post", ), method: "GET", headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + queryParameters: requestOptions?.queryParams, timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -577,7 +740,7 @@ export class PurchaseOrdersClient { }); if (_response.ok) { return { - data: serializers.accounting.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + data: serializers.accounting.MetaResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -600,7 +763,115 @@ export class PurchaseOrdersClient { _response.error, _response.rawResponse, "GET", - "/accounting/v1/purchase-orders/remote-field-classes", + "/accounting/v1/purchase-orders/meta/post", + ); + } + + /** + * Returns a list of `RemoteFieldClass` objects. + * + * @param {Merge.accounting.PurchaseOrdersRemoteFieldClassesListRequest} request + * @param {PurchaseOrdersClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.purchaseOrders.remoteFieldClassesList({ + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeShellData: true, + * isCommonModelField: true, + * isCustom: true, + * pageSize: 1 + * }) + */ + public async remoteFieldClassesList( + request: Merge.accounting.PurchaseOrdersRemoteFieldClassesListRequest = {}, + requestOptions?: PurchaseOrdersClient.RequestOptions, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.PurchaseOrdersRemoteFieldClassesListRequest, + ): Promise> => { + const { + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + isCommonModelField, + isCustom, + pageSize, + } = request; + const _queryParams: Record = { + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + is_common_model_field: isCommonModelField, + is_custom: isCustom, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/purchase-orders/remote-field-classes", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/purchase-orders/remote-field-classes", + ); + }, ); + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, + }); } } diff --git a/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrderBulkRequest.ts b/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrderBulkRequest.ts new file mode 100644 index 000000000..344827804 --- /dev/null +++ b/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrderBulkRequest.ts @@ -0,0 +1,24 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * batchItems: [{ + * itemId: "item_id", + * payload: { + * model: {} + * } + * }] + * } + */ +export interface PurchaseOrderBulkRequest { + /** 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; + batchItems: Merge.accounting.PurchaseOrderBatchItemRequest[]; +} diff --git a/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrderEndpointRequest.ts b/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrderEndpointRequest.ts deleted file mode 100644 index 14fabeb9c..000000000 --- a/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrderEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface PurchaseOrderEndpointRequest { - /** 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.accounting.PurchaseOrderRequest; -} diff --git a/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrdersBatchObjectsListRequest.ts b/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrdersBatchObjectsListRequest.ts new file mode 100644 index 000000000..278380192 --- /dev/null +++ b/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrdersBatchObjectsListRequest.ts @@ -0,0 +1,63 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * companyId: "company_id", + * createdAfter: new Date("2024-01-15T09:30:00.000Z"), + * createdBefore: new Date("2024-01-15T09:30:00.000Z"), + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeRemoteFields: true, + * includeShellData: true, + * issueDateAfter: new Date("2024-01-15T09:30:00.000Z"), + * issueDateBefore: new Date("2024-01-15T09:30:00.000Z"), + * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * pageSize: 1, + * remoteFields: "status", + * remoteId: "remote_id", + * showEnumOrigins: "status" + * } + */ +export interface PurchaseOrdersBatchObjectsListRequest { + /** If provided, will only return purchase orders for this company. */ + companyId?: string; + /** If provided, will only return objects created after this datetime. */ + createdAfter?: Date; + /** If provided, will only return objects created before this datetime. */ + createdBefore?: Date; + /** The pagination cursor value. */ + cursor?: string; + /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ + expand?: + | Merge.accounting.PurchaseOrdersBatchObjectsListRequestExpandItem + | Merge.accounting.PurchaseOrdersBatchObjectsListRequestExpandItem[]; + /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ + includeDeletedData?: boolean; + /** Whether to include the original data Merge fetched from the third-party to produce these models. */ + includeRemoteData?: boolean; + /** Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. */ + includeRemoteFields?: boolean; + /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ + includeShellData?: boolean; + /** If provided, will only return objects created after this datetime. */ + issueDateAfter?: Date; + /** If provided, will only return objects created before this datetime. */ + issueDateBefore?: Date; + /** If provided, only objects synced by Merge after this date time will be returned. */ + modifiedAfter?: Date; + /** If provided, only objects synced by Merge before this date time will be returned. */ + modifiedBefore?: Date; + /** Number of results to return per page. The maximum limit is 100. */ + pageSize?: number; + /** Deprecated. Use show_enum_origins. */ + remoteFields?: "status"; + /** The API provider's ID for the given object. */ + remoteId?: string; + /** A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) */ + showEnumOrigins?: "status"; +} diff --git a/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrdersCreateRequest.ts b/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrdersCreateRequest.ts new file mode 100644 index 000000000..d16b7d86b --- /dev/null +++ b/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrdersCreateRequest.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * body: { + * model: {} + * } + * } + */ +export interface PurchaseOrdersCreateRequest { + /** 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; + body: Merge.accounting.PurchaseOrderEndpointRequest; +} diff --git a/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrdersLineItemsRemoteFieldClassesListRequest.ts b/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrdersLineItemsRemoteFieldClassesListRequest.ts index 3370f40ab..9b11a26ec 100644 --- a/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrdersLineItemsRemoteFieldClassesListRequest.ts +++ b/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrdersLineItemsRemoteFieldClassesListRequest.ts @@ -25,6 +25,6 @@ export interface PurchaseOrdersLineItemsRemoteFieldClassesListRequest { isCommonModelField?: boolean; /** If provided, will only return remote fields classes with this is_custom value */ isCustom?: boolean; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; } diff --git a/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrdersListRequest.ts b/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrdersListRequest.ts index fe219c655..29d394647 100644 --- a/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrdersListRequest.ts +++ b/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrdersListRequest.ts @@ -9,7 +9,6 @@ import type * as Merge from "../../../../../../index"; * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "accounting_period", * includeDeletedData: true, * includeRemoteData: true, * includeRemoteFields: true, @@ -34,7 +33,9 @@ export interface PurchaseOrdersListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.PurchaseOrdersListRequestExpand; + expand?: + | Merge.accounting.PurchaseOrdersListRequestExpandItem + | Merge.accounting.PurchaseOrdersListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -51,7 +52,7 @@ export interface PurchaseOrdersListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** Deprecated. Use show_enum_origins. */ remoteFields?: "status"; diff --git a/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrdersRemoteFieldClassesListRequest.ts b/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrdersRemoteFieldClassesListRequest.ts index 040b08f4e..c1f59e1db 100644 --- a/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrdersRemoteFieldClassesListRequest.ts +++ b/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrdersRemoteFieldClassesListRequest.ts @@ -25,6 +25,6 @@ export interface PurchaseOrdersRemoteFieldClassesListRequest { isCommonModelField?: boolean; /** If provided, will only return remote fields classes with this is_custom value */ isCustom?: boolean; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; } diff --git a/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrdersRetrieveRequest.ts b/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrdersRetrieveRequest.ts index 8f6d92e51..99f4715e6 100644 --- a/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrdersRetrieveRequest.ts +++ b/src/api/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrdersRetrieveRequest.ts @@ -5,7 +5,6 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "accounting_period", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true, @@ -15,7 +14,9 @@ import type * as Merge from "../../../../../../index"; */ export interface PurchaseOrdersRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.PurchaseOrdersRetrieveRequestExpand; + expand?: + | Merge.accounting.PurchaseOrdersRetrieveRequestExpandItem + | Merge.accounting.PurchaseOrdersRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. */ diff --git a/src/api/resources/accounting/resources/purchaseOrders/client/requests/index.ts b/src/api/resources/accounting/resources/purchaseOrders/client/requests/index.ts index 359e301a5..6a2b31b25 100644 --- a/src/api/resources/accounting/resources/purchaseOrders/client/requests/index.ts +++ b/src/api/resources/accounting/resources/purchaseOrders/client/requests/index.ts @@ -1,4 +1,6 @@ -export type { PurchaseOrderEndpointRequest } from "./PurchaseOrderEndpointRequest"; +export type { PurchaseOrderBulkRequest } from "./PurchaseOrderBulkRequest"; +export type { PurchaseOrdersBatchObjectsListRequest } from "./PurchaseOrdersBatchObjectsListRequest"; +export type { PurchaseOrdersCreateRequest } from "./PurchaseOrdersCreateRequest"; export type { PurchaseOrdersLineItemsRemoteFieldClassesListRequest } from "./PurchaseOrdersLineItemsRemoteFieldClassesListRequest"; export type { PurchaseOrdersListRequest } from "./PurchaseOrdersListRequest"; export type { PurchaseOrdersRemoteFieldClassesListRequest } from "./PurchaseOrdersRemoteFieldClassesListRequest"; diff --git a/src/api/resources/accounting/resources/purchaseOrders/types/PurchaseOrdersBatchObjectsListRequestExpandItem.ts b/src/api/resources/accounting/resources/purchaseOrders/types/PurchaseOrdersBatchObjectsListRequestExpandItem.ts new file mode 100644 index 000000000..792549478 --- /dev/null +++ b/src/api/resources/accounting/resources/purchaseOrders/types/PurchaseOrdersBatchObjectsListRequestExpandItem.ts @@ -0,0 +1,13 @@ +// This file was auto-generated by Fern from our API Definition. + +export const PurchaseOrdersBatchObjectsListRequestExpandItem = { + AccountingPeriod: "accounting_period", + Company: "company", + DeliveryAddress: "delivery_address", + LineItems: "line_items", + PaymentTerm: "payment_term", + TrackingCategories: "tracking_categories", + Vendor: "vendor", +} as const; +export type PurchaseOrdersBatchObjectsListRequestExpandItem = + (typeof PurchaseOrdersBatchObjectsListRequestExpandItem)[keyof typeof PurchaseOrdersBatchObjectsListRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/purchaseOrders/types/PurchaseOrdersListRequestExpand.ts b/src/api/resources/accounting/resources/purchaseOrders/types/PurchaseOrdersListRequestExpand.ts deleted file mode 100644 index d5b6fadc5..000000000 --- a/src/api/resources/accounting/resources/purchaseOrders/types/PurchaseOrdersListRequestExpand.ts +++ /dev/null @@ -1,165 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const PurchaseOrdersListRequestExpand = { - AccountingPeriod: "accounting_period", - AccountingPeriodPaymentTerm: "accounting_period,payment_term", - Company: "company", - CompanyAccountingPeriod: "company,accounting_period", - CompanyAccountingPeriodPaymentTerm: "company,accounting_period,payment_term", - CompanyPaymentTerm: "company,payment_term", - DeliveryAddress: "delivery_address", - DeliveryAddressAccountingPeriod: "delivery_address,accounting_period", - DeliveryAddressAccountingPeriodPaymentTerm: "delivery_address,accounting_period,payment_term", - DeliveryAddressCompany: "delivery_address,company", - DeliveryAddressCompanyAccountingPeriod: "delivery_address,company,accounting_period", - DeliveryAddressCompanyAccountingPeriodPaymentTerm: "delivery_address,company,accounting_period,payment_term", - DeliveryAddressCompanyPaymentTerm: "delivery_address,company,payment_term", - DeliveryAddressPaymentTerm: "delivery_address,payment_term", - DeliveryAddressVendor: "delivery_address,vendor", - DeliveryAddressVendorAccountingPeriod: "delivery_address,vendor,accounting_period", - DeliveryAddressVendorAccountingPeriodPaymentTerm: "delivery_address,vendor,accounting_period,payment_term", - DeliveryAddressVendorCompany: "delivery_address,vendor,company", - DeliveryAddressVendorCompanyAccountingPeriod: "delivery_address,vendor,company,accounting_period", - DeliveryAddressVendorCompanyAccountingPeriodPaymentTerm: - "delivery_address,vendor,company,accounting_period,payment_term", - DeliveryAddressVendorCompanyPaymentTerm: "delivery_address,vendor,company,payment_term", - DeliveryAddressVendorPaymentTerm: "delivery_address,vendor,payment_term", - LineItems: "line_items", - LineItemsAccountingPeriod: "line_items,accounting_period", - LineItemsAccountingPeriodPaymentTerm: "line_items,accounting_period,payment_term", - LineItemsCompany: "line_items,company", - LineItemsCompanyAccountingPeriod: "line_items,company,accounting_period", - LineItemsCompanyAccountingPeriodPaymentTerm: "line_items,company,accounting_period,payment_term", - LineItemsCompanyPaymentTerm: "line_items,company,payment_term", - LineItemsDeliveryAddress: "line_items,delivery_address", - LineItemsDeliveryAddressAccountingPeriod: "line_items,delivery_address,accounting_period", - LineItemsDeliveryAddressAccountingPeriodPaymentTerm: "line_items,delivery_address,accounting_period,payment_term", - LineItemsDeliveryAddressCompany: "line_items,delivery_address,company", - LineItemsDeliveryAddressCompanyAccountingPeriod: "line_items,delivery_address,company,accounting_period", - LineItemsDeliveryAddressCompanyAccountingPeriodPaymentTerm: - "line_items,delivery_address,company,accounting_period,payment_term", - LineItemsDeliveryAddressCompanyPaymentTerm: "line_items,delivery_address,company,payment_term", - LineItemsDeliveryAddressPaymentTerm: "line_items,delivery_address,payment_term", - LineItemsDeliveryAddressVendor: "line_items,delivery_address,vendor", - LineItemsDeliveryAddressVendorAccountingPeriod: "line_items,delivery_address,vendor,accounting_period", - LineItemsDeliveryAddressVendorAccountingPeriodPaymentTerm: - "line_items,delivery_address,vendor,accounting_period,payment_term", - LineItemsDeliveryAddressVendorCompany: "line_items,delivery_address,vendor,company", - LineItemsDeliveryAddressVendorCompanyAccountingPeriod: - "line_items,delivery_address,vendor,company,accounting_period", - LineItemsDeliveryAddressVendorCompanyAccountingPeriodPaymentTerm: - "line_items,delivery_address,vendor,company,accounting_period,payment_term", - LineItemsDeliveryAddressVendorCompanyPaymentTerm: "line_items,delivery_address,vendor,company,payment_term", - LineItemsDeliveryAddressVendorPaymentTerm: "line_items,delivery_address,vendor,payment_term", - LineItemsPaymentTerm: "line_items,payment_term", - LineItemsTrackingCategories: "line_items,tracking_categories", - LineItemsTrackingCategoriesAccountingPeriod: "line_items,tracking_categories,accounting_period", - LineItemsTrackingCategoriesAccountingPeriodPaymentTerm: - "line_items,tracking_categories,accounting_period,payment_term", - LineItemsTrackingCategoriesCompany: "line_items,tracking_categories,company", - LineItemsTrackingCategoriesCompanyAccountingPeriod: "line_items,tracking_categories,company,accounting_period", - LineItemsTrackingCategoriesCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,company,accounting_period,payment_term", - LineItemsTrackingCategoriesCompanyPaymentTerm: "line_items,tracking_categories,company,payment_term", - LineItemsTrackingCategoriesDeliveryAddress: "line_items,tracking_categories,delivery_address", - LineItemsTrackingCategoriesDeliveryAddressAccountingPeriod: - "line_items,tracking_categories,delivery_address,accounting_period", - LineItemsTrackingCategoriesDeliveryAddressAccountingPeriodPaymentTerm: - "line_items,tracking_categories,delivery_address,accounting_period,payment_term", - LineItemsTrackingCategoriesDeliveryAddressCompany: "line_items,tracking_categories,delivery_address,company", - LineItemsTrackingCategoriesDeliveryAddressCompanyAccountingPeriod: - "line_items,tracking_categories,delivery_address,company,accounting_period", - LineItemsTrackingCategoriesDeliveryAddressCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,delivery_address,company,accounting_period,payment_term", - LineItemsTrackingCategoriesDeliveryAddressCompanyPaymentTerm: - "line_items,tracking_categories,delivery_address,company,payment_term", - LineItemsTrackingCategoriesDeliveryAddressPaymentTerm: - "line_items,tracking_categories,delivery_address,payment_term", - LineItemsTrackingCategoriesDeliveryAddressVendor: "line_items,tracking_categories,delivery_address,vendor", - LineItemsTrackingCategoriesDeliveryAddressVendorAccountingPeriod: - "line_items,tracking_categories,delivery_address,vendor,accounting_period", - LineItemsTrackingCategoriesDeliveryAddressVendorAccountingPeriodPaymentTerm: - "line_items,tracking_categories,delivery_address,vendor,accounting_period,payment_term", - LineItemsTrackingCategoriesDeliveryAddressVendorCompany: - "line_items,tracking_categories,delivery_address,vendor,company", - LineItemsTrackingCategoriesDeliveryAddressVendorCompanyAccountingPeriod: - "line_items,tracking_categories,delivery_address,vendor,company,accounting_period", - LineItemsTrackingCategoriesDeliveryAddressVendorCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,delivery_address,vendor,company,accounting_period,payment_term", - LineItemsTrackingCategoriesDeliveryAddressVendorCompanyPaymentTerm: - "line_items,tracking_categories,delivery_address,vendor,company,payment_term", - LineItemsTrackingCategoriesDeliveryAddressVendorPaymentTerm: - "line_items,tracking_categories,delivery_address,vendor,payment_term", - LineItemsTrackingCategoriesPaymentTerm: "line_items,tracking_categories,payment_term", - LineItemsTrackingCategoriesVendor: "line_items,tracking_categories,vendor", - LineItemsTrackingCategoriesVendorAccountingPeriod: "line_items,tracking_categories,vendor,accounting_period", - LineItemsTrackingCategoriesVendorAccountingPeriodPaymentTerm: - "line_items,tracking_categories,vendor,accounting_period,payment_term", - LineItemsTrackingCategoriesVendorCompany: "line_items,tracking_categories,vendor,company", - LineItemsTrackingCategoriesVendorCompanyAccountingPeriod: - "line_items,tracking_categories,vendor,company,accounting_period", - LineItemsTrackingCategoriesVendorCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,vendor,company,accounting_period,payment_term", - LineItemsTrackingCategoriesVendorCompanyPaymentTerm: "line_items,tracking_categories,vendor,company,payment_term", - LineItemsTrackingCategoriesVendorPaymentTerm: "line_items,tracking_categories,vendor,payment_term", - LineItemsVendor: "line_items,vendor", - LineItemsVendorAccountingPeriod: "line_items,vendor,accounting_period", - LineItemsVendorAccountingPeriodPaymentTerm: "line_items,vendor,accounting_period,payment_term", - LineItemsVendorCompany: "line_items,vendor,company", - LineItemsVendorCompanyAccountingPeriod: "line_items,vendor,company,accounting_period", - LineItemsVendorCompanyAccountingPeriodPaymentTerm: "line_items,vendor,company,accounting_period,payment_term", - LineItemsVendorCompanyPaymentTerm: "line_items,vendor,company,payment_term", - LineItemsVendorPaymentTerm: "line_items,vendor,payment_term", - PaymentTerm: "payment_term", - TrackingCategories: "tracking_categories", - TrackingCategoriesAccountingPeriod: "tracking_categories,accounting_period", - TrackingCategoriesAccountingPeriodPaymentTerm: "tracking_categories,accounting_period,payment_term", - TrackingCategoriesCompany: "tracking_categories,company", - TrackingCategoriesCompanyAccountingPeriod: "tracking_categories,company,accounting_period", - TrackingCategoriesCompanyAccountingPeriodPaymentTerm: "tracking_categories,company,accounting_period,payment_term", - TrackingCategoriesCompanyPaymentTerm: "tracking_categories,company,payment_term", - TrackingCategoriesDeliveryAddress: "tracking_categories,delivery_address", - TrackingCategoriesDeliveryAddressAccountingPeriod: "tracking_categories,delivery_address,accounting_period", - TrackingCategoriesDeliveryAddressAccountingPeriodPaymentTerm: - "tracking_categories,delivery_address,accounting_period,payment_term", - TrackingCategoriesDeliveryAddressCompany: "tracking_categories,delivery_address,company", - TrackingCategoriesDeliveryAddressCompanyAccountingPeriod: - "tracking_categories,delivery_address,company,accounting_period", - TrackingCategoriesDeliveryAddressCompanyAccountingPeriodPaymentTerm: - "tracking_categories,delivery_address,company,accounting_period,payment_term", - TrackingCategoriesDeliveryAddressCompanyPaymentTerm: "tracking_categories,delivery_address,company,payment_term", - TrackingCategoriesDeliveryAddressPaymentTerm: "tracking_categories,delivery_address,payment_term", - TrackingCategoriesDeliveryAddressVendor: "tracking_categories,delivery_address,vendor", - TrackingCategoriesDeliveryAddressVendorAccountingPeriod: - "tracking_categories,delivery_address,vendor,accounting_period", - TrackingCategoriesDeliveryAddressVendorAccountingPeriodPaymentTerm: - "tracking_categories,delivery_address,vendor,accounting_period,payment_term", - TrackingCategoriesDeliveryAddressVendorCompany: "tracking_categories,delivery_address,vendor,company", - TrackingCategoriesDeliveryAddressVendorCompanyAccountingPeriod: - "tracking_categories,delivery_address,vendor,company,accounting_period", - TrackingCategoriesDeliveryAddressVendorCompanyAccountingPeriodPaymentTerm: - "tracking_categories,delivery_address,vendor,company,accounting_period,payment_term", - TrackingCategoriesDeliveryAddressVendorCompanyPaymentTerm: - "tracking_categories,delivery_address,vendor,company,payment_term", - TrackingCategoriesDeliveryAddressVendorPaymentTerm: "tracking_categories,delivery_address,vendor,payment_term", - TrackingCategoriesPaymentTerm: "tracking_categories,payment_term", - TrackingCategoriesVendor: "tracking_categories,vendor", - TrackingCategoriesVendorAccountingPeriod: "tracking_categories,vendor,accounting_period", - TrackingCategoriesVendorAccountingPeriodPaymentTerm: "tracking_categories,vendor,accounting_period,payment_term", - TrackingCategoriesVendorCompany: "tracking_categories,vendor,company", - TrackingCategoriesVendorCompanyAccountingPeriod: "tracking_categories,vendor,company,accounting_period", - TrackingCategoriesVendorCompanyAccountingPeriodPaymentTerm: - "tracking_categories,vendor,company,accounting_period,payment_term", - TrackingCategoriesVendorCompanyPaymentTerm: "tracking_categories,vendor,company,payment_term", - TrackingCategoriesVendorPaymentTerm: "tracking_categories,vendor,payment_term", - Vendor: "vendor", - VendorAccountingPeriod: "vendor,accounting_period", - VendorAccountingPeriodPaymentTerm: "vendor,accounting_period,payment_term", - VendorCompany: "vendor,company", - VendorCompanyAccountingPeriod: "vendor,company,accounting_period", - VendorCompanyAccountingPeriodPaymentTerm: "vendor,company,accounting_period,payment_term", - VendorCompanyPaymentTerm: "vendor,company,payment_term", - VendorPaymentTerm: "vendor,payment_term", -} as const; -export type PurchaseOrdersListRequestExpand = - (typeof PurchaseOrdersListRequestExpand)[keyof typeof PurchaseOrdersListRequestExpand]; diff --git a/src/api/resources/accounting/resources/purchaseOrders/types/PurchaseOrdersListRequestExpandItem.ts b/src/api/resources/accounting/resources/purchaseOrders/types/PurchaseOrdersListRequestExpandItem.ts new file mode 100644 index 000000000..ac6cb57f9 --- /dev/null +++ b/src/api/resources/accounting/resources/purchaseOrders/types/PurchaseOrdersListRequestExpandItem.ts @@ -0,0 +1,13 @@ +// This file was auto-generated by Fern from our API Definition. + +export const PurchaseOrdersListRequestExpandItem = { + AccountingPeriod: "accounting_period", + Company: "company", + DeliveryAddress: "delivery_address", + LineItems: "line_items", + PaymentTerm: "payment_term", + TrackingCategories: "tracking_categories", + Vendor: "vendor", +} as const; +export type PurchaseOrdersListRequestExpandItem = + (typeof PurchaseOrdersListRequestExpandItem)[keyof typeof PurchaseOrdersListRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/purchaseOrders/types/PurchaseOrdersRetrieveRequestExpand.ts b/src/api/resources/accounting/resources/purchaseOrders/types/PurchaseOrdersRetrieveRequestExpand.ts deleted file mode 100644 index 27f1410b3..000000000 --- a/src/api/resources/accounting/resources/purchaseOrders/types/PurchaseOrdersRetrieveRequestExpand.ts +++ /dev/null @@ -1,165 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const PurchaseOrdersRetrieveRequestExpand = { - AccountingPeriod: "accounting_period", - AccountingPeriodPaymentTerm: "accounting_period,payment_term", - Company: "company", - CompanyAccountingPeriod: "company,accounting_period", - CompanyAccountingPeriodPaymentTerm: "company,accounting_period,payment_term", - CompanyPaymentTerm: "company,payment_term", - DeliveryAddress: "delivery_address", - DeliveryAddressAccountingPeriod: "delivery_address,accounting_period", - DeliveryAddressAccountingPeriodPaymentTerm: "delivery_address,accounting_period,payment_term", - DeliveryAddressCompany: "delivery_address,company", - DeliveryAddressCompanyAccountingPeriod: "delivery_address,company,accounting_period", - DeliveryAddressCompanyAccountingPeriodPaymentTerm: "delivery_address,company,accounting_period,payment_term", - DeliveryAddressCompanyPaymentTerm: "delivery_address,company,payment_term", - DeliveryAddressPaymentTerm: "delivery_address,payment_term", - DeliveryAddressVendor: "delivery_address,vendor", - DeliveryAddressVendorAccountingPeriod: "delivery_address,vendor,accounting_period", - DeliveryAddressVendorAccountingPeriodPaymentTerm: "delivery_address,vendor,accounting_period,payment_term", - DeliveryAddressVendorCompany: "delivery_address,vendor,company", - DeliveryAddressVendorCompanyAccountingPeriod: "delivery_address,vendor,company,accounting_period", - DeliveryAddressVendorCompanyAccountingPeriodPaymentTerm: - "delivery_address,vendor,company,accounting_period,payment_term", - DeliveryAddressVendorCompanyPaymentTerm: "delivery_address,vendor,company,payment_term", - DeliveryAddressVendorPaymentTerm: "delivery_address,vendor,payment_term", - LineItems: "line_items", - LineItemsAccountingPeriod: "line_items,accounting_period", - LineItemsAccountingPeriodPaymentTerm: "line_items,accounting_period,payment_term", - LineItemsCompany: "line_items,company", - LineItemsCompanyAccountingPeriod: "line_items,company,accounting_period", - LineItemsCompanyAccountingPeriodPaymentTerm: "line_items,company,accounting_period,payment_term", - LineItemsCompanyPaymentTerm: "line_items,company,payment_term", - LineItemsDeliveryAddress: "line_items,delivery_address", - LineItemsDeliveryAddressAccountingPeriod: "line_items,delivery_address,accounting_period", - LineItemsDeliveryAddressAccountingPeriodPaymentTerm: "line_items,delivery_address,accounting_period,payment_term", - LineItemsDeliveryAddressCompany: "line_items,delivery_address,company", - LineItemsDeliveryAddressCompanyAccountingPeriod: "line_items,delivery_address,company,accounting_period", - LineItemsDeliveryAddressCompanyAccountingPeriodPaymentTerm: - "line_items,delivery_address,company,accounting_period,payment_term", - LineItemsDeliveryAddressCompanyPaymentTerm: "line_items,delivery_address,company,payment_term", - LineItemsDeliveryAddressPaymentTerm: "line_items,delivery_address,payment_term", - LineItemsDeliveryAddressVendor: "line_items,delivery_address,vendor", - LineItemsDeliveryAddressVendorAccountingPeriod: "line_items,delivery_address,vendor,accounting_period", - LineItemsDeliveryAddressVendorAccountingPeriodPaymentTerm: - "line_items,delivery_address,vendor,accounting_period,payment_term", - LineItemsDeliveryAddressVendorCompany: "line_items,delivery_address,vendor,company", - LineItemsDeliveryAddressVendorCompanyAccountingPeriod: - "line_items,delivery_address,vendor,company,accounting_period", - LineItemsDeliveryAddressVendorCompanyAccountingPeriodPaymentTerm: - "line_items,delivery_address,vendor,company,accounting_period,payment_term", - LineItemsDeliveryAddressVendorCompanyPaymentTerm: "line_items,delivery_address,vendor,company,payment_term", - LineItemsDeliveryAddressVendorPaymentTerm: "line_items,delivery_address,vendor,payment_term", - LineItemsPaymentTerm: "line_items,payment_term", - LineItemsTrackingCategories: "line_items,tracking_categories", - LineItemsTrackingCategoriesAccountingPeriod: "line_items,tracking_categories,accounting_period", - LineItemsTrackingCategoriesAccountingPeriodPaymentTerm: - "line_items,tracking_categories,accounting_period,payment_term", - LineItemsTrackingCategoriesCompany: "line_items,tracking_categories,company", - LineItemsTrackingCategoriesCompanyAccountingPeriod: "line_items,tracking_categories,company,accounting_period", - LineItemsTrackingCategoriesCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,company,accounting_period,payment_term", - LineItemsTrackingCategoriesCompanyPaymentTerm: "line_items,tracking_categories,company,payment_term", - LineItemsTrackingCategoriesDeliveryAddress: "line_items,tracking_categories,delivery_address", - LineItemsTrackingCategoriesDeliveryAddressAccountingPeriod: - "line_items,tracking_categories,delivery_address,accounting_period", - LineItemsTrackingCategoriesDeliveryAddressAccountingPeriodPaymentTerm: - "line_items,tracking_categories,delivery_address,accounting_period,payment_term", - LineItemsTrackingCategoriesDeliveryAddressCompany: "line_items,tracking_categories,delivery_address,company", - LineItemsTrackingCategoriesDeliveryAddressCompanyAccountingPeriod: - "line_items,tracking_categories,delivery_address,company,accounting_period", - LineItemsTrackingCategoriesDeliveryAddressCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,delivery_address,company,accounting_period,payment_term", - LineItemsTrackingCategoriesDeliveryAddressCompanyPaymentTerm: - "line_items,tracking_categories,delivery_address,company,payment_term", - LineItemsTrackingCategoriesDeliveryAddressPaymentTerm: - "line_items,tracking_categories,delivery_address,payment_term", - LineItemsTrackingCategoriesDeliveryAddressVendor: "line_items,tracking_categories,delivery_address,vendor", - LineItemsTrackingCategoriesDeliveryAddressVendorAccountingPeriod: - "line_items,tracking_categories,delivery_address,vendor,accounting_period", - LineItemsTrackingCategoriesDeliveryAddressVendorAccountingPeriodPaymentTerm: - "line_items,tracking_categories,delivery_address,vendor,accounting_period,payment_term", - LineItemsTrackingCategoriesDeliveryAddressVendorCompany: - "line_items,tracking_categories,delivery_address,vendor,company", - LineItemsTrackingCategoriesDeliveryAddressVendorCompanyAccountingPeriod: - "line_items,tracking_categories,delivery_address,vendor,company,accounting_period", - LineItemsTrackingCategoriesDeliveryAddressVendorCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,delivery_address,vendor,company,accounting_period,payment_term", - LineItemsTrackingCategoriesDeliveryAddressVendorCompanyPaymentTerm: - "line_items,tracking_categories,delivery_address,vendor,company,payment_term", - LineItemsTrackingCategoriesDeliveryAddressVendorPaymentTerm: - "line_items,tracking_categories,delivery_address,vendor,payment_term", - LineItemsTrackingCategoriesPaymentTerm: "line_items,tracking_categories,payment_term", - LineItemsTrackingCategoriesVendor: "line_items,tracking_categories,vendor", - LineItemsTrackingCategoriesVendorAccountingPeriod: "line_items,tracking_categories,vendor,accounting_period", - LineItemsTrackingCategoriesVendorAccountingPeriodPaymentTerm: - "line_items,tracking_categories,vendor,accounting_period,payment_term", - LineItemsTrackingCategoriesVendorCompany: "line_items,tracking_categories,vendor,company", - LineItemsTrackingCategoriesVendorCompanyAccountingPeriod: - "line_items,tracking_categories,vendor,company,accounting_period", - LineItemsTrackingCategoriesVendorCompanyAccountingPeriodPaymentTerm: - "line_items,tracking_categories,vendor,company,accounting_period,payment_term", - LineItemsTrackingCategoriesVendorCompanyPaymentTerm: "line_items,tracking_categories,vendor,company,payment_term", - LineItemsTrackingCategoriesVendorPaymentTerm: "line_items,tracking_categories,vendor,payment_term", - LineItemsVendor: "line_items,vendor", - LineItemsVendorAccountingPeriod: "line_items,vendor,accounting_period", - LineItemsVendorAccountingPeriodPaymentTerm: "line_items,vendor,accounting_period,payment_term", - LineItemsVendorCompany: "line_items,vendor,company", - LineItemsVendorCompanyAccountingPeriod: "line_items,vendor,company,accounting_period", - LineItemsVendorCompanyAccountingPeriodPaymentTerm: "line_items,vendor,company,accounting_period,payment_term", - LineItemsVendorCompanyPaymentTerm: "line_items,vendor,company,payment_term", - LineItemsVendorPaymentTerm: "line_items,vendor,payment_term", - PaymentTerm: "payment_term", - TrackingCategories: "tracking_categories", - TrackingCategoriesAccountingPeriod: "tracking_categories,accounting_period", - TrackingCategoriesAccountingPeriodPaymentTerm: "tracking_categories,accounting_period,payment_term", - TrackingCategoriesCompany: "tracking_categories,company", - TrackingCategoriesCompanyAccountingPeriod: "tracking_categories,company,accounting_period", - TrackingCategoriesCompanyAccountingPeriodPaymentTerm: "tracking_categories,company,accounting_period,payment_term", - TrackingCategoriesCompanyPaymentTerm: "tracking_categories,company,payment_term", - TrackingCategoriesDeliveryAddress: "tracking_categories,delivery_address", - TrackingCategoriesDeliveryAddressAccountingPeriod: "tracking_categories,delivery_address,accounting_period", - TrackingCategoriesDeliveryAddressAccountingPeriodPaymentTerm: - "tracking_categories,delivery_address,accounting_period,payment_term", - TrackingCategoriesDeliveryAddressCompany: "tracking_categories,delivery_address,company", - TrackingCategoriesDeliveryAddressCompanyAccountingPeriod: - "tracking_categories,delivery_address,company,accounting_period", - TrackingCategoriesDeliveryAddressCompanyAccountingPeriodPaymentTerm: - "tracking_categories,delivery_address,company,accounting_period,payment_term", - TrackingCategoriesDeliveryAddressCompanyPaymentTerm: "tracking_categories,delivery_address,company,payment_term", - TrackingCategoriesDeliveryAddressPaymentTerm: "tracking_categories,delivery_address,payment_term", - TrackingCategoriesDeliveryAddressVendor: "tracking_categories,delivery_address,vendor", - TrackingCategoriesDeliveryAddressVendorAccountingPeriod: - "tracking_categories,delivery_address,vendor,accounting_period", - TrackingCategoriesDeliveryAddressVendorAccountingPeriodPaymentTerm: - "tracking_categories,delivery_address,vendor,accounting_period,payment_term", - TrackingCategoriesDeliveryAddressVendorCompany: "tracking_categories,delivery_address,vendor,company", - TrackingCategoriesDeliveryAddressVendorCompanyAccountingPeriod: - "tracking_categories,delivery_address,vendor,company,accounting_period", - TrackingCategoriesDeliveryAddressVendorCompanyAccountingPeriodPaymentTerm: - "tracking_categories,delivery_address,vendor,company,accounting_period,payment_term", - TrackingCategoriesDeliveryAddressVendorCompanyPaymentTerm: - "tracking_categories,delivery_address,vendor,company,payment_term", - TrackingCategoriesDeliveryAddressVendorPaymentTerm: "tracking_categories,delivery_address,vendor,payment_term", - TrackingCategoriesPaymentTerm: "tracking_categories,payment_term", - TrackingCategoriesVendor: "tracking_categories,vendor", - TrackingCategoriesVendorAccountingPeriod: "tracking_categories,vendor,accounting_period", - TrackingCategoriesVendorAccountingPeriodPaymentTerm: "tracking_categories,vendor,accounting_period,payment_term", - TrackingCategoriesVendorCompany: "tracking_categories,vendor,company", - TrackingCategoriesVendorCompanyAccountingPeriod: "tracking_categories,vendor,company,accounting_period", - TrackingCategoriesVendorCompanyAccountingPeriodPaymentTerm: - "tracking_categories,vendor,company,accounting_period,payment_term", - TrackingCategoriesVendorCompanyPaymentTerm: "tracking_categories,vendor,company,payment_term", - TrackingCategoriesVendorPaymentTerm: "tracking_categories,vendor,payment_term", - Vendor: "vendor", - VendorAccountingPeriod: "vendor,accounting_period", - VendorAccountingPeriodPaymentTerm: "vendor,accounting_period,payment_term", - VendorCompany: "vendor,company", - VendorCompanyAccountingPeriod: "vendor,company,accounting_period", - VendorCompanyAccountingPeriodPaymentTerm: "vendor,company,accounting_period,payment_term", - VendorCompanyPaymentTerm: "vendor,company,payment_term", - VendorPaymentTerm: "vendor,payment_term", -} as const; -export type PurchaseOrdersRetrieveRequestExpand = - (typeof PurchaseOrdersRetrieveRequestExpand)[keyof typeof PurchaseOrdersRetrieveRequestExpand]; diff --git a/src/api/resources/accounting/resources/purchaseOrders/types/PurchaseOrdersRetrieveRequestExpandItem.ts b/src/api/resources/accounting/resources/purchaseOrders/types/PurchaseOrdersRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..9360fbad9 --- /dev/null +++ b/src/api/resources/accounting/resources/purchaseOrders/types/PurchaseOrdersRetrieveRequestExpandItem.ts @@ -0,0 +1,13 @@ +// This file was auto-generated by Fern from our API Definition. + +export const PurchaseOrdersRetrieveRequestExpandItem = { + AccountingPeriod: "accounting_period", + Company: "company", + DeliveryAddress: "delivery_address", + LineItems: "line_items", + PaymentTerm: "payment_term", + TrackingCategories: "tracking_categories", + Vendor: "vendor", +} as const; +export type PurchaseOrdersRetrieveRequestExpandItem = + (typeof PurchaseOrdersRetrieveRequestExpandItem)[keyof typeof PurchaseOrdersRetrieveRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/purchaseOrders/types/index.ts b/src/api/resources/accounting/resources/purchaseOrders/types/index.ts index fd510edde..ec095dff3 100644 --- a/src/api/resources/accounting/resources/purchaseOrders/types/index.ts +++ b/src/api/resources/accounting/resources/purchaseOrders/types/index.ts @@ -1,2 +1,3 @@ -export * from "./PurchaseOrdersListRequestExpand"; -export * from "./PurchaseOrdersRetrieveRequestExpand"; +export * from "./PurchaseOrdersBatchObjectsListRequestExpandItem"; +export * from "./PurchaseOrdersListRequestExpandItem"; +export * from "./PurchaseOrdersRetrieveRequestExpandItem"; diff --git a/src/api/resources/accounting/resources/salesOrders/client/Client.ts b/src/api/resources/accounting/resources/salesOrders/client/Client.ts new file mode 100644 index 000000000..e313dc22b --- /dev/null +++ b/src/api/resources/accounting/resources/salesOrders/client/Client.ts @@ -0,0 +1,870 @@ +// This file was auto-generated by Fern from our API Definition. + +import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient"; +import { type NormalizedClientOptionsWithAuth, normalizeClientOptionsWithAuth } from "../../../../../../BaseClient"; +import * as core from "../../../../../../core"; +import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers"; +import * as environments from "../../../../../../environments"; +import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError"; +import * as errors from "../../../../../../errors/index"; +import * as serializers from "../../../../../../serialization/index"; +import type * as Merge from "../../../../../index"; + +export declare namespace SalesOrdersClient { + export type Options = BaseClientOptions; + + export interface RequestOptions extends BaseRequestOptions {} +} + +export class SalesOrdersClient { + protected readonly _options: NormalizedClientOptionsWithAuth; + + constructor(options: SalesOrdersClient.Options) { + this._options = normalizeClientOptionsWithAuth(options); + } + + /** + * Returns a list of `SalesOrder` objects. + * + * @param {Merge.accounting.SalesOrdersListRequest} request + * @param {SalesOrdersClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.salesOrders.list({ + * companyId: "company_id", + * createdAfter: new Date("2024-01-15T09:30:00.000Z"), + * createdBefore: new Date("2024-01-15T09:30:00.000Z"), + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeRemoteFields: true, + * includeShellData: true, + * issueDateAfter: new Date("2024-01-15T09:30:00.000Z"), + * issueDateBefore: new Date("2024-01-15T09:30:00.000Z"), + * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * pageSize: 1, + * remoteFields: "status", + * remoteId: "remote_id", + * showEnumOrigins: "status" + * }) + */ + public async list( + request: Merge.accounting.SalesOrdersListRequest = {}, + requestOptions?: SalesOrdersClient.RequestOptions, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.SalesOrdersListRequest, + ): Promise> => { + const { + companyId, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + issueDateAfter, + issueDateBefore, + modifiedAfter, + modifiedBefore, + pageSize, + remoteFields, + remoteId, + showEnumOrigins, + } = request; + const _queryParams: Record = { + company_id: companyId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.SalesOrdersListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.accounting.SalesOrdersListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + issue_date_after: issueDateAfter?.toISOString(), + issue_date_before: issueDateBefore?.toISOString(), + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_fields: remoteFields != null ? remoteFields : undefined, + remote_id: remoteId, + show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/sales-orders", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedSalesOrderList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/sales-orders", + ); + }, + ); + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, + }); + } + + /** + * Creates a `SalesOrder` object with the given values. + * + * @param {Merge.accounting.SalesOrdersCreateRequest} request + * @param {SalesOrdersClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.salesOrders.create({ + * isDebugMode: true, + * runAsync: true, + * body: { + * model: {} + * } + * }) + */ + public create( + request: Merge.accounting.SalesOrdersCreateRequest, + requestOptions?: SalesOrdersClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); + } + + private async __create( + request: Merge.accounting.SalesOrdersCreateRequest, + requestOptions?: SalesOrdersClient.RequestOptions, + ): Promise> { + const { isDebugMode, runAsync, body: _body } = request; + const _queryParams: Record = { + is_debug_mode: isDebugMode, + run_async: runAsync, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/sales-orders", + ), + method: "POST", + headers: _headers, + contentType: "application/json", + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + requestType: "json", + body: serializers.accounting.SalesOrderEndpointRequest.jsonOrThrow(_body, { + unrecognizedObjectKeys: "strip", + }), + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.SalesOrderResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + + return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/accounting/v1/sales-orders"); + } + + /** + * Returns a `SalesOrder` object with the given `id`. + * + * @param {string} id + * @param {Merge.accounting.SalesOrdersRetrieveRequest} request + * @param {SalesOrdersClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.salesOrders.retrieve("id", { + * includeRemoteData: true, + * includeRemoteFields: true, + * includeShellData: true, + * remoteFields: "status", + * showEnumOrigins: "status" + * }) + */ + public retrieve( + id: string, + request: Merge.accounting.SalesOrdersRetrieveRequest = {}, + requestOptions?: SalesOrdersClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); + } + + private async __retrieve( + id: string, + request: Merge.accounting.SalesOrdersRetrieveRequest = {}, + requestOptions?: SalesOrdersClient.RequestOptions, + ): Promise> { + const { expand, includeRemoteData, includeRemoteFields, includeShellData, remoteFields, showEnumOrigins } = + request; + const _queryParams: Record = { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.SalesOrdersRetrieveRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.accounting.SalesOrdersRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + remote_fields: remoteFields != null ? remoteFields : undefined, + show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + `accounting/v1/sales-orders/${core.url.encodePathParam(id)}`, + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.SalesOrder.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/sales-orders/{id}", + ); + } + + /** + * Returns a list of `SalesOrder` objects. + * + * @param {string} batch_id + * @param {Merge.accounting.SalesOrdersBatchObjectsListRequest} request + * @param {SalesOrdersClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.salesOrders.batchObjectsList("batch_id", { + * companyId: "company_id", + * createdAfter: new Date("2024-01-15T09:30:00.000Z"), + * createdBefore: new Date("2024-01-15T09:30:00.000Z"), + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeRemoteFields: true, + * includeShellData: true, + * issueDateAfter: new Date("2024-01-15T09:30:00.000Z"), + * issueDateBefore: new Date("2024-01-15T09:30:00.000Z"), + * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * pageSize: 1, + * remoteFields: "status", + * remoteId: "remote_id", + * showEnumOrigins: "status" + * }) + */ + public batchObjectsList( + batch_id: string, + request: Merge.accounting.SalesOrdersBatchObjectsListRequest = {}, + requestOptions?: SalesOrdersClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__batchObjectsList(batch_id, request, requestOptions)); + } + + private async __batchObjectsList( + batch_id: string, + request: Merge.accounting.SalesOrdersBatchObjectsListRequest = {}, + requestOptions?: SalesOrdersClient.RequestOptions, + ): Promise> { + const { + companyId, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + issueDateAfter, + issueDateBefore, + modifiedAfter, + modifiedBefore, + pageSize, + remoteFields, + remoteId, + showEnumOrigins, + } = request; + const _queryParams: Record = { + company_id: companyId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.SalesOrdersBatchObjectsListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.accounting.SalesOrdersBatchObjectsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + issue_date_after: issueDateAfter?.toISOString(), + issue_date_before: issueDateBefore?.toISOString(), + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_fields: remoteFields != null ? remoteFields : undefined, + remote_id: remoteId, + show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + `accounting/v1/sales-orders/batch/${core.url.encodePathParam(batch_id)}/objects`, + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedSalesOrderList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/sales-orders/batch/{batch_id}/objects", + ); + } + + /** + * Creates a `SalesOrder` object with the given values. + * + * @param {Merge.accounting.SalesOrderBulkRequest} request + * @param {SalesOrdersClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.salesOrders.asyncBulkCreate({ + * isDebugMode: true, + * runAsync: true, + * batchItems: [{ + * itemId: "item_id", + * payload: { + * model: {} + * } + * }] + * }) + */ + public asyncBulkCreate( + request: Merge.accounting.SalesOrderBulkRequest, + requestOptions?: SalesOrdersClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__asyncBulkCreate(request, requestOptions)); + } + + private async __asyncBulkCreate( + request: Merge.accounting.SalesOrderBulkRequest, + requestOptions?: SalesOrdersClient.RequestOptions, + ): Promise> { + const { isDebugMode, runAsync, ..._body } = request; + const _queryParams: Record = { + is_debug_mode: isDebugMode, + run_async: runAsync, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/sales-orders/async/bulk", + ), + method: "POST", + headers: _headers, + contentType: "application/json", + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + requestType: "json", + body: serializers.accounting.SalesOrderBulkRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.SalesOrderResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "POST", + "/accounting/v1/sales-orders/async/bulk", + ); + } + + /** + * Returns a list of `RemoteFieldClass` objects. + * + * @param {Merge.accounting.SalesOrdersLinesRemoteFieldClassesListRequest} request + * @param {SalesOrdersClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.salesOrders.linesRemoteFieldClassesList({ + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeShellData: true, + * isCommonModelField: true, + * isCustom: true, + * pageSize: 1 + * }) + */ + public async linesRemoteFieldClassesList( + request: Merge.accounting.SalesOrdersLinesRemoteFieldClassesListRequest = {}, + requestOptions?: SalesOrdersClient.RequestOptions, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.SalesOrdersLinesRemoteFieldClassesListRequest, + ): Promise> => { + const { + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + isCommonModelField, + isCustom, + pageSize, + } = request; + const _queryParams: Record = { + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + is_common_model_field: isCommonModelField, + is_custom: isCustom, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/sales-orders/lines/remote-field-classes", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/sales-orders/lines/remote-field-classes", + ); + }, + ); + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, + }); + } + + /** + * Returns metadata for `SalesOrder` POSTs. + * + * @param {SalesOrdersClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.salesOrders.metaPostRetrieve() + */ + public metaPostRetrieve( + requestOptions?: SalesOrdersClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__metaPostRetrieve(requestOptions)); + } + + private async __metaPostRetrieve( + requestOptions?: SalesOrdersClient.RequestOptions, + ): Promise> { + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/sales-orders/meta/post", + ), + method: "GET", + headers: _headers, + queryParameters: requestOptions?.queryParams, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.MetaResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/sales-orders/meta/post", + ); + } + + /** + * Returns a list of `RemoteFieldClass` objects. + * + * @param {Merge.accounting.SalesOrdersRemoteFieldClassesListRequest} request + * @param {SalesOrdersClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.salesOrders.remoteFieldClassesList({ + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeShellData: true, + * isCommonModelField: true, + * isCustom: true, + * pageSize: 1 + * }) + */ + public async remoteFieldClassesList( + request: Merge.accounting.SalesOrdersRemoteFieldClassesListRequest = {}, + requestOptions?: SalesOrdersClient.RequestOptions, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.SalesOrdersRemoteFieldClassesListRequest, + ): Promise> => { + const { + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + isCommonModelField, + isCustom, + pageSize, + } = request; + const _queryParams: Record = { + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + is_common_model_field: isCommonModelField, + is_custom: isCustom, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/sales-orders/remote-field-classes", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/sales-orders/remote-field-classes", + ); + }, + ); + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, + }); + } +} diff --git a/src/api/resources/accounting/resources/salesOrders/client/index.ts b/src/api/resources/accounting/resources/salesOrders/client/index.ts new file mode 100644 index 000000000..415726b7f --- /dev/null +++ b/src/api/resources/accounting/resources/salesOrders/client/index.ts @@ -0,0 +1 @@ +export * from "./requests"; diff --git a/src/api/resources/accounting/resources/salesOrders/client/requests/SalesOrderBulkRequest.ts b/src/api/resources/accounting/resources/salesOrders/client/requests/SalesOrderBulkRequest.ts new file mode 100644 index 000000000..1d621e29d --- /dev/null +++ b/src/api/resources/accounting/resources/salesOrders/client/requests/SalesOrderBulkRequest.ts @@ -0,0 +1,24 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * batchItems: [{ + * itemId: "item_id", + * payload: { + * model: {} + * } + * }] + * } + */ +export interface SalesOrderBulkRequest { + /** 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; + batchItems: Merge.accounting.SalesOrderBatchItemRequest[]; +} diff --git a/src/api/resources/accounting/resources/salesOrders/client/requests/SalesOrdersBatchObjectsListRequest.ts b/src/api/resources/accounting/resources/salesOrders/client/requests/SalesOrdersBatchObjectsListRequest.ts new file mode 100644 index 000000000..a11b48937 --- /dev/null +++ b/src/api/resources/accounting/resources/salesOrders/client/requests/SalesOrdersBatchObjectsListRequest.ts @@ -0,0 +1,63 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * companyId: "company_id", + * createdAfter: new Date("2024-01-15T09:30:00.000Z"), + * createdBefore: new Date("2024-01-15T09:30:00.000Z"), + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeRemoteFields: true, + * includeShellData: true, + * issueDateAfter: new Date("2024-01-15T09:30:00.000Z"), + * issueDateBefore: new Date("2024-01-15T09:30:00.000Z"), + * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * pageSize: 1, + * remoteFields: "status", + * remoteId: "remote_id", + * showEnumOrigins: "status" + * } + */ +export interface SalesOrdersBatchObjectsListRequest { + /** If provided, will only return sales orders for this company. */ + companyId?: string; + /** If provided, will only return objects created after this datetime. */ + createdAfter?: Date; + /** If provided, will only return objects created before this datetime. */ + createdBefore?: Date; + /** The pagination cursor value. */ + cursor?: string; + /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ + expand?: + | Merge.accounting.SalesOrdersBatchObjectsListRequestExpandItem + | Merge.accounting.SalesOrdersBatchObjectsListRequestExpandItem[]; + /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ + includeDeletedData?: boolean; + /** Whether to include the original data Merge fetched from the third-party to produce these models. */ + includeRemoteData?: boolean; + /** Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. */ + includeRemoteFields?: boolean; + /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ + includeShellData?: boolean; + /** If provided, will only return objects created after this datetime. */ + issueDateAfter?: Date; + /** If provided, will only return objects created before this datetime. */ + issueDateBefore?: Date; + /** If provided, only objects synced by Merge after this date time will be returned. */ + modifiedAfter?: Date; + /** If provided, only objects synced by Merge before this date time will be returned. */ + modifiedBefore?: Date; + /** Number of results to return per page. The maximum limit is 100. */ + pageSize?: number; + /** Deprecated. Use show_enum_origins. */ + remoteFields?: "status"; + /** The API provider's ID for the given object. */ + remoteId?: string; + /** A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) */ + showEnumOrigins?: "status"; +} diff --git a/src/api/resources/accounting/resources/salesOrders/client/requests/SalesOrdersCreateRequest.ts b/src/api/resources/accounting/resources/salesOrders/client/requests/SalesOrdersCreateRequest.ts new file mode 100644 index 000000000..3a99c2848 --- /dev/null +++ b/src/api/resources/accounting/resources/salesOrders/client/requests/SalesOrdersCreateRequest.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * body: { + * model: {} + * } + * } + */ +export interface SalesOrdersCreateRequest { + /** 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; + body: Merge.accounting.SalesOrderEndpointRequest; +} diff --git a/src/api/resources/accounting/resources/salesOrders/client/requests/SalesOrdersLinesRemoteFieldClassesListRequest.ts b/src/api/resources/accounting/resources/salesOrders/client/requests/SalesOrdersLinesRemoteFieldClassesListRequest.ts new file mode 100644 index 000000000..ade05e588 --- /dev/null +++ b/src/api/resources/accounting/resources/salesOrders/client/requests/SalesOrdersLinesRemoteFieldClassesListRequest.ts @@ -0,0 +1,30 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * @example + * { + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeShellData: true, + * isCommonModelField: true, + * isCustom: true, + * pageSize: 1 + * } + */ +export interface SalesOrdersLinesRemoteFieldClassesListRequest { + /** The pagination cursor value. */ + cursor?: string; + /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ + includeDeletedData?: boolean; + /** Whether to include the original data Merge fetched from the third-party to produce these models. */ + includeRemoteData?: boolean; + /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ + includeShellData?: boolean; + /** If provided, will only return remote field classes with this is_common_model_field value */ + isCommonModelField?: boolean; + /** If provided, will only return remote fields classes with this is_custom value */ + isCustom?: boolean; + /** Number of results to return per page. The maximum limit is 100. */ + pageSize?: number; +} diff --git a/src/api/resources/accounting/resources/salesOrders/client/requests/SalesOrdersListRequest.ts b/src/api/resources/accounting/resources/salesOrders/client/requests/SalesOrdersListRequest.ts new file mode 100644 index 000000000..dae712438 --- /dev/null +++ b/src/api/resources/accounting/resources/salesOrders/client/requests/SalesOrdersListRequest.ts @@ -0,0 +1,61 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * companyId: "company_id", + * createdAfter: new Date("2024-01-15T09:30:00.000Z"), + * createdBefore: new Date("2024-01-15T09:30:00.000Z"), + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeRemoteFields: true, + * includeShellData: true, + * issueDateAfter: new Date("2024-01-15T09:30:00.000Z"), + * issueDateBefore: new Date("2024-01-15T09:30:00.000Z"), + * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * pageSize: 1, + * remoteFields: "status", + * remoteId: "remote_id", + * showEnumOrigins: "status" + * } + */ +export interface SalesOrdersListRequest { + /** If provided, will only return sales orders for this company. */ + companyId?: string; + /** If provided, will only return objects created after this datetime. */ + createdAfter?: Date; + /** If provided, will only return objects created before this datetime. */ + createdBefore?: Date; + /** The pagination cursor value. */ + cursor?: string; + /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ + expand?: Merge.accounting.SalesOrdersListRequestExpandItem | Merge.accounting.SalesOrdersListRequestExpandItem[]; + /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ + includeDeletedData?: boolean; + /** Whether to include the original data Merge fetched from the third-party to produce these models. */ + includeRemoteData?: boolean; + /** Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. */ + includeRemoteFields?: boolean; + /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ + includeShellData?: boolean; + /** If provided, will only return objects created after this datetime. */ + issueDateAfter?: Date; + /** If provided, will only return objects created before this datetime. */ + issueDateBefore?: Date; + /** If provided, only objects synced by Merge after this date time will be returned. */ + modifiedAfter?: Date; + /** If provided, only objects synced by Merge before this date time will be returned. */ + modifiedBefore?: Date; + /** Number of results to return per page. The maximum limit is 100. */ + pageSize?: number; + /** Deprecated. Use show_enum_origins. */ + remoteFields?: "status"; + /** The API provider's ID for the given object. */ + remoteId?: string; + /** A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) */ + showEnumOrigins?: "status"; +} diff --git a/src/api/resources/accounting/resources/salesOrders/client/requests/SalesOrdersRemoteFieldClassesListRequest.ts b/src/api/resources/accounting/resources/salesOrders/client/requests/SalesOrdersRemoteFieldClassesListRequest.ts new file mode 100644 index 000000000..3b0f4e20a --- /dev/null +++ b/src/api/resources/accounting/resources/salesOrders/client/requests/SalesOrdersRemoteFieldClassesListRequest.ts @@ -0,0 +1,30 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * @example + * { + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeShellData: true, + * isCommonModelField: true, + * isCustom: true, + * pageSize: 1 + * } + */ +export interface SalesOrdersRemoteFieldClassesListRequest { + /** The pagination cursor value. */ + cursor?: string; + /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ + includeDeletedData?: boolean; + /** Whether to include the original data Merge fetched from the third-party to produce these models. */ + includeRemoteData?: boolean; + /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ + includeShellData?: boolean; + /** If provided, will only return remote field classes with this is_common_model_field value */ + isCommonModelField?: boolean; + /** If provided, will only return remote fields classes with this is_custom value */ + isCustom?: boolean; + /** Number of results to return per page. The maximum limit is 100. */ + pageSize?: number; +} diff --git a/src/api/resources/accounting/resources/salesOrders/client/requests/SalesOrdersRetrieveRequest.ts b/src/api/resources/accounting/resources/salesOrders/client/requests/SalesOrdersRetrieveRequest.ts new file mode 100644 index 000000000..c78ea2f8d --- /dev/null +++ b/src/api/resources/accounting/resources/salesOrders/client/requests/SalesOrdersRetrieveRequest.ts @@ -0,0 +1,30 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * includeRemoteData: true, + * includeRemoteFields: true, + * includeShellData: true, + * remoteFields: "status", + * showEnumOrigins: "status" + * } + */ +export interface SalesOrdersRetrieveRequest { + /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ + expand?: + | Merge.accounting.SalesOrdersRetrieveRequestExpandItem + | Merge.accounting.SalesOrdersRetrieveRequestExpandItem[]; + /** Whether to include the original data Merge fetched from the third-party to produce these models. */ + includeRemoteData?: boolean; + /** Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. */ + includeRemoteFields?: boolean; + /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ + includeShellData?: boolean; + /** Deprecated. Use show_enum_origins. */ + remoteFields?: "status"; + /** A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) */ + showEnumOrigins?: "status"; +} diff --git a/src/api/resources/accounting/resources/salesOrders/client/requests/index.ts b/src/api/resources/accounting/resources/salesOrders/client/requests/index.ts new file mode 100644 index 000000000..106d2c67f --- /dev/null +++ b/src/api/resources/accounting/resources/salesOrders/client/requests/index.ts @@ -0,0 +1,7 @@ +export type { SalesOrderBulkRequest } from "./SalesOrderBulkRequest"; +export type { SalesOrdersBatchObjectsListRequest } from "./SalesOrdersBatchObjectsListRequest"; +export type { SalesOrdersCreateRequest } from "./SalesOrdersCreateRequest"; +export type { SalesOrdersLinesRemoteFieldClassesListRequest } from "./SalesOrdersLinesRemoteFieldClassesListRequest"; +export type { SalesOrdersListRequest } from "./SalesOrdersListRequest"; +export type { SalesOrdersRemoteFieldClassesListRequest } from "./SalesOrdersRemoteFieldClassesListRequest"; +export type { SalesOrdersRetrieveRequest } from "./SalesOrdersRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/salesOrders/exports.ts b/src/api/resources/accounting/resources/salesOrders/exports.ts new file mode 100644 index 000000000..659cb007c --- /dev/null +++ b/src/api/resources/accounting/resources/salesOrders/exports.ts @@ -0,0 +1,4 @@ +// This file was auto-generated by Fern from our API Definition. + +export { SalesOrdersClient } from "./client/Client"; +export * from "./client/index"; diff --git a/src/api/resources/accounting/resources/salesOrders/index.ts b/src/api/resources/accounting/resources/salesOrders/index.ts new file mode 100644 index 000000000..d2ec2302c --- /dev/null +++ b/src/api/resources/accounting/resources/salesOrders/index.ts @@ -0,0 +1,2 @@ +export * from "./client"; +export * from "./types"; diff --git a/src/api/resources/accounting/resources/salesOrders/types/SalesOrdersBatchObjectsListRequestExpandItem.ts b/src/api/resources/accounting/resources/salesOrders/types/SalesOrdersBatchObjectsListRequestExpandItem.ts new file mode 100644 index 000000000..9f67c833a --- /dev/null +++ b/src/api/resources/accounting/resources/salesOrders/types/SalesOrdersBatchObjectsListRequestExpandItem.ts @@ -0,0 +1,12 @@ +// This file was auto-generated by Fern from our API Definition. + +export const SalesOrdersBatchObjectsListRequestExpandItem = { + Company: "company", + Customer: "customer", + Lines: "lines", + PaymentTerm: "payment_term", + ShippingAddress: "shipping_address", + TrackingCategories: "tracking_categories", +} as const; +export type SalesOrdersBatchObjectsListRequestExpandItem = + (typeof SalesOrdersBatchObjectsListRequestExpandItem)[keyof typeof SalesOrdersBatchObjectsListRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/salesOrders/types/SalesOrdersListRequestExpandItem.ts b/src/api/resources/accounting/resources/salesOrders/types/SalesOrdersListRequestExpandItem.ts new file mode 100644 index 000000000..aa74b0e70 --- /dev/null +++ b/src/api/resources/accounting/resources/salesOrders/types/SalesOrdersListRequestExpandItem.ts @@ -0,0 +1,12 @@ +// This file was auto-generated by Fern from our API Definition. + +export const SalesOrdersListRequestExpandItem = { + Company: "company", + Customer: "customer", + Lines: "lines", + PaymentTerm: "payment_term", + ShippingAddress: "shipping_address", + TrackingCategories: "tracking_categories", +} as const; +export type SalesOrdersListRequestExpandItem = + (typeof SalesOrdersListRequestExpandItem)[keyof typeof SalesOrdersListRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/salesOrders/types/SalesOrdersRetrieveRequestExpandItem.ts b/src/api/resources/accounting/resources/salesOrders/types/SalesOrdersRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..76ef9cf3e --- /dev/null +++ b/src/api/resources/accounting/resources/salesOrders/types/SalesOrdersRetrieveRequestExpandItem.ts @@ -0,0 +1,12 @@ +// This file was auto-generated by Fern from our API Definition. + +export const SalesOrdersRetrieveRequestExpandItem = { + Company: "company", + Customer: "customer", + Lines: "lines", + PaymentTerm: "payment_term", + ShippingAddress: "shipping_address", + TrackingCategories: "tracking_categories", +} as const; +export type SalesOrdersRetrieveRequestExpandItem = + (typeof SalesOrdersRetrieveRequestExpandItem)[keyof typeof SalesOrdersRetrieveRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/salesOrders/types/index.ts b/src/api/resources/accounting/resources/salesOrders/types/index.ts new file mode 100644 index 000000000..df5f74cbe --- /dev/null +++ b/src/api/resources/accounting/resources/salesOrders/types/index.ts @@ -0,0 +1,3 @@ +export * from "./SalesOrdersBatchObjectsListRequestExpandItem"; +export * from "./SalesOrdersListRequestExpandItem"; +export * from "./SalesOrdersRetrieveRequestExpandItem"; diff --git a/src/api/resources/accounting/resources/syncStatus/client/Client.ts b/src/api/resources/accounting/resources/syncStatus/client/Client.ts index 3effe3b60..7ac64e0d5 100644 --- a/src/api/resources/accounting/resources/syncStatus/client/Client.ts +++ b/src/api/resources/accounting/resources/syncStatus/client/Client.ts @@ -35,66 +35,81 @@ export class SyncStatusClient { * pageSize: 1 * }) */ - public list( + public async list( request: Merge.accounting.SyncStatusListRequest = {}, requestOptions?: SyncStatusClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.accounting.SyncStatusListRequest = {}, - requestOptions?: SyncStatusClient.RequestOptions, - ): Promise> { - const { cursor, pageSize } = request; - const _queryParams: Record = { - cursor, - page_size: pageSize, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.SyncStatusListRequest, + ): Promise> => { + const { cursor, pageSize } = request; + const _queryParams: Record = { + cursor, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/sync-status", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedSyncStatusList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/sync-status", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "accounting/v1/sync-status", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.accounting.PaginatedSyncStatusList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/accounting/v1/sync-status"); } } diff --git a/src/api/resources/accounting/resources/syncStatus/client/requests/SyncStatusListRequest.ts b/src/api/resources/accounting/resources/syncStatus/client/requests/SyncStatusListRequest.ts index 2bbace517..94e1240fc 100644 --- a/src/api/resources/accounting/resources/syncStatus/client/requests/SyncStatusListRequest.ts +++ b/src/api/resources/accounting/resources/syncStatus/client/requests/SyncStatusListRequest.ts @@ -10,6 +10,6 @@ export interface SyncStatusListRequest { /** The pagination cursor value. */ cursor?: string; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; } diff --git a/src/api/resources/accounting/resources/taxRates/client/Client.ts b/src/api/resources/accounting/resources/taxRates/client/Client.ts index 2b365a7aa..720b905cc 100644 --- a/src/api/resources/accounting/resources/taxRates/client/Client.ts +++ b/src/api/resources/accounting/resources/taxRates/client/Client.ts @@ -35,7 +35,6 @@ export class TaxRatesClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "company", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -46,92 +45,107 @@ export class TaxRatesClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.accounting.TaxRatesListRequest = {}, requestOptions?: TaxRatesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.accounting.TaxRatesListRequest = {}, - requestOptions?: TaxRatesClient.RequestOptions, - ): Promise> { - const { - companyId, - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - name, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - company_id: companyId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: expand != null ? expand : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - name, - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.TaxRatesListRequest, + ): Promise> => { + const { + companyId, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + name, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + company_id: companyId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + name, + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/tax-rates", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedTaxRateList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/tax-rates", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "accounting/v1/tax-rates", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.accounting.PaginatedTaxRateList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/accounting/v1/tax-rates"); } /** @@ -143,7 +157,6 @@ export class TaxRatesClient { * * @example * await client.accounting.taxRates.retrieve("id", { - * expand: "company", * includeRemoteData: true, * includeShellData: true * }) @@ -163,7 +176,7 @@ export class TaxRatesClient { ): Promise> { const { expand, includeRemoteData, includeShellData } = request; const _queryParams: Record = { - expand: expand != null ? expand : undefined, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, }; diff --git a/src/api/resources/accounting/resources/taxRates/client/requests/TaxRatesListRequest.ts b/src/api/resources/accounting/resources/taxRates/client/requests/TaxRatesListRequest.ts index c9e713467..87d3f7694 100644 --- a/src/api/resources/accounting/resources/taxRates/client/requests/TaxRatesListRequest.ts +++ b/src/api/resources/accounting/resources/taxRates/client/requests/TaxRatesListRequest.ts @@ -7,7 +7,6 @@ * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "company", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -28,7 +27,7 @@ export interface TaxRatesListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "company"; + expand?: "company" | "company"[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -41,7 +40,7 @@ export interface TaxRatesListRequest { modifiedBefore?: Date; /** If provided, will only return TaxRates with this name. */ name?: string; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; diff --git a/src/api/resources/accounting/resources/taxRates/client/requests/TaxRatesRetrieveRequest.ts b/src/api/resources/accounting/resources/taxRates/client/requests/TaxRatesRetrieveRequest.ts index e437eed0d..a89408c35 100644 --- a/src/api/resources/accounting/resources/taxRates/client/requests/TaxRatesRetrieveRequest.ts +++ b/src/api/resources/accounting/resources/taxRates/client/requests/TaxRatesRetrieveRequest.ts @@ -3,14 +3,13 @@ /** * @example * { - * expand: "company", * includeRemoteData: true, * includeShellData: true * } */ export interface TaxRatesRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "company"; + expand?: "company" | "company"[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/accounting/resources/trackingCategories/client/Client.ts b/src/api/resources/accounting/resources/trackingCategories/client/Client.ts index 4a5dcffb2..54ea42684 100644 --- a/src/api/resources/accounting/resources/trackingCategories/client/Client.ts +++ b/src/api/resources/accounting/resources/trackingCategories/client/Client.ts @@ -36,7 +36,6 @@ export class TrackingCategoriesClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "company", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -50,115 +49,126 @@ export class TrackingCategoriesClient { * status: "" * }) */ - public list( + public async list( request: Merge.accounting.TrackingCategoriesListRequest = {}, requestOptions?: TrackingCategoriesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.accounting.TrackingCategoriesListRequest = {}, - requestOptions?: TrackingCategoriesClient.RequestOptions, - ): Promise> { - const { - categoryType, - companyId, - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - name, - pageSize, - remoteFields, - remoteId, - showEnumOrigins, - status, - } = request; - const _queryParams: Record = { - category_type: - categoryType != null - ? serializers.accounting.TrackingCategoriesListRequestCategoryType.jsonOrThrow(categoryType, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - company_id: companyId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: expand != null ? expand : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - name, - page_size: pageSize, - remote_fields: remoteFields != null ? remoteFields : undefined, - remote_id: remoteId, - show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, - status: - status != null - ? serializers.accounting.TrackingCategoriesListRequestStatus.jsonOrThrow(status, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.TrackingCategoriesListRequest, + ): Promise> => { + const { + categoryType, + companyId, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + name, + pageSize, + remoteFields, + remoteId, + showEnumOrigins, + status, + } = request; + const _queryParams: Record = { + category_type: + categoryType != null + ? serializers.accounting.TrackingCategoriesListRequestCategoryType.jsonOrThrow( + categoryType, + { unrecognizedObjectKeys: "strip" }, + ) + : undefined, + company_id: companyId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + name, + page_size: pageSize, + remote_fields: remoteFields != null ? remoteFields : undefined, + remote_id: remoteId, + show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, + status: + status != null + ? serializers.accounting.TrackingCategoriesListRequestStatus.jsonOrThrow(status, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/tracking-categories", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedTrackingCategoryList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/tracking-categories", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "accounting/v1/tracking-categories", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.accounting.PaginatedTrackingCategoryList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/accounting/v1/tracking-categories", - ); } /** @@ -170,7 +180,6 @@ export class TrackingCategoriesClient { * * @example * await client.accounting.trackingCategories.retrieve("id", { - * expand: "company", * includeRemoteData: true, * includeShellData: true, * remoteFields: "status", @@ -192,7 +201,7 @@ export class TrackingCategoriesClient { ): Promise> { const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; const _queryParams: Record = { - expand: expand != null ? expand : undefined, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, remote_fields: remoteFields != null ? remoteFields : undefined, diff --git a/src/api/resources/accounting/resources/trackingCategories/client/requests/TrackingCategoriesListRequest.ts b/src/api/resources/accounting/resources/trackingCategories/client/requests/TrackingCategoriesListRequest.ts index 0eb0a7c11..972a6d575 100644 --- a/src/api/resources/accounting/resources/trackingCategories/client/requests/TrackingCategoriesListRequest.ts +++ b/src/api/resources/accounting/resources/trackingCategories/client/requests/TrackingCategoriesListRequest.ts @@ -10,7 +10,6 @@ import type * as Merge from "../../../../../../index"; * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "company", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -36,7 +35,7 @@ export interface TrackingCategoriesListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "company"; + expand?: "company" | "company"[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -49,7 +48,7 @@ export interface TrackingCategoriesListRequest { modifiedBefore?: Date; /** If provided, will only return tracking categories with this name. */ name?: string; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** Deprecated. Use show_enum_origins. */ remoteFields?: "status"; diff --git a/src/api/resources/accounting/resources/trackingCategories/client/requests/TrackingCategoriesRetrieveRequest.ts b/src/api/resources/accounting/resources/trackingCategories/client/requests/TrackingCategoriesRetrieveRequest.ts index d03755f68..1bf01a158 100644 --- a/src/api/resources/accounting/resources/trackingCategories/client/requests/TrackingCategoriesRetrieveRequest.ts +++ b/src/api/resources/accounting/resources/trackingCategories/client/requests/TrackingCategoriesRetrieveRequest.ts @@ -3,7 +3,6 @@ /** * @example * { - * expand: "company", * includeRemoteData: true, * includeShellData: true, * remoteFields: "status", @@ -12,7 +11,7 @@ */ export interface TrackingCategoriesRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "company"; + expand?: "company" | "company"[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/accounting/resources/transactions/client/Client.ts b/src/api/resources/accounting/resources/transactions/client/Client.ts index 2d95ca7ad..d75295310 100644 --- a/src/api/resources/accounting/resources/transactions/client/Client.ts +++ b/src/api/resources/accounting/resources/transactions/client/Client.ts @@ -35,7 +35,6 @@ export class TransactionsClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "account", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -47,99 +46,119 @@ export class TransactionsClient { * transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") * }) */ - public list( + public async list( request: Merge.accounting.TransactionsListRequest = {}, requestOptions?: TransactionsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.accounting.TransactionsListRequest = {}, - requestOptions?: TransactionsClient.RequestOptions, - ): Promise> { - const { - companyId, - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - transactionDateAfter, - transactionDateBefore, - } = request; - const _queryParams: Record = { - company_id: companyId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: - expand != null - ? serializers.accounting.TransactionsListRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - transaction_date_after: transactionDateAfter?.toISOString(), - transaction_date_before: transactionDateBefore?.toISOString(), - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.TransactionsListRequest, + ): Promise> => { + const { + companyId, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + transactionDateAfter, + transactionDateBefore, + } = request; + const _queryParams: Record = { + company_id: companyId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.TransactionsListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.accounting.TransactionsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + transaction_date_after: transactionDateAfter?.toISOString(), + transaction_date_before: transactionDateBefore?.toISOString(), + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/transactions", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedTransactionList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/transactions", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "accounting/v1/transactions", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.accounting.PaginatedTransactionList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/accounting/v1/transactions"); } /** @@ -151,7 +170,6 @@ export class TransactionsClient { * * @example * await client.accounting.transactions.retrieve("id", { - * expand: "account", * includeRemoteData: true, * includeShellData: true * }) @@ -171,12 +189,17 @@ export class TransactionsClient { ): Promise> { const { expand, includeRemoteData, includeShellData } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.accounting.TransactionsRetrieveRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.TransactionsRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.accounting.TransactionsRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, }; diff --git a/src/api/resources/accounting/resources/transactions/client/requests/TransactionsListRequest.ts b/src/api/resources/accounting/resources/transactions/client/requests/TransactionsListRequest.ts index 8c11585fb..85afd7c2d 100644 --- a/src/api/resources/accounting/resources/transactions/client/requests/TransactionsListRequest.ts +++ b/src/api/resources/accounting/resources/transactions/client/requests/TransactionsListRequest.ts @@ -9,7 +9,6 @@ import type * as Merge from "../../../../../../index"; * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "account", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -31,7 +30,7 @@ export interface TransactionsListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.TransactionsListRequestExpand; + expand?: Merge.accounting.TransactionsListRequestExpandItem | Merge.accounting.TransactionsListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -42,7 +41,7 @@ export interface TransactionsListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; diff --git a/src/api/resources/accounting/resources/transactions/client/requests/TransactionsRetrieveRequest.ts b/src/api/resources/accounting/resources/transactions/client/requests/TransactionsRetrieveRequest.ts index 472eb1ab3..ae48eb173 100644 --- a/src/api/resources/accounting/resources/transactions/client/requests/TransactionsRetrieveRequest.ts +++ b/src/api/resources/accounting/resources/transactions/client/requests/TransactionsRetrieveRequest.ts @@ -5,14 +5,15 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "account", * includeRemoteData: true, * includeShellData: true * } */ export interface TransactionsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.TransactionsRetrieveRequestExpand; + expand?: + | Merge.accounting.TransactionsRetrieveRequestExpandItem + | Merge.accounting.TransactionsRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/accounting/resources/transactions/types/TransactionsListRequestExpand.ts b/src/api/resources/accounting/resources/transactions/types/TransactionsListRequestExpand.ts deleted file mode 100644 index 13d6b32ea..000000000 --- a/src/api/resources/accounting/resources/transactions/types/TransactionsListRequestExpand.ts +++ /dev/null @@ -1,74 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const TransactionsListRequestExpand = { - Account: "account", - AccountAccountingPeriod: "account,accounting_period", - AccountCompany: "account,company", - AccountCompanyAccountingPeriod: "account,company,accounting_period", - AccountingPeriod: "accounting_period", - Company: "company", - CompanyAccountingPeriod: "company,accounting_period", - Contact: "contact", - ContactAccount: "contact,account", - ContactAccountAccountingPeriod: "contact,account,accounting_period", - ContactAccountCompany: "contact,account,company", - ContactAccountCompanyAccountingPeriod: "contact,account,company,accounting_period", - ContactAccountingPeriod: "contact,accounting_period", - ContactCompany: "contact,company", - ContactCompanyAccountingPeriod: "contact,company,accounting_period", - LineItems: "line_items", - LineItemsAccount: "line_items,account", - LineItemsAccountAccountingPeriod: "line_items,account,accounting_period", - LineItemsAccountCompany: "line_items,account,company", - LineItemsAccountCompanyAccountingPeriod: "line_items,account,company,accounting_period", - LineItemsAccountingPeriod: "line_items,accounting_period", - LineItemsCompany: "line_items,company", - LineItemsCompanyAccountingPeriod: "line_items,company,accounting_period", - LineItemsContact: "line_items,contact", - LineItemsContactAccount: "line_items,contact,account", - LineItemsContactAccountAccountingPeriod: "line_items,contact,account,accounting_period", - LineItemsContactAccountCompany: "line_items,contact,account,company", - LineItemsContactAccountCompanyAccountingPeriod: "line_items,contact,account,company,accounting_period", - LineItemsContactAccountingPeriod: "line_items,contact,accounting_period", - LineItemsContactCompany: "line_items,contact,company", - LineItemsContactCompanyAccountingPeriod: "line_items,contact,company,accounting_period", - LineItemsTrackingCategories: "line_items,tracking_categories", - LineItemsTrackingCategoriesAccount: "line_items,tracking_categories,account", - LineItemsTrackingCategoriesAccountAccountingPeriod: "line_items,tracking_categories,account,accounting_period", - LineItemsTrackingCategoriesAccountCompany: "line_items,tracking_categories,account,company", - LineItemsTrackingCategoriesAccountCompanyAccountingPeriod: - "line_items,tracking_categories,account,company,accounting_period", - LineItemsTrackingCategoriesAccountingPeriod: "line_items,tracking_categories,accounting_period", - LineItemsTrackingCategoriesCompany: "line_items,tracking_categories,company", - LineItemsTrackingCategoriesCompanyAccountingPeriod: "line_items,tracking_categories,company,accounting_period", - LineItemsTrackingCategoriesContact: "line_items,tracking_categories,contact", - LineItemsTrackingCategoriesContactAccount: "line_items,tracking_categories,contact,account", - LineItemsTrackingCategoriesContactAccountAccountingPeriod: - "line_items,tracking_categories,contact,account,accounting_period", - LineItemsTrackingCategoriesContactAccountCompany: "line_items,tracking_categories,contact,account,company", - LineItemsTrackingCategoriesContactAccountCompanyAccountingPeriod: - "line_items,tracking_categories,contact,account,company,accounting_period", - LineItemsTrackingCategoriesContactAccountingPeriod: "line_items,tracking_categories,contact,accounting_period", - LineItemsTrackingCategoriesContactCompany: "line_items,tracking_categories,contact,company", - LineItemsTrackingCategoriesContactCompanyAccountingPeriod: - "line_items,tracking_categories,contact,company,accounting_period", - TrackingCategories: "tracking_categories", - TrackingCategoriesAccount: "tracking_categories,account", - TrackingCategoriesAccountAccountingPeriod: "tracking_categories,account,accounting_period", - TrackingCategoriesAccountCompany: "tracking_categories,account,company", - TrackingCategoriesAccountCompanyAccountingPeriod: "tracking_categories,account,company,accounting_period", - TrackingCategoriesAccountingPeriod: "tracking_categories,accounting_period", - TrackingCategoriesCompany: "tracking_categories,company", - TrackingCategoriesCompanyAccountingPeriod: "tracking_categories,company,accounting_period", - TrackingCategoriesContact: "tracking_categories,contact", - TrackingCategoriesContactAccount: "tracking_categories,contact,account", - TrackingCategoriesContactAccountAccountingPeriod: "tracking_categories,contact,account,accounting_period", - TrackingCategoriesContactAccountCompany: "tracking_categories,contact,account,company", - TrackingCategoriesContactAccountCompanyAccountingPeriod: - "tracking_categories,contact,account,company,accounting_period", - TrackingCategoriesContactAccountingPeriod: "tracking_categories,contact,accounting_period", - TrackingCategoriesContactCompany: "tracking_categories,contact,company", - TrackingCategoriesContactCompanyAccountingPeriod: "tracking_categories,contact,company,accounting_period", -} as const; -export type TransactionsListRequestExpand = - (typeof TransactionsListRequestExpand)[keyof typeof TransactionsListRequestExpand]; diff --git a/src/api/resources/accounting/resources/transactions/types/TransactionsListRequestExpandItem.ts b/src/api/resources/accounting/resources/transactions/types/TransactionsListRequestExpandItem.ts new file mode 100644 index 000000000..bd4cdfbab --- /dev/null +++ b/src/api/resources/accounting/resources/transactions/types/TransactionsListRequestExpandItem.ts @@ -0,0 +1,12 @@ +// This file was auto-generated by Fern from our API Definition. + +export const TransactionsListRequestExpandItem = { + Account: "account", + AccountingPeriod: "accounting_period", + Company: "company", + Contact: "contact", + LineItems: "line_items", + TrackingCategories: "tracking_categories", +} as const; +export type TransactionsListRequestExpandItem = + (typeof TransactionsListRequestExpandItem)[keyof typeof TransactionsListRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/transactions/types/TransactionsRetrieveRequestExpand.ts b/src/api/resources/accounting/resources/transactions/types/TransactionsRetrieveRequestExpand.ts deleted file mode 100644 index fe5130fb4..000000000 --- a/src/api/resources/accounting/resources/transactions/types/TransactionsRetrieveRequestExpand.ts +++ /dev/null @@ -1,74 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const TransactionsRetrieveRequestExpand = { - Account: "account", - AccountAccountingPeriod: "account,accounting_period", - AccountCompany: "account,company", - AccountCompanyAccountingPeriod: "account,company,accounting_period", - AccountingPeriod: "accounting_period", - Company: "company", - CompanyAccountingPeriod: "company,accounting_period", - Contact: "contact", - ContactAccount: "contact,account", - ContactAccountAccountingPeriod: "contact,account,accounting_period", - ContactAccountCompany: "contact,account,company", - ContactAccountCompanyAccountingPeriod: "contact,account,company,accounting_period", - ContactAccountingPeriod: "contact,accounting_period", - ContactCompany: "contact,company", - ContactCompanyAccountingPeriod: "contact,company,accounting_period", - LineItems: "line_items", - LineItemsAccount: "line_items,account", - LineItemsAccountAccountingPeriod: "line_items,account,accounting_period", - LineItemsAccountCompany: "line_items,account,company", - LineItemsAccountCompanyAccountingPeriod: "line_items,account,company,accounting_period", - LineItemsAccountingPeriod: "line_items,accounting_period", - LineItemsCompany: "line_items,company", - LineItemsCompanyAccountingPeriod: "line_items,company,accounting_period", - LineItemsContact: "line_items,contact", - LineItemsContactAccount: "line_items,contact,account", - LineItemsContactAccountAccountingPeriod: "line_items,contact,account,accounting_period", - LineItemsContactAccountCompany: "line_items,contact,account,company", - LineItemsContactAccountCompanyAccountingPeriod: "line_items,contact,account,company,accounting_period", - LineItemsContactAccountingPeriod: "line_items,contact,accounting_period", - LineItemsContactCompany: "line_items,contact,company", - LineItemsContactCompanyAccountingPeriod: "line_items,contact,company,accounting_period", - LineItemsTrackingCategories: "line_items,tracking_categories", - LineItemsTrackingCategoriesAccount: "line_items,tracking_categories,account", - LineItemsTrackingCategoriesAccountAccountingPeriod: "line_items,tracking_categories,account,accounting_period", - LineItemsTrackingCategoriesAccountCompany: "line_items,tracking_categories,account,company", - LineItemsTrackingCategoriesAccountCompanyAccountingPeriod: - "line_items,tracking_categories,account,company,accounting_period", - LineItemsTrackingCategoriesAccountingPeriod: "line_items,tracking_categories,accounting_period", - LineItemsTrackingCategoriesCompany: "line_items,tracking_categories,company", - LineItemsTrackingCategoriesCompanyAccountingPeriod: "line_items,tracking_categories,company,accounting_period", - LineItemsTrackingCategoriesContact: "line_items,tracking_categories,contact", - LineItemsTrackingCategoriesContactAccount: "line_items,tracking_categories,contact,account", - LineItemsTrackingCategoriesContactAccountAccountingPeriod: - "line_items,tracking_categories,contact,account,accounting_period", - LineItemsTrackingCategoriesContactAccountCompany: "line_items,tracking_categories,contact,account,company", - LineItemsTrackingCategoriesContactAccountCompanyAccountingPeriod: - "line_items,tracking_categories,contact,account,company,accounting_period", - LineItemsTrackingCategoriesContactAccountingPeriod: "line_items,tracking_categories,contact,accounting_period", - LineItemsTrackingCategoriesContactCompany: "line_items,tracking_categories,contact,company", - LineItemsTrackingCategoriesContactCompanyAccountingPeriod: - "line_items,tracking_categories,contact,company,accounting_period", - TrackingCategories: "tracking_categories", - TrackingCategoriesAccount: "tracking_categories,account", - TrackingCategoriesAccountAccountingPeriod: "tracking_categories,account,accounting_period", - TrackingCategoriesAccountCompany: "tracking_categories,account,company", - TrackingCategoriesAccountCompanyAccountingPeriod: "tracking_categories,account,company,accounting_period", - TrackingCategoriesAccountingPeriod: "tracking_categories,accounting_period", - TrackingCategoriesCompany: "tracking_categories,company", - TrackingCategoriesCompanyAccountingPeriod: "tracking_categories,company,accounting_period", - TrackingCategoriesContact: "tracking_categories,contact", - TrackingCategoriesContactAccount: "tracking_categories,contact,account", - TrackingCategoriesContactAccountAccountingPeriod: "tracking_categories,contact,account,accounting_period", - TrackingCategoriesContactAccountCompany: "tracking_categories,contact,account,company", - TrackingCategoriesContactAccountCompanyAccountingPeriod: - "tracking_categories,contact,account,company,accounting_period", - TrackingCategoriesContactAccountingPeriod: "tracking_categories,contact,accounting_period", - TrackingCategoriesContactCompany: "tracking_categories,contact,company", - TrackingCategoriesContactCompanyAccountingPeriod: "tracking_categories,contact,company,accounting_period", -} as const; -export type TransactionsRetrieveRequestExpand = - (typeof TransactionsRetrieveRequestExpand)[keyof typeof TransactionsRetrieveRequestExpand]; diff --git a/src/api/resources/accounting/resources/transactions/types/TransactionsRetrieveRequestExpandItem.ts b/src/api/resources/accounting/resources/transactions/types/TransactionsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..7bef0d586 --- /dev/null +++ b/src/api/resources/accounting/resources/transactions/types/TransactionsRetrieveRequestExpandItem.ts @@ -0,0 +1,12 @@ +// This file was auto-generated by Fern from our API Definition. + +export const TransactionsRetrieveRequestExpandItem = { + Account: "account", + AccountingPeriod: "accounting_period", + Company: "company", + Contact: "contact", + LineItems: "line_items", + TrackingCategories: "tracking_categories", +} as const; +export type TransactionsRetrieveRequestExpandItem = + (typeof TransactionsRetrieveRequestExpandItem)[keyof typeof TransactionsRetrieveRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/transactions/types/index.ts b/src/api/resources/accounting/resources/transactions/types/index.ts index d40b559e9..4c27ccfe5 100644 --- a/src/api/resources/accounting/resources/transactions/types/index.ts +++ b/src/api/resources/accounting/resources/transactions/types/index.ts @@ -1,2 +1,2 @@ -export * from "./TransactionsListRequestExpand"; -export * from "./TransactionsRetrieveRequestExpand"; +export * from "./TransactionsListRequestExpandItem"; +export * from "./TransactionsRetrieveRequestExpandItem"; diff --git a/src/api/resources/accounting/resources/vendorCredits/client/Client.ts b/src/api/resources/accounting/resources/vendorCredits/client/Client.ts index c4262fc32..5f432c235 100644 --- a/src/api/resources/accounting/resources/vendorCredits/client/Client.ts +++ b/src/api/resources/accounting/resources/vendorCredits/client/Client.ts @@ -35,7 +35,6 @@ export class VendorCreditsClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "accounting_period", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -47,15 +46,427 @@ export class VendorCreditsClient { * transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") * }) */ - public list( + public async list( request: Merge.accounting.VendorCreditsListRequest = {}, requestOptions?: VendorCreditsClient.RequestOptions, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.accounting.VendorCreditsListRequest, + ): Promise> => { + const { + companyId, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + transactionDateAfter, + transactionDateBefore, + } = request; + const _queryParams: Record = { + company_id: companyId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.VendorCreditsListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.accounting.VendorCreditsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + transaction_date_after: transactionDateAfter?.toISOString(), + transaction_date_before: transactionDateBefore?.toISOString(), + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/vendor-credits", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.PaginatedVendorCreditList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/vendor-credits", + ); + }, + ); + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, + }); + } + + /** + * Creates a `VendorCredit` object with the given values. + * + * @param {Merge.accounting.VendorCreditsCreateRequest} request + * @param {VendorCreditsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.vendorCredits.create({ + * isDebugMode: true, + * runAsync: true, + * body: { + * model: {} + * } + * }) + */ + public create( + request: Merge.accounting.VendorCreditsCreateRequest, + requestOptions?: VendorCreditsClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); + } + + private async __create( + request: Merge.accounting.VendorCreditsCreateRequest, + requestOptions?: VendorCreditsClient.RequestOptions, + ): Promise> { + const { isDebugMode, runAsync, body: _body } = request; + const _queryParams: Record = { + is_debug_mode: isDebugMode, + run_async: runAsync, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "accounting/v1/vendor-credits", + ), + method: "POST", + headers: _headers, + contentType: "application/json", + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + requestType: "json", + body: serializers.accounting.VendorCreditEndpointRequest.jsonOrThrow(_body, { + unrecognizedObjectKeys: "strip", + }), + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.VendorCreditResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "POST", + "/accounting/v1/vendor-credits", + ); + } + + /** + * Returns a `VendorCredit` object with the given `id`. + * + * @param {string} id + * @param {Merge.accounting.VendorCreditsRetrieveRequest} request + * @param {VendorCreditsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.vendorCredits.retrieve("id", { + * includeRemoteData: true, + * includeShellData: true + * }) + */ + public retrieve( + id: string, + request: Merge.accounting.VendorCreditsRetrieveRequest = {}, + requestOptions?: VendorCreditsClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); + } + + private async __retrieve( + id: string, + request: Merge.accounting.VendorCreditsRetrieveRequest = {}, + requestOptions?: VendorCreditsClient.RequestOptions, + ): Promise> { + const { expand, includeRemoteData, includeShellData } = request; + const _queryParams: Record = { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.VendorCreditsRetrieveRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.accounting.VendorCreditsRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + `accounting/v1/vendor-credits/${core.url.encodePathParam(id)}`, + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.VendorCredit.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/vendor-credits/{id}", + ); + } + + /** + * Updates a `VendorCredit` object with the given `id`. + * + * @param {string} id + * @param {Merge.accounting.PatchedVendorCreditEndpointRequest} request + * @param {VendorCreditsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.vendorCredits.partialUpdate("id", { + * isDebugMode: true, + * runAsync: true, + * model: {} + * }) + */ + public partialUpdate( + id: string, + request: Merge.accounting.PatchedVendorCreditEndpointRequest, + requestOptions?: VendorCreditsClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__partialUpdate(id, request, requestOptions)); + } + + private async __partialUpdate( + id: string, + request: Merge.accounting.PatchedVendorCreditEndpointRequest, + requestOptions?: VendorCreditsClient.RequestOptions, + ): Promise> { + const { isDebugMode, runAsync, ..._body } = request; + const _queryParams: Record = { + is_debug_mode: isDebugMode, + run_async: runAsync, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + `accounting/v1/vendor-credits/${core.url.encodePathParam(id)}`, + ), + method: "PATCH", + headers: _headers, + contentType: "application/json", + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + requestType: "json", + body: serializers.accounting.PatchedVendorCreditEndpointRequest.jsonOrThrow(_body, { + unrecognizedObjectKeys: "strip", + }), + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.VendorCreditResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "PATCH", + "/accounting/v1/vendor-credits/{id}", + ); + } + + /** + * Returns a list of `VendorCredit` objects. + * + * @param {string} batch_id + * @param {Merge.accounting.VendorCreditsBatchObjectsListRequest} request + * @param {VendorCreditsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.vendorCredits.batchObjectsList("batch_id", { + * companyId: "company_id", + * createdAfter: new Date("2024-01-15T09:30:00.000Z"), + * createdBefore: new Date("2024-01-15T09:30:00.000Z"), + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeShellData: true, + * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * pageSize: 1, + * remoteId: "remote_id", + * transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + * transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") + * }) + */ + public batchObjectsList( + batch_id: string, + request: Merge.accounting.VendorCreditsBatchObjectsListRequest = {}, + requestOptions?: VendorCreditsClient.RequestOptions, ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); + return core.HttpResponsePromise.fromPromise(this.__batchObjectsList(batch_id, request, requestOptions)); } - private async __list( - request: Merge.accounting.VendorCreditsListRequest = {}, + private async __batchObjectsList( + batch_id: string, + request: Merge.accounting.VendorCreditsBatchObjectsListRequest = {}, requestOptions?: VendorCreditsClient.RequestOptions, ): Promise> { const { @@ -79,12 +490,17 @@ export class VendorCreditsClient { created_after: createdAfter?.toISOString(), created_before: createdBefore?.toISOString(), cursor, - expand: - expand != null - ? serializers.accounting.VendorCreditsListRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.accounting.VendorCreditsBatchObjectsListRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.accounting.VendorCreditsBatchObjectsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_deleted_data: includeDeletedData, include_remote_data: includeRemoteData, include_shell_data: includeShellData, @@ -107,7 +523,7 @@ export class VendorCreditsClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/vendor-credits", + `accounting/v1/vendor-credits/batch/${core.url.encodePathParam(batch_id)}/objects`, ), method: "GET", headers: _headers, @@ -139,31 +555,41 @@ export class VendorCreditsClient { }); } - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/accounting/v1/vendor-credits"); + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/accounting/v1/vendor-credits/batch/{batch_id}/objects", + ); } /** * Creates a `VendorCredit` object with the given values. * - * @param {Merge.accounting.VendorCreditEndpointRequest} request + * @param {Merge.accounting.VendorCreditBulkRequest} request * @param {VendorCreditsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.vendorCredits.create({ + * await client.accounting.vendorCredits.asyncBulkCreate({ * isDebugMode: true, * runAsync: true, - * model: {} + * batchItems: [{ + * itemId: "item_id", + * payload: { + * model: {} + * } + * }] * }) */ - public create( - request: Merge.accounting.VendorCreditEndpointRequest, + public asyncBulkCreate( + request: Merge.accounting.VendorCreditBulkRequest, requestOptions?: VendorCreditsClient.RequestOptions, ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions)); + return core.HttpResponsePromise.fromPromise(this.__asyncBulkCreate(request, requestOptions)); } - private async __create( - request: Merge.accounting.VendorCreditEndpointRequest, + private async __asyncBulkCreate( + request: Merge.accounting.VendorCreditBulkRequest, requestOptions?: VendorCreditsClient.RequestOptions, ): Promise> { const { isDebugMode, runAsync, ..._body } = request; @@ -183,14 +609,14 @@ export class VendorCreditsClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/vendor-credits", + "accounting/v1/vendor-credits/async/bulk", ), method: "POST", headers: _headers, contentType: "application/json", queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, requestType: "json", - body: serializers.accounting.VendorCreditEndpointRequest.jsonOrThrow(_body, { + body: serializers.accounting.VendorCreditBulkRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip", }), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, @@ -224,47 +650,42 @@ export class VendorCreditsClient { _response.error, _response.rawResponse, "POST", - "/accounting/v1/vendor-credits", + "/accounting/v1/vendor-credits/async/bulk", ); } /** - * Returns a `VendorCredit` object with the given `id`. + * Creates a new VendorCreditApplyLine to apply a vendor credit to an invoice * * @param {string} id - * @param {Merge.accounting.VendorCreditsRetrieveRequest} request + * @param {Merge.accounting.ApplyVendorCreditRequest} request * @param {VendorCreditsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.accounting.vendorCredits.retrieve("id", { - * expand: "accounting_period", - * includeRemoteData: true, - * includeShellData: true + * await client.accounting.vendorCredits.applicationCreate("id", { + * isDebugMode: true, + * runAsync: true, + * appliedDate: new Date("2024-01-15T09:30:00.000Z"), + * appliedAmount: "applied_amount" * }) */ - public retrieve( + public applicationCreate( id: string, - request: Merge.accounting.VendorCreditsRetrieveRequest = {}, + request: Merge.accounting.ApplyVendorCreditRequest, requestOptions?: VendorCreditsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__applicationCreate(id, request, requestOptions)); } - private async __retrieve( + private async __applicationCreate( id: string, - request: Merge.accounting.VendorCreditsRetrieveRequest = {}, + request: Merge.accounting.ApplyVendorCreditRequest, requestOptions?: VendorCreditsClient.RequestOptions, - ): Promise> { - const { expand, includeRemoteData, includeShellData } = request; + ): Promise> { + const { isDebugMode, runAsync, ..._body } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.accounting.VendorCreditsRetrieveRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, + is_debug_mode: isDebugMode, + run_async: runAsync, }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( @@ -278,11 +699,16 @@ export class VendorCreditsClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - `accounting/v1/vendor-credits/${core.url.encodePathParam(id)}`, + `accounting/v1/vendor-credits/${core.url.encodePathParam(id)}/application`, ), - method: "GET", + method: "POST", headers: _headers, + contentType: "application/json", queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + requestType: "json", + body: serializers.accounting.ApplyVendorCreditRequest.jsonOrThrow(_body, { + unrecognizedObjectKeys: "strip", + }), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -291,7 +717,79 @@ export class VendorCreditsClient { }); if (_response.ok) { return { - data: serializers.accounting.VendorCredit.parseOrThrow(_response.body, { + data: serializers.accounting.VendorCreditResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "POST", + "/accounting/v1/vendor-credits/{id}/application", + ); + } + + /** + * Returns metadata for `VendorCredit` PATCHs. + * + * @param {string} id + * @param {VendorCreditsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.accounting.vendorCredits.metaPatchRetrieve("id") + */ + public metaPatchRetrieve( + id: string, + requestOptions?: VendorCreditsClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__metaPatchRetrieve(id, requestOptions)); + } + + private async __metaPatchRetrieve( + id: string, + requestOptions?: VendorCreditsClient.RequestOptions, + ): Promise> { + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + `accounting/v1/vendor-credits/meta/patch/${core.url.encodePathParam(id)}`, + ), + method: "GET", + headers: _headers, + queryParameters: requestOptions?.queryParams, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.accounting.MetaResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -314,7 +812,7 @@ export class VendorCreditsClient { _response.error, _response.rawResponse, "GET", - "/accounting/v1/vendor-credits/{id}", + "/accounting/v1/vendor-credits/meta/patch/{id}", ); } diff --git a/src/api/resources/accounting/resources/vendorCredits/client/requests/ApplyVendorCreditRequest.ts b/src/api/resources/accounting/resources/vendorCredits/client/requests/ApplyVendorCreditRequest.ts new file mode 100644 index 000000000..922dcfd87 --- /dev/null +++ b/src/api/resources/accounting/resources/vendorCredits/client/requests/ApplyVendorCreditRequest.ts @@ -0,0 +1,23 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * appliedDate: new Date("2024-01-15T09:30:00.000Z"), + * appliedAmount: "applied_amount" + * } + */ +export interface ApplyVendorCreditRequest { + /** 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; + /** The invoice to apply the vendor credit to. */ + invoice?: string; + /** Date that the vendor credit is applied to the invoice. */ + appliedDate: Date; + /** The amount of vendor credit applied to the invoice. */ + appliedAmount: string; +} diff --git a/src/api/resources/accounting/resources/vendorCredits/client/requests/PatchedVendorCreditEndpointRequest.ts b/src/api/resources/accounting/resources/vendorCredits/client/requests/PatchedVendorCreditEndpointRequest.ts new file mode 100644 index 000000000..73499ac71 --- /dev/null +++ b/src/api/resources/accounting/resources/vendorCredits/client/requests/PatchedVendorCreditEndpointRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * model: {} + * } + */ +export interface PatchedVendorCreditEndpointRequest { + /** 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.accounting.PatchedVendorCreditRequest; +} diff --git a/src/api/resources/accounting/resources/vendorCredits/client/requests/VendorCreditBulkRequest.ts b/src/api/resources/accounting/resources/vendorCredits/client/requests/VendorCreditBulkRequest.ts new file mode 100644 index 000000000..d2e6838d2 --- /dev/null +++ b/src/api/resources/accounting/resources/vendorCredits/client/requests/VendorCreditBulkRequest.ts @@ -0,0 +1,24 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * batchItems: [{ + * itemId: "item_id", + * payload: { + * model: {} + * } + * }] + * } + */ +export interface VendorCreditBulkRequest { + /** 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; + batchItems: Merge.accounting.VendorCreditBatchItemRequest[]; +} diff --git a/src/api/resources/accounting/resources/vendorCredits/client/requests/VendorCreditEndpointRequest.ts b/src/api/resources/accounting/resources/vendorCredits/client/requests/VendorCreditEndpointRequest.ts deleted file mode 100644 index cccd85d9d..000000000 --- a/src/api/resources/accounting/resources/vendorCredits/client/requests/VendorCreditEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * isDebugMode: true, - * runAsync: true, - * model: {} - * } - */ -export interface VendorCreditEndpointRequest { - /** 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.accounting.VendorCreditRequest; -} diff --git a/src/api/resources/accounting/resources/vendorCredits/client/requests/VendorCreditsBatchObjectsListRequest.ts b/src/api/resources/accounting/resources/vendorCredits/client/requests/VendorCreditsBatchObjectsListRequest.ts new file mode 100644 index 000000000..207bd70f4 --- /dev/null +++ b/src/api/resources/accounting/resources/vendorCredits/client/requests/VendorCreditsBatchObjectsListRequest.ts @@ -0,0 +1,54 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * companyId: "company_id", + * createdAfter: new Date("2024-01-15T09:30:00.000Z"), + * createdBefore: new Date("2024-01-15T09:30:00.000Z"), + * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * includeDeletedData: true, + * includeRemoteData: true, + * includeShellData: true, + * modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + * pageSize: 1, + * remoteId: "remote_id", + * transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + * transactionDateBefore: new Date("2024-01-15T09:30:00.000Z") + * } + */ +export interface VendorCreditsBatchObjectsListRequest { + /** If provided, will only return vendor credits for this company. */ + companyId?: string; + /** If provided, will only return objects created after this datetime. */ + createdAfter?: Date; + /** If provided, will only return objects created before this datetime. */ + createdBefore?: Date; + /** The pagination cursor value. */ + cursor?: string; + /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ + expand?: + | Merge.accounting.VendorCreditsBatchObjectsListRequestExpandItem + | Merge.accounting.VendorCreditsBatchObjectsListRequestExpandItem[]; + /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ + includeDeletedData?: boolean; + /** Whether to include the original data Merge fetched from the third-party to produce these models. */ + includeRemoteData?: boolean; + /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ + includeShellData?: boolean; + /** If provided, only objects synced by Merge after this date time will be returned. */ + modifiedAfter?: Date; + /** If provided, only objects synced by Merge before this date time will be returned. */ + modifiedBefore?: Date; + /** Number of results to return per page. The maximum limit is 100. */ + pageSize?: number; + /** The API provider's ID for the given object. */ + remoteId?: string; + /** If provided, will only return objects created after this datetime. */ + transactionDateAfter?: Date; + /** If provided, will only return objects created before this datetime. */ + transactionDateBefore?: Date; +} diff --git a/src/api/resources/accounting/resources/vendorCredits/client/requests/VendorCreditsCreateRequest.ts b/src/api/resources/accounting/resources/vendorCredits/client/requests/VendorCreditsCreateRequest.ts new file mode 100644 index 000000000..14f77774c --- /dev/null +++ b/src/api/resources/accounting/resources/vendorCredits/client/requests/VendorCreditsCreateRequest.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +/** + * @example + * { + * isDebugMode: true, + * runAsync: true, + * body: { + * model: {} + * } + * } + */ +export interface VendorCreditsCreateRequest { + /** 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; + body: Merge.accounting.VendorCreditEndpointRequest; +} diff --git a/src/api/resources/accounting/resources/vendorCredits/client/requests/VendorCreditsListRequest.ts b/src/api/resources/accounting/resources/vendorCredits/client/requests/VendorCreditsListRequest.ts index 77985bb71..9c0591897 100644 --- a/src/api/resources/accounting/resources/vendorCredits/client/requests/VendorCreditsListRequest.ts +++ b/src/api/resources/accounting/resources/vendorCredits/client/requests/VendorCreditsListRequest.ts @@ -9,7 +9,6 @@ import type * as Merge from "../../../../../../index"; * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "accounting_period", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -31,7 +30,9 @@ export interface VendorCreditsListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.VendorCreditsListRequestExpand; + expand?: + | Merge.accounting.VendorCreditsListRequestExpandItem + | Merge.accounting.VendorCreditsListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -42,7 +43,7 @@ export interface VendorCreditsListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; diff --git a/src/api/resources/accounting/resources/vendorCredits/client/requests/VendorCreditsRetrieveRequest.ts b/src/api/resources/accounting/resources/vendorCredits/client/requests/VendorCreditsRetrieveRequest.ts index df40719fc..8ced3cb8d 100644 --- a/src/api/resources/accounting/resources/vendorCredits/client/requests/VendorCreditsRetrieveRequest.ts +++ b/src/api/resources/accounting/resources/vendorCredits/client/requests/VendorCreditsRetrieveRequest.ts @@ -5,14 +5,15 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "accounting_period", * includeRemoteData: true, * includeShellData: true * } */ export interface VendorCreditsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.accounting.VendorCreditsRetrieveRequestExpand; + expand?: + | Merge.accounting.VendorCreditsRetrieveRequestExpandItem + | Merge.accounting.VendorCreditsRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/accounting/resources/vendorCredits/client/requests/index.ts b/src/api/resources/accounting/resources/vendorCredits/client/requests/index.ts index 442a8e886..03ef65796 100644 --- a/src/api/resources/accounting/resources/vendorCredits/client/requests/index.ts +++ b/src/api/resources/accounting/resources/vendorCredits/client/requests/index.ts @@ -1,3 +1,7 @@ -export type { VendorCreditEndpointRequest } from "./VendorCreditEndpointRequest"; +export type { ApplyVendorCreditRequest } from "./ApplyVendorCreditRequest"; +export type { PatchedVendorCreditEndpointRequest } from "./PatchedVendorCreditEndpointRequest"; +export type { VendorCreditBulkRequest } from "./VendorCreditBulkRequest"; +export type { VendorCreditsBatchObjectsListRequest } from "./VendorCreditsBatchObjectsListRequest"; +export type { VendorCreditsCreateRequest } from "./VendorCreditsCreateRequest"; export type { VendorCreditsListRequest } from "./VendorCreditsListRequest"; export type { VendorCreditsRetrieveRequest } from "./VendorCreditsRetrieveRequest"; diff --git a/src/api/resources/accounting/resources/vendorCredits/types/VendorCreditsBatchObjectsListRequestExpandItem.ts b/src/api/resources/accounting/resources/vendorCredits/types/VendorCreditsBatchObjectsListRequestExpandItem.ts new file mode 100644 index 000000000..b94a46c46 --- /dev/null +++ b/src/api/resources/accounting/resources/vendorCredits/types/VendorCreditsBatchObjectsListRequestExpandItem.ts @@ -0,0 +1,11 @@ +// This file was auto-generated by Fern from our API Definition. + +export const VendorCreditsBatchObjectsListRequestExpandItem = { + AccountingPeriod: "accounting_period", + Company: "company", + Lines: "lines", + TrackingCategories: "tracking_categories", + Vendor: "vendor", +} as const; +export type VendorCreditsBatchObjectsListRequestExpandItem = + (typeof VendorCreditsBatchObjectsListRequestExpandItem)[keyof typeof VendorCreditsBatchObjectsListRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/vendorCredits/types/VendorCreditsListRequestExpand.ts b/src/api/resources/accounting/resources/vendorCredits/types/VendorCreditsListRequestExpand.ts deleted file mode 100644 index 6c319e25a..000000000 --- a/src/api/resources/accounting/resources/vendorCredits/types/VendorCreditsListRequestExpand.ts +++ /dev/null @@ -1,37 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const VendorCreditsListRequestExpand = { - AccountingPeriod: "accounting_period", - Company: "company", - CompanyAccountingPeriod: "company,accounting_period", - Lines: "lines", - LinesAccountingPeriod: "lines,accounting_period", - LinesCompany: "lines,company", - LinesCompanyAccountingPeriod: "lines,company,accounting_period", - LinesTrackingCategories: "lines,tracking_categories", - LinesTrackingCategoriesAccountingPeriod: "lines,tracking_categories,accounting_period", - LinesTrackingCategoriesCompany: "lines,tracking_categories,company", - LinesTrackingCategoriesCompanyAccountingPeriod: "lines,tracking_categories,company,accounting_period", - LinesTrackingCategoriesVendor: "lines,tracking_categories,vendor", - LinesTrackingCategoriesVendorAccountingPeriod: "lines,tracking_categories,vendor,accounting_period", - LinesTrackingCategoriesVendorCompany: "lines,tracking_categories,vendor,company", - LinesTrackingCategoriesVendorCompanyAccountingPeriod: "lines,tracking_categories,vendor,company,accounting_period", - LinesVendor: "lines,vendor", - LinesVendorAccountingPeriod: "lines,vendor,accounting_period", - LinesVendorCompany: "lines,vendor,company", - LinesVendorCompanyAccountingPeriod: "lines,vendor,company,accounting_period", - TrackingCategories: "tracking_categories", - TrackingCategoriesAccountingPeriod: "tracking_categories,accounting_period", - TrackingCategoriesCompany: "tracking_categories,company", - TrackingCategoriesCompanyAccountingPeriod: "tracking_categories,company,accounting_period", - TrackingCategoriesVendor: "tracking_categories,vendor", - TrackingCategoriesVendorAccountingPeriod: "tracking_categories,vendor,accounting_period", - TrackingCategoriesVendorCompany: "tracking_categories,vendor,company", - TrackingCategoriesVendorCompanyAccountingPeriod: "tracking_categories,vendor,company,accounting_period", - Vendor: "vendor", - VendorAccountingPeriod: "vendor,accounting_period", - VendorCompany: "vendor,company", - VendorCompanyAccountingPeriod: "vendor,company,accounting_period", -} as const; -export type VendorCreditsListRequestExpand = - (typeof VendorCreditsListRequestExpand)[keyof typeof VendorCreditsListRequestExpand]; diff --git a/src/api/resources/accounting/resources/vendorCredits/types/VendorCreditsListRequestExpandItem.ts b/src/api/resources/accounting/resources/vendorCredits/types/VendorCreditsListRequestExpandItem.ts new file mode 100644 index 000000000..92d23a026 --- /dev/null +++ b/src/api/resources/accounting/resources/vendorCredits/types/VendorCreditsListRequestExpandItem.ts @@ -0,0 +1,11 @@ +// This file was auto-generated by Fern from our API Definition. + +export const VendorCreditsListRequestExpandItem = { + AccountingPeriod: "accounting_period", + Company: "company", + Lines: "lines", + TrackingCategories: "tracking_categories", + Vendor: "vendor", +} as const; +export type VendorCreditsListRequestExpandItem = + (typeof VendorCreditsListRequestExpandItem)[keyof typeof VendorCreditsListRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/vendorCredits/types/VendorCreditsRetrieveRequestExpand.ts b/src/api/resources/accounting/resources/vendorCredits/types/VendorCreditsRetrieveRequestExpand.ts deleted file mode 100644 index cb9fc0593..000000000 --- a/src/api/resources/accounting/resources/vendorCredits/types/VendorCreditsRetrieveRequestExpand.ts +++ /dev/null @@ -1,37 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const VendorCreditsRetrieveRequestExpand = { - AccountingPeriod: "accounting_period", - Company: "company", - CompanyAccountingPeriod: "company,accounting_period", - Lines: "lines", - LinesAccountingPeriod: "lines,accounting_period", - LinesCompany: "lines,company", - LinesCompanyAccountingPeriod: "lines,company,accounting_period", - LinesTrackingCategories: "lines,tracking_categories", - LinesTrackingCategoriesAccountingPeriod: "lines,tracking_categories,accounting_period", - LinesTrackingCategoriesCompany: "lines,tracking_categories,company", - LinesTrackingCategoriesCompanyAccountingPeriod: "lines,tracking_categories,company,accounting_period", - LinesTrackingCategoriesVendor: "lines,tracking_categories,vendor", - LinesTrackingCategoriesVendorAccountingPeriod: "lines,tracking_categories,vendor,accounting_period", - LinesTrackingCategoriesVendorCompany: "lines,tracking_categories,vendor,company", - LinesTrackingCategoriesVendorCompanyAccountingPeriod: "lines,tracking_categories,vendor,company,accounting_period", - LinesVendor: "lines,vendor", - LinesVendorAccountingPeriod: "lines,vendor,accounting_period", - LinesVendorCompany: "lines,vendor,company", - LinesVendorCompanyAccountingPeriod: "lines,vendor,company,accounting_period", - TrackingCategories: "tracking_categories", - TrackingCategoriesAccountingPeriod: "tracking_categories,accounting_period", - TrackingCategoriesCompany: "tracking_categories,company", - TrackingCategoriesCompanyAccountingPeriod: "tracking_categories,company,accounting_period", - TrackingCategoriesVendor: "tracking_categories,vendor", - TrackingCategoriesVendorAccountingPeriod: "tracking_categories,vendor,accounting_period", - TrackingCategoriesVendorCompany: "tracking_categories,vendor,company", - TrackingCategoriesVendorCompanyAccountingPeriod: "tracking_categories,vendor,company,accounting_period", - Vendor: "vendor", - VendorAccountingPeriod: "vendor,accounting_period", - VendorCompany: "vendor,company", - VendorCompanyAccountingPeriod: "vendor,company,accounting_period", -} as const; -export type VendorCreditsRetrieveRequestExpand = - (typeof VendorCreditsRetrieveRequestExpand)[keyof typeof VendorCreditsRetrieveRequestExpand]; diff --git a/src/api/resources/accounting/resources/vendorCredits/types/VendorCreditsRetrieveRequestExpandItem.ts b/src/api/resources/accounting/resources/vendorCredits/types/VendorCreditsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..2254ad897 --- /dev/null +++ b/src/api/resources/accounting/resources/vendorCredits/types/VendorCreditsRetrieveRequestExpandItem.ts @@ -0,0 +1,11 @@ +// This file was auto-generated by Fern from our API Definition. + +export const VendorCreditsRetrieveRequestExpandItem = { + AccountingPeriod: "accounting_period", + Company: "company", + Lines: "lines", + TrackingCategories: "tracking_categories", + Vendor: "vendor", +} as const; +export type VendorCreditsRetrieveRequestExpandItem = + (typeof VendorCreditsRetrieveRequestExpandItem)[keyof typeof VendorCreditsRetrieveRequestExpandItem]; diff --git a/src/api/resources/accounting/resources/vendorCredits/types/index.ts b/src/api/resources/accounting/resources/vendorCredits/types/index.ts index 23d33b551..3a98c56d2 100644 --- a/src/api/resources/accounting/resources/vendorCredits/types/index.ts +++ b/src/api/resources/accounting/resources/vendorCredits/types/index.ts @@ -1,2 +1,3 @@ -export * from "./VendorCreditsListRequestExpand"; -export * from "./VendorCreditsRetrieveRequestExpand"; +export * from "./VendorCreditsBatchObjectsListRequestExpandItem"; +export * from "./VendorCreditsListRequestExpandItem"; +export * from "./VendorCreditsRetrieveRequestExpandItem"; diff --git a/src/api/resources/accounting/types/Account.ts b/src/api/resources/accounting/types/Account.ts index e16367737..a952f52a9 100644 --- a/src/api/resources/accounting/types/Account.ts +++ b/src/api/resources/accounting/types/Account.ts @@ -385,7 +385,7 @@ export interface Account { /** ID of the parent account. */ parentAccount?: string; /** The company the account belongs to. */ - company?: string; + company?: Merge.accounting.AccountCompany; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ remoteWasDeleted?: boolean; fieldMappings?: Record; diff --git a/src/api/resources/accounting/types/AccountBatchItemRequest.ts b/src/api/resources/accounting/types/AccountBatchItemRequest.ts new file mode 100644 index 000000000..354d11af5 --- /dev/null +++ b/src/api/resources/accounting/types/AccountBatchItemRequest.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface AccountBatchItemRequest { + /** The third-party item ID for this model in the bulk create request */ + itemId: string; + payload: Merge.accounting.AccountEndpointRequest; +} diff --git a/src/api/resources/accounting/types/AccountCompany.ts b/src/api/resources/accounting/types/AccountCompany.ts new file mode 100644 index 000000000..b6fe681c3 --- /dev/null +++ b/src/api/resources/accounting/types/AccountCompany.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The company the account belongs to. + */ +export type AccountCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/AccountDetails.ts b/src/api/resources/accounting/types/AccountDetails.ts index 844c6ba65..fc052e69c 100644 --- a/src/api/resources/accounting/types/AccountDetails.ts +++ b/src/api/resources/accounting/types/AccountDetails.ts @@ -6,7 +6,7 @@ export interface AccountDetails { id?: string; integration?: string; integrationSlug?: string; - category?: Merge.accounting.AccountDetailsCategory; + category?: Merge.accounting.CategoryEnum; endUserOriginId?: string; endUserOrganizationName?: string; endUserEmailAddress?: string; diff --git a/src/api/resources/accounting/types/AccountDetailsCategory.ts b/src/api/resources/accounting/types/AccountDetailsCategory.ts deleted file mode 100644 index 2cfca4046..000000000 --- a/src/api/resources/accounting/types/AccountDetailsCategory.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export type AccountDetailsCategory = Merge.accounting.CategoryEnum | string; diff --git a/src/api/resources/accounting/types/AccountEndpointRequest.ts b/src/api/resources/accounting/types/AccountEndpointRequest.ts new file mode 100644 index 000000000..40ecf54b1 --- /dev/null +++ b/src/api/resources/accounting/types/AccountEndpointRequest.ts @@ -0,0 +1,7 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface AccountEndpointRequest { + model: Merge.accounting.AccountRequest; +} diff --git a/src/api/resources/accounting/types/AccountRequest.ts b/src/api/resources/accounting/types/AccountRequest.ts index 4fd6c3c59..abb1f1585 100644 --- a/src/api/resources/accounting/types/AccountRequest.ts +++ b/src/api/resources/accounting/types/AccountRequest.ts @@ -378,7 +378,7 @@ export interface AccountRequest { /** ID of the parent account. */ parentAccount?: string; /** The company the account belongs to. */ - company?: string; + company?: Merge.accounting.AccountRequestCompany; integrationParams?: Record; linkedAccountParams?: Record; } diff --git a/src/api/resources/accounting/types/AccountRequestCompany.ts b/src/api/resources/accounting/types/AccountRequestCompany.ts new file mode 100644 index 000000000..dd5fff88a --- /dev/null +++ b/src/api/resources/accounting/types/AccountRequestCompany.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The company the account belongs to. + */ +export type AccountRequestCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/AccountingAttachmentBatchItemRequest.ts b/src/api/resources/accounting/types/AccountingAttachmentBatchItemRequest.ts new file mode 100644 index 000000000..7580b2d5b --- /dev/null +++ b/src/api/resources/accounting/types/AccountingAttachmentBatchItemRequest.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface AccountingAttachmentBatchItemRequest { + /** The third-party item ID for this model in the bulk create request */ + itemId: string; + payload: Merge.accounting.AccountingAttachmentEndpointRequest; +} diff --git a/src/api/resources/accounting/types/AccountingAttachmentEndpointRequest.ts b/src/api/resources/accounting/types/AccountingAttachmentEndpointRequest.ts new file mode 100644 index 000000000..510b3f658 --- /dev/null +++ b/src/api/resources/accounting/types/AccountingAttachmentEndpointRequest.ts @@ -0,0 +1,7 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface AccountingAttachmentEndpointRequest { + model: Merge.accounting.AccountingAttachmentRequest; +} diff --git a/src/api/resources/accounting/types/AuditLogEvent.ts b/src/api/resources/accounting/types/AuditLogEvent.ts index 655a1e991..6aac7ecbc 100644 --- a/src/api/resources/accounting/types/AuditLogEvent.ts +++ b/src/api/resources/accounting/types/AuditLogEvent.ts @@ -17,6 +17,7 @@ export interface AuditLogEvent { * * `API` - API * * `SYSTEM` - SYSTEM * * `MERGE_TEAM` - MERGE_TEAM + * * `SUPPORT` - SUPPORT */ role: Merge.accounting.AuditLogEventRole; ipAddress: string; diff --git a/src/api/resources/accounting/types/AuditLogEventRole.ts b/src/api/resources/accounting/types/AuditLogEventRole.ts index 0bd2199d6..c8d77278b 100644 --- a/src/api/resources/accounting/types/AuditLogEventRole.ts +++ b/src/api/resources/accounting/types/AuditLogEventRole.ts @@ -11,5 +11,6 @@ import type * as Merge from "../../../index"; * * `API` - API * * `SYSTEM` - SYSTEM * * `MERGE_TEAM` - MERGE_TEAM + * * `SUPPORT` - SUPPORT */ export type AuditLogEventRole = Merge.accounting.RoleEnum | string; diff --git a/src/api/resources/accounting/types/BankFeedAccountBatchItemRequest.ts b/src/api/resources/accounting/types/BankFeedAccountBatchItemRequest.ts new file mode 100644 index 000000000..12d603c2e --- /dev/null +++ b/src/api/resources/accounting/types/BankFeedAccountBatchItemRequest.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface BankFeedAccountBatchItemRequest { + /** The third-party item ID for this model in the bulk create request */ + itemId: string; + payload: Merge.accounting.BankFeedAccountEndpointRequest; +} diff --git a/src/api/resources/accounting/types/BankFeedAccountEndpointRequest.ts b/src/api/resources/accounting/types/BankFeedAccountEndpointRequest.ts new file mode 100644 index 000000000..70f9d1eb6 --- /dev/null +++ b/src/api/resources/accounting/types/BankFeedAccountEndpointRequest.ts @@ -0,0 +1,7 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface BankFeedAccountEndpointRequest { + model: Merge.accounting.BankFeedAccountRequest; +} diff --git a/src/api/resources/accounting/types/BankFeedTransactionBatchItemRequest.ts b/src/api/resources/accounting/types/BankFeedTransactionBatchItemRequest.ts new file mode 100644 index 000000000..9a3b937d4 --- /dev/null +++ b/src/api/resources/accounting/types/BankFeedTransactionBatchItemRequest.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface BankFeedTransactionBatchItemRequest { + /** The third-party item ID for this model in the bulk create request */ + itemId: string; + payload: Merge.accounting.BankFeedTransactionEndpointRequest; +} diff --git a/src/api/resources/accounting/types/BankFeedTransactionEndpointRequest.ts b/src/api/resources/accounting/types/BankFeedTransactionEndpointRequest.ts new file mode 100644 index 000000000..b1e44079a --- /dev/null +++ b/src/api/resources/accounting/types/BankFeedTransactionEndpointRequest.ts @@ -0,0 +1,7 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface BankFeedTransactionEndpointRequest { + model: Merge.accounting.BankFeedTransactionRequestRequest; +} diff --git a/src/api/resources/accounting/types/ContactBatchItemRequest.ts b/src/api/resources/accounting/types/ContactBatchItemRequest.ts new file mode 100644 index 000000000..6d5c6ec5f --- /dev/null +++ b/src/api/resources/accounting/types/ContactBatchItemRequest.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface ContactBatchItemRequest { + /** The third-party item ID for this model in the bulk create request */ + itemId: string; + payload: Merge.accounting.ContactEndpointRequest; +} diff --git a/src/api/resources/accounting/types/ContactEndpointRequest.ts b/src/api/resources/accounting/types/ContactEndpointRequest.ts new file mode 100644 index 000000000..10970c68a --- /dev/null +++ b/src/api/resources/accounting/types/ContactEndpointRequest.ts @@ -0,0 +1,7 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface ContactEndpointRequest { + model: Merge.accounting.ContactRequest; +} diff --git a/src/api/resources/accounting/types/CreditNoteBatchItemRequest.ts b/src/api/resources/accounting/types/CreditNoteBatchItemRequest.ts new file mode 100644 index 000000000..a2aac798c --- /dev/null +++ b/src/api/resources/accounting/types/CreditNoteBatchItemRequest.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface CreditNoteBatchItemRequest { + /** The third-party item ID for this model in the bulk create request */ + itemId: string; + payload: Merge.accounting.CreditNoteEndpointRequest; +} diff --git a/src/api/resources/accounting/types/CreditNoteEndpointRequest.ts b/src/api/resources/accounting/types/CreditNoteEndpointRequest.ts new file mode 100644 index 000000000..897b63c5c --- /dev/null +++ b/src/api/resources/accounting/types/CreditNoteEndpointRequest.ts @@ -0,0 +1,7 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface CreditNoteEndpointRequest { + model: Merge.accounting.CreditNoteRequest; +} diff --git a/src/api/resources/accounting/types/CreditNoteLineItemRequestProject.ts b/src/api/resources/accounting/types/CreditNoteLineItemRequestProject.ts index a046646b9..38f45c72f 100644 --- a/src/api/resources/accounting/types/CreditNoteLineItemRequestProject.ts +++ b/src/api/resources/accounting/types/CreditNoteLineItemRequestProject.ts @@ -2,4 +2,4 @@ import type * as Merge from "../../../index"; -export type CreditNoteLineItemRequestProject = string | Merge.accounting.Contact; +export type CreditNoteLineItemRequestProject = string | Merge.accounting.Project; diff --git a/src/api/resources/accounting/types/DataPassthroughRequest.ts b/src/api/resources/accounting/types/DataPassthroughRequest.ts index c4883175a..acb28fc99 100644 --- a/src/api/resources/accounting/types/DataPassthroughRequest.ts +++ b/src/api/resources/accounting/types/DataPassthroughRequest.ts @@ -11,7 +11,7 @@ import type * as Merge from "../../../index"; * Create a `DataPassthrough` to get team hierarchies from your Rippling integration. */ export interface DataPassthroughRequest { - method: Merge.accounting.DataPassthroughRequestMethod; + method: Merge.accounting.MethodEnum; /** The path of the request in the third party's platform. */ path: string; /** An optional override of the third party's base url for the request. */ diff --git a/src/api/resources/accounting/types/DataPassthroughRequestMethod.ts b/src/api/resources/accounting/types/DataPassthroughRequestMethod.ts deleted file mode 100644 index 1c2fc3cad..000000000 --- a/src/api/resources/accounting/types/DataPassthroughRequestMethod.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export type DataPassthroughRequestMethod = Merge.accounting.MethodEnum | string; diff --git a/src/api/resources/accounting/types/Expense.ts b/src/api/resources/accounting/types/Expense.ts index a5b0f0ff7..5e844d720 100644 --- a/src/api/resources/accounting/types/Expense.ts +++ b/src/api/resources/accounting/types/Expense.ts @@ -7,7 +7,7 @@ import type * as Merge from "../../../index"; * ### Description * The `Expense` object is used to represent a direct purchase by a business, typically made with a check, credit card, or cash. Each `Expense` object is dedicated to a grouping of expenses, with each expense recorded in the lines object. * - * The `Expense` object is used also used to represent refunds to direct purchases. Refunds can be distinguished from purchases by the amount sign of the records. Expense objects with a negative amount are purchases and `Expense` objects with a positive amount are refunds to those purchases. + * The `Expense` object is also used to represent refunds to direct purchases. Refunds can be distinguished from purchases by the amount sign of the records. Expense objects with a negative amount are purchases and `Expense` objects with a positive amount are refunds to those purchases. * * ### Usage Example * Fetch from the `GET Expense` endpoint and view a company's expense. diff --git a/src/api/resources/accounting/types/ExpenseBatchItemRequest.ts b/src/api/resources/accounting/types/ExpenseBatchItemRequest.ts new file mode 100644 index 000000000..f3a0cec1a --- /dev/null +++ b/src/api/resources/accounting/types/ExpenseBatchItemRequest.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface ExpenseBatchItemRequest { + /** The third-party item ID for this model in the bulk create request */ + itemId: string; + payload: Merge.accounting.ExpenseEndpointRequest; +} diff --git a/src/api/resources/accounting/types/ExpenseEndpointRequest.ts b/src/api/resources/accounting/types/ExpenseEndpointRequest.ts new file mode 100644 index 000000000..cca6fada1 --- /dev/null +++ b/src/api/resources/accounting/types/ExpenseEndpointRequest.ts @@ -0,0 +1,7 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface ExpenseEndpointRequest { + model: Merge.accounting.ExpenseRequest; +} diff --git a/src/api/resources/accounting/types/ExpenseLineRequestProject.ts b/src/api/resources/accounting/types/ExpenseLineRequestProject.ts index 9212e45d8..113ddcaf8 100644 --- a/src/api/resources/accounting/types/ExpenseLineRequestProject.ts +++ b/src/api/resources/accounting/types/ExpenseLineRequestProject.ts @@ -2,4 +2,4 @@ import type * as Merge from "../../../index"; -export type ExpenseLineRequestProject = string | Merge.accounting.Contact; +export type ExpenseLineRequestProject = string | Merge.accounting.Project; diff --git a/src/api/resources/accounting/types/ExpenseReport.ts b/src/api/resources/accounting/types/ExpenseReport.ts index 7bf33b1c2..b01b6fa42 100644 --- a/src/api/resources/accounting/types/ExpenseReport.ts +++ b/src/api/resources/accounting/types/ExpenseReport.ts @@ -24,7 +24,7 @@ export interface ExpenseReport { /** Human-readable expense report identifier. */ reportIdentifier?: string; /** Identifier for the employee who submitted or is associated with the expense report */ - employee?: string; + employee?: Merge.accounting.ExpenseReportEmployee; /** * Overall status of the expense report. One of DRAFT, SUBMITTED, APPROVED, REJECTED * @@ -36,7 +36,7 @@ export interface ExpenseReport { status?: Merge.accounting.ExpenseReportStatus; /** Total amount of the expense report */ totalAmount?: number; - lines?: Merge.accounting.ExpenseReportLine[]; + lines?: Merge.accounting.ExpenseReportLinesItem[]; /** * Currency code for the expense report * @@ -347,11 +347,11 @@ export interface ExpenseReport { * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ - currency?: Merge.accounting.TransactionCurrencyEnum; + currency?: Merge.accounting.ExpenseReportCurrency; /** A brief description or purpose for the expense report */ description?: string; /** The accounting period the report was posted in */ - accountingPeriod?: string; + accountingPeriod?: Merge.accounting.ExpenseReportAccountingPeriod; /** The subsidiary that the expense report is created in */ company?: Merge.accounting.ExpenseReportCompany; /** The related tracking categories associated with the expense report */ diff --git a/src/api/resources/accounting/types/ExpenseReportAccountingPeriod.ts b/src/api/resources/accounting/types/ExpenseReportAccountingPeriod.ts new file mode 100644 index 000000000..196f1b6cd --- /dev/null +++ b/src/api/resources/accounting/types/ExpenseReportAccountingPeriod.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The accounting period the report was posted in + */ +export type ExpenseReportAccountingPeriod = string | Merge.accounting.AccountingPeriod; diff --git a/src/api/resources/accounting/types/ExpenseReportBatchItemRequest.ts b/src/api/resources/accounting/types/ExpenseReportBatchItemRequest.ts new file mode 100644 index 000000000..da320a91f --- /dev/null +++ b/src/api/resources/accounting/types/ExpenseReportBatchItemRequest.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface ExpenseReportBatchItemRequest { + /** The third-party item ID for this model in the bulk create request */ + itemId: string; + payload: Merge.accounting.ExpenseReportEndpointRequest; +} diff --git a/src/api/resources/accounting/types/ExpenseReportCurrency.ts b/src/api/resources/accounting/types/ExpenseReportCurrency.ts new file mode 100644 index 000000000..38ae6cc58 --- /dev/null +++ b/src/api/resources/accounting/types/ExpenseReportCurrency.ts @@ -0,0 +1,315 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * Currency code for the expense report + * + * * `XUA` - ADB Unit of Account + * * `AFN` - Afghan Afghani + * * `AFA` - Afghan Afghani (1927–2002) + * * `ALL` - Albanian Lek + * * `ALK` - Albanian Lek (1946–1965) + * * `DZD` - Algerian Dinar + * * `ADP` - Andorran Peseta + * * `AOA` - Angolan Kwanza + * * `AOK` - Angolan Kwanza (1977–1991) + * * `AON` - Angolan New Kwanza (1990–2000) + * * `AOR` - Angolan Readjusted Kwanza (1995–1999) + * * `ARA` - Argentine Austral + * * `ARS` - Argentine Peso + * * `ARM` - Argentine Peso (1881–1970) + * * `ARP` - Argentine Peso (1983–1985) + * * `ARL` - Argentine Peso Ley (1970–1983) + * * `AMD` - Armenian Dram + * * `AWG` - Aruban Florin + * * `AUD` - Australian Dollar + * * `ATS` - Austrian Schilling + * * `AZN` - Azerbaijani Manat + * * `AZM` - Azerbaijani Manat (1993–2006) + * * `BSD` - Bahamian Dollar + * * `BHD` - Bahraini Dinar + * * `BDT` - Bangladeshi Taka + * * `BBD` - Barbadian Dollar + * * `BYN` - Belarusian Ruble + * * `BYB` - Belarusian Ruble (1994–1999) + * * `BYR` - Belarusian Ruble (2000–2016) + * * `BEF` - Belgian Franc + * * `BEC` - Belgian Franc (convertible) + * * `BEL` - Belgian Franc (financial) + * * `BZD` - Belize Dollar + * * `BMD` - Bermudan Dollar + * * `BTN` - Bhutanese Ngultrum + * * `BOB` - Bolivian Boliviano + * * `BOL` - Bolivian Boliviano (1863–1963) + * * `BOV` - Bolivian Mvdol + * * `BOP` - Bolivian Peso + * * `BAM` - Bosnia-Herzegovina Convertible Mark + * * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) + * * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) + * * `BWP` - Botswanan Pula + * * `BRC` - Brazilian Cruzado (1986–1989) + * * `BRZ` - Brazilian Cruzeiro (1942–1967) + * * `BRE` - Brazilian Cruzeiro (1990–1993) + * * `BRR` - Brazilian Cruzeiro (1993–1994) + * * `BRN` - Brazilian New Cruzado (1989–1990) + * * `BRB` - Brazilian New Cruzeiro (1967–1986) + * * `BRL` - Brazilian Real + * * `GBP` - British Pound + * * `BND` - Brunei Dollar + * * `BGL` - Bulgarian Hard Lev + * * `BGN` - Bulgarian Lev + * * `BGO` - Bulgarian Lev (1879–1952) + * * `BGM` - Bulgarian Socialist Lev + * * `BUK` - Burmese Kyat + * * `BIF` - Burundian Franc + * * `XPF` - CFP Franc + * * `KHR` - Cambodian Riel + * * `CAD` - Canadian Dollar + * * `CVE` - Cape Verdean Escudo + * * `KYD` - Cayman Islands Dollar + * * `XAF` - Central African CFA Franc + * * `CLE` - Chilean Escudo + * * `CLP` - Chilean Peso + * * `CLF` - Chilean Unit of Account (UF) + * * `CNX` - Chinese People’s Bank Dollar + * * `CNY` - Chinese Yuan + * * `CNH` - Chinese Yuan (offshore) + * * `COP` - Colombian Peso + * * `COU` - Colombian Real Value Unit + * * `KMF` - Comorian Franc + * * `CDF` - Congolese Franc + * * `CRC` - Costa Rican Colón + * * `HRD` - Croatian Dinar + * * `HRK` - Croatian Kuna + * * `CUC` - Cuban Convertible Peso + * * `CUP` - Cuban Peso + * * `CYP` - Cypriot Pound + * * `CZK` - Czech Koruna + * * `CSK` - Czechoslovak Hard Koruna + * * `DKK` - Danish Krone + * * `DJF` - Djiboutian Franc + * * `DOP` - Dominican Peso + * * `NLG` - Dutch Guilder + * * `XCD` - East Caribbean Dollar + * * `DDM` - East German Mark + * * `ECS` - Ecuadorian Sucre + * * `ECV` - Ecuadorian Unit of Constant Value + * * `EGP` - Egyptian Pound + * * `GQE` - Equatorial Guinean Ekwele + * * `ERN` - Eritrean Nakfa + * * `EEK` - Estonian Kroon + * * `ETB` - Ethiopian Birr + * * `EUR` - Euro + * * `XBA` - European Composite Unit + * * `XEU` - European Currency Unit + * * `XBB` - European Monetary Unit + * * `XBC` - European Unit of Account (XBC) + * * `XBD` - European Unit of Account (XBD) + * * `FKP` - Falkland Islands Pound + * * `FJD` - Fijian Dollar + * * `FIM` - Finnish Markka + * * `FRF` - French Franc + * * `XFO` - French Gold Franc + * * `XFU` - French UIC-Franc + * * `GMD` - Gambian Dalasi + * * `GEK` - Georgian Kupon Larit + * * `GEL` - Georgian Lari + * * `DEM` - German Mark + * * `GHS` - Ghanaian Cedi + * * `GHC` - Ghanaian Cedi (1979–2007) + * * `GIP` - Gibraltar Pound + * * `XAU` - Gold + * * `GRD` - Greek Drachma + * * `GTQ` - Guatemalan Quetzal + * * `GWP` - Guinea-Bissau Peso + * * `GNF` - Guinean Franc + * * `GNS` - Guinean Syli + * * `GYD` - Guyanaese Dollar + * * `HTG` - Haitian Gourde + * * `HNL` - Honduran Lempira + * * `HKD` - Hong Kong Dollar + * * `HUF` - Hungarian Forint + * * `IMP` - IMP + * * `ISK` - Icelandic Króna + * * `ISJ` - Icelandic Króna (1918–1981) + * * `INR` - Indian Rupee + * * `IDR` - Indonesian Rupiah + * * `IRR` - Iranian Rial + * * `IQD` - Iraqi Dinar + * * `IEP` - Irish Pound + * * `ILS` - Israeli New Shekel + * * `ILP` - Israeli Pound + * * `ILR` - Israeli Shekel (1980–1985) + * * `ITL` - Italian Lira + * * `JMD` - Jamaican Dollar + * * `JPY` - Japanese Yen + * * `JOD` - Jordanian Dinar + * * `KZT` - Kazakhstani Tenge + * * `KES` - Kenyan Shilling + * * `KWD` - Kuwaiti Dinar + * * `KGS` - Kyrgystani Som + * * `LAK` - Laotian Kip + * * `LVL` - Latvian Lats + * * `LVR` - Latvian Ruble + * * `LBP` - Lebanese Pound + * * `LSL` - Lesotho Loti + * * `LRD` - Liberian Dollar + * * `LYD` - Libyan Dinar + * * `LTL` - Lithuanian Litas + * * `LTT` - Lithuanian Talonas + * * `LUL` - Luxembourg Financial Franc + * * `LUC` - Luxembourgian Convertible Franc + * * `LUF` - Luxembourgian Franc + * * `MOP` - Macanese Pataca + * * `MKD` - Macedonian Denar + * * `MKN` - Macedonian Denar (1992–1993) + * * `MGA` - Malagasy Ariary + * * `MGF` - Malagasy Franc + * * `MWK` - Malawian Kwacha + * * `MYR` - Malaysian Ringgit + * * `MVR` - Maldivian Rufiyaa + * * `MVP` - Maldivian Rupee (1947–1981) + * * `MLF` - Malian Franc + * * `MTL` - Maltese Lira + * * `MTP` - Maltese Pound + * * `MRU` - Mauritanian Ouguiya + * * `MRO` - Mauritanian Ouguiya (1973–2017) + * * `MUR` - Mauritian Rupee + * * `MXV` - Mexican Investment Unit + * * `MXN` - Mexican Peso + * * `MXP` - Mexican Silver Peso (1861–1992) + * * `MDC` - Moldovan Cupon + * * `MDL` - Moldovan Leu + * * `MCF` - Monegasque Franc + * * `MNT` - Mongolian Tugrik + * * `MAD` - Moroccan Dirham + * * `MAF` - Moroccan Franc + * * `MZE` - Mozambican Escudo + * * `MZN` - Mozambican Metical + * * `MZM` - Mozambican Metical (1980–2006) + * * `MMK` - Myanmar Kyat + * * `NAD` - Namibian Dollar + * * `NPR` - Nepalese Rupee + * * `ANG` - Netherlands Antillean Guilder + * * `TWD` - New Taiwan Dollar + * * `NZD` - New Zealand Dollar + * * `NIO` - Nicaraguan Córdoba + * * `NIC` - Nicaraguan Córdoba (1988–1991) + * * `NGN` - Nigerian Naira + * * `KPW` - North Korean Won + * * `NOK` - Norwegian Krone + * * `OMR` - Omani Rial + * * `PKR` - Pakistani Rupee + * * `XPD` - Palladium + * * `PAB` - Panamanian Balboa + * * `PGK` - Papua New Guinean Kina + * * `PYG` - Paraguayan Guarani + * * `PEI` - Peruvian Inti + * * `PEN` - Peruvian Sol + * * `PES` - Peruvian Sol (1863–1965) + * * `PHP` - Philippine Peso + * * `XPT` - Platinum + * * `PLN` - Polish Zloty + * * `PLZ` - Polish Zloty (1950–1995) + * * `PTE` - Portuguese Escudo + * * `GWE` - Portuguese Guinea Escudo + * * `QAR` - Qatari Rial + * * `XRE` - RINET Funds + * * `RHD` - Rhodesian Dollar + * * `RON` - Romanian Leu + * * `ROL` - Romanian Leu (1952–2006) + * * `RUB` - Russian Ruble + * * `RUR` - Russian Ruble (1991–1998) + * * `RWF` - Rwandan Franc + * * `SVC` - Salvadoran Colón + * * `WST` - Samoan Tala + * * `SAR` - Saudi Riyal + * * `RSD` - Serbian Dinar + * * `CSD` - Serbian Dinar (2002–2006) + * * `SCR` - Seychellois Rupee + * * `SLL` - Sierra Leonean Leone + * * `XAG` - Silver + * * `SGD` - Singapore Dollar + * * `SKK` - Slovak Koruna + * * `SIT` - Slovenian Tolar + * * `SBD` - Solomon Islands Dollar + * * `SOS` - Somali Shilling + * * `ZAR` - South African Rand + * * `ZAL` - South African Rand (financial) + * * `KRH` - South Korean Hwan (1953–1962) + * * `KRW` - South Korean Won + * * `KRO` - South Korean Won (1945–1953) + * * `SSP` - South Sudanese Pound + * * `SUR` - Soviet Rouble + * * `ESP` - Spanish Peseta + * * `ESA` - Spanish Peseta (A account) + * * `ESB` - Spanish Peseta (convertible account) + * * `XDR` - Special Drawing Rights + * * `LKR` - Sri Lankan Rupee + * * `SHP` - St. Helena Pound + * * `XSU` - Sucre + * * `SDD` - Sudanese Dinar (1992–2007) + * * `SDG` - Sudanese Pound + * * `SDP` - Sudanese Pound (1957–1998) + * * `SRD` - Surinamese Dollar + * * `SRG` - Surinamese Guilder + * * `SZL` - Swazi Lilangeni + * * `SEK` - Swedish Krona + * * `CHF` - Swiss Franc + * * `SYP` - Syrian Pound + * * `STN` - São Tomé & Príncipe Dobra + * * `STD` - São Tomé & Príncipe Dobra (1977–2017) + * * `TVD` - TVD + * * `TJR` - Tajikistani Ruble + * * `TJS` - Tajikistani Somoni + * * `TZS` - Tanzanian Shilling + * * `XTS` - Testing Currency Code + * * `THB` - Thai Baht + * * `XXX` - The codes assigned for transactions where no currency is involved + * * `TPE` - Timorese Escudo + * * `TOP` - Tongan Paʻanga + * * `TTD` - Trinidad & Tobago Dollar + * * `TND` - Tunisian Dinar + * * `TRY` - Turkish Lira + * * `TRL` - Turkish Lira (1922–2005) + * * `TMT` - Turkmenistani Manat + * * `TMM` - Turkmenistani Manat (1993–2009) + * * `USD` - US Dollar + * * `USN` - US Dollar (Next day) + * * `USS` - US Dollar (Same day) + * * `UGX` - Ugandan Shilling + * * `UGS` - Ugandan Shilling (1966–1987) + * * `UAH` - Ukrainian Hryvnia + * * `UAK` - Ukrainian Karbovanets + * * `AED` - United Arab Emirates Dirham + * * `UYW` - Uruguayan Nominal Wage Index Unit + * * `UYU` - Uruguayan Peso + * * `UYP` - Uruguayan Peso (1975–1993) + * * `UYI` - Uruguayan Peso (Indexed Units) + * * `UZS` - Uzbekistani Som + * * `VUV` - Vanuatu Vatu + * * `VES` - Venezuelan Bolívar + * * `VEB` - Venezuelan Bolívar (1871–2008) + * * `VEF` - Venezuelan Bolívar (2008–2018) + * * `VND` - Vietnamese Dong + * * `VNN` - Vietnamese Dong (1978–1985) + * * `CHE` - WIR Euro + * * `CHW` - WIR Franc + * * `XOF` - West African CFA Franc + * * `YDD` - Yemeni Dinar + * * `YER` - Yemeni Rial + * * `YUN` - Yugoslavian Convertible Dinar (1990–1992) + * * `YUD` - Yugoslavian Hard Dinar (1966–1990) + * * `YUM` - Yugoslavian New Dinar (1994–2002) + * * `YUR` - Yugoslavian Reformed Dinar (1992–1993) + * * `ZWN` - ZWN + * * `ZRN` - Zairean New Zaire (1993–1998) + * * `ZRZ` - Zairean Zaire (1971–1993) + * * `ZMW` - Zambian Kwacha + * * `ZMK` - Zambian Kwacha (1968–2012) + * * `ZWD` - Zimbabwean Dollar (1980–2008) + * * `ZWR` - Zimbabwean Dollar (2008) + * * `ZWL` - Zimbabwean Dollar (2009) + */ +export type ExpenseReportCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/ExpenseReportEmployee.ts b/src/api/resources/accounting/types/ExpenseReportEmployee.ts new file mode 100644 index 000000000..b27fb2c5f --- /dev/null +++ b/src/api/resources/accounting/types/ExpenseReportEmployee.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * Identifier for the employee who submitted or is associated with the expense report + */ +export type ExpenseReportEmployee = string | Merge.accounting.Employee; diff --git a/src/api/resources/accounting/types/ExpenseReportEndpointRequest.ts b/src/api/resources/accounting/types/ExpenseReportEndpointRequest.ts new file mode 100644 index 000000000..4c7d589d5 --- /dev/null +++ b/src/api/resources/accounting/types/ExpenseReportEndpointRequest.ts @@ -0,0 +1,7 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface ExpenseReportEndpointRequest { + model: Merge.accounting.ExpenseReportRequest; +} diff --git a/src/api/resources/accounting/types/ExpenseReportLine.ts b/src/api/resources/accounting/types/ExpenseReportLine.ts index f0063de36..e7ad26d73 100644 --- a/src/api/resources/accounting/types/ExpenseReportLine.ts +++ b/src/api/resources/accounting/types/ExpenseReportLine.ts @@ -336,7 +336,7 @@ export interface ExpenseReportLine { * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ - currency?: Merge.accounting.TransactionCurrencyEnum; + currency?: Merge.accounting.ExpenseReportLineCurrency; /** Exchange rate used if the line item is in a foreign currency. */ exchangeRate?: string; /** Whether the expense line is billable to a client or project. */ diff --git a/src/api/resources/accounting/types/ExpenseReportLineCurrency.ts b/src/api/resources/accounting/types/ExpenseReportLineCurrency.ts new file mode 100644 index 000000000..62a1d1124 --- /dev/null +++ b/src/api/resources/accounting/types/ExpenseReportLineCurrency.ts @@ -0,0 +1,315 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * Currency of the expense line (if different from the report currency). + * + * * `XUA` - ADB Unit of Account + * * `AFN` - Afghan Afghani + * * `AFA` - Afghan Afghani (1927–2002) + * * `ALL` - Albanian Lek + * * `ALK` - Albanian Lek (1946–1965) + * * `DZD` - Algerian Dinar + * * `ADP` - Andorran Peseta + * * `AOA` - Angolan Kwanza + * * `AOK` - Angolan Kwanza (1977–1991) + * * `AON` - Angolan New Kwanza (1990–2000) + * * `AOR` - Angolan Readjusted Kwanza (1995–1999) + * * `ARA` - Argentine Austral + * * `ARS` - Argentine Peso + * * `ARM` - Argentine Peso (1881–1970) + * * `ARP` - Argentine Peso (1983–1985) + * * `ARL` - Argentine Peso Ley (1970–1983) + * * `AMD` - Armenian Dram + * * `AWG` - Aruban Florin + * * `AUD` - Australian Dollar + * * `ATS` - Austrian Schilling + * * `AZN` - Azerbaijani Manat + * * `AZM` - Azerbaijani Manat (1993–2006) + * * `BSD` - Bahamian Dollar + * * `BHD` - Bahraini Dinar + * * `BDT` - Bangladeshi Taka + * * `BBD` - Barbadian Dollar + * * `BYN` - Belarusian Ruble + * * `BYB` - Belarusian Ruble (1994–1999) + * * `BYR` - Belarusian Ruble (2000–2016) + * * `BEF` - Belgian Franc + * * `BEC` - Belgian Franc (convertible) + * * `BEL` - Belgian Franc (financial) + * * `BZD` - Belize Dollar + * * `BMD` - Bermudan Dollar + * * `BTN` - Bhutanese Ngultrum + * * `BOB` - Bolivian Boliviano + * * `BOL` - Bolivian Boliviano (1863–1963) + * * `BOV` - Bolivian Mvdol + * * `BOP` - Bolivian Peso + * * `BAM` - Bosnia-Herzegovina Convertible Mark + * * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) + * * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) + * * `BWP` - Botswanan Pula + * * `BRC` - Brazilian Cruzado (1986–1989) + * * `BRZ` - Brazilian Cruzeiro (1942–1967) + * * `BRE` - Brazilian Cruzeiro (1990–1993) + * * `BRR` - Brazilian Cruzeiro (1993–1994) + * * `BRN` - Brazilian New Cruzado (1989–1990) + * * `BRB` - Brazilian New Cruzeiro (1967–1986) + * * `BRL` - Brazilian Real + * * `GBP` - British Pound + * * `BND` - Brunei Dollar + * * `BGL` - Bulgarian Hard Lev + * * `BGN` - Bulgarian Lev + * * `BGO` - Bulgarian Lev (1879–1952) + * * `BGM` - Bulgarian Socialist Lev + * * `BUK` - Burmese Kyat + * * `BIF` - Burundian Franc + * * `XPF` - CFP Franc + * * `KHR` - Cambodian Riel + * * `CAD` - Canadian Dollar + * * `CVE` - Cape Verdean Escudo + * * `KYD` - Cayman Islands Dollar + * * `XAF` - Central African CFA Franc + * * `CLE` - Chilean Escudo + * * `CLP` - Chilean Peso + * * `CLF` - Chilean Unit of Account (UF) + * * `CNX` - Chinese People’s Bank Dollar + * * `CNY` - Chinese Yuan + * * `CNH` - Chinese Yuan (offshore) + * * `COP` - Colombian Peso + * * `COU` - Colombian Real Value Unit + * * `KMF` - Comorian Franc + * * `CDF` - Congolese Franc + * * `CRC` - Costa Rican Colón + * * `HRD` - Croatian Dinar + * * `HRK` - Croatian Kuna + * * `CUC` - Cuban Convertible Peso + * * `CUP` - Cuban Peso + * * `CYP` - Cypriot Pound + * * `CZK` - Czech Koruna + * * `CSK` - Czechoslovak Hard Koruna + * * `DKK` - Danish Krone + * * `DJF` - Djiboutian Franc + * * `DOP` - Dominican Peso + * * `NLG` - Dutch Guilder + * * `XCD` - East Caribbean Dollar + * * `DDM` - East German Mark + * * `ECS` - Ecuadorian Sucre + * * `ECV` - Ecuadorian Unit of Constant Value + * * `EGP` - Egyptian Pound + * * `GQE` - Equatorial Guinean Ekwele + * * `ERN` - Eritrean Nakfa + * * `EEK` - Estonian Kroon + * * `ETB` - Ethiopian Birr + * * `EUR` - Euro + * * `XBA` - European Composite Unit + * * `XEU` - European Currency Unit + * * `XBB` - European Monetary Unit + * * `XBC` - European Unit of Account (XBC) + * * `XBD` - European Unit of Account (XBD) + * * `FKP` - Falkland Islands Pound + * * `FJD` - Fijian Dollar + * * `FIM` - Finnish Markka + * * `FRF` - French Franc + * * `XFO` - French Gold Franc + * * `XFU` - French UIC-Franc + * * `GMD` - Gambian Dalasi + * * `GEK` - Georgian Kupon Larit + * * `GEL` - Georgian Lari + * * `DEM` - German Mark + * * `GHS` - Ghanaian Cedi + * * `GHC` - Ghanaian Cedi (1979–2007) + * * `GIP` - Gibraltar Pound + * * `XAU` - Gold + * * `GRD` - Greek Drachma + * * `GTQ` - Guatemalan Quetzal + * * `GWP` - Guinea-Bissau Peso + * * `GNF` - Guinean Franc + * * `GNS` - Guinean Syli + * * `GYD` - Guyanaese Dollar + * * `HTG` - Haitian Gourde + * * `HNL` - Honduran Lempira + * * `HKD` - Hong Kong Dollar + * * `HUF` - Hungarian Forint + * * `IMP` - IMP + * * `ISK` - Icelandic Króna + * * `ISJ` - Icelandic Króna (1918–1981) + * * `INR` - Indian Rupee + * * `IDR` - Indonesian Rupiah + * * `IRR` - Iranian Rial + * * `IQD` - Iraqi Dinar + * * `IEP` - Irish Pound + * * `ILS` - Israeli New Shekel + * * `ILP` - Israeli Pound + * * `ILR` - Israeli Shekel (1980–1985) + * * `ITL` - Italian Lira + * * `JMD` - Jamaican Dollar + * * `JPY` - Japanese Yen + * * `JOD` - Jordanian Dinar + * * `KZT` - Kazakhstani Tenge + * * `KES` - Kenyan Shilling + * * `KWD` - Kuwaiti Dinar + * * `KGS` - Kyrgystani Som + * * `LAK` - Laotian Kip + * * `LVL` - Latvian Lats + * * `LVR` - Latvian Ruble + * * `LBP` - Lebanese Pound + * * `LSL` - Lesotho Loti + * * `LRD` - Liberian Dollar + * * `LYD` - Libyan Dinar + * * `LTL` - Lithuanian Litas + * * `LTT` - Lithuanian Talonas + * * `LUL` - Luxembourg Financial Franc + * * `LUC` - Luxembourgian Convertible Franc + * * `LUF` - Luxembourgian Franc + * * `MOP` - Macanese Pataca + * * `MKD` - Macedonian Denar + * * `MKN` - Macedonian Denar (1992–1993) + * * `MGA` - Malagasy Ariary + * * `MGF` - Malagasy Franc + * * `MWK` - Malawian Kwacha + * * `MYR` - Malaysian Ringgit + * * `MVR` - Maldivian Rufiyaa + * * `MVP` - Maldivian Rupee (1947–1981) + * * `MLF` - Malian Franc + * * `MTL` - Maltese Lira + * * `MTP` - Maltese Pound + * * `MRU` - Mauritanian Ouguiya + * * `MRO` - Mauritanian Ouguiya (1973–2017) + * * `MUR` - Mauritian Rupee + * * `MXV` - Mexican Investment Unit + * * `MXN` - Mexican Peso + * * `MXP` - Mexican Silver Peso (1861–1992) + * * `MDC` - Moldovan Cupon + * * `MDL` - Moldovan Leu + * * `MCF` - Monegasque Franc + * * `MNT` - Mongolian Tugrik + * * `MAD` - Moroccan Dirham + * * `MAF` - Moroccan Franc + * * `MZE` - Mozambican Escudo + * * `MZN` - Mozambican Metical + * * `MZM` - Mozambican Metical (1980–2006) + * * `MMK` - Myanmar Kyat + * * `NAD` - Namibian Dollar + * * `NPR` - Nepalese Rupee + * * `ANG` - Netherlands Antillean Guilder + * * `TWD` - New Taiwan Dollar + * * `NZD` - New Zealand Dollar + * * `NIO` - Nicaraguan Córdoba + * * `NIC` - Nicaraguan Córdoba (1988–1991) + * * `NGN` - Nigerian Naira + * * `KPW` - North Korean Won + * * `NOK` - Norwegian Krone + * * `OMR` - Omani Rial + * * `PKR` - Pakistani Rupee + * * `XPD` - Palladium + * * `PAB` - Panamanian Balboa + * * `PGK` - Papua New Guinean Kina + * * `PYG` - Paraguayan Guarani + * * `PEI` - Peruvian Inti + * * `PEN` - Peruvian Sol + * * `PES` - Peruvian Sol (1863–1965) + * * `PHP` - Philippine Peso + * * `XPT` - Platinum + * * `PLN` - Polish Zloty + * * `PLZ` - Polish Zloty (1950–1995) + * * `PTE` - Portuguese Escudo + * * `GWE` - Portuguese Guinea Escudo + * * `QAR` - Qatari Rial + * * `XRE` - RINET Funds + * * `RHD` - Rhodesian Dollar + * * `RON` - Romanian Leu + * * `ROL` - Romanian Leu (1952–2006) + * * `RUB` - Russian Ruble + * * `RUR` - Russian Ruble (1991–1998) + * * `RWF` - Rwandan Franc + * * `SVC` - Salvadoran Colón + * * `WST` - Samoan Tala + * * `SAR` - Saudi Riyal + * * `RSD` - Serbian Dinar + * * `CSD` - Serbian Dinar (2002–2006) + * * `SCR` - Seychellois Rupee + * * `SLL` - Sierra Leonean Leone + * * `XAG` - Silver + * * `SGD` - Singapore Dollar + * * `SKK` - Slovak Koruna + * * `SIT` - Slovenian Tolar + * * `SBD` - Solomon Islands Dollar + * * `SOS` - Somali Shilling + * * `ZAR` - South African Rand + * * `ZAL` - South African Rand (financial) + * * `KRH` - South Korean Hwan (1953–1962) + * * `KRW` - South Korean Won + * * `KRO` - South Korean Won (1945–1953) + * * `SSP` - South Sudanese Pound + * * `SUR` - Soviet Rouble + * * `ESP` - Spanish Peseta + * * `ESA` - Spanish Peseta (A account) + * * `ESB` - Spanish Peseta (convertible account) + * * `XDR` - Special Drawing Rights + * * `LKR` - Sri Lankan Rupee + * * `SHP` - St. Helena Pound + * * `XSU` - Sucre + * * `SDD` - Sudanese Dinar (1992–2007) + * * `SDG` - Sudanese Pound + * * `SDP` - Sudanese Pound (1957–1998) + * * `SRD` - Surinamese Dollar + * * `SRG` - Surinamese Guilder + * * `SZL` - Swazi Lilangeni + * * `SEK` - Swedish Krona + * * `CHF` - Swiss Franc + * * `SYP` - Syrian Pound + * * `STN` - São Tomé & Príncipe Dobra + * * `STD` - São Tomé & Príncipe Dobra (1977–2017) + * * `TVD` - TVD + * * `TJR` - Tajikistani Ruble + * * `TJS` - Tajikistani Somoni + * * `TZS` - Tanzanian Shilling + * * `XTS` - Testing Currency Code + * * `THB` - Thai Baht + * * `XXX` - The codes assigned for transactions where no currency is involved + * * `TPE` - Timorese Escudo + * * `TOP` - Tongan Paʻanga + * * `TTD` - Trinidad & Tobago Dollar + * * `TND` - Tunisian Dinar + * * `TRY` - Turkish Lira + * * `TRL` - Turkish Lira (1922–2005) + * * `TMT` - Turkmenistani Manat + * * `TMM` - Turkmenistani Manat (1993–2009) + * * `USD` - US Dollar + * * `USN` - US Dollar (Next day) + * * `USS` - US Dollar (Same day) + * * `UGX` - Ugandan Shilling + * * `UGS` - Ugandan Shilling (1966–1987) + * * `UAH` - Ukrainian Hryvnia + * * `UAK` - Ukrainian Karbovanets + * * `AED` - United Arab Emirates Dirham + * * `UYW` - Uruguayan Nominal Wage Index Unit + * * `UYU` - Uruguayan Peso + * * `UYP` - Uruguayan Peso (1975–1993) + * * `UYI` - Uruguayan Peso (Indexed Units) + * * `UZS` - Uzbekistani Som + * * `VUV` - Vanuatu Vatu + * * `VES` - Venezuelan Bolívar + * * `VEB` - Venezuelan Bolívar (1871–2008) + * * `VEF` - Venezuelan Bolívar (2008–2018) + * * `VND` - Vietnamese Dong + * * `VNN` - Vietnamese Dong (1978–1985) + * * `CHE` - WIR Euro + * * `CHW` - WIR Franc + * * `XOF` - West African CFA Franc + * * `YDD` - Yemeni Dinar + * * `YER` - Yemeni Rial + * * `YUN` - Yugoslavian Convertible Dinar (1990–1992) + * * `YUD` - Yugoslavian Hard Dinar (1966–1990) + * * `YUM` - Yugoslavian New Dinar (1994–2002) + * * `YUR` - Yugoslavian Reformed Dinar (1992–1993) + * * `ZWN` - ZWN + * * `ZRN` - Zairean New Zaire (1993–1998) + * * `ZRZ` - Zairean Zaire (1971–1993) + * * `ZMW` - Zambian Kwacha + * * `ZMK` - Zambian Kwacha (1968–2012) + * * `ZWD` - Zimbabwean Dollar (1980–2008) + * * `ZWR` - Zimbabwean Dollar (2008) + * * `ZWL` - Zimbabwean Dollar (2009) + */ +export type ExpenseReportLineCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/ExpenseReportLineRequest.ts b/src/api/resources/accounting/types/ExpenseReportLineRequest.ts index 362b63d79..c1c3ad014 100644 --- a/src/api/resources/accounting/types/ExpenseReportLineRequest.ts +++ b/src/api/resources/accounting/types/ExpenseReportLineRequest.ts @@ -331,7 +331,7 @@ export interface ExpenseReportLineRequest { * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ - currency?: Merge.accounting.TransactionCurrencyEnum; + currency?: Merge.accounting.ExpenseReportLineRequestCurrency; /** Exchange rate used if the line item is in a foreign currency. */ exchangeRate?: string; /** Whether the expense line is billable to a client or project. */ diff --git a/src/api/resources/accounting/types/ExpenseReportLineRequestCurrency.ts b/src/api/resources/accounting/types/ExpenseReportLineRequestCurrency.ts new file mode 100644 index 000000000..08cceb17f --- /dev/null +++ b/src/api/resources/accounting/types/ExpenseReportLineRequestCurrency.ts @@ -0,0 +1,315 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * Currency of the expense line (if different from the report currency). + * + * * `XUA` - ADB Unit of Account + * * `AFN` - Afghan Afghani + * * `AFA` - Afghan Afghani (1927–2002) + * * `ALL` - Albanian Lek + * * `ALK` - Albanian Lek (1946–1965) + * * `DZD` - Algerian Dinar + * * `ADP` - Andorran Peseta + * * `AOA` - Angolan Kwanza + * * `AOK` - Angolan Kwanza (1977–1991) + * * `AON` - Angolan New Kwanza (1990–2000) + * * `AOR` - Angolan Readjusted Kwanza (1995–1999) + * * `ARA` - Argentine Austral + * * `ARS` - Argentine Peso + * * `ARM` - Argentine Peso (1881–1970) + * * `ARP` - Argentine Peso (1983–1985) + * * `ARL` - Argentine Peso Ley (1970–1983) + * * `AMD` - Armenian Dram + * * `AWG` - Aruban Florin + * * `AUD` - Australian Dollar + * * `ATS` - Austrian Schilling + * * `AZN` - Azerbaijani Manat + * * `AZM` - Azerbaijani Manat (1993–2006) + * * `BSD` - Bahamian Dollar + * * `BHD` - Bahraini Dinar + * * `BDT` - Bangladeshi Taka + * * `BBD` - Barbadian Dollar + * * `BYN` - Belarusian Ruble + * * `BYB` - Belarusian Ruble (1994–1999) + * * `BYR` - Belarusian Ruble (2000–2016) + * * `BEF` - Belgian Franc + * * `BEC` - Belgian Franc (convertible) + * * `BEL` - Belgian Franc (financial) + * * `BZD` - Belize Dollar + * * `BMD` - Bermudan Dollar + * * `BTN` - Bhutanese Ngultrum + * * `BOB` - Bolivian Boliviano + * * `BOL` - Bolivian Boliviano (1863–1963) + * * `BOV` - Bolivian Mvdol + * * `BOP` - Bolivian Peso + * * `BAM` - Bosnia-Herzegovina Convertible Mark + * * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) + * * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) + * * `BWP` - Botswanan Pula + * * `BRC` - Brazilian Cruzado (1986–1989) + * * `BRZ` - Brazilian Cruzeiro (1942–1967) + * * `BRE` - Brazilian Cruzeiro (1990–1993) + * * `BRR` - Brazilian Cruzeiro (1993–1994) + * * `BRN` - Brazilian New Cruzado (1989–1990) + * * `BRB` - Brazilian New Cruzeiro (1967–1986) + * * `BRL` - Brazilian Real + * * `GBP` - British Pound + * * `BND` - Brunei Dollar + * * `BGL` - Bulgarian Hard Lev + * * `BGN` - Bulgarian Lev + * * `BGO` - Bulgarian Lev (1879–1952) + * * `BGM` - Bulgarian Socialist Lev + * * `BUK` - Burmese Kyat + * * `BIF` - Burundian Franc + * * `XPF` - CFP Franc + * * `KHR` - Cambodian Riel + * * `CAD` - Canadian Dollar + * * `CVE` - Cape Verdean Escudo + * * `KYD` - Cayman Islands Dollar + * * `XAF` - Central African CFA Franc + * * `CLE` - Chilean Escudo + * * `CLP` - Chilean Peso + * * `CLF` - Chilean Unit of Account (UF) + * * `CNX` - Chinese People’s Bank Dollar + * * `CNY` - Chinese Yuan + * * `CNH` - Chinese Yuan (offshore) + * * `COP` - Colombian Peso + * * `COU` - Colombian Real Value Unit + * * `KMF` - Comorian Franc + * * `CDF` - Congolese Franc + * * `CRC` - Costa Rican Colón + * * `HRD` - Croatian Dinar + * * `HRK` - Croatian Kuna + * * `CUC` - Cuban Convertible Peso + * * `CUP` - Cuban Peso + * * `CYP` - Cypriot Pound + * * `CZK` - Czech Koruna + * * `CSK` - Czechoslovak Hard Koruna + * * `DKK` - Danish Krone + * * `DJF` - Djiboutian Franc + * * `DOP` - Dominican Peso + * * `NLG` - Dutch Guilder + * * `XCD` - East Caribbean Dollar + * * `DDM` - East German Mark + * * `ECS` - Ecuadorian Sucre + * * `ECV` - Ecuadorian Unit of Constant Value + * * `EGP` - Egyptian Pound + * * `GQE` - Equatorial Guinean Ekwele + * * `ERN` - Eritrean Nakfa + * * `EEK` - Estonian Kroon + * * `ETB` - Ethiopian Birr + * * `EUR` - Euro + * * `XBA` - European Composite Unit + * * `XEU` - European Currency Unit + * * `XBB` - European Monetary Unit + * * `XBC` - European Unit of Account (XBC) + * * `XBD` - European Unit of Account (XBD) + * * `FKP` - Falkland Islands Pound + * * `FJD` - Fijian Dollar + * * `FIM` - Finnish Markka + * * `FRF` - French Franc + * * `XFO` - French Gold Franc + * * `XFU` - French UIC-Franc + * * `GMD` - Gambian Dalasi + * * `GEK` - Georgian Kupon Larit + * * `GEL` - Georgian Lari + * * `DEM` - German Mark + * * `GHS` - Ghanaian Cedi + * * `GHC` - Ghanaian Cedi (1979–2007) + * * `GIP` - Gibraltar Pound + * * `XAU` - Gold + * * `GRD` - Greek Drachma + * * `GTQ` - Guatemalan Quetzal + * * `GWP` - Guinea-Bissau Peso + * * `GNF` - Guinean Franc + * * `GNS` - Guinean Syli + * * `GYD` - Guyanaese Dollar + * * `HTG` - Haitian Gourde + * * `HNL` - Honduran Lempira + * * `HKD` - Hong Kong Dollar + * * `HUF` - Hungarian Forint + * * `IMP` - IMP + * * `ISK` - Icelandic Króna + * * `ISJ` - Icelandic Króna (1918–1981) + * * `INR` - Indian Rupee + * * `IDR` - Indonesian Rupiah + * * `IRR` - Iranian Rial + * * `IQD` - Iraqi Dinar + * * `IEP` - Irish Pound + * * `ILS` - Israeli New Shekel + * * `ILP` - Israeli Pound + * * `ILR` - Israeli Shekel (1980–1985) + * * `ITL` - Italian Lira + * * `JMD` - Jamaican Dollar + * * `JPY` - Japanese Yen + * * `JOD` - Jordanian Dinar + * * `KZT` - Kazakhstani Tenge + * * `KES` - Kenyan Shilling + * * `KWD` - Kuwaiti Dinar + * * `KGS` - Kyrgystani Som + * * `LAK` - Laotian Kip + * * `LVL` - Latvian Lats + * * `LVR` - Latvian Ruble + * * `LBP` - Lebanese Pound + * * `LSL` - Lesotho Loti + * * `LRD` - Liberian Dollar + * * `LYD` - Libyan Dinar + * * `LTL` - Lithuanian Litas + * * `LTT` - Lithuanian Talonas + * * `LUL` - Luxembourg Financial Franc + * * `LUC` - Luxembourgian Convertible Franc + * * `LUF` - Luxembourgian Franc + * * `MOP` - Macanese Pataca + * * `MKD` - Macedonian Denar + * * `MKN` - Macedonian Denar (1992–1993) + * * `MGA` - Malagasy Ariary + * * `MGF` - Malagasy Franc + * * `MWK` - Malawian Kwacha + * * `MYR` - Malaysian Ringgit + * * `MVR` - Maldivian Rufiyaa + * * `MVP` - Maldivian Rupee (1947–1981) + * * `MLF` - Malian Franc + * * `MTL` - Maltese Lira + * * `MTP` - Maltese Pound + * * `MRU` - Mauritanian Ouguiya + * * `MRO` - Mauritanian Ouguiya (1973–2017) + * * `MUR` - Mauritian Rupee + * * `MXV` - Mexican Investment Unit + * * `MXN` - Mexican Peso + * * `MXP` - Mexican Silver Peso (1861–1992) + * * `MDC` - Moldovan Cupon + * * `MDL` - Moldovan Leu + * * `MCF` - Monegasque Franc + * * `MNT` - Mongolian Tugrik + * * `MAD` - Moroccan Dirham + * * `MAF` - Moroccan Franc + * * `MZE` - Mozambican Escudo + * * `MZN` - Mozambican Metical + * * `MZM` - Mozambican Metical (1980–2006) + * * `MMK` - Myanmar Kyat + * * `NAD` - Namibian Dollar + * * `NPR` - Nepalese Rupee + * * `ANG` - Netherlands Antillean Guilder + * * `TWD` - New Taiwan Dollar + * * `NZD` - New Zealand Dollar + * * `NIO` - Nicaraguan Córdoba + * * `NIC` - Nicaraguan Córdoba (1988–1991) + * * `NGN` - Nigerian Naira + * * `KPW` - North Korean Won + * * `NOK` - Norwegian Krone + * * `OMR` - Omani Rial + * * `PKR` - Pakistani Rupee + * * `XPD` - Palladium + * * `PAB` - Panamanian Balboa + * * `PGK` - Papua New Guinean Kina + * * `PYG` - Paraguayan Guarani + * * `PEI` - Peruvian Inti + * * `PEN` - Peruvian Sol + * * `PES` - Peruvian Sol (1863–1965) + * * `PHP` - Philippine Peso + * * `XPT` - Platinum + * * `PLN` - Polish Zloty + * * `PLZ` - Polish Zloty (1950–1995) + * * `PTE` - Portuguese Escudo + * * `GWE` - Portuguese Guinea Escudo + * * `QAR` - Qatari Rial + * * `XRE` - RINET Funds + * * `RHD` - Rhodesian Dollar + * * `RON` - Romanian Leu + * * `ROL` - Romanian Leu (1952–2006) + * * `RUB` - Russian Ruble + * * `RUR` - Russian Ruble (1991–1998) + * * `RWF` - Rwandan Franc + * * `SVC` - Salvadoran Colón + * * `WST` - Samoan Tala + * * `SAR` - Saudi Riyal + * * `RSD` - Serbian Dinar + * * `CSD` - Serbian Dinar (2002–2006) + * * `SCR` - Seychellois Rupee + * * `SLL` - Sierra Leonean Leone + * * `XAG` - Silver + * * `SGD` - Singapore Dollar + * * `SKK` - Slovak Koruna + * * `SIT` - Slovenian Tolar + * * `SBD` - Solomon Islands Dollar + * * `SOS` - Somali Shilling + * * `ZAR` - South African Rand + * * `ZAL` - South African Rand (financial) + * * `KRH` - South Korean Hwan (1953–1962) + * * `KRW` - South Korean Won + * * `KRO` - South Korean Won (1945–1953) + * * `SSP` - South Sudanese Pound + * * `SUR` - Soviet Rouble + * * `ESP` - Spanish Peseta + * * `ESA` - Spanish Peseta (A account) + * * `ESB` - Spanish Peseta (convertible account) + * * `XDR` - Special Drawing Rights + * * `LKR` - Sri Lankan Rupee + * * `SHP` - St. Helena Pound + * * `XSU` - Sucre + * * `SDD` - Sudanese Dinar (1992–2007) + * * `SDG` - Sudanese Pound + * * `SDP` - Sudanese Pound (1957–1998) + * * `SRD` - Surinamese Dollar + * * `SRG` - Surinamese Guilder + * * `SZL` - Swazi Lilangeni + * * `SEK` - Swedish Krona + * * `CHF` - Swiss Franc + * * `SYP` - Syrian Pound + * * `STN` - São Tomé & Príncipe Dobra + * * `STD` - São Tomé & Príncipe Dobra (1977–2017) + * * `TVD` - TVD + * * `TJR` - Tajikistani Ruble + * * `TJS` - Tajikistani Somoni + * * `TZS` - Tanzanian Shilling + * * `XTS` - Testing Currency Code + * * `THB` - Thai Baht + * * `XXX` - The codes assigned for transactions where no currency is involved + * * `TPE` - Timorese Escudo + * * `TOP` - Tongan Paʻanga + * * `TTD` - Trinidad & Tobago Dollar + * * `TND` - Tunisian Dinar + * * `TRY` - Turkish Lira + * * `TRL` - Turkish Lira (1922–2005) + * * `TMT` - Turkmenistani Manat + * * `TMM` - Turkmenistani Manat (1993–2009) + * * `USD` - US Dollar + * * `USN` - US Dollar (Next day) + * * `USS` - US Dollar (Same day) + * * `UGX` - Ugandan Shilling + * * `UGS` - Ugandan Shilling (1966–1987) + * * `UAH` - Ukrainian Hryvnia + * * `UAK` - Ukrainian Karbovanets + * * `AED` - United Arab Emirates Dirham + * * `UYW` - Uruguayan Nominal Wage Index Unit + * * `UYU` - Uruguayan Peso + * * `UYP` - Uruguayan Peso (1975–1993) + * * `UYI` - Uruguayan Peso (Indexed Units) + * * `UZS` - Uzbekistani Som + * * `VUV` - Vanuatu Vatu + * * `VES` - Venezuelan Bolívar + * * `VEB` - Venezuelan Bolívar (1871–2008) + * * `VEF` - Venezuelan Bolívar (2008–2018) + * * `VND` - Vietnamese Dong + * * `VNN` - Vietnamese Dong (1978–1985) + * * `CHE` - WIR Euro + * * `CHW` - WIR Franc + * * `XOF` - West African CFA Franc + * * `YDD` - Yemeni Dinar + * * `YER` - Yemeni Rial + * * `YUN` - Yugoslavian Convertible Dinar (1990–1992) + * * `YUD` - Yugoslavian Hard Dinar (1966–1990) + * * `YUM` - Yugoslavian New Dinar (1994–2002) + * * `YUR` - Yugoslavian Reformed Dinar (1992–1993) + * * `ZWN` - ZWN + * * `ZRN` - Zairean New Zaire (1993–1998) + * * `ZRZ` - Zairean Zaire (1971–1993) + * * `ZMW` - Zambian Kwacha + * * `ZMK` - Zambian Kwacha (1968–2012) + * * `ZWD` - Zimbabwean Dollar (1980–2008) + * * `ZWR` - Zimbabwean Dollar (2008) + * * `ZWL` - Zimbabwean Dollar (2009) + */ +export type ExpenseReportLineRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/ExpenseReportLinesItem.ts b/src/api/resources/accounting/types/ExpenseReportLinesItem.ts new file mode 100644 index 000000000..9a173628c --- /dev/null +++ b/src/api/resources/accounting/types/ExpenseReportLinesItem.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type ExpenseReportLinesItem = string | Merge.accounting.ExpenseReportLine; diff --git a/src/api/resources/accounting/types/ExpenseReportRequest.ts b/src/api/resources/accounting/types/ExpenseReportRequest.ts index 8345be4d4..814b7e29d 100644 --- a/src/api/resources/accounting/types/ExpenseReportRequest.ts +++ b/src/api/resources/accounting/types/ExpenseReportRequest.ts @@ -26,7 +26,7 @@ export interface ExpenseReportRequest { * * `APPROVED` - APPROVED * * `REJECTED` - REJECTED */ - status?: Merge.accounting.ExpenseReportStatusEnum; + status?: Merge.accounting.ExpenseReportRequestStatus; /** Total amount of the expense report */ totalAmount?: number; /** @@ -339,7 +339,7 @@ export interface ExpenseReportRequest { * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ - currency?: Merge.accounting.TransactionCurrencyEnum; + currency?: Merge.accounting.ExpenseReportRequestCurrency; /** A brief description or purpose for the expense report */ description?: string; /** The accounting period the report was posted in */ diff --git a/src/api/resources/accounting/types/ExpenseReportRequestCurrency.ts b/src/api/resources/accounting/types/ExpenseReportRequestCurrency.ts new file mode 100644 index 000000000..6d19b49f4 --- /dev/null +++ b/src/api/resources/accounting/types/ExpenseReportRequestCurrency.ts @@ -0,0 +1,315 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * Currency code for the expense report + * + * * `XUA` - ADB Unit of Account + * * `AFN` - Afghan Afghani + * * `AFA` - Afghan Afghani (1927–2002) + * * `ALL` - Albanian Lek + * * `ALK` - Albanian Lek (1946–1965) + * * `DZD` - Algerian Dinar + * * `ADP` - Andorran Peseta + * * `AOA` - Angolan Kwanza + * * `AOK` - Angolan Kwanza (1977–1991) + * * `AON` - Angolan New Kwanza (1990–2000) + * * `AOR` - Angolan Readjusted Kwanza (1995–1999) + * * `ARA` - Argentine Austral + * * `ARS` - Argentine Peso + * * `ARM` - Argentine Peso (1881–1970) + * * `ARP` - Argentine Peso (1983–1985) + * * `ARL` - Argentine Peso Ley (1970–1983) + * * `AMD` - Armenian Dram + * * `AWG` - Aruban Florin + * * `AUD` - Australian Dollar + * * `ATS` - Austrian Schilling + * * `AZN` - Azerbaijani Manat + * * `AZM` - Azerbaijani Manat (1993–2006) + * * `BSD` - Bahamian Dollar + * * `BHD` - Bahraini Dinar + * * `BDT` - Bangladeshi Taka + * * `BBD` - Barbadian Dollar + * * `BYN` - Belarusian Ruble + * * `BYB` - Belarusian Ruble (1994–1999) + * * `BYR` - Belarusian Ruble (2000–2016) + * * `BEF` - Belgian Franc + * * `BEC` - Belgian Franc (convertible) + * * `BEL` - Belgian Franc (financial) + * * `BZD` - Belize Dollar + * * `BMD` - Bermudan Dollar + * * `BTN` - Bhutanese Ngultrum + * * `BOB` - Bolivian Boliviano + * * `BOL` - Bolivian Boliviano (1863–1963) + * * `BOV` - Bolivian Mvdol + * * `BOP` - Bolivian Peso + * * `BAM` - Bosnia-Herzegovina Convertible Mark + * * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) + * * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) + * * `BWP` - Botswanan Pula + * * `BRC` - Brazilian Cruzado (1986–1989) + * * `BRZ` - Brazilian Cruzeiro (1942–1967) + * * `BRE` - Brazilian Cruzeiro (1990–1993) + * * `BRR` - Brazilian Cruzeiro (1993–1994) + * * `BRN` - Brazilian New Cruzado (1989–1990) + * * `BRB` - Brazilian New Cruzeiro (1967–1986) + * * `BRL` - Brazilian Real + * * `GBP` - British Pound + * * `BND` - Brunei Dollar + * * `BGL` - Bulgarian Hard Lev + * * `BGN` - Bulgarian Lev + * * `BGO` - Bulgarian Lev (1879–1952) + * * `BGM` - Bulgarian Socialist Lev + * * `BUK` - Burmese Kyat + * * `BIF` - Burundian Franc + * * `XPF` - CFP Franc + * * `KHR` - Cambodian Riel + * * `CAD` - Canadian Dollar + * * `CVE` - Cape Verdean Escudo + * * `KYD` - Cayman Islands Dollar + * * `XAF` - Central African CFA Franc + * * `CLE` - Chilean Escudo + * * `CLP` - Chilean Peso + * * `CLF` - Chilean Unit of Account (UF) + * * `CNX` - Chinese People’s Bank Dollar + * * `CNY` - Chinese Yuan + * * `CNH` - Chinese Yuan (offshore) + * * `COP` - Colombian Peso + * * `COU` - Colombian Real Value Unit + * * `KMF` - Comorian Franc + * * `CDF` - Congolese Franc + * * `CRC` - Costa Rican Colón + * * `HRD` - Croatian Dinar + * * `HRK` - Croatian Kuna + * * `CUC` - Cuban Convertible Peso + * * `CUP` - Cuban Peso + * * `CYP` - Cypriot Pound + * * `CZK` - Czech Koruna + * * `CSK` - Czechoslovak Hard Koruna + * * `DKK` - Danish Krone + * * `DJF` - Djiboutian Franc + * * `DOP` - Dominican Peso + * * `NLG` - Dutch Guilder + * * `XCD` - East Caribbean Dollar + * * `DDM` - East German Mark + * * `ECS` - Ecuadorian Sucre + * * `ECV` - Ecuadorian Unit of Constant Value + * * `EGP` - Egyptian Pound + * * `GQE` - Equatorial Guinean Ekwele + * * `ERN` - Eritrean Nakfa + * * `EEK` - Estonian Kroon + * * `ETB` - Ethiopian Birr + * * `EUR` - Euro + * * `XBA` - European Composite Unit + * * `XEU` - European Currency Unit + * * `XBB` - European Monetary Unit + * * `XBC` - European Unit of Account (XBC) + * * `XBD` - European Unit of Account (XBD) + * * `FKP` - Falkland Islands Pound + * * `FJD` - Fijian Dollar + * * `FIM` - Finnish Markka + * * `FRF` - French Franc + * * `XFO` - French Gold Franc + * * `XFU` - French UIC-Franc + * * `GMD` - Gambian Dalasi + * * `GEK` - Georgian Kupon Larit + * * `GEL` - Georgian Lari + * * `DEM` - German Mark + * * `GHS` - Ghanaian Cedi + * * `GHC` - Ghanaian Cedi (1979–2007) + * * `GIP` - Gibraltar Pound + * * `XAU` - Gold + * * `GRD` - Greek Drachma + * * `GTQ` - Guatemalan Quetzal + * * `GWP` - Guinea-Bissau Peso + * * `GNF` - Guinean Franc + * * `GNS` - Guinean Syli + * * `GYD` - Guyanaese Dollar + * * `HTG` - Haitian Gourde + * * `HNL` - Honduran Lempira + * * `HKD` - Hong Kong Dollar + * * `HUF` - Hungarian Forint + * * `IMP` - IMP + * * `ISK` - Icelandic Króna + * * `ISJ` - Icelandic Króna (1918–1981) + * * `INR` - Indian Rupee + * * `IDR` - Indonesian Rupiah + * * `IRR` - Iranian Rial + * * `IQD` - Iraqi Dinar + * * `IEP` - Irish Pound + * * `ILS` - Israeli New Shekel + * * `ILP` - Israeli Pound + * * `ILR` - Israeli Shekel (1980–1985) + * * `ITL` - Italian Lira + * * `JMD` - Jamaican Dollar + * * `JPY` - Japanese Yen + * * `JOD` - Jordanian Dinar + * * `KZT` - Kazakhstani Tenge + * * `KES` - Kenyan Shilling + * * `KWD` - Kuwaiti Dinar + * * `KGS` - Kyrgystani Som + * * `LAK` - Laotian Kip + * * `LVL` - Latvian Lats + * * `LVR` - Latvian Ruble + * * `LBP` - Lebanese Pound + * * `LSL` - Lesotho Loti + * * `LRD` - Liberian Dollar + * * `LYD` - Libyan Dinar + * * `LTL` - Lithuanian Litas + * * `LTT` - Lithuanian Talonas + * * `LUL` - Luxembourg Financial Franc + * * `LUC` - Luxembourgian Convertible Franc + * * `LUF` - Luxembourgian Franc + * * `MOP` - Macanese Pataca + * * `MKD` - Macedonian Denar + * * `MKN` - Macedonian Denar (1992–1993) + * * `MGA` - Malagasy Ariary + * * `MGF` - Malagasy Franc + * * `MWK` - Malawian Kwacha + * * `MYR` - Malaysian Ringgit + * * `MVR` - Maldivian Rufiyaa + * * `MVP` - Maldivian Rupee (1947–1981) + * * `MLF` - Malian Franc + * * `MTL` - Maltese Lira + * * `MTP` - Maltese Pound + * * `MRU` - Mauritanian Ouguiya + * * `MRO` - Mauritanian Ouguiya (1973–2017) + * * `MUR` - Mauritian Rupee + * * `MXV` - Mexican Investment Unit + * * `MXN` - Mexican Peso + * * `MXP` - Mexican Silver Peso (1861–1992) + * * `MDC` - Moldovan Cupon + * * `MDL` - Moldovan Leu + * * `MCF` - Monegasque Franc + * * `MNT` - Mongolian Tugrik + * * `MAD` - Moroccan Dirham + * * `MAF` - Moroccan Franc + * * `MZE` - Mozambican Escudo + * * `MZN` - Mozambican Metical + * * `MZM` - Mozambican Metical (1980–2006) + * * `MMK` - Myanmar Kyat + * * `NAD` - Namibian Dollar + * * `NPR` - Nepalese Rupee + * * `ANG` - Netherlands Antillean Guilder + * * `TWD` - New Taiwan Dollar + * * `NZD` - New Zealand Dollar + * * `NIO` - Nicaraguan Córdoba + * * `NIC` - Nicaraguan Córdoba (1988–1991) + * * `NGN` - Nigerian Naira + * * `KPW` - North Korean Won + * * `NOK` - Norwegian Krone + * * `OMR` - Omani Rial + * * `PKR` - Pakistani Rupee + * * `XPD` - Palladium + * * `PAB` - Panamanian Balboa + * * `PGK` - Papua New Guinean Kina + * * `PYG` - Paraguayan Guarani + * * `PEI` - Peruvian Inti + * * `PEN` - Peruvian Sol + * * `PES` - Peruvian Sol (1863–1965) + * * `PHP` - Philippine Peso + * * `XPT` - Platinum + * * `PLN` - Polish Zloty + * * `PLZ` - Polish Zloty (1950–1995) + * * `PTE` - Portuguese Escudo + * * `GWE` - Portuguese Guinea Escudo + * * `QAR` - Qatari Rial + * * `XRE` - RINET Funds + * * `RHD` - Rhodesian Dollar + * * `RON` - Romanian Leu + * * `ROL` - Romanian Leu (1952–2006) + * * `RUB` - Russian Ruble + * * `RUR` - Russian Ruble (1991–1998) + * * `RWF` - Rwandan Franc + * * `SVC` - Salvadoran Colón + * * `WST` - Samoan Tala + * * `SAR` - Saudi Riyal + * * `RSD` - Serbian Dinar + * * `CSD` - Serbian Dinar (2002–2006) + * * `SCR` - Seychellois Rupee + * * `SLL` - Sierra Leonean Leone + * * `XAG` - Silver + * * `SGD` - Singapore Dollar + * * `SKK` - Slovak Koruna + * * `SIT` - Slovenian Tolar + * * `SBD` - Solomon Islands Dollar + * * `SOS` - Somali Shilling + * * `ZAR` - South African Rand + * * `ZAL` - South African Rand (financial) + * * `KRH` - South Korean Hwan (1953–1962) + * * `KRW` - South Korean Won + * * `KRO` - South Korean Won (1945–1953) + * * `SSP` - South Sudanese Pound + * * `SUR` - Soviet Rouble + * * `ESP` - Spanish Peseta + * * `ESA` - Spanish Peseta (A account) + * * `ESB` - Spanish Peseta (convertible account) + * * `XDR` - Special Drawing Rights + * * `LKR` - Sri Lankan Rupee + * * `SHP` - St. Helena Pound + * * `XSU` - Sucre + * * `SDD` - Sudanese Dinar (1992–2007) + * * `SDG` - Sudanese Pound + * * `SDP` - Sudanese Pound (1957–1998) + * * `SRD` - Surinamese Dollar + * * `SRG` - Surinamese Guilder + * * `SZL` - Swazi Lilangeni + * * `SEK` - Swedish Krona + * * `CHF` - Swiss Franc + * * `SYP` - Syrian Pound + * * `STN` - São Tomé & Príncipe Dobra + * * `STD` - São Tomé & Príncipe Dobra (1977–2017) + * * `TVD` - TVD + * * `TJR` - Tajikistani Ruble + * * `TJS` - Tajikistani Somoni + * * `TZS` - Tanzanian Shilling + * * `XTS` - Testing Currency Code + * * `THB` - Thai Baht + * * `XXX` - The codes assigned for transactions where no currency is involved + * * `TPE` - Timorese Escudo + * * `TOP` - Tongan Paʻanga + * * `TTD` - Trinidad & Tobago Dollar + * * `TND` - Tunisian Dinar + * * `TRY` - Turkish Lira + * * `TRL` - Turkish Lira (1922–2005) + * * `TMT` - Turkmenistani Manat + * * `TMM` - Turkmenistani Manat (1993–2009) + * * `USD` - US Dollar + * * `USN` - US Dollar (Next day) + * * `USS` - US Dollar (Same day) + * * `UGX` - Ugandan Shilling + * * `UGS` - Ugandan Shilling (1966–1987) + * * `UAH` - Ukrainian Hryvnia + * * `UAK` - Ukrainian Karbovanets + * * `AED` - United Arab Emirates Dirham + * * `UYW` - Uruguayan Nominal Wage Index Unit + * * `UYU` - Uruguayan Peso + * * `UYP` - Uruguayan Peso (1975–1993) + * * `UYI` - Uruguayan Peso (Indexed Units) + * * `UZS` - Uzbekistani Som + * * `VUV` - Vanuatu Vatu + * * `VES` - Venezuelan Bolívar + * * `VEB` - Venezuelan Bolívar (1871–2008) + * * `VEF` - Venezuelan Bolívar (2008–2018) + * * `VND` - Vietnamese Dong + * * `VNN` - Vietnamese Dong (1978–1985) + * * `CHE` - WIR Euro + * * `CHW` - WIR Franc + * * `XOF` - West African CFA Franc + * * `YDD` - Yemeni Dinar + * * `YER` - Yemeni Rial + * * `YUN` - Yugoslavian Convertible Dinar (1990–1992) + * * `YUD` - Yugoslavian Hard Dinar (1966–1990) + * * `YUM` - Yugoslavian New Dinar (1994–2002) + * * `YUR` - Yugoslavian Reformed Dinar (1992–1993) + * * `ZWN` - ZWN + * * `ZRN` - Zairean New Zaire (1993–1998) + * * `ZRZ` - Zairean Zaire (1971–1993) + * * `ZMW` - Zambian Kwacha + * * `ZMK` - Zambian Kwacha (1968–2012) + * * `ZWD` - Zimbabwean Dollar (1980–2008) + * * `ZWR` - Zimbabwean Dollar (2008) + * * `ZWL` - Zimbabwean Dollar (2009) + */ +export type ExpenseReportRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/ExpenseReportRequestStatus.ts b/src/api/resources/accounting/types/ExpenseReportRequestStatus.ts new file mode 100644 index 000000000..10e2f952b --- /dev/null +++ b/src/api/resources/accounting/types/ExpenseReportRequestStatus.ts @@ -0,0 +1,13 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * Overall status of the expense report. One of DRAFT, SUBMITTED, APPROVED, REJECTED + * + * * `DRAFT` - DRAFT + * * `SUBMITTED` - SUBMITTED + * * `APPROVED` - APPROVED + * * `REJECTED` - REJECTED + */ +export type ExpenseReportRequestStatus = Merge.accounting.ExpenseReportStatusEnum | string; diff --git a/src/api/resources/accounting/types/ExpenseRequest.ts b/src/api/resources/accounting/types/ExpenseRequest.ts index 28df25756..5689db784 100644 --- a/src/api/resources/accounting/types/ExpenseRequest.ts +++ b/src/api/resources/accounting/types/ExpenseRequest.ts @@ -7,7 +7,7 @@ import type * as Merge from "../../../index"; * ### Description * The `Expense` object is used to represent a direct purchase by a business, typically made with a check, credit card, or cash. Each `Expense` object is dedicated to a grouping of expenses, with each expense recorded in the lines object. * - * The `Expense` object is used also used to represent refunds to direct purchases. Refunds can be distinguished from purchases by the amount sign of the records. Expense objects with a negative amount are purchases and `Expense` objects with a positive amount are refunds to those purchases. + * The `Expense` object is also used to represent refunds to direct purchases. Refunds can be distinguished from purchases by the amount sign of the records. Expense objects with a negative amount are purchases and `Expense` objects with a positive amount are refunds to those purchases. * * ### Usage Example * Fetch from the `GET Expense` endpoint and view a company's expense. diff --git a/src/api/resources/accounting/types/ExternalTargetFieldApiResponse.ts b/src/api/resources/accounting/types/ExternalTargetFieldApiResponse.ts index 0e219d1b8..d20f5106b 100644 --- a/src/api/resources/accounting/types/ExternalTargetFieldApiResponse.ts +++ b/src/api/resources/accounting/types/ExternalTargetFieldApiResponse.ts @@ -13,6 +13,8 @@ export interface ExternalTargetFieldApiResponse { creditNote?: Merge.accounting.ExternalTargetFieldApi[]; item?: Merge.accounting.ExternalTargetFieldApi[]; purchaseOrder?: Merge.accounting.ExternalTargetFieldApi[]; + salesOrder?: Merge.accounting.ExternalTargetFieldApi[]; + itemFulfillment?: Merge.accounting.ExternalTargetFieldApi[]; expenseReport?: Merge.accounting.ExternalTargetFieldApi[]; trackingCategory?: Merge.accounting.ExternalTargetFieldApi[]; journalEntry?: Merge.accounting.ExternalTargetFieldApi[]; diff --git a/src/api/resources/accounting/types/FieldMappingApiInstance.ts b/src/api/resources/accounting/types/FieldMappingApiInstance.ts index 7603ccaaa..c3eef9ed7 100644 --- a/src/api/resources/accounting/types/FieldMappingApiInstance.ts +++ b/src/api/resources/accounting/types/FieldMappingApiInstance.ts @@ -7,4 +7,5 @@ export interface FieldMappingApiInstance { isIntegrationWide?: boolean; targetField?: Merge.accounting.FieldMappingApiInstanceTargetField; remoteField?: Merge.accounting.FieldMappingApiInstanceRemoteField; + jmesPath?: string; } diff --git a/src/api/resources/accounting/types/FieldMappingApiInstanceResponse.ts b/src/api/resources/accounting/types/FieldMappingApiInstanceResponse.ts index eabacbd8e..56b6d4fff 100644 --- a/src/api/resources/accounting/types/FieldMappingApiInstanceResponse.ts +++ b/src/api/resources/accounting/types/FieldMappingApiInstanceResponse.ts @@ -13,6 +13,8 @@ export interface FieldMappingApiInstanceResponse { creditNote?: Merge.accounting.FieldMappingApiInstance[]; item?: Merge.accounting.FieldMappingApiInstance[]; purchaseOrder?: Merge.accounting.FieldMappingApiInstance[]; + salesOrder?: Merge.accounting.FieldMappingApiInstance[]; + itemFulfillment?: Merge.accounting.FieldMappingApiInstance[]; expenseReport?: Merge.accounting.FieldMappingApiInstance[]; trackingCategory?: Merge.accounting.FieldMappingApiInstance[]; journalEntry?: Merge.accounting.FieldMappingApiInstance[]; diff --git a/src/api/resources/accounting/types/Invoice.ts b/src/api/resources/accounting/types/Invoice.ts index 58181f2e2..ebb73784d 100644 --- a/src/api/resources/accounting/types/Invoice.ts +++ b/src/api/resources/accounting/types/Invoice.ts @@ -386,6 +386,7 @@ export interface Invoice { /** The accounting period that the Invoice was generated in. */ accountingPeriod?: Merge.accounting.InvoiceAccountingPeriod; purchaseOrders?: (Merge.accounting.InvoicePurchaseOrdersItem | undefined)[]; + salesOrders?: (Merge.accounting.InvoiceSalesOrdersItem | undefined)[]; /** Array of `Payment` object IDs. */ payments?: (Merge.accounting.InvoicePaymentsItem | undefined)[]; /** A list of the Payment Applied to Lines common models related to a given Invoice, Credit Note, or Journal Entry. */ diff --git a/src/api/resources/accounting/types/InvoiceBatchItemRequest.ts b/src/api/resources/accounting/types/InvoiceBatchItemRequest.ts new file mode 100644 index 000000000..ee93f2810 --- /dev/null +++ b/src/api/resources/accounting/types/InvoiceBatchItemRequest.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface InvoiceBatchItemRequest { + /** The third-party item ID for this model in the bulk create request */ + itemId: string; + payload: Merge.accounting.InvoiceEndpointRequest; +} diff --git a/src/api/resources/accounting/types/InvoiceEndpointRequest.ts b/src/api/resources/accounting/types/InvoiceEndpointRequest.ts new file mode 100644 index 000000000..3e02bc1db --- /dev/null +++ b/src/api/resources/accounting/types/InvoiceEndpointRequest.ts @@ -0,0 +1,7 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface InvoiceEndpointRequest { + model: Merge.accounting.InvoiceRequest; +} diff --git a/src/api/resources/accounting/types/InvoiceSalesOrdersItem.ts b/src/api/resources/accounting/types/InvoiceSalesOrdersItem.ts new file mode 100644 index 000000000..18479f57f --- /dev/null +++ b/src/api/resources/accounting/types/InvoiceSalesOrdersItem.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type InvoiceSalesOrdersItem = string | Merge.accounting.SalesOrder; diff --git a/src/api/resources/accounting/types/ItemBatchItemRequest.ts b/src/api/resources/accounting/types/ItemBatchItemRequest.ts new file mode 100644 index 000000000..4c848cd80 --- /dev/null +++ b/src/api/resources/accounting/types/ItemBatchItemRequest.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface ItemBatchItemRequest { + /** The third-party item ID for this model in the bulk create request */ + itemId: string; + payload: Merge.accounting.ItemEndpointRequest; +} diff --git a/src/api/resources/accounting/types/ItemEndpointRequest.ts b/src/api/resources/accounting/types/ItemEndpointRequest.ts new file mode 100644 index 000000000..c22cc87d6 --- /dev/null +++ b/src/api/resources/accounting/types/ItemEndpointRequest.ts @@ -0,0 +1,7 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface ItemEndpointRequest { + model: Merge.accounting.ItemRequestRequest; +} diff --git a/src/api/resources/accounting/types/ItemFulfillment.ts b/src/api/resources/accounting/types/ItemFulfillment.ts new file mode 100644 index 000000000..8ecdcf9b5 --- /dev/null +++ b/src/api/resources/accounting/types/ItemFulfillment.ts @@ -0,0 +1,50 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * # The ItemFulfillment Object + * ### Description + * The `ItemFulfillment` object represents the recorded shipment or delivery of some or all items on an associated sales order. + * + * ### Usage Example + * Fetch from the `LIST ItemFulfillments` endpoint and view a company's item fulfillments. + */ +export interface ItemFulfillment { + id?: string; + /** The third-party API ID of the matching object. */ + remoteId?: string; + /** The datetime that this object was created by Merge. */ + createdAt?: Date; + /** The datetime that this object was modified by Merge. */ + modifiedAt?: Date; + /** The ID of the sales order that the item fulfillment originated from. */ + salesOrder?: Merge.accounting.ItemFulfillmentSalesOrder; + /** The date the fulfillment was created. */ + fulfillmentDate?: Date; + /** The customer associated with the item fulfillment. */ + customer?: Merge.accounting.ItemFulfillmentCustomer; + /** The subsidiary associated with the fulfillment. */ + company?: Merge.accounting.ItemFulfillmentCompany; + /** + * The status of the item fulfillment. + * + * * `DRAFT` - DRAFT + * * `IN_PROGRESS` - IN_PROGRESS + * * `SHIPPED` - SHIPPED + * * `CANCELLED` - CANCELLED + */ + status?: Merge.accounting.ItemFulfillmentStatus; + /** Comment attached to the fulfillment. */ + memo?: string; + lines?: Merge.accounting.ItemFulfillmentLinesItem[]; + /** When the third party's item fulfillment was created. */ + remoteCreatedAt?: Date; + /** When the third party's item fulfillment was updated. */ + remoteUpdatedAt?: Date; + /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ + remoteWasDeleted?: boolean; + fieldMappings?: Record; + remoteData?: Merge.accounting.RemoteData[]; + remoteFields?: Merge.accounting.RemoteField[]; +} diff --git a/src/api/resources/accounting/types/ItemFulfillmentBatchItemRequest.ts b/src/api/resources/accounting/types/ItemFulfillmentBatchItemRequest.ts new file mode 100644 index 000000000..1df389030 --- /dev/null +++ b/src/api/resources/accounting/types/ItemFulfillmentBatchItemRequest.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface ItemFulfillmentBatchItemRequest { + /** The third-party item ID for this model in the bulk create request */ + itemId: string; + payload: Merge.accounting.ItemFulfillmentEndpointRequest; +} diff --git a/src/api/resources/accounting/types/ItemFulfillmentCompany.ts b/src/api/resources/accounting/types/ItemFulfillmentCompany.ts new file mode 100644 index 000000000..d0211c2b5 --- /dev/null +++ b/src/api/resources/accounting/types/ItemFulfillmentCompany.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The subsidiary associated with the fulfillment. + */ +export type ItemFulfillmentCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/ItemFulfillmentCustomer.ts b/src/api/resources/accounting/types/ItemFulfillmentCustomer.ts new file mode 100644 index 000000000..c123fc926 --- /dev/null +++ b/src/api/resources/accounting/types/ItemFulfillmentCustomer.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The customer associated with the item fulfillment. + */ +export type ItemFulfillmentCustomer = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/ItemFulfillmentEndpointRequest.ts b/src/api/resources/accounting/types/ItemFulfillmentEndpointRequest.ts new file mode 100644 index 000000000..db4d8dc00 --- /dev/null +++ b/src/api/resources/accounting/types/ItemFulfillmentEndpointRequest.ts @@ -0,0 +1,7 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface ItemFulfillmentEndpointRequest { + model: Merge.accounting.ItemFulfillmentRequest; +} diff --git a/src/api/resources/accounting/types/ItemFulfillmentLine.ts b/src/api/resources/accounting/types/ItemFulfillmentLine.ts new file mode 100644 index 000000000..2602ed7a5 --- /dev/null +++ b/src/api/resources/accounting/types/ItemFulfillmentLine.ts @@ -0,0 +1,34 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * # The ItemFulfillmentLine Object + * ### Description + * The `ItemFulfillmentLine` object represents the specific quantity of a particular product or service that has actually been shipped or delivered against its corresponding order line. + * + * ### Usage Example + * Fetch from the `GET ItemFulfillment` endpoint and view a company's item fulfillment lines. + */ +export interface ItemFulfillmentLine { + id?: string; + /** The third-party API ID of the matching object. */ + remoteId?: string; + /** The datetime that this object was created by Merge. */ + createdAt?: Date; + /** The datetime that this object was modified by Merge. */ + modifiedAt?: Date; + item?: Merge.accounting.ItemFulfillmentLineItem; + salesOrderLine?: Merge.accounting.ItemFulfillmentLineSalesOrderLine; + /** The amount of item being delivered. */ + quantity?: string; + /** The dimensions or classification tags. */ + trackingCategories?: (Merge.accounting.ItemFulfillmentLineTrackingCategoriesItem | undefined)[]; + /** When the third party's item fulfillment line item was created. */ + remoteCreatedAt?: Date; + /** When the third party's item fulfillment line item was updated. */ + remoteUpdatedAt?: Date; + /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ + remoteWasDeleted?: boolean; + remoteFields?: Merge.accounting.RemoteField[]; +} diff --git a/src/api/resources/accounting/types/ItemFulfillmentLineItem.ts b/src/api/resources/accounting/types/ItemFulfillmentLineItem.ts new file mode 100644 index 000000000..42ecaf66d --- /dev/null +++ b/src/api/resources/accounting/types/ItemFulfillmentLineItem.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type ItemFulfillmentLineItem = string | Merge.accounting.Item; diff --git a/src/api/resources/accounting/types/ItemFulfillmentLineRequest.ts b/src/api/resources/accounting/types/ItemFulfillmentLineRequest.ts new file mode 100644 index 000000000..e0f9fd344 --- /dev/null +++ b/src/api/resources/accounting/types/ItemFulfillmentLineRequest.ts @@ -0,0 +1,29 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * # The ItemFulfillmentLine Object + * ### Description + * The `ItemFulfillmentLine` object represents the specific quantity of a particular product or service that has actually been shipped or delivered against its corresponding order line. + * + * ### Usage Example + * Fetch from the `GET ItemFulfillment` endpoint and view a company's item fulfillment lines. + */ +export interface ItemFulfillmentLineRequest { + /** The third-party API ID of the matching object. */ + remoteId?: string; + item?: Merge.accounting.ItemFulfillmentLineRequestItem; + salesOrderLine?: Merge.accounting.ItemFulfillmentLineRequestSalesOrderLine; + /** The amount of item being delivered. */ + quantity?: string; + /** The dimensions or classification tags. */ + trackingCategories?: (Merge.accounting.ItemFulfillmentLineRequestTrackingCategoriesItem | undefined)[]; + /** When the third party's item fulfillment line item was created. */ + remoteCreatedAt?: Date; + /** When the third party's item fulfillment line item was updated. */ + remoteUpdatedAt?: Date; + integrationParams?: Record; + linkedAccountParams?: Record; + remoteFields?: Merge.accounting.RemoteFieldRequest[]; +} diff --git a/src/api/resources/accounting/types/ItemFulfillmentLineRequestItem.ts b/src/api/resources/accounting/types/ItemFulfillmentLineRequestItem.ts new file mode 100644 index 000000000..3d30574be --- /dev/null +++ b/src/api/resources/accounting/types/ItemFulfillmentLineRequestItem.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type ItemFulfillmentLineRequestItem = string | Merge.accounting.Item; diff --git a/src/api/resources/accounting/types/ItemFulfillmentLineRequestSalesOrderLine.ts b/src/api/resources/accounting/types/ItemFulfillmentLineRequestSalesOrderLine.ts new file mode 100644 index 000000000..455080781 --- /dev/null +++ b/src/api/resources/accounting/types/ItemFulfillmentLineRequestSalesOrderLine.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type ItemFulfillmentLineRequestSalesOrderLine = string | Merge.accounting.SalesOrderLine; diff --git a/src/api/resources/accounting/types/ItemFulfillmentLineRequestTrackingCategoriesItem.ts b/src/api/resources/accounting/types/ItemFulfillmentLineRequestTrackingCategoriesItem.ts new file mode 100644 index 000000000..88087e1dc --- /dev/null +++ b/src/api/resources/accounting/types/ItemFulfillmentLineRequestTrackingCategoriesItem.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type ItemFulfillmentLineRequestTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/ItemFulfillmentLineSalesOrderLine.ts b/src/api/resources/accounting/types/ItemFulfillmentLineSalesOrderLine.ts new file mode 100644 index 000000000..2d20997f2 --- /dev/null +++ b/src/api/resources/accounting/types/ItemFulfillmentLineSalesOrderLine.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type ItemFulfillmentLineSalesOrderLine = string | Merge.accounting.SalesOrderLine; diff --git a/src/api/resources/accounting/types/ItemFulfillmentLineTrackingCategoriesItem.ts b/src/api/resources/accounting/types/ItemFulfillmentLineTrackingCategoriesItem.ts new file mode 100644 index 000000000..9a389a8e1 --- /dev/null +++ b/src/api/resources/accounting/types/ItemFulfillmentLineTrackingCategoriesItem.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type ItemFulfillmentLineTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/ItemFulfillmentLinesItem.ts b/src/api/resources/accounting/types/ItemFulfillmentLinesItem.ts new file mode 100644 index 000000000..c86659b67 --- /dev/null +++ b/src/api/resources/accounting/types/ItemFulfillmentLinesItem.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type ItemFulfillmentLinesItem = string | Merge.accounting.ItemFulfillmentLine; diff --git a/src/api/resources/accounting/types/ItemFulfillmentRequest.ts b/src/api/resources/accounting/types/ItemFulfillmentRequest.ts new file mode 100644 index 000000000..43ce50add --- /dev/null +++ b/src/api/resources/accounting/types/ItemFulfillmentRequest.ts @@ -0,0 +1,36 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * # The ItemFulfillment Object + * ### Description + * The `ItemFulfillment` object represents the recorded shipment or delivery of some or all items on an associated sales order. + * + * ### Usage Example + * Fetch from the `LIST ItemFulfillments` endpoint and view a company's item fulfillments. + */ +export interface ItemFulfillmentRequest { + /** The ID of the sales order that the item fulfillment originated from. */ + salesOrder?: Merge.accounting.ItemFulfillmentRequestSalesOrder; + /** The date the fulfillment was created. */ + fulfillmentDate?: Date; + /** The customer associated with the item fulfillment. */ + customer?: Merge.accounting.ItemFulfillmentRequestCustomer; + /** The subsidiary associated with the fulfillment. */ + company?: Merge.accounting.ItemFulfillmentRequestCompany; + /** + * The status of the item fulfillment. + * + * * `DRAFT` - DRAFT + * * `IN_PROGRESS` - IN_PROGRESS + * * `SHIPPED` - SHIPPED + * * `CANCELLED` - CANCELLED + */ + status?: Merge.accounting.ItemFulfillmentRequestStatus; + /** Comment attached to the fulfillment. */ + memo?: string; + integrationParams?: Record; + linkedAccountParams?: Record; + remoteFields?: Merge.accounting.RemoteFieldRequest[]; +} diff --git a/src/api/resources/accounting/types/ItemFulfillmentRequestCompany.ts b/src/api/resources/accounting/types/ItemFulfillmentRequestCompany.ts new file mode 100644 index 000000000..36f5ab2ef --- /dev/null +++ b/src/api/resources/accounting/types/ItemFulfillmentRequestCompany.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The subsidiary associated with the fulfillment. + */ +export type ItemFulfillmentRequestCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/ItemFulfillmentRequestCustomer.ts b/src/api/resources/accounting/types/ItemFulfillmentRequestCustomer.ts new file mode 100644 index 000000000..5058b3836 --- /dev/null +++ b/src/api/resources/accounting/types/ItemFulfillmentRequestCustomer.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The customer associated with the item fulfillment. + */ +export type ItemFulfillmentRequestCustomer = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/ItemFulfillmentRequestSalesOrder.ts b/src/api/resources/accounting/types/ItemFulfillmentRequestSalesOrder.ts new file mode 100644 index 000000000..fa8212ee2 --- /dev/null +++ b/src/api/resources/accounting/types/ItemFulfillmentRequestSalesOrder.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The ID of the sales order that the item fulfillment originated from. + */ +export type ItemFulfillmentRequestSalesOrder = string | Merge.accounting.SalesOrder; diff --git a/src/api/resources/accounting/types/ItemFulfillmentRequestStatus.ts b/src/api/resources/accounting/types/ItemFulfillmentRequestStatus.ts new file mode 100644 index 000000000..2e5e5f263 --- /dev/null +++ b/src/api/resources/accounting/types/ItemFulfillmentRequestStatus.ts @@ -0,0 +1,13 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The status of the item fulfillment. + * + * * `DRAFT` - DRAFT + * * `IN_PROGRESS` - IN_PROGRESS + * * `SHIPPED` - SHIPPED + * * `CANCELLED` - CANCELLED + */ +export type ItemFulfillmentRequestStatus = Merge.accounting.ItemFulfillmentStatusEnum | string; diff --git a/src/api/resources/accounting/types/ItemFulfillmentResponse.ts b/src/api/resources/accounting/types/ItemFulfillmentResponse.ts new file mode 100644 index 000000000..85798ccf5 --- /dev/null +++ b/src/api/resources/accounting/types/ItemFulfillmentResponse.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface ItemFulfillmentResponse { + model: Merge.accounting.ItemFulfillment; + warnings: Merge.accounting.WarningValidationProblem[]; + errors: Merge.accounting.ErrorValidationProblem[]; + logs?: Merge.accounting.DebugModeLog[]; +} diff --git a/src/api/resources/accounting/types/ItemFulfillmentSalesOrder.ts b/src/api/resources/accounting/types/ItemFulfillmentSalesOrder.ts new file mode 100644 index 000000000..0127418a2 --- /dev/null +++ b/src/api/resources/accounting/types/ItemFulfillmentSalesOrder.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The ID of the sales order that the item fulfillment originated from. + */ +export type ItemFulfillmentSalesOrder = string | Merge.accounting.SalesOrder; diff --git a/src/api/resources/accounting/types/ItemFulfillmentStatus.ts b/src/api/resources/accounting/types/ItemFulfillmentStatus.ts new file mode 100644 index 000000000..4e777d5c9 --- /dev/null +++ b/src/api/resources/accounting/types/ItemFulfillmentStatus.ts @@ -0,0 +1,13 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The status of the item fulfillment. + * + * * `DRAFT` - DRAFT + * * `IN_PROGRESS` - IN_PROGRESS + * * `SHIPPED` - SHIPPED + * * `CANCELLED` - CANCELLED + */ +export type ItemFulfillmentStatus = Merge.accounting.ItemFulfillmentStatusEnum | string; diff --git a/src/api/resources/accounting/types/ItemFulfillmentStatusEnum.ts b/src/api/resources/accounting/types/ItemFulfillmentStatusEnum.ts new file mode 100644 index 000000000..f417aa108 --- /dev/null +++ b/src/api/resources/accounting/types/ItemFulfillmentStatusEnum.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * * `DRAFT` - DRAFT + * * `IN_PROGRESS` - IN_PROGRESS + * * `SHIPPED` - SHIPPED + * * `CANCELLED` - CANCELLED + */ +export const ItemFulfillmentStatusEnum = { + Draft: "DRAFT", + InProgress: "IN_PROGRESS", + Shipped: "SHIPPED", + Cancelled: "CANCELLED", +} as const; +export type ItemFulfillmentStatusEnum = (typeof ItemFulfillmentStatusEnum)[keyof typeof ItemFulfillmentStatusEnum]; diff --git a/src/api/resources/accounting/types/JournalEntryBatchItemRequest.ts b/src/api/resources/accounting/types/JournalEntryBatchItemRequest.ts new file mode 100644 index 000000000..a4a33995c --- /dev/null +++ b/src/api/resources/accounting/types/JournalEntryBatchItemRequest.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface JournalEntryBatchItemRequest { + /** The third-party item ID for this model in the bulk create request */ + itemId: string; + payload: Merge.accounting.JournalEntryEndpointRequest; +} diff --git a/src/api/resources/accounting/types/JournalEntryEndpointRequest.ts b/src/api/resources/accounting/types/JournalEntryEndpointRequest.ts new file mode 100644 index 000000000..3a9fde742 --- /dev/null +++ b/src/api/resources/accounting/types/JournalEntryEndpointRequest.ts @@ -0,0 +1,7 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface JournalEntryEndpointRequest { + model: Merge.accounting.JournalEntryRequest; +} diff --git a/src/api/resources/accounting/types/PaginatedItemFulfillmentList.ts b/src/api/resources/accounting/types/PaginatedItemFulfillmentList.ts new file mode 100644 index 000000000..a02c38711 --- /dev/null +++ b/src/api/resources/accounting/types/PaginatedItemFulfillmentList.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface PaginatedItemFulfillmentList { + next?: string; + previous?: string; + results?: Merge.accounting.ItemFulfillment[]; +} diff --git a/src/api/resources/accounting/types/PaginatedSalesOrderList.ts b/src/api/resources/accounting/types/PaginatedSalesOrderList.ts new file mode 100644 index 000000000..b36dd22f0 --- /dev/null +++ b/src/api/resources/accounting/types/PaginatedSalesOrderList.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface PaginatedSalesOrderList { + next?: string; + previous?: string; + results?: Merge.accounting.SalesOrder[]; +} diff --git a/src/api/resources/accounting/types/PatchedContactRequest.ts b/src/api/resources/accounting/types/PatchedContactRequest.ts index b99d993ef..75f900a3e 100644 --- a/src/api/resources/accounting/types/PatchedContactRequest.ts +++ b/src/api/resources/accounting/types/PatchedContactRequest.ts @@ -29,13 +29,13 @@ export interface PatchedContactRequest { * * `ACTIVE` - ACTIVE * * `ARCHIVED` - ARCHIVED */ - status?: string; + status?: Merge.accounting.PatchedContactRequestStatus; /** The currency the contact's transactions are in. */ currency?: string; /** The company the contact belongs to. */ company?: string; /** `Address` object IDs for the given `Contacts` object. */ - addresses?: (Merge.accounting.PatchedContactRequestAddressesItem | undefined)[]; + addresses?: Merge.accounting.AddressRequest[]; /** `AccountingPhoneNumber` object for the given `Contacts` object. */ phoneNumbers?: Merge.accounting.AccountingPhoneNumberRequest[]; integrationParams?: Record; diff --git a/src/api/resources/accounting/types/PatchedContactRequestAddressesItem.ts b/src/api/resources/accounting/types/PatchedContactRequestAddressesItem.ts deleted file mode 100644 index 7e350f14d..000000000 --- a/src/api/resources/accounting/types/PatchedContactRequestAddressesItem.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export type PatchedContactRequestAddressesItem = string | Merge.accounting.Address; diff --git a/src/api/resources/accounting/types/PatchedContactRequestStatus.ts b/src/api/resources/accounting/types/PatchedContactRequestStatus.ts new file mode 100644 index 000000000..b5b4cf5d0 --- /dev/null +++ b/src/api/resources/accounting/types/PatchedContactRequestStatus.ts @@ -0,0 +1,11 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The contact's status + * + * * `ACTIVE` - ACTIVE + * * `ARCHIVED` - ARCHIVED + */ +export type PatchedContactRequestStatus = Merge.accounting.Status7D1Enum | string; diff --git a/src/api/resources/accounting/types/PatchedVendorCreditRequest.ts b/src/api/resources/accounting/types/PatchedVendorCreditRequest.ts new file mode 100644 index 000000000..5984b32c9 --- /dev/null +++ b/src/api/resources/accounting/types/PatchedVendorCreditRequest.ts @@ -0,0 +1,340 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * # The VendorCredit Object + * ### Description + * A `VendorCredit` is transaction issued by a vendor to the accounting company, indicating a reduction or cancellation of the amount owed to the vendor. It is most generally used as an adjustment note used to rectify errors, returns, or overpayments related to a purchasing transaction. A `VendorCredit` can be applied to `Accounts Payable` Invoices to decrease the overall amount of the `Invoice`. + * + * ### Usage Example + * Fetch from the `GET VendorCredit` endpoint and view a company's vendor credits. + */ +export interface PatchedVendorCreditRequest { + /** The vendor credit's number. */ + number?: string; + /** The vendor credit's transaction date. */ + transactionDate?: Date; + /** The vendor that owes the gift or refund. */ + vendor?: string; + /** + * The vendor credit's currency. + * + * * `XUA` - ADB Unit of Account + * * `AFN` - Afghan Afghani + * * `AFA` - Afghan Afghani (1927–2002) + * * `ALL` - Albanian Lek + * * `ALK` - Albanian Lek (1946–1965) + * * `DZD` - Algerian Dinar + * * `ADP` - Andorran Peseta + * * `AOA` - Angolan Kwanza + * * `AOK` - Angolan Kwanza (1977–1991) + * * `AON` - Angolan New Kwanza (1990–2000) + * * `AOR` - Angolan Readjusted Kwanza (1995–1999) + * * `ARA` - Argentine Austral + * * `ARS` - Argentine Peso + * * `ARM` - Argentine Peso (1881–1970) + * * `ARP` - Argentine Peso (1983–1985) + * * `ARL` - Argentine Peso Ley (1970–1983) + * * `AMD` - Armenian Dram + * * `AWG` - Aruban Florin + * * `AUD` - Australian Dollar + * * `ATS` - Austrian Schilling + * * `AZN` - Azerbaijani Manat + * * `AZM` - Azerbaijani Manat (1993–2006) + * * `BSD` - Bahamian Dollar + * * `BHD` - Bahraini Dinar + * * `BDT` - Bangladeshi Taka + * * `BBD` - Barbadian Dollar + * * `BYN` - Belarusian Ruble + * * `BYB` - Belarusian Ruble (1994–1999) + * * `BYR` - Belarusian Ruble (2000–2016) + * * `BEF` - Belgian Franc + * * `BEC` - Belgian Franc (convertible) + * * `BEL` - Belgian Franc (financial) + * * `BZD` - Belize Dollar + * * `BMD` - Bermudan Dollar + * * `BTN` - Bhutanese Ngultrum + * * `BOB` - Bolivian Boliviano + * * `BOL` - Bolivian Boliviano (1863–1963) + * * `BOV` - Bolivian Mvdol + * * `BOP` - Bolivian Peso + * * `BAM` - Bosnia-Herzegovina Convertible Mark + * * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) + * * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) + * * `BWP` - Botswanan Pula + * * `BRC` - Brazilian Cruzado (1986–1989) + * * `BRZ` - Brazilian Cruzeiro (1942–1967) + * * `BRE` - Brazilian Cruzeiro (1990–1993) + * * `BRR` - Brazilian Cruzeiro (1993–1994) + * * `BRN` - Brazilian New Cruzado (1989–1990) + * * `BRB` - Brazilian New Cruzeiro (1967–1986) + * * `BRL` - Brazilian Real + * * `GBP` - British Pound + * * `BND` - Brunei Dollar + * * `BGL` - Bulgarian Hard Lev + * * `BGN` - Bulgarian Lev + * * `BGO` - Bulgarian Lev (1879–1952) + * * `BGM` - Bulgarian Socialist Lev + * * `BUK` - Burmese Kyat + * * `BIF` - Burundian Franc + * * `XPF` - CFP Franc + * * `KHR` - Cambodian Riel + * * `CAD` - Canadian Dollar + * * `CVE` - Cape Verdean Escudo + * * `KYD` - Cayman Islands Dollar + * * `XAF` - Central African CFA Franc + * * `CLE` - Chilean Escudo + * * `CLP` - Chilean Peso + * * `CLF` - Chilean Unit of Account (UF) + * * `CNX` - Chinese People’s Bank Dollar + * * `CNY` - Chinese Yuan + * * `CNH` - Chinese Yuan (offshore) + * * `COP` - Colombian Peso + * * `COU` - Colombian Real Value Unit + * * `KMF` - Comorian Franc + * * `CDF` - Congolese Franc + * * `CRC` - Costa Rican Colón + * * `HRD` - Croatian Dinar + * * `HRK` - Croatian Kuna + * * `CUC` - Cuban Convertible Peso + * * `CUP` - Cuban Peso + * * `CYP` - Cypriot Pound + * * `CZK` - Czech Koruna + * * `CSK` - Czechoslovak Hard Koruna + * * `DKK` - Danish Krone + * * `DJF` - Djiboutian Franc + * * `DOP` - Dominican Peso + * * `NLG` - Dutch Guilder + * * `XCD` - East Caribbean Dollar + * * `DDM` - East German Mark + * * `ECS` - Ecuadorian Sucre + * * `ECV` - Ecuadorian Unit of Constant Value + * * `EGP` - Egyptian Pound + * * `GQE` - Equatorial Guinean Ekwele + * * `ERN` - Eritrean Nakfa + * * `EEK` - Estonian Kroon + * * `ETB` - Ethiopian Birr + * * `EUR` - Euro + * * `XBA` - European Composite Unit + * * `XEU` - European Currency Unit + * * `XBB` - European Monetary Unit + * * `XBC` - European Unit of Account (XBC) + * * `XBD` - European Unit of Account (XBD) + * * `FKP` - Falkland Islands Pound + * * `FJD` - Fijian Dollar + * * `FIM` - Finnish Markka + * * `FRF` - French Franc + * * `XFO` - French Gold Franc + * * `XFU` - French UIC-Franc + * * `GMD` - Gambian Dalasi + * * `GEK` - Georgian Kupon Larit + * * `GEL` - Georgian Lari + * * `DEM` - German Mark + * * `GHS` - Ghanaian Cedi + * * `GHC` - Ghanaian Cedi (1979–2007) + * * `GIP` - Gibraltar Pound + * * `XAU` - Gold + * * `GRD` - Greek Drachma + * * `GTQ` - Guatemalan Quetzal + * * `GWP` - Guinea-Bissau Peso + * * `GNF` - Guinean Franc + * * `GNS` - Guinean Syli + * * `GYD` - Guyanaese Dollar + * * `HTG` - Haitian Gourde + * * `HNL` - Honduran Lempira + * * `HKD` - Hong Kong Dollar + * * `HUF` - Hungarian Forint + * * `IMP` - IMP + * * `ISK` - Icelandic Króna + * * `ISJ` - Icelandic Króna (1918–1981) + * * `INR` - Indian Rupee + * * `IDR` - Indonesian Rupiah + * * `IRR` - Iranian Rial + * * `IQD` - Iraqi Dinar + * * `IEP` - Irish Pound + * * `ILS` - Israeli New Shekel + * * `ILP` - Israeli Pound + * * `ILR` - Israeli Shekel (1980–1985) + * * `ITL` - Italian Lira + * * `JMD` - Jamaican Dollar + * * `JPY` - Japanese Yen + * * `JOD` - Jordanian Dinar + * * `KZT` - Kazakhstani Tenge + * * `KES` - Kenyan Shilling + * * `KWD` - Kuwaiti Dinar + * * `KGS` - Kyrgystani Som + * * `LAK` - Laotian Kip + * * `LVL` - Latvian Lats + * * `LVR` - Latvian Ruble + * * `LBP` - Lebanese Pound + * * `LSL` - Lesotho Loti + * * `LRD` - Liberian Dollar + * * `LYD` - Libyan Dinar + * * `LTL` - Lithuanian Litas + * * `LTT` - Lithuanian Talonas + * * `LUL` - Luxembourg Financial Franc + * * `LUC` - Luxembourgian Convertible Franc + * * `LUF` - Luxembourgian Franc + * * `MOP` - Macanese Pataca + * * `MKD` - Macedonian Denar + * * `MKN` - Macedonian Denar (1992–1993) + * * `MGA` - Malagasy Ariary + * * `MGF` - Malagasy Franc + * * `MWK` - Malawian Kwacha + * * `MYR` - Malaysian Ringgit + * * `MVR` - Maldivian Rufiyaa + * * `MVP` - Maldivian Rupee (1947–1981) + * * `MLF` - Malian Franc + * * `MTL` - Maltese Lira + * * `MTP` - Maltese Pound + * * `MRU` - Mauritanian Ouguiya + * * `MRO` - Mauritanian Ouguiya (1973–2017) + * * `MUR` - Mauritian Rupee + * * `MXV` - Mexican Investment Unit + * * `MXN` - Mexican Peso + * * `MXP` - Mexican Silver Peso (1861–1992) + * * `MDC` - Moldovan Cupon + * * `MDL` - Moldovan Leu + * * `MCF` - Monegasque Franc + * * `MNT` - Mongolian Tugrik + * * `MAD` - Moroccan Dirham + * * `MAF` - Moroccan Franc + * * `MZE` - Mozambican Escudo + * * `MZN` - Mozambican Metical + * * `MZM` - Mozambican Metical (1980–2006) + * * `MMK` - Myanmar Kyat + * * `NAD` - Namibian Dollar + * * `NPR` - Nepalese Rupee + * * `ANG` - Netherlands Antillean Guilder + * * `TWD` - New Taiwan Dollar + * * `NZD` - New Zealand Dollar + * * `NIO` - Nicaraguan Córdoba + * * `NIC` - Nicaraguan Córdoba (1988–1991) + * * `NGN` - Nigerian Naira + * * `KPW` - North Korean Won + * * `NOK` - Norwegian Krone + * * `OMR` - Omani Rial + * * `PKR` - Pakistani Rupee + * * `XPD` - Palladium + * * `PAB` - Panamanian Balboa + * * `PGK` - Papua New Guinean Kina + * * `PYG` - Paraguayan Guarani + * * `PEI` - Peruvian Inti + * * `PEN` - Peruvian Sol + * * `PES` - Peruvian Sol (1863–1965) + * * `PHP` - Philippine Peso + * * `XPT` - Platinum + * * `PLN` - Polish Zloty + * * `PLZ` - Polish Zloty (1950–1995) + * * `PTE` - Portuguese Escudo + * * `GWE` - Portuguese Guinea Escudo + * * `QAR` - Qatari Rial + * * `XRE` - RINET Funds + * * `RHD` - Rhodesian Dollar + * * `RON` - Romanian Leu + * * `ROL` - Romanian Leu (1952–2006) + * * `RUB` - Russian Ruble + * * `RUR` - Russian Ruble (1991–1998) + * * `RWF` - Rwandan Franc + * * `SVC` - Salvadoran Colón + * * `WST` - Samoan Tala + * * `SAR` - Saudi Riyal + * * `RSD` - Serbian Dinar + * * `CSD` - Serbian Dinar (2002–2006) + * * `SCR` - Seychellois Rupee + * * `SLL` - Sierra Leonean Leone + * * `XAG` - Silver + * * `SGD` - Singapore Dollar + * * `SKK` - Slovak Koruna + * * `SIT` - Slovenian Tolar + * * `SBD` - Solomon Islands Dollar + * * `SOS` - Somali Shilling + * * `ZAR` - South African Rand + * * `ZAL` - South African Rand (financial) + * * `KRH` - South Korean Hwan (1953–1962) + * * `KRW` - South Korean Won + * * `KRO` - South Korean Won (1945–1953) + * * `SSP` - South Sudanese Pound + * * `SUR` - Soviet Rouble + * * `ESP` - Spanish Peseta + * * `ESA` - Spanish Peseta (A account) + * * `ESB` - Spanish Peseta (convertible account) + * * `XDR` - Special Drawing Rights + * * `LKR` - Sri Lankan Rupee + * * `SHP` - St. Helena Pound + * * `XSU` - Sucre + * * `SDD` - Sudanese Dinar (1992–2007) + * * `SDG` - Sudanese Pound + * * `SDP` - Sudanese Pound (1957–1998) + * * `SRD` - Surinamese Dollar + * * `SRG` - Surinamese Guilder + * * `SZL` - Swazi Lilangeni + * * `SEK` - Swedish Krona + * * `CHF` - Swiss Franc + * * `SYP` - Syrian Pound + * * `STN` - São Tomé & Príncipe Dobra + * * `STD` - São Tomé & Príncipe Dobra (1977–2017) + * * `TVD` - TVD + * * `TJR` - Tajikistani Ruble + * * `TJS` - Tajikistani Somoni + * * `TZS` - Tanzanian Shilling + * * `XTS` - Testing Currency Code + * * `THB` - Thai Baht + * * `XXX` - The codes assigned for transactions where no currency is involved + * * `TPE` - Timorese Escudo + * * `TOP` - Tongan Paʻanga + * * `TTD` - Trinidad & Tobago Dollar + * * `TND` - Tunisian Dinar + * * `TRY` - Turkish Lira + * * `TRL` - Turkish Lira (1922–2005) + * * `TMT` - Turkmenistani Manat + * * `TMM` - Turkmenistani Manat (1993–2009) + * * `USD` - US Dollar + * * `USN` - US Dollar (Next day) + * * `USS` - US Dollar (Same day) + * * `UGX` - Ugandan Shilling + * * `UGS` - Ugandan Shilling (1966–1987) + * * `UAH` - Ukrainian Hryvnia + * * `UAK` - Ukrainian Karbovanets + * * `AED` - United Arab Emirates Dirham + * * `UYW` - Uruguayan Nominal Wage Index Unit + * * `UYU` - Uruguayan Peso + * * `UYP` - Uruguayan Peso (1975–1993) + * * `UYI` - Uruguayan Peso (Indexed Units) + * * `UZS` - Uzbekistani Som + * * `VUV` - Vanuatu Vatu + * * `VES` - Venezuelan Bolívar + * * `VEB` - Venezuelan Bolívar (1871–2008) + * * `VEF` - Venezuelan Bolívar (2008–2018) + * * `VND` - Vietnamese Dong + * * `VNN` - Vietnamese Dong (1978–1985) + * * `CHE` - WIR Euro + * * `CHW` - WIR Franc + * * `XOF` - West African CFA Franc + * * `YDD` - Yemeni Dinar + * * `YER` - Yemeni Rial + * * `YUN` - Yugoslavian Convertible Dinar (1990–1992) + * * `YUD` - Yugoslavian Hard Dinar (1966–1990) + * * `YUM` - Yugoslavian New Dinar (1994–2002) + * * `YUR` - Yugoslavian Reformed Dinar (1992–1993) + * * `ZWN` - ZWN + * * `ZRN` - Zairean New Zaire (1993–1998) + * * `ZRZ` - Zairean Zaire (1971–1993) + * * `ZMW` - Zambian Kwacha + * * `ZMK` - Zambian Kwacha (1968–2012) + * * `ZWD` - Zimbabwean Dollar (1980–2008) + * * `ZWR` - Zimbabwean Dollar (2008) + * * `ZWL` - Zimbabwean Dollar (2009) + */ + currency?: Merge.accounting.PatchedVendorCreditRequestCurrency; + /** The vendor credit's exchange rate. */ + exchangeRate?: string; + /** If the transaction is inclusive or exclusive of tax. `True` if inclusive, `False` if exclusive. */ + inclusiveOfTax?: boolean; + /** The company the vendor credit belongs to. */ + company?: string; + trackingCategories?: (string | undefined)[]; + integrationParams?: Record; + linkedAccountParams?: Record; +} diff --git a/src/api/resources/accounting/types/PatchedVendorCreditRequestCurrency.ts b/src/api/resources/accounting/types/PatchedVendorCreditRequestCurrency.ts new file mode 100644 index 000000000..6aab43c3d --- /dev/null +++ b/src/api/resources/accounting/types/PatchedVendorCreditRequestCurrency.ts @@ -0,0 +1,315 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The vendor credit's currency. + * + * * `XUA` - ADB Unit of Account + * * `AFN` - Afghan Afghani + * * `AFA` - Afghan Afghani (1927–2002) + * * `ALL` - Albanian Lek + * * `ALK` - Albanian Lek (1946–1965) + * * `DZD` - Algerian Dinar + * * `ADP` - Andorran Peseta + * * `AOA` - Angolan Kwanza + * * `AOK` - Angolan Kwanza (1977–1991) + * * `AON` - Angolan New Kwanza (1990–2000) + * * `AOR` - Angolan Readjusted Kwanza (1995–1999) + * * `ARA` - Argentine Austral + * * `ARS` - Argentine Peso + * * `ARM` - Argentine Peso (1881–1970) + * * `ARP` - Argentine Peso (1983–1985) + * * `ARL` - Argentine Peso Ley (1970–1983) + * * `AMD` - Armenian Dram + * * `AWG` - Aruban Florin + * * `AUD` - Australian Dollar + * * `ATS` - Austrian Schilling + * * `AZN` - Azerbaijani Manat + * * `AZM` - Azerbaijani Manat (1993–2006) + * * `BSD` - Bahamian Dollar + * * `BHD` - Bahraini Dinar + * * `BDT` - Bangladeshi Taka + * * `BBD` - Barbadian Dollar + * * `BYN` - Belarusian Ruble + * * `BYB` - Belarusian Ruble (1994–1999) + * * `BYR` - Belarusian Ruble (2000–2016) + * * `BEF` - Belgian Franc + * * `BEC` - Belgian Franc (convertible) + * * `BEL` - Belgian Franc (financial) + * * `BZD` - Belize Dollar + * * `BMD` - Bermudan Dollar + * * `BTN` - Bhutanese Ngultrum + * * `BOB` - Bolivian Boliviano + * * `BOL` - Bolivian Boliviano (1863–1963) + * * `BOV` - Bolivian Mvdol + * * `BOP` - Bolivian Peso + * * `BAM` - Bosnia-Herzegovina Convertible Mark + * * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) + * * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) + * * `BWP` - Botswanan Pula + * * `BRC` - Brazilian Cruzado (1986–1989) + * * `BRZ` - Brazilian Cruzeiro (1942–1967) + * * `BRE` - Brazilian Cruzeiro (1990–1993) + * * `BRR` - Brazilian Cruzeiro (1993–1994) + * * `BRN` - Brazilian New Cruzado (1989–1990) + * * `BRB` - Brazilian New Cruzeiro (1967–1986) + * * `BRL` - Brazilian Real + * * `GBP` - British Pound + * * `BND` - Brunei Dollar + * * `BGL` - Bulgarian Hard Lev + * * `BGN` - Bulgarian Lev + * * `BGO` - Bulgarian Lev (1879–1952) + * * `BGM` - Bulgarian Socialist Lev + * * `BUK` - Burmese Kyat + * * `BIF` - Burundian Franc + * * `XPF` - CFP Franc + * * `KHR` - Cambodian Riel + * * `CAD` - Canadian Dollar + * * `CVE` - Cape Verdean Escudo + * * `KYD` - Cayman Islands Dollar + * * `XAF` - Central African CFA Franc + * * `CLE` - Chilean Escudo + * * `CLP` - Chilean Peso + * * `CLF` - Chilean Unit of Account (UF) + * * `CNX` - Chinese People’s Bank Dollar + * * `CNY` - Chinese Yuan + * * `CNH` - Chinese Yuan (offshore) + * * `COP` - Colombian Peso + * * `COU` - Colombian Real Value Unit + * * `KMF` - Comorian Franc + * * `CDF` - Congolese Franc + * * `CRC` - Costa Rican Colón + * * `HRD` - Croatian Dinar + * * `HRK` - Croatian Kuna + * * `CUC` - Cuban Convertible Peso + * * `CUP` - Cuban Peso + * * `CYP` - Cypriot Pound + * * `CZK` - Czech Koruna + * * `CSK` - Czechoslovak Hard Koruna + * * `DKK` - Danish Krone + * * `DJF` - Djiboutian Franc + * * `DOP` - Dominican Peso + * * `NLG` - Dutch Guilder + * * `XCD` - East Caribbean Dollar + * * `DDM` - East German Mark + * * `ECS` - Ecuadorian Sucre + * * `ECV` - Ecuadorian Unit of Constant Value + * * `EGP` - Egyptian Pound + * * `GQE` - Equatorial Guinean Ekwele + * * `ERN` - Eritrean Nakfa + * * `EEK` - Estonian Kroon + * * `ETB` - Ethiopian Birr + * * `EUR` - Euro + * * `XBA` - European Composite Unit + * * `XEU` - European Currency Unit + * * `XBB` - European Monetary Unit + * * `XBC` - European Unit of Account (XBC) + * * `XBD` - European Unit of Account (XBD) + * * `FKP` - Falkland Islands Pound + * * `FJD` - Fijian Dollar + * * `FIM` - Finnish Markka + * * `FRF` - French Franc + * * `XFO` - French Gold Franc + * * `XFU` - French UIC-Franc + * * `GMD` - Gambian Dalasi + * * `GEK` - Georgian Kupon Larit + * * `GEL` - Georgian Lari + * * `DEM` - German Mark + * * `GHS` - Ghanaian Cedi + * * `GHC` - Ghanaian Cedi (1979–2007) + * * `GIP` - Gibraltar Pound + * * `XAU` - Gold + * * `GRD` - Greek Drachma + * * `GTQ` - Guatemalan Quetzal + * * `GWP` - Guinea-Bissau Peso + * * `GNF` - Guinean Franc + * * `GNS` - Guinean Syli + * * `GYD` - Guyanaese Dollar + * * `HTG` - Haitian Gourde + * * `HNL` - Honduran Lempira + * * `HKD` - Hong Kong Dollar + * * `HUF` - Hungarian Forint + * * `IMP` - IMP + * * `ISK` - Icelandic Króna + * * `ISJ` - Icelandic Króna (1918–1981) + * * `INR` - Indian Rupee + * * `IDR` - Indonesian Rupiah + * * `IRR` - Iranian Rial + * * `IQD` - Iraqi Dinar + * * `IEP` - Irish Pound + * * `ILS` - Israeli New Shekel + * * `ILP` - Israeli Pound + * * `ILR` - Israeli Shekel (1980–1985) + * * `ITL` - Italian Lira + * * `JMD` - Jamaican Dollar + * * `JPY` - Japanese Yen + * * `JOD` - Jordanian Dinar + * * `KZT` - Kazakhstani Tenge + * * `KES` - Kenyan Shilling + * * `KWD` - Kuwaiti Dinar + * * `KGS` - Kyrgystani Som + * * `LAK` - Laotian Kip + * * `LVL` - Latvian Lats + * * `LVR` - Latvian Ruble + * * `LBP` - Lebanese Pound + * * `LSL` - Lesotho Loti + * * `LRD` - Liberian Dollar + * * `LYD` - Libyan Dinar + * * `LTL` - Lithuanian Litas + * * `LTT` - Lithuanian Talonas + * * `LUL` - Luxembourg Financial Franc + * * `LUC` - Luxembourgian Convertible Franc + * * `LUF` - Luxembourgian Franc + * * `MOP` - Macanese Pataca + * * `MKD` - Macedonian Denar + * * `MKN` - Macedonian Denar (1992–1993) + * * `MGA` - Malagasy Ariary + * * `MGF` - Malagasy Franc + * * `MWK` - Malawian Kwacha + * * `MYR` - Malaysian Ringgit + * * `MVR` - Maldivian Rufiyaa + * * `MVP` - Maldivian Rupee (1947–1981) + * * `MLF` - Malian Franc + * * `MTL` - Maltese Lira + * * `MTP` - Maltese Pound + * * `MRU` - Mauritanian Ouguiya + * * `MRO` - Mauritanian Ouguiya (1973–2017) + * * `MUR` - Mauritian Rupee + * * `MXV` - Mexican Investment Unit + * * `MXN` - Mexican Peso + * * `MXP` - Mexican Silver Peso (1861–1992) + * * `MDC` - Moldovan Cupon + * * `MDL` - Moldovan Leu + * * `MCF` - Monegasque Franc + * * `MNT` - Mongolian Tugrik + * * `MAD` - Moroccan Dirham + * * `MAF` - Moroccan Franc + * * `MZE` - Mozambican Escudo + * * `MZN` - Mozambican Metical + * * `MZM` - Mozambican Metical (1980–2006) + * * `MMK` - Myanmar Kyat + * * `NAD` - Namibian Dollar + * * `NPR` - Nepalese Rupee + * * `ANG` - Netherlands Antillean Guilder + * * `TWD` - New Taiwan Dollar + * * `NZD` - New Zealand Dollar + * * `NIO` - Nicaraguan Córdoba + * * `NIC` - Nicaraguan Córdoba (1988–1991) + * * `NGN` - Nigerian Naira + * * `KPW` - North Korean Won + * * `NOK` - Norwegian Krone + * * `OMR` - Omani Rial + * * `PKR` - Pakistani Rupee + * * `XPD` - Palladium + * * `PAB` - Panamanian Balboa + * * `PGK` - Papua New Guinean Kina + * * `PYG` - Paraguayan Guarani + * * `PEI` - Peruvian Inti + * * `PEN` - Peruvian Sol + * * `PES` - Peruvian Sol (1863–1965) + * * `PHP` - Philippine Peso + * * `XPT` - Platinum + * * `PLN` - Polish Zloty + * * `PLZ` - Polish Zloty (1950–1995) + * * `PTE` - Portuguese Escudo + * * `GWE` - Portuguese Guinea Escudo + * * `QAR` - Qatari Rial + * * `XRE` - RINET Funds + * * `RHD` - Rhodesian Dollar + * * `RON` - Romanian Leu + * * `ROL` - Romanian Leu (1952–2006) + * * `RUB` - Russian Ruble + * * `RUR` - Russian Ruble (1991–1998) + * * `RWF` - Rwandan Franc + * * `SVC` - Salvadoran Colón + * * `WST` - Samoan Tala + * * `SAR` - Saudi Riyal + * * `RSD` - Serbian Dinar + * * `CSD` - Serbian Dinar (2002–2006) + * * `SCR` - Seychellois Rupee + * * `SLL` - Sierra Leonean Leone + * * `XAG` - Silver + * * `SGD` - Singapore Dollar + * * `SKK` - Slovak Koruna + * * `SIT` - Slovenian Tolar + * * `SBD` - Solomon Islands Dollar + * * `SOS` - Somali Shilling + * * `ZAR` - South African Rand + * * `ZAL` - South African Rand (financial) + * * `KRH` - South Korean Hwan (1953–1962) + * * `KRW` - South Korean Won + * * `KRO` - South Korean Won (1945–1953) + * * `SSP` - South Sudanese Pound + * * `SUR` - Soviet Rouble + * * `ESP` - Spanish Peseta + * * `ESA` - Spanish Peseta (A account) + * * `ESB` - Spanish Peseta (convertible account) + * * `XDR` - Special Drawing Rights + * * `LKR` - Sri Lankan Rupee + * * `SHP` - St. Helena Pound + * * `XSU` - Sucre + * * `SDD` - Sudanese Dinar (1992–2007) + * * `SDG` - Sudanese Pound + * * `SDP` - Sudanese Pound (1957–1998) + * * `SRD` - Surinamese Dollar + * * `SRG` - Surinamese Guilder + * * `SZL` - Swazi Lilangeni + * * `SEK` - Swedish Krona + * * `CHF` - Swiss Franc + * * `SYP` - Syrian Pound + * * `STN` - São Tomé & Príncipe Dobra + * * `STD` - São Tomé & Príncipe Dobra (1977–2017) + * * `TVD` - TVD + * * `TJR` - Tajikistani Ruble + * * `TJS` - Tajikistani Somoni + * * `TZS` - Tanzanian Shilling + * * `XTS` - Testing Currency Code + * * `THB` - Thai Baht + * * `XXX` - The codes assigned for transactions where no currency is involved + * * `TPE` - Timorese Escudo + * * `TOP` - Tongan Paʻanga + * * `TTD` - Trinidad & Tobago Dollar + * * `TND` - Tunisian Dinar + * * `TRY` - Turkish Lira + * * `TRL` - Turkish Lira (1922–2005) + * * `TMT` - Turkmenistani Manat + * * `TMM` - Turkmenistani Manat (1993–2009) + * * `USD` - US Dollar + * * `USN` - US Dollar (Next day) + * * `USS` - US Dollar (Same day) + * * `UGX` - Ugandan Shilling + * * `UGS` - Ugandan Shilling (1966–1987) + * * `UAH` - Ukrainian Hryvnia + * * `UAK` - Ukrainian Karbovanets + * * `AED` - United Arab Emirates Dirham + * * `UYW` - Uruguayan Nominal Wage Index Unit + * * `UYU` - Uruguayan Peso + * * `UYP` - Uruguayan Peso (1975–1993) + * * `UYI` - Uruguayan Peso (Indexed Units) + * * `UZS` - Uzbekistani Som + * * `VUV` - Vanuatu Vatu + * * `VES` - Venezuelan Bolívar + * * `VEB` - Venezuelan Bolívar (1871–2008) + * * `VEF` - Venezuelan Bolívar (2008–2018) + * * `VND` - Vietnamese Dong + * * `VNN` - Vietnamese Dong (1978–1985) + * * `CHE` - WIR Euro + * * `CHW` - WIR Franc + * * `XOF` - West African CFA Franc + * * `YDD` - Yemeni Dinar + * * `YER` - Yemeni Rial + * * `YUN` - Yugoslavian Convertible Dinar (1990–1992) + * * `YUD` - Yugoslavian Hard Dinar (1966–1990) + * * `YUM` - Yugoslavian New Dinar (1994–2002) + * * `YUR` - Yugoslavian Reformed Dinar (1992–1993) + * * `ZWN` - ZWN + * * `ZRN` - Zairean New Zaire (1993–1998) + * * `ZRZ` - Zairean Zaire (1971–1993) + * * `ZMW` - Zambian Kwacha + * * `ZMK` - Zambian Kwacha (1968–2012) + * * `ZWD` - Zimbabwean Dollar (1980–2008) + * * `ZWR` - Zimbabwean Dollar (2008) + * * `ZWL` - Zimbabwean Dollar (2009) + */ +export type PatchedVendorCreditRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/PaymentBatchItemRequest.ts b/src/api/resources/accounting/types/PaymentBatchItemRequest.ts new file mode 100644 index 000000000..86962200d --- /dev/null +++ b/src/api/resources/accounting/types/PaymentBatchItemRequest.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface PaymentBatchItemRequest { + /** The third-party item ID for this model in the bulk create request */ + itemId: string; + payload: Merge.accounting.PaymentEndpointRequest; +} diff --git a/src/api/resources/accounting/types/PaymentEndpointRequest.ts b/src/api/resources/accounting/types/PaymentEndpointRequest.ts new file mode 100644 index 000000000..1cf928b8b --- /dev/null +++ b/src/api/resources/accounting/types/PaymentEndpointRequest.ts @@ -0,0 +1,7 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface PaymentEndpointRequest { + model: Merge.accounting.PaymentRequest; +} diff --git a/src/api/resources/accounting/types/PaymentMethod.ts b/src/api/resources/accounting/types/PaymentMethod.ts index 5472249e9..9bb96843e 100644 --- a/src/api/resources/accounting/types/PaymentMethod.ts +++ b/src/api/resources/accounting/types/PaymentMethod.ts @@ -27,7 +27,7 @@ export interface PaymentMethod { * * `CASH` - CASH * * `CHECK` - CHECK */ - methodType: Merge.accounting.PaymentMethodMethodType; + methodType?: Merge.accounting.PaymentMethodMethodType; /** The payment method’s name */ name: string; /** `True` if the payment method is active, `False` if not. */ diff --git a/src/api/resources/accounting/types/PurchaseOrderBatchItemRequest.ts b/src/api/resources/accounting/types/PurchaseOrderBatchItemRequest.ts new file mode 100644 index 000000000..9d90046a8 --- /dev/null +++ b/src/api/resources/accounting/types/PurchaseOrderBatchItemRequest.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface PurchaseOrderBatchItemRequest { + /** The third-party item ID for this model in the bulk create request */ + itemId: string; + payload: Merge.accounting.PurchaseOrderEndpointRequest; +} diff --git a/src/api/resources/accounting/types/PurchaseOrderEndpointRequest.ts b/src/api/resources/accounting/types/PurchaseOrderEndpointRequest.ts new file mode 100644 index 000000000..2f1be2ae7 --- /dev/null +++ b/src/api/resources/accounting/types/PurchaseOrderEndpointRequest.ts @@ -0,0 +1,7 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface PurchaseOrderEndpointRequest { + model: Merge.accounting.PurchaseOrderRequest; +} diff --git a/src/api/resources/accounting/types/RegenerateAccountToken.ts b/src/api/resources/accounting/types/RegenerateAccountToken.ts new file mode 100644 index 000000000..2cd31ce05 --- /dev/null +++ b/src/api/resources/accounting/types/RegenerateAccountToken.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * # The RegenerateAccountToken Object + * ### Description + * The `RegenerateAccountToken` object is used to exchange an old account token for a new one. + * + * ### Usage Example + * Post to receive a new `RegenerateAccountToken`. + */ +export interface RegenerateAccountToken { + linkedAccountId: string; + accountToken: string; +} diff --git a/src/api/resources/accounting/types/RemoteFieldApiResponse.ts b/src/api/resources/accounting/types/RemoteFieldApiResponse.ts index 3403713a8..4ae8cf512 100644 --- a/src/api/resources/accounting/types/RemoteFieldApiResponse.ts +++ b/src/api/resources/accounting/types/RemoteFieldApiResponse.ts @@ -13,6 +13,9 @@ export interface RemoteFieldApiResponse { creditNote?: Merge.accounting.RemoteFieldApi[]; item?: Merge.accounting.RemoteFieldApi[]; purchaseOrder?: Merge.accounting.RemoteFieldApi[]; + salesOrder?: Merge.accounting.RemoteFieldApi[]; + itemFulfillment?: Merge.accounting.RemoteFieldApi[]; + expenseReport?: Merge.accounting.RemoteFieldApi[]; trackingCategory?: Merge.accounting.RemoteFieldApi[]; journalEntry?: Merge.accounting.RemoteFieldApi[]; taxRate?: Merge.accounting.RemoteFieldApi[]; diff --git a/src/api/resources/accounting/types/RoleEnum.ts b/src/api/resources/accounting/types/RoleEnum.ts index 524088eb7..584dbc84e 100644 --- a/src/api/resources/accounting/types/RoleEnum.ts +++ b/src/api/resources/accounting/types/RoleEnum.ts @@ -7,6 +7,7 @@ * * `API` - API * * `SYSTEM` - SYSTEM * * `MERGE_TEAM` - MERGE_TEAM + * * `SUPPORT` - SUPPORT */ export const RoleEnum = { Admin: "ADMIN", @@ -15,5 +16,6 @@ export const RoleEnum = { Api: "API", System: "SYSTEM", MergeTeam: "MERGE_TEAM", + Support: "SUPPORT", } as const; export type RoleEnum = (typeof RoleEnum)[keyof typeof RoleEnum]; diff --git a/src/api/resources/accounting/types/SalesOrder.ts b/src/api/resources/accounting/types/SalesOrder.ts new file mode 100644 index 000000000..10e1ed655 --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrder.ts @@ -0,0 +1,372 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * # The SalesOrder Object + * ### Description + * The `SalesOrder` object represents a seller's formal record and confirmation of a customer's purchase request. + * + * ### Usage Example + * Fetch from the `LIST SalesOrders` endpoint and view a company's sales orders. + */ +export interface SalesOrder { + id?: string; + /** The third-party API ID of the matching object. */ + remoteId?: string; + /** The datetime that this object was created by Merge. */ + createdAt?: Date; + /** The datetime that this object was modified by Merge. */ + modifiedAt?: Date; + /** The customer associated with the sales order. */ + customer?: Merge.accounting.SalesOrderCustomer; + /** + * The currency code for the order. + * + * * `XUA` - ADB Unit of Account + * * `AFN` - Afghan Afghani + * * `AFA` - Afghan Afghani (1927–2002) + * * `ALL` - Albanian Lek + * * `ALK` - Albanian Lek (1946–1965) + * * `DZD` - Algerian Dinar + * * `ADP` - Andorran Peseta + * * `AOA` - Angolan Kwanza + * * `AOK` - Angolan Kwanza (1977–1991) + * * `AON` - Angolan New Kwanza (1990–2000) + * * `AOR` - Angolan Readjusted Kwanza (1995–1999) + * * `ARA` - Argentine Austral + * * `ARS` - Argentine Peso + * * `ARM` - Argentine Peso (1881–1970) + * * `ARP` - Argentine Peso (1983–1985) + * * `ARL` - Argentine Peso Ley (1970–1983) + * * `AMD` - Armenian Dram + * * `AWG` - Aruban Florin + * * `AUD` - Australian Dollar + * * `ATS` - Austrian Schilling + * * `AZN` - Azerbaijani Manat + * * `AZM` - Azerbaijani Manat (1993–2006) + * * `BSD` - Bahamian Dollar + * * `BHD` - Bahraini Dinar + * * `BDT` - Bangladeshi Taka + * * `BBD` - Barbadian Dollar + * * `BYN` - Belarusian Ruble + * * `BYB` - Belarusian Ruble (1994–1999) + * * `BYR` - Belarusian Ruble (2000–2016) + * * `BEF` - Belgian Franc + * * `BEC` - Belgian Franc (convertible) + * * `BEL` - Belgian Franc (financial) + * * `BZD` - Belize Dollar + * * `BMD` - Bermudan Dollar + * * `BTN` - Bhutanese Ngultrum + * * `BOB` - Bolivian Boliviano + * * `BOL` - Bolivian Boliviano (1863–1963) + * * `BOV` - Bolivian Mvdol + * * `BOP` - Bolivian Peso + * * `BAM` - Bosnia-Herzegovina Convertible Mark + * * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) + * * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) + * * `BWP` - Botswanan Pula + * * `BRC` - Brazilian Cruzado (1986–1989) + * * `BRZ` - Brazilian Cruzeiro (1942–1967) + * * `BRE` - Brazilian Cruzeiro (1990–1993) + * * `BRR` - Brazilian Cruzeiro (1993–1994) + * * `BRN` - Brazilian New Cruzado (1989–1990) + * * `BRB` - Brazilian New Cruzeiro (1967–1986) + * * `BRL` - Brazilian Real + * * `GBP` - British Pound + * * `BND` - Brunei Dollar + * * `BGL` - Bulgarian Hard Lev + * * `BGN` - Bulgarian Lev + * * `BGO` - Bulgarian Lev (1879–1952) + * * `BGM` - Bulgarian Socialist Lev + * * `BUK` - Burmese Kyat + * * `BIF` - Burundian Franc + * * `XPF` - CFP Franc + * * `KHR` - Cambodian Riel + * * `CAD` - Canadian Dollar + * * `CVE` - Cape Verdean Escudo + * * `KYD` - Cayman Islands Dollar + * * `XAF` - Central African CFA Franc + * * `CLE` - Chilean Escudo + * * `CLP` - Chilean Peso + * * `CLF` - Chilean Unit of Account (UF) + * * `CNX` - Chinese People’s Bank Dollar + * * `CNY` - Chinese Yuan + * * `CNH` - Chinese Yuan (offshore) + * * `COP` - Colombian Peso + * * `COU` - Colombian Real Value Unit + * * `KMF` - Comorian Franc + * * `CDF` - Congolese Franc + * * `CRC` - Costa Rican Colón + * * `HRD` - Croatian Dinar + * * `HRK` - Croatian Kuna + * * `CUC` - Cuban Convertible Peso + * * `CUP` - Cuban Peso + * * `CYP` - Cypriot Pound + * * `CZK` - Czech Koruna + * * `CSK` - Czechoslovak Hard Koruna + * * `DKK` - Danish Krone + * * `DJF` - Djiboutian Franc + * * `DOP` - Dominican Peso + * * `NLG` - Dutch Guilder + * * `XCD` - East Caribbean Dollar + * * `DDM` - East German Mark + * * `ECS` - Ecuadorian Sucre + * * `ECV` - Ecuadorian Unit of Constant Value + * * `EGP` - Egyptian Pound + * * `GQE` - Equatorial Guinean Ekwele + * * `ERN` - Eritrean Nakfa + * * `EEK` - Estonian Kroon + * * `ETB` - Ethiopian Birr + * * `EUR` - Euro + * * `XBA` - European Composite Unit + * * `XEU` - European Currency Unit + * * `XBB` - European Monetary Unit + * * `XBC` - European Unit of Account (XBC) + * * `XBD` - European Unit of Account (XBD) + * * `FKP` - Falkland Islands Pound + * * `FJD` - Fijian Dollar + * * `FIM` - Finnish Markka + * * `FRF` - French Franc + * * `XFO` - French Gold Franc + * * `XFU` - French UIC-Franc + * * `GMD` - Gambian Dalasi + * * `GEK` - Georgian Kupon Larit + * * `GEL` - Georgian Lari + * * `DEM` - German Mark + * * `GHS` - Ghanaian Cedi + * * `GHC` - Ghanaian Cedi (1979–2007) + * * `GIP` - Gibraltar Pound + * * `XAU` - Gold + * * `GRD` - Greek Drachma + * * `GTQ` - Guatemalan Quetzal + * * `GWP` - Guinea-Bissau Peso + * * `GNF` - Guinean Franc + * * `GNS` - Guinean Syli + * * `GYD` - Guyanaese Dollar + * * `HTG` - Haitian Gourde + * * `HNL` - Honduran Lempira + * * `HKD` - Hong Kong Dollar + * * `HUF` - Hungarian Forint + * * `IMP` - IMP + * * `ISK` - Icelandic Króna + * * `ISJ` - Icelandic Króna (1918–1981) + * * `INR` - Indian Rupee + * * `IDR` - Indonesian Rupiah + * * `IRR` - Iranian Rial + * * `IQD` - Iraqi Dinar + * * `IEP` - Irish Pound + * * `ILS` - Israeli New Shekel + * * `ILP` - Israeli Pound + * * `ILR` - Israeli Shekel (1980–1985) + * * `ITL` - Italian Lira + * * `JMD` - Jamaican Dollar + * * `JPY` - Japanese Yen + * * `JOD` - Jordanian Dinar + * * `KZT` - Kazakhstani Tenge + * * `KES` - Kenyan Shilling + * * `KWD` - Kuwaiti Dinar + * * `KGS` - Kyrgystani Som + * * `LAK` - Laotian Kip + * * `LVL` - Latvian Lats + * * `LVR` - Latvian Ruble + * * `LBP` - Lebanese Pound + * * `LSL` - Lesotho Loti + * * `LRD` - Liberian Dollar + * * `LYD` - Libyan Dinar + * * `LTL` - Lithuanian Litas + * * `LTT` - Lithuanian Talonas + * * `LUL` - Luxembourg Financial Franc + * * `LUC` - Luxembourgian Convertible Franc + * * `LUF` - Luxembourgian Franc + * * `MOP` - Macanese Pataca + * * `MKD` - Macedonian Denar + * * `MKN` - Macedonian Denar (1992–1993) + * * `MGA` - Malagasy Ariary + * * `MGF` - Malagasy Franc + * * `MWK` - Malawian Kwacha + * * `MYR` - Malaysian Ringgit + * * `MVR` - Maldivian Rufiyaa + * * `MVP` - Maldivian Rupee (1947–1981) + * * `MLF` - Malian Franc + * * `MTL` - Maltese Lira + * * `MTP` - Maltese Pound + * * `MRU` - Mauritanian Ouguiya + * * `MRO` - Mauritanian Ouguiya (1973–2017) + * * `MUR` - Mauritian Rupee + * * `MXV` - Mexican Investment Unit + * * `MXN` - Mexican Peso + * * `MXP` - Mexican Silver Peso (1861–1992) + * * `MDC` - Moldovan Cupon + * * `MDL` - Moldovan Leu + * * `MCF` - Monegasque Franc + * * `MNT` - Mongolian Tugrik + * * `MAD` - Moroccan Dirham + * * `MAF` - Moroccan Franc + * * `MZE` - Mozambican Escudo + * * `MZN` - Mozambican Metical + * * `MZM` - Mozambican Metical (1980–2006) + * * `MMK` - Myanmar Kyat + * * `NAD` - Namibian Dollar + * * `NPR` - Nepalese Rupee + * * `ANG` - Netherlands Antillean Guilder + * * `TWD` - New Taiwan Dollar + * * `NZD` - New Zealand Dollar + * * `NIO` - Nicaraguan Córdoba + * * `NIC` - Nicaraguan Córdoba (1988–1991) + * * `NGN` - Nigerian Naira + * * `KPW` - North Korean Won + * * `NOK` - Norwegian Krone + * * `OMR` - Omani Rial + * * `PKR` - Pakistani Rupee + * * `XPD` - Palladium + * * `PAB` - Panamanian Balboa + * * `PGK` - Papua New Guinean Kina + * * `PYG` - Paraguayan Guarani + * * `PEI` - Peruvian Inti + * * `PEN` - Peruvian Sol + * * `PES` - Peruvian Sol (1863–1965) + * * `PHP` - Philippine Peso + * * `XPT` - Platinum + * * `PLN` - Polish Zloty + * * `PLZ` - Polish Zloty (1950–1995) + * * `PTE` - Portuguese Escudo + * * `GWE` - Portuguese Guinea Escudo + * * `QAR` - Qatari Rial + * * `XRE` - RINET Funds + * * `RHD` - Rhodesian Dollar + * * `RON` - Romanian Leu + * * `ROL` - Romanian Leu (1952–2006) + * * `RUB` - Russian Ruble + * * `RUR` - Russian Ruble (1991–1998) + * * `RWF` - Rwandan Franc + * * `SVC` - Salvadoran Colón + * * `WST` - Samoan Tala + * * `SAR` - Saudi Riyal + * * `RSD` - Serbian Dinar + * * `CSD` - Serbian Dinar (2002–2006) + * * `SCR` - Seychellois Rupee + * * `SLL` - Sierra Leonean Leone + * * `XAG` - Silver + * * `SGD` - Singapore Dollar + * * `SKK` - Slovak Koruna + * * `SIT` - Slovenian Tolar + * * `SBD` - Solomon Islands Dollar + * * `SOS` - Somali Shilling + * * `ZAR` - South African Rand + * * `ZAL` - South African Rand (financial) + * * `KRH` - South Korean Hwan (1953–1962) + * * `KRW` - South Korean Won + * * `KRO` - South Korean Won (1945–1953) + * * `SSP` - South Sudanese Pound + * * `SUR` - Soviet Rouble + * * `ESP` - Spanish Peseta + * * `ESA` - Spanish Peseta (A account) + * * `ESB` - Spanish Peseta (convertible account) + * * `XDR` - Special Drawing Rights + * * `LKR` - Sri Lankan Rupee + * * `SHP` - St. Helena Pound + * * `XSU` - Sucre + * * `SDD` - Sudanese Dinar (1992–2007) + * * `SDG` - Sudanese Pound + * * `SDP` - Sudanese Pound (1957–1998) + * * `SRD` - Surinamese Dollar + * * `SRG` - Surinamese Guilder + * * `SZL` - Swazi Lilangeni + * * `SEK` - Swedish Krona + * * `CHF` - Swiss Franc + * * `SYP` - Syrian Pound + * * `STN` - São Tomé & Príncipe Dobra + * * `STD` - São Tomé & Príncipe Dobra (1977–2017) + * * `TVD` - TVD + * * `TJR` - Tajikistani Ruble + * * `TJS` - Tajikistani Somoni + * * `TZS` - Tanzanian Shilling + * * `XTS` - Testing Currency Code + * * `THB` - Thai Baht + * * `XXX` - The codes assigned for transactions where no currency is involved + * * `TPE` - Timorese Escudo + * * `TOP` - Tongan Paʻanga + * * `TTD` - Trinidad & Tobago Dollar + * * `TND` - Tunisian Dinar + * * `TRY` - Turkish Lira + * * `TRL` - Turkish Lira (1922–2005) + * * `TMT` - Turkmenistani Manat + * * `TMM` - Turkmenistani Manat (1993–2009) + * * `USD` - US Dollar + * * `USN` - US Dollar (Next day) + * * `USS` - US Dollar (Same day) + * * `UGX` - Ugandan Shilling + * * `UGS` - Ugandan Shilling (1966–1987) + * * `UAH` - Ukrainian Hryvnia + * * `UAK` - Ukrainian Karbovanets + * * `AED` - United Arab Emirates Dirham + * * `UYW` - Uruguayan Nominal Wage Index Unit + * * `UYU` - Uruguayan Peso + * * `UYP` - Uruguayan Peso (1975–1993) + * * `UYI` - Uruguayan Peso (Indexed Units) + * * `UZS` - Uzbekistani Som + * * `VUV` - Vanuatu Vatu + * * `VES` - Venezuelan Bolívar + * * `VEB` - Venezuelan Bolívar (1871–2008) + * * `VEF` - Venezuelan Bolívar (2008–2018) + * * `VND` - Vietnamese Dong + * * `VNN` - Vietnamese Dong (1978–1985) + * * `CHE` - WIR Euro + * * `CHW` - WIR Franc + * * `XOF` - West African CFA Franc + * * `YDD` - Yemeni Dinar + * * `YER` - Yemeni Rial + * * `YUN` - Yugoslavian Convertible Dinar (1990–1992) + * * `YUD` - Yugoslavian Hard Dinar (1966–1990) + * * `YUM` - Yugoslavian New Dinar (1994–2002) + * * `YUR` - Yugoslavian Reformed Dinar (1992–1993) + * * `ZWN` - ZWN + * * `ZRN` - Zairean New Zaire (1993–1998) + * * `ZRZ` - Zairean Zaire (1971–1993) + * * `ZMW` - Zambian Kwacha + * * `ZMK` - Zambian Kwacha (1968–2012) + * * `ZWD` - Zimbabwean Dollar (1980–2008) + * * `ZWR` - Zimbabwean Dollar (2008) + * * `ZWL` - Zimbabwean Dollar (2009) + */ + currency?: Merge.accounting.SalesOrderCurrency; + /** The exchange rate applied if the order currency differs from the base currency. */ + exchangeRate?: string; + /** The subsidiary associated with the order. */ + company?: Merge.accounting.SalesOrderCompany; + /** + * The status of the sales order. + * + * * `DRAFT` - DRAFT + * * `PENDING_APPROVAL` - PENDING_APPROVAL + * * `OPEN` - OPEN + * * `PARTIALLY_COMPLETED` - PARTIALLY_COMPLETED + * * `COMPLETED` - COMPLETED + * * `CLOSED` - CLOSED + */ + status?: Merge.accounting.SalesOrderStatus; + /** The payment terms applied to this order. */ + paymentTerm?: Merge.accounting.SalesOrderPaymentTerm; + /** Notes or comments attached to the order. */ + memo?: string; + /** The shipping address for the order. */ + shippingAddress?: Merge.accounting.SalesOrderShippingAddress; + trackingCategories?: (Merge.accounting.SalesOrderTrackingCategoriesItem | undefined)[]; + /** The date the sales order was issued. */ + issueDate?: Date; + /** The human-readable sales order number or transaction reference. */ + transactionNumber?: string; + /** Total amount of order. */ + total?: number; + lines?: Merge.accounting.SalesOrderLinesItem[]; + /** When the third party's sales order was created. */ + remoteCreatedAt?: Date; + /** When the third party's sales order was updated. */ + remoteUpdatedAt?: Date; + /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ + remoteWasDeleted?: boolean; + fieldMappings?: Record; + remoteData?: Merge.accounting.RemoteData[]; + remoteFields?: Merge.accounting.RemoteField[]; +} diff --git a/src/api/resources/accounting/types/SalesOrderBatchItemRequest.ts b/src/api/resources/accounting/types/SalesOrderBatchItemRequest.ts new file mode 100644 index 000000000..cff7b88e0 --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderBatchItemRequest.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface SalesOrderBatchItemRequest { + /** The third-party item ID for this model in the bulk create request */ + itemId: string; + payload: Merge.accounting.SalesOrderEndpointRequest; +} diff --git a/src/api/resources/accounting/types/SalesOrderCompany.ts b/src/api/resources/accounting/types/SalesOrderCompany.ts new file mode 100644 index 000000000..778d33dd3 --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderCompany.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The subsidiary associated with the order. + */ +export type SalesOrderCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/SalesOrderCurrency.ts b/src/api/resources/accounting/types/SalesOrderCurrency.ts new file mode 100644 index 000000000..4cada7e58 --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderCurrency.ts @@ -0,0 +1,315 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The currency code for the order. + * + * * `XUA` - ADB Unit of Account + * * `AFN` - Afghan Afghani + * * `AFA` - Afghan Afghani (1927–2002) + * * `ALL` - Albanian Lek + * * `ALK` - Albanian Lek (1946–1965) + * * `DZD` - Algerian Dinar + * * `ADP` - Andorran Peseta + * * `AOA` - Angolan Kwanza + * * `AOK` - Angolan Kwanza (1977–1991) + * * `AON` - Angolan New Kwanza (1990–2000) + * * `AOR` - Angolan Readjusted Kwanza (1995–1999) + * * `ARA` - Argentine Austral + * * `ARS` - Argentine Peso + * * `ARM` - Argentine Peso (1881–1970) + * * `ARP` - Argentine Peso (1983–1985) + * * `ARL` - Argentine Peso Ley (1970–1983) + * * `AMD` - Armenian Dram + * * `AWG` - Aruban Florin + * * `AUD` - Australian Dollar + * * `ATS` - Austrian Schilling + * * `AZN` - Azerbaijani Manat + * * `AZM` - Azerbaijani Manat (1993–2006) + * * `BSD` - Bahamian Dollar + * * `BHD` - Bahraini Dinar + * * `BDT` - Bangladeshi Taka + * * `BBD` - Barbadian Dollar + * * `BYN` - Belarusian Ruble + * * `BYB` - Belarusian Ruble (1994–1999) + * * `BYR` - Belarusian Ruble (2000–2016) + * * `BEF` - Belgian Franc + * * `BEC` - Belgian Franc (convertible) + * * `BEL` - Belgian Franc (financial) + * * `BZD` - Belize Dollar + * * `BMD` - Bermudan Dollar + * * `BTN` - Bhutanese Ngultrum + * * `BOB` - Bolivian Boliviano + * * `BOL` - Bolivian Boliviano (1863–1963) + * * `BOV` - Bolivian Mvdol + * * `BOP` - Bolivian Peso + * * `BAM` - Bosnia-Herzegovina Convertible Mark + * * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) + * * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) + * * `BWP` - Botswanan Pula + * * `BRC` - Brazilian Cruzado (1986–1989) + * * `BRZ` - Brazilian Cruzeiro (1942–1967) + * * `BRE` - Brazilian Cruzeiro (1990–1993) + * * `BRR` - Brazilian Cruzeiro (1993–1994) + * * `BRN` - Brazilian New Cruzado (1989–1990) + * * `BRB` - Brazilian New Cruzeiro (1967–1986) + * * `BRL` - Brazilian Real + * * `GBP` - British Pound + * * `BND` - Brunei Dollar + * * `BGL` - Bulgarian Hard Lev + * * `BGN` - Bulgarian Lev + * * `BGO` - Bulgarian Lev (1879–1952) + * * `BGM` - Bulgarian Socialist Lev + * * `BUK` - Burmese Kyat + * * `BIF` - Burundian Franc + * * `XPF` - CFP Franc + * * `KHR` - Cambodian Riel + * * `CAD` - Canadian Dollar + * * `CVE` - Cape Verdean Escudo + * * `KYD` - Cayman Islands Dollar + * * `XAF` - Central African CFA Franc + * * `CLE` - Chilean Escudo + * * `CLP` - Chilean Peso + * * `CLF` - Chilean Unit of Account (UF) + * * `CNX` - Chinese People’s Bank Dollar + * * `CNY` - Chinese Yuan + * * `CNH` - Chinese Yuan (offshore) + * * `COP` - Colombian Peso + * * `COU` - Colombian Real Value Unit + * * `KMF` - Comorian Franc + * * `CDF` - Congolese Franc + * * `CRC` - Costa Rican Colón + * * `HRD` - Croatian Dinar + * * `HRK` - Croatian Kuna + * * `CUC` - Cuban Convertible Peso + * * `CUP` - Cuban Peso + * * `CYP` - Cypriot Pound + * * `CZK` - Czech Koruna + * * `CSK` - Czechoslovak Hard Koruna + * * `DKK` - Danish Krone + * * `DJF` - Djiboutian Franc + * * `DOP` - Dominican Peso + * * `NLG` - Dutch Guilder + * * `XCD` - East Caribbean Dollar + * * `DDM` - East German Mark + * * `ECS` - Ecuadorian Sucre + * * `ECV` - Ecuadorian Unit of Constant Value + * * `EGP` - Egyptian Pound + * * `GQE` - Equatorial Guinean Ekwele + * * `ERN` - Eritrean Nakfa + * * `EEK` - Estonian Kroon + * * `ETB` - Ethiopian Birr + * * `EUR` - Euro + * * `XBA` - European Composite Unit + * * `XEU` - European Currency Unit + * * `XBB` - European Monetary Unit + * * `XBC` - European Unit of Account (XBC) + * * `XBD` - European Unit of Account (XBD) + * * `FKP` - Falkland Islands Pound + * * `FJD` - Fijian Dollar + * * `FIM` - Finnish Markka + * * `FRF` - French Franc + * * `XFO` - French Gold Franc + * * `XFU` - French UIC-Franc + * * `GMD` - Gambian Dalasi + * * `GEK` - Georgian Kupon Larit + * * `GEL` - Georgian Lari + * * `DEM` - German Mark + * * `GHS` - Ghanaian Cedi + * * `GHC` - Ghanaian Cedi (1979–2007) + * * `GIP` - Gibraltar Pound + * * `XAU` - Gold + * * `GRD` - Greek Drachma + * * `GTQ` - Guatemalan Quetzal + * * `GWP` - Guinea-Bissau Peso + * * `GNF` - Guinean Franc + * * `GNS` - Guinean Syli + * * `GYD` - Guyanaese Dollar + * * `HTG` - Haitian Gourde + * * `HNL` - Honduran Lempira + * * `HKD` - Hong Kong Dollar + * * `HUF` - Hungarian Forint + * * `IMP` - IMP + * * `ISK` - Icelandic Króna + * * `ISJ` - Icelandic Króna (1918–1981) + * * `INR` - Indian Rupee + * * `IDR` - Indonesian Rupiah + * * `IRR` - Iranian Rial + * * `IQD` - Iraqi Dinar + * * `IEP` - Irish Pound + * * `ILS` - Israeli New Shekel + * * `ILP` - Israeli Pound + * * `ILR` - Israeli Shekel (1980–1985) + * * `ITL` - Italian Lira + * * `JMD` - Jamaican Dollar + * * `JPY` - Japanese Yen + * * `JOD` - Jordanian Dinar + * * `KZT` - Kazakhstani Tenge + * * `KES` - Kenyan Shilling + * * `KWD` - Kuwaiti Dinar + * * `KGS` - Kyrgystani Som + * * `LAK` - Laotian Kip + * * `LVL` - Latvian Lats + * * `LVR` - Latvian Ruble + * * `LBP` - Lebanese Pound + * * `LSL` - Lesotho Loti + * * `LRD` - Liberian Dollar + * * `LYD` - Libyan Dinar + * * `LTL` - Lithuanian Litas + * * `LTT` - Lithuanian Talonas + * * `LUL` - Luxembourg Financial Franc + * * `LUC` - Luxembourgian Convertible Franc + * * `LUF` - Luxembourgian Franc + * * `MOP` - Macanese Pataca + * * `MKD` - Macedonian Denar + * * `MKN` - Macedonian Denar (1992–1993) + * * `MGA` - Malagasy Ariary + * * `MGF` - Malagasy Franc + * * `MWK` - Malawian Kwacha + * * `MYR` - Malaysian Ringgit + * * `MVR` - Maldivian Rufiyaa + * * `MVP` - Maldivian Rupee (1947–1981) + * * `MLF` - Malian Franc + * * `MTL` - Maltese Lira + * * `MTP` - Maltese Pound + * * `MRU` - Mauritanian Ouguiya + * * `MRO` - Mauritanian Ouguiya (1973–2017) + * * `MUR` - Mauritian Rupee + * * `MXV` - Mexican Investment Unit + * * `MXN` - Mexican Peso + * * `MXP` - Mexican Silver Peso (1861–1992) + * * `MDC` - Moldovan Cupon + * * `MDL` - Moldovan Leu + * * `MCF` - Monegasque Franc + * * `MNT` - Mongolian Tugrik + * * `MAD` - Moroccan Dirham + * * `MAF` - Moroccan Franc + * * `MZE` - Mozambican Escudo + * * `MZN` - Mozambican Metical + * * `MZM` - Mozambican Metical (1980–2006) + * * `MMK` - Myanmar Kyat + * * `NAD` - Namibian Dollar + * * `NPR` - Nepalese Rupee + * * `ANG` - Netherlands Antillean Guilder + * * `TWD` - New Taiwan Dollar + * * `NZD` - New Zealand Dollar + * * `NIO` - Nicaraguan Córdoba + * * `NIC` - Nicaraguan Córdoba (1988–1991) + * * `NGN` - Nigerian Naira + * * `KPW` - North Korean Won + * * `NOK` - Norwegian Krone + * * `OMR` - Omani Rial + * * `PKR` - Pakistani Rupee + * * `XPD` - Palladium + * * `PAB` - Panamanian Balboa + * * `PGK` - Papua New Guinean Kina + * * `PYG` - Paraguayan Guarani + * * `PEI` - Peruvian Inti + * * `PEN` - Peruvian Sol + * * `PES` - Peruvian Sol (1863–1965) + * * `PHP` - Philippine Peso + * * `XPT` - Platinum + * * `PLN` - Polish Zloty + * * `PLZ` - Polish Zloty (1950–1995) + * * `PTE` - Portuguese Escudo + * * `GWE` - Portuguese Guinea Escudo + * * `QAR` - Qatari Rial + * * `XRE` - RINET Funds + * * `RHD` - Rhodesian Dollar + * * `RON` - Romanian Leu + * * `ROL` - Romanian Leu (1952–2006) + * * `RUB` - Russian Ruble + * * `RUR` - Russian Ruble (1991–1998) + * * `RWF` - Rwandan Franc + * * `SVC` - Salvadoran Colón + * * `WST` - Samoan Tala + * * `SAR` - Saudi Riyal + * * `RSD` - Serbian Dinar + * * `CSD` - Serbian Dinar (2002–2006) + * * `SCR` - Seychellois Rupee + * * `SLL` - Sierra Leonean Leone + * * `XAG` - Silver + * * `SGD` - Singapore Dollar + * * `SKK` - Slovak Koruna + * * `SIT` - Slovenian Tolar + * * `SBD` - Solomon Islands Dollar + * * `SOS` - Somali Shilling + * * `ZAR` - South African Rand + * * `ZAL` - South African Rand (financial) + * * `KRH` - South Korean Hwan (1953–1962) + * * `KRW` - South Korean Won + * * `KRO` - South Korean Won (1945–1953) + * * `SSP` - South Sudanese Pound + * * `SUR` - Soviet Rouble + * * `ESP` - Spanish Peseta + * * `ESA` - Spanish Peseta (A account) + * * `ESB` - Spanish Peseta (convertible account) + * * `XDR` - Special Drawing Rights + * * `LKR` - Sri Lankan Rupee + * * `SHP` - St. Helena Pound + * * `XSU` - Sucre + * * `SDD` - Sudanese Dinar (1992–2007) + * * `SDG` - Sudanese Pound + * * `SDP` - Sudanese Pound (1957–1998) + * * `SRD` - Surinamese Dollar + * * `SRG` - Surinamese Guilder + * * `SZL` - Swazi Lilangeni + * * `SEK` - Swedish Krona + * * `CHF` - Swiss Franc + * * `SYP` - Syrian Pound + * * `STN` - São Tomé & Príncipe Dobra + * * `STD` - São Tomé & Príncipe Dobra (1977–2017) + * * `TVD` - TVD + * * `TJR` - Tajikistani Ruble + * * `TJS` - Tajikistani Somoni + * * `TZS` - Tanzanian Shilling + * * `XTS` - Testing Currency Code + * * `THB` - Thai Baht + * * `XXX` - The codes assigned for transactions where no currency is involved + * * `TPE` - Timorese Escudo + * * `TOP` - Tongan Paʻanga + * * `TTD` - Trinidad & Tobago Dollar + * * `TND` - Tunisian Dinar + * * `TRY` - Turkish Lira + * * `TRL` - Turkish Lira (1922–2005) + * * `TMT` - Turkmenistani Manat + * * `TMM` - Turkmenistani Manat (1993–2009) + * * `USD` - US Dollar + * * `USN` - US Dollar (Next day) + * * `USS` - US Dollar (Same day) + * * `UGX` - Ugandan Shilling + * * `UGS` - Ugandan Shilling (1966–1987) + * * `UAH` - Ukrainian Hryvnia + * * `UAK` - Ukrainian Karbovanets + * * `AED` - United Arab Emirates Dirham + * * `UYW` - Uruguayan Nominal Wage Index Unit + * * `UYU` - Uruguayan Peso + * * `UYP` - Uruguayan Peso (1975–1993) + * * `UYI` - Uruguayan Peso (Indexed Units) + * * `UZS` - Uzbekistani Som + * * `VUV` - Vanuatu Vatu + * * `VES` - Venezuelan Bolívar + * * `VEB` - Venezuelan Bolívar (1871–2008) + * * `VEF` - Venezuelan Bolívar (2008–2018) + * * `VND` - Vietnamese Dong + * * `VNN` - Vietnamese Dong (1978–1985) + * * `CHE` - WIR Euro + * * `CHW` - WIR Franc + * * `XOF` - West African CFA Franc + * * `YDD` - Yemeni Dinar + * * `YER` - Yemeni Rial + * * `YUN` - Yugoslavian Convertible Dinar (1990–1992) + * * `YUD` - Yugoslavian Hard Dinar (1966–1990) + * * `YUM` - Yugoslavian New Dinar (1994–2002) + * * `YUR` - Yugoslavian Reformed Dinar (1992–1993) + * * `ZWN` - ZWN + * * `ZRN` - Zairean New Zaire (1993–1998) + * * `ZRZ` - Zairean Zaire (1971–1993) + * * `ZMW` - Zambian Kwacha + * * `ZMK` - Zambian Kwacha (1968–2012) + * * `ZWD` - Zimbabwean Dollar (1980–2008) + * * `ZWR` - Zimbabwean Dollar (2008) + * * `ZWL` - Zimbabwean Dollar (2009) + */ +export type SalesOrderCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/SalesOrderCustomer.ts b/src/api/resources/accounting/types/SalesOrderCustomer.ts new file mode 100644 index 000000000..3ffb2c664 --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderCustomer.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The customer associated with the sales order. + */ +export type SalesOrderCustomer = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/SalesOrderEndpointRequest.ts b/src/api/resources/accounting/types/SalesOrderEndpointRequest.ts new file mode 100644 index 000000000..20679d6e7 --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderEndpointRequest.ts @@ -0,0 +1,7 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface SalesOrderEndpointRequest { + model: Merge.accounting.SalesOrderRequest; +} diff --git a/src/api/resources/accounting/types/SalesOrderLine.ts b/src/api/resources/accounting/types/SalesOrderLine.ts new file mode 100644 index 000000000..f601908e3 --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderLine.ts @@ -0,0 +1,41 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * # The SalesOrderLine Object + * ### Description + * The `SalesOrderLine` object represents a specific line item on a sales order. + * + * ### Usage Example + * Fetch from the `GET SalesOrder` endpoint and view a company's sales order line items. + */ +export interface SalesOrderLine { + id?: string; + /** The third-party API ID of the matching object. */ + remoteId?: string; + /** The datetime that this object was created by Merge. */ + createdAt?: Date; + /** The datetime that this object was modified by Merge. */ + modifiedAt?: Date; + /** Description of the line item. */ + description?: string; + /** The unit price of the item. */ + unitPrice?: string; + /** Quantity ordered for this line. */ + quantity?: string; + item?: Merge.accounting.SalesOrderLineItem; + /** The tax rate of the line item. */ + taxRate?: Merge.accounting.SalesOrderLineTaxRate; + /** The dimensions or classification tags. */ + trackingCategories?: (Merge.accounting.SalesOrderLineTrackingCategoriesItem | undefined)[]; + /** The subsidiary associated with the order. */ + company?: Merge.accounting.SalesOrderLineCompany; + /** When the third party's sales order line item was created. */ + remoteCreatedAt?: Date; + /** When the third party's sales order line item was updated. */ + remoteUpdatedAt?: Date; + /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ + remoteWasDeleted?: boolean; + remoteFields?: Merge.accounting.RemoteField[]; +} diff --git a/src/api/resources/accounting/types/SalesOrderLineCompany.ts b/src/api/resources/accounting/types/SalesOrderLineCompany.ts new file mode 100644 index 000000000..7b1e53e7c --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderLineCompany.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The subsidiary associated with the order. + */ +export type SalesOrderLineCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/SalesOrderLineItem.ts b/src/api/resources/accounting/types/SalesOrderLineItem.ts new file mode 100644 index 000000000..7a6016b4a --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderLineItem.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type SalesOrderLineItem = string | Merge.accounting.Item; diff --git a/src/api/resources/accounting/types/SalesOrderLineRequest.ts b/src/api/resources/accounting/types/SalesOrderLineRequest.ts new file mode 100644 index 000000000..c1e6b90f5 --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderLineRequest.ts @@ -0,0 +1,36 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * # The SalesOrderLine Object + * ### Description + * The `SalesOrderLine` object represents a specific line item on a sales order. + * + * ### Usage Example + * Fetch from the `GET SalesOrder` endpoint and view a company's sales order line items. + */ +export interface SalesOrderLineRequest { + /** The third-party API ID of the matching object. */ + remoteId?: string; + /** Description of the line item. */ + description?: string; + /** The unit price of the item. */ + unitPrice?: string; + /** Quantity ordered for this line. */ + quantity?: string; + item?: Merge.accounting.SalesOrderLineRequestItem; + /** The tax rate of the line item. */ + taxRate?: Merge.accounting.SalesOrderLineRequestTaxRate; + /** The dimensions or classification tags. */ + trackingCategories?: (Merge.accounting.SalesOrderLineRequestTrackingCategoriesItem | undefined)[]; + /** The subsidiary associated with the order. */ + company?: Merge.accounting.SalesOrderLineRequestCompany; + /** When the third party's sales order line item was created. */ + remoteCreatedAt?: Date; + /** When the third party's sales order line item was updated. */ + remoteUpdatedAt?: Date; + integrationParams?: Record; + linkedAccountParams?: Record; + remoteFields?: Merge.accounting.RemoteFieldRequest[]; +} diff --git a/src/api/resources/accounting/types/SalesOrderLineRequestCompany.ts b/src/api/resources/accounting/types/SalesOrderLineRequestCompany.ts new file mode 100644 index 000000000..98ad78e64 --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderLineRequestCompany.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The subsidiary associated with the order. + */ +export type SalesOrderLineRequestCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/SalesOrderLineRequestItem.ts b/src/api/resources/accounting/types/SalesOrderLineRequestItem.ts new file mode 100644 index 000000000..c8efe0661 --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderLineRequestItem.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type SalesOrderLineRequestItem = string | Merge.accounting.Item; diff --git a/src/api/resources/accounting/types/SalesOrderLineRequestTaxRate.ts b/src/api/resources/accounting/types/SalesOrderLineRequestTaxRate.ts new file mode 100644 index 000000000..038aacb1e --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderLineRequestTaxRate.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The tax rate of the line item. + */ +export type SalesOrderLineRequestTaxRate = string | Merge.accounting.TaxRate; diff --git a/src/api/resources/accounting/types/SalesOrderLineRequestTrackingCategoriesItem.ts b/src/api/resources/accounting/types/SalesOrderLineRequestTrackingCategoriesItem.ts new file mode 100644 index 000000000..b5b79dcdd --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderLineRequestTrackingCategoriesItem.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type SalesOrderLineRequestTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/SalesOrderLineTaxRate.ts b/src/api/resources/accounting/types/SalesOrderLineTaxRate.ts new file mode 100644 index 000000000..944510383 --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderLineTaxRate.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The tax rate of the line item. + */ +export type SalesOrderLineTaxRate = string | Merge.accounting.TaxRate; diff --git a/src/api/resources/accounting/types/SalesOrderLineTrackingCategoriesItem.ts b/src/api/resources/accounting/types/SalesOrderLineTrackingCategoriesItem.ts new file mode 100644 index 000000000..cf29d65b4 --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderLineTrackingCategoriesItem.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type SalesOrderLineTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/SalesOrderLinesItem.ts b/src/api/resources/accounting/types/SalesOrderLinesItem.ts new file mode 100644 index 000000000..f9d1cc88a --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderLinesItem.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type SalesOrderLinesItem = string | Merge.accounting.SalesOrderLine; diff --git a/src/api/resources/accounting/types/SalesOrderPaymentTerm.ts b/src/api/resources/accounting/types/SalesOrderPaymentTerm.ts new file mode 100644 index 000000000..11acfd28d --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderPaymentTerm.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The payment terms applied to this order. + */ +export type SalesOrderPaymentTerm = string | Merge.accounting.PaymentTerm; diff --git a/src/api/resources/accounting/types/SalesOrderRequest.ts b/src/api/resources/accounting/types/SalesOrderRequest.ts new file mode 100644 index 000000000..c8d28f344 --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderRequest.ts @@ -0,0 +1,358 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * # The SalesOrder Object + * ### Description + * The `SalesOrder` object represents a seller's formal record and confirmation of a customer's purchase request. + * + * ### Usage Example + * Fetch from the `LIST SalesOrders` endpoint and view a company's sales orders. + */ +export interface SalesOrderRequest { + /** The customer associated with the sales order. */ + customer?: Merge.accounting.SalesOrderRequestCustomer; + /** + * The currency code for the order. + * + * * `XUA` - ADB Unit of Account + * * `AFN` - Afghan Afghani + * * `AFA` - Afghan Afghani (1927–2002) + * * `ALL` - Albanian Lek + * * `ALK` - Albanian Lek (1946–1965) + * * `DZD` - Algerian Dinar + * * `ADP` - Andorran Peseta + * * `AOA` - Angolan Kwanza + * * `AOK` - Angolan Kwanza (1977–1991) + * * `AON` - Angolan New Kwanza (1990–2000) + * * `AOR` - Angolan Readjusted Kwanza (1995–1999) + * * `ARA` - Argentine Austral + * * `ARS` - Argentine Peso + * * `ARM` - Argentine Peso (1881–1970) + * * `ARP` - Argentine Peso (1983–1985) + * * `ARL` - Argentine Peso Ley (1970–1983) + * * `AMD` - Armenian Dram + * * `AWG` - Aruban Florin + * * `AUD` - Australian Dollar + * * `ATS` - Austrian Schilling + * * `AZN` - Azerbaijani Manat + * * `AZM` - Azerbaijani Manat (1993–2006) + * * `BSD` - Bahamian Dollar + * * `BHD` - Bahraini Dinar + * * `BDT` - Bangladeshi Taka + * * `BBD` - Barbadian Dollar + * * `BYN` - Belarusian Ruble + * * `BYB` - Belarusian Ruble (1994–1999) + * * `BYR` - Belarusian Ruble (2000–2016) + * * `BEF` - Belgian Franc + * * `BEC` - Belgian Franc (convertible) + * * `BEL` - Belgian Franc (financial) + * * `BZD` - Belize Dollar + * * `BMD` - Bermudan Dollar + * * `BTN` - Bhutanese Ngultrum + * * `BOB` - Bolivian Boliviano + * * `BOL` - Bolivian Boliviano (1863–1963) + * * `BOV` - Bolivian Mvdol + * * `BOP` - Bolivian Peso + * * `BAM` - Bosnia-Herzegovina Convertible Mark + * * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) + * * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) + * * `BWP` - Botswanan Pula + * * `BRC` - Brazilian Cruzado (1986–1989) + * * `BRZ` - Brazilian Cruzeiro (1942–1967) + * * `BRE` - Brazilian Cruzeiro (1990–1993) + * * `BRR` - Brazilian Cruzeiro (1993–1994) + * * `BRN` - Brazilian New Cruzado (1989–1990) + * * `BRB` - Brazilian New Cruzeiro (1967–1986) + * * `BRL` - Brazilian Real + * * `GBP` - British Pound + * * `BND` - Brunei Dollar + * * `BGL` - Bulgarian Hard Lev + * * `BGN` - Bulgarian Lev + * * `BGO` - Bulgarian Lev (1879–1952) + * * `BGM` - Bulgarian Socialist Lev + * * `BUK` - Burmese Kyat + * * `BIF` - Burundian Franc + * * `XPF` - CFP Franc + * * `KHR` - Cambodian Riel + * * `CAD` - Canadian Dollar + * * `CVE` - Cape Verdean Escudo + * * `KYD` - Cayman Islands Dollar + * * `XAF` - Central African CFA Franc + * * `CLE` - Chilean Escudo + * * `CLP` - Chilean Peso + * * `CLF` - Chilean Unit of Account (UF) + * * `CNX` - Chinese People’s Bank Dollar + * * `CNY` - Chinese Yuan + * * `CNH` - Chinese Yuan (offshore) + * * `COP` - Colombian Peso + * * `COU` - Colombian Real Value Unit + * * `KMF` - Comorian Franc + * * `CDF` - Congolese Franc + * * `CRC` - Costa Rican Colón + * * `HRD` - Croatian Dinar + * * `HRK` - Croatian Kuna + * * `CUC` - Cuban Convertible Peso + * * `CUP` - Cuban Peso + * * `CYP` - Cypriot Pound + * * `CZK` - Czech Koruna + * * `CSK` - Czechoslovak Hard Koruna + * * `DKK` - Danish Krone + * * `DJF` - Djiboutian Franc + * * `DOP` - Dominican Peso + * * `NLG` - Dutch Guilder + * * `XCD` - East Caribbean Dollar + * * `DDM` - East German Mark + * * `ECS` - Ecuadorian Sucre + * * `ECV` - Ecuadorian Unit of Constant Value + * * `EGP` - Egyptian Pound + * * `GQE` - Equatorial Guinean Ekwele + * * `ERN` - Eritrean Nakfa + * * `EEK` - Estonian Kroon + * * `ETB` - Ethiopian Birr + * * `EUR` - Euro + * * `XBA` - European Composite Unit + * * `XEU` - European Currency Unit + * * `XBB` - European Monetary Unit + * * `XBC` - European Unit of Account (XBC) + * * `XBD` - European Unit of Account (XBD) + * * `FKP` - Falkland Islands Pound + * * `FJD` - Fijian Dollar + * * `FIM` - Finnish Markka + * * `FRF` - French Franc + * * `XFO` - French Gold Franc + * * `XFU` - French UIC-Franc + * * `GMD` - Gambian Dalasi + * * `GEK` - Georgian Kupon Larit + * * `GEL` - Georgian Lari + * * `DEM` - German Mark + * * `GHS` - Ghanaian Cedi + * * `GHC` - Ghanaian Cedi (1979–2007) + * * `GIP` - Gibraltar Pound + * * `XAU` - Gold + * * `GRD` - Greek Drachma + * * `GTQ` - Guatemalan Quetzal + * * `GWP` - Guinea-Bissau Peso + * * `GNF` - Guinean Franc + * * `GNS` - Guinean Syli + * * `GYD` - Guyanaese Dollar + * * `HTG` - Haitian Gourde + * * `HNL` - Honduran Lempira + * * `HKD` - Hong Kong Dollar + * * `HUF` - Hungarian Forint + * * `IMP` - IMP + * * `ISK` - Icelandic Króna + * * `ISJ` - Icelandic Króna (1918–1981) + * * `INR` - Indian Rupee + * * `IDR` - Indonesian Rupiah + * * `IRR` - Iranian Rial + * * `IQD` - Iraqi Dinar + * * `IEP` - Irish Pound + * * `ILS` - Israeli New Shekel + * * `ILP` - Israeli Pound + * * `ILR` - Israeli Shekel (1980–1985) + * * `ITL` - Italian Lira + * * `JMD` - Jamaican Dollar + * * `JPY` - Japanese Yen + * * `JOD` - Jordanian Dinar + * * `KZT` - Kazakhstani Tenge + * * `KES` - Kenyan Shilling + * * `KWD` - Kuwaiti Dinar + * * `KGS` - Kyrgystani Som + * * `LAK` - Laotian Kip + * * `LVL` - Latvian Lats + * * `LVR` - Latvian Ruble + * * `LBP` - Lebanese Pound + * * `LSL` - Lesotho Loti + * * `LRD` - Liberian Dollar + * * `LYD` - Libyan Dinar + * * `LTL` - Lithuanian Litas + * * `LTT` - Lithuanian Talonas + * * `LUL` - Luxembourg Financial Franc + * * `LUC` - Luxembourgian Convertible Franc + * * `LUF` - Luxembourgian Franc + * * `MOP` - Macanese Pataca + * * `MKD` - Macedonian Denar + * * `MKN` - Macedonian Denar (1992–1993) + * * `MGA` - Malagasy Ariary + * * `MGF` - Malagasy Franc + * * `MWK` - Malawian Kwacha + * * `MYR` - Malaysian Ringgit + * * `MVR` - Maldivian Rufiyaa + * * `MVP` - Maldivian Rupee (1947–1981) + * * `MLF` - Malian Franc + * * `MTL` - Maltese Lira + * * `MTP` - Maltese Pound + * * `MRU` - Mauritanian Ouguiya + * * `MRO` - Mauritanian Ouguiya (1973–2017) + * * `MUR` - Mauritian Rupee + * * `MXV` - Mexican Investment Unit + * * `MXN` - Mexican Peso + * * `MXP` - Mexican Silver Peso (1861–1992) + * * `MDC` - Moldovan Cupon + * * `MDL` - Moldovan Leu + * * `MCF` - Monegasque Franc + * * `MNT` - Mongolian Tugrik + * * `MAD` - Moroccan Dirham + * * `MAF` - Moroccan Franc + * * `MZE` - Mozambican Escudo + * * `MZN` - Mozambican Metical + * * `MZM` - Mozambican Metical (1980–2006) + * * `MMK` - Myanmar Kyat + * * `NAD` - Namibian Dollar + * * `NPR` - Nepalese Rupee + * * `ANG` - Netherlands Antillean Guilder + * * `TWD` - New Taiwan Dollar + * * `NZD` - New Zealand Dollar + * * `NIO` - Nicaraguan Córdoba + * * `NIC` - Nicaraguan Córdoba (1988–1991) + * * `NGN` - Nigerian Naira + * * `KPW` - North Korean Won + * * `NOK` - Norwegian Krone + * * `OMR` - Omani Rial + * * `PKR` - Pakistani Rupee + * * `XPD` - Palladium + * * `PAB` - Panamanian Balboa + * * `PGK` - Papua New Guinean Kina + * * `PYG` - Paraguayan Guarani + * * `PEI` - Peruvian Inti + * * `PEN` - Peruvian Sol + * * `PES` - Peruvian Sol (1863–1965) + * * `PHP` - Philippine Peso + * * `XPT` - Platinum + * * `PLN` - Polish Zloty + * * `PLZ` - Polish Zloty (1950–1995) + * * `PTE` - Portuguese Escudo + * * `GWE` - Portuguese Guinea Escudo + * * `QAR` - Qatari Rial + * * `XRE` - RINET Funds + * * `RHD` - Rhodesian Dollar + * * `RON` - Romanian Leu + * * `ROL` - Romanian Leu (1952–2006) + * * `RUB` - Russian Ruble + * * `RUR` - Russian Ruble (1991–1998) + * * `RWF` - Rwandan Franc + * * `SVC` - Salvadoran Colón + * * `WST` - Samoan Tala + * * `SAR` - Saudi Riyal + * * `RSD` - Serbian Dinar + * * `CSD` - Serbian Dinar (2002–2006) + * * `SCR` - Seychellois Rupee + * * `SLL` - Sierra Leonean Leone + * * `XAG` - Silver + * * `SGD` - Singapore Dollar + * * `SKK` - Slovak Koruna + * * `SIT` - Slovenian Tolar + * * `SBD` - Solomon Islands Dollar + * * `SOS` - Somali Shilling + * * `ZAR` - South African Rand + * * `ZAL` - South African Rand (financial) + * * `KRH` - South Korean Hwan (1953–1962) + * * `KRW` - South Korean Won + * * `KRO` - South Korean Won (1945–1953) + * * `SSP` - South Sudanese Pound + * * `SUR` - Soviet Rouble + * * `ESP` - Spanish Peseta + * * `ESA` - Spanish Peseta (A account) + * * `ESB` - Spanish Peseta (convertible account) + * * `XDR` - Special Drawing Rights + * * `LKR` - Sri Lankan Rupee + * * `SHP` - St. Helena Pound + * * `XSU` - Sucre + * * `SDD` - Sudanese Dinar (1992–2007) + * * `SDG` - Sudanese Pound + * * `SDP` - Sudanese Pound (1957–1998) + * * `SRD` - Surinamese Dollar + * * `SRG` - Surinamese Guilder + * * `SZL` - Swazi Lilangeni + * * `SEK` - Swedish Krona + * * `CHF` - Swiss Franc + * * `SYP` - Syrian Pound + * * `STN` - São Tomé & Príncipe Dobra + * * `STD` - São Tomé & Príncipe Dobra (1977–2017) + * * `TVD` - TVD + * * `TJR` - Tajikistani Ruble + * * `TJS` - Tajikistani Somoni + * * `TZS` - Tanzanian Shilling + * * `XTS` - Testing Currency Code + * * `THB` - Thai Baht + * * `XXX` - The codes assigned for transactions where no currency is involved + * * `TPE` - Timorese Escudo + * * `TOP` - Tongan Paʻanga + * * `TTD` - Trinidad & Tobago Dollar + * * `TND` - Tunisian Dinar + * * `TRY` - Turkish Lira + * * `TRL` - Turkish Lira (1922–2005) + * * `TMT` - Turkmenistani Manat + * * `TMM` - Turkmenistani Manat (1993–2009) + * * `USD` - US Dollar + * * `USN` - US Dollar (Next day) + * * `USS` - US Dollar (Same day) + * * `UGX` - Ugandan Shilling + * * `UGS` - Ugandan Shilling (1966–1987) + * * `UAH` - Ukrainian Hryvnia + * * `UAK` - Ukrainian Karbovanets + * * `AED` - United Arab Emirates Dirham + * * `UYW` - Uruguayan Nominal Wage Index Unit + * * `UYU` - Uruguayan Peso + * * `UYP` - Uruguayan Peso (1975–1993) + * * `UYI` - Uruguayan Peso (Indexed Units) + * * `UZS` - Uzbekistani Som + * * `VUV` - Vanuatu Vatu + * * `VES` - Venezuelan Bolívar + * * `VEB` - Venezuelan Bolívar (1871–2008) + * * `VEF` - Venezuelan Bolívar (2008–2018) + * * `VND` - Vietnamese Dong + * * `VNN` - Vietnamese Dong (1978–1985) + * * `CHE` - WIR Euro + * * `CHW` - WIR Franc + * * `XOF` - West African CFA Franc + * * `YDD` - Yemeni Dinar + * * `YER` - Yemeni Rial + * * `YUN` - Yugoslavian Convertible Dinar (1990–1992) + * * `YUD` - Yugoslavian Hard Dinar (1966–1990) + * * `YUM` - Yugoslavian New Dinar (1994–2002) + * * `YUR` - Yugoslavian Reformed Dinar (1992–1993) + * * `ZWN` - ZWN + * * `ZRN` - Zairean New Zaire (1993–1998) + * * `ZRZ` - Zairean Zaire (1971–1993) + * * `ZMW` - Zambian Kwacha + * * `ZMK` - Zambian Kwacha (1968–2012) + * * `ZWD` - Zimbabwean Dollar (1980–2008) + * * `ZWR` - Zimbabwean Dollar (2008) + * * `ZWL` - Zimbabwean Dollar (2009) + */ + currency?: Merge.accounting.SalesOrderRequestCurrency; + /** The exchange rate applied if the order currency differs from the base currency. */ + exchangeRate?: string; + /** The subsidiary associated with the order. */ + company?: Merge.accounting.SalesOrderRequestCompany; + /** + * The status of the sales order. + * + * * `DRAFT` - DRAFT + * * `PENDING_APPROVAL` - PENDING_APPROVAL + * * `OPEN` - OPEN + * * `PARTIALLY_COMPLETED` - PARTIALLY_COMPLETED + * * `COMPLETED` - COMPLETED + * * `CLOSED` - CLOSED + */ + status?: Merge.accounting.SalesOrderRequestStatus; + /** The payment terms applied to this order. */ + paymentTerm?: Merge.accounting.SalesOrderRequestPaymentTerm; + /** Notes or comments attached to the order. */ + memo?: string; + /** The shipping address for the order. */ + shippingAddress?: Merge.accounting.SalesOrderRequestShippingAddress; + trackingCategories?: (Merge.accounting.SalesOrderRequestTrackingCategoriesItem | undefined)[]; + /** The date the sales order was issued. */ + issueDate?: Date; + /** The human-readable sales order number or transaction reference. */ + transactionNumber?: string; + /** Total amount of order. */ + total?: number; + integrationParams?: Record; + linkedAccountParams?: Record; + remoteFields?: Merge.accounting.RemoteFieldRequest[]; +} diff --git a/src/api/resources/accounting/types/SalesOrderRequestCompany.ts b/src/api/resources/accounting/types/SalesOrderRequestCompany.ts new file mode 100644 index 000000000..9c3d2176f --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderRequestCompany.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The subsidiary associated with the order. + */ +export type SalesOrderRequestCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/SalesOrderRequestCurrency.ts b/src/api/resources/accounting/types/SalesOrderRequestCurrency.ts new file mode 100644 index 000000000..f5e82b6a8 --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderRequestCurrency.ts @@ -0,0 +1,315 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The currency code for the order. + * + * * `XUA` - ADB Unit of Account + * * `AFN` - Afghan Afghani + * * `AFA` - Afghan Afghani (1927–2002) + * * `ALL` - Albanian Lek + * * `ALK` - Albanian Lek (1946–1965) + * * `DZD` - Algerian Dinar + * * `ADP` - Andorran Peseta + * * `AOA` - Angolan Kwanza + * * `AOK` - Angolan Kwanza (1977–1991) + * * `AON` - Angolan New Kwanza (1990–2000) + * * `AOR` - Angolan Readjusted Kwanza (1995–1999) + * * `ARA` - Argentine Austral + * * `ARS` - Argentine Peso + * * `ARM` - Argentine Peso (1881–1970) + * * `ARP` - Argentine Peso (1983–1985) + * * `ARL` - Argentine Peso Ley (1970–1983) + * * `AMD` - Armenian Dram + * * `AWG` - Aruban Florin + * * `AUD` - Australian Dollar + * * `ATS` - Austrian Schilling + * * `AZN` - Azerbaijani Manat + * * `AZM` - Azerbaijani Manat (1993–2006) + * * `BSD` - Bahamian Dollar + * * `BHD` - Bahraini Dinar + * * `BDT` - Bangladeshi Taka + * * `BBD` - Barbadian Dollar + * * `BYN` - Belarusian Ruble + * * `BYB` - Belarusian Ruble (1994–1999) + * * `BYR` - Belarusian Ruble (2000–2016) + * * `BEF` - Belgian Franc + * * `BEC` - Belgian Franc (convertible) + * * `BEL` - Belgian Franc (financial) + * * `BZD` - Belize Dollar + * * `BMD` - Bermudan Dollar + * * `BTN` - Bhutanese Ngultrum + * * `BOB` - Bolivian Boliviano + * * `BOL` - Bolivian Boliviano (1863–1963) + * * `BOV` - Bolivian Mvdol + * * `BOP` - Bolivian Peso + * * `BAM` - Bosnia-Herzegovina Convertible Mark + * * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) + * * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) + * * `BWP` - Botswanan Pula + * * `BRC` - Brazilian Cruzado (1986–1989) + * * `BRZ` - Brazilian Cruzeiro (1942–1967) + * * `BRE` - Brazilian Cruzeiro (1990–1993) + * * `BRR` - Brazilian Cruzeiro (1993–1994) + * * `BRN` - Brazilian New Cruzado (1989–1990) + * * `BRB` - Brazilian New Cruzeiro (1967–1986) + * * `BRL` - Brazilian Real + * * `GBP` - British Pound + * * `BND` - Brunei Dollar + * * `BGL` - Bulgarian Hard Lev + * * `BGN` - Bulgarian Lev + * * `BGO` - Bulgarian Lev (1879–1952) + * * `BGM` - Bulgarian Socialist Lev + * * `BUK` - Burmese Kyat + * * `BIF` - Burundian Franc + * * `XPF` - CFP Franc + * * `KHR` - Cambodian Riel + * * `CAD` - Canadian Dollar + * * `CVE` - Cape Verdean Escudo + * * `KYD` - Cayman Islands Dollar + * * `XAF` - Central African CFA Franc + * * `CLE` - Chilean Escudo + * * `CLP` - Chilean Peso + * * `CLF` - Chilean Unit of Account (UF) + * * `CNX` - Chinese People’s Bank Dollar + * * `CNY` - Chinese Yuan + * * `CNH` - Chinese Yuan (offshore) + * * `COP` - Colombian Peso + * * `COU` - Colombian Real Value Unit + * * `KMF` - Comorian Franc + * * `CDF` - Congolese Franc + * * `CRC` - Costa Rican Colón + * * `HRD` - Croatian Dinar + * * `HRK` - Croatian Kuna + * * `CUC` - Cuban Convertible Peso + * * `CUP` - Cuban Peso + * * `CYP` - Cypriot Pound + * * `CZK` - Czech Koruna + * * `CSK` - Czechoslovak Hard Koruna + * * `DKK` - Danish Krone + * * `DJF` - Djiboutian Franc + * * `DOP` - Dominican Peso + * * `NLG` - Dutch Guilder + * * `XCD` - East Caribbean Dollar + * * `DDM` - East German Mark + * * `ECS` - Ecuadorian Sucre + * * `ECV` - Ecuadorian Unit of Constant Value + * * `EGP` - Egyptian Pound + * * `GQE` - Equatorial Guinean Ekwele + * * `ERN` - Eritrean Nakfa + * * `EEK` - Estonian Kroon + * * `ETB` - Ethiopian Birr + * * `EUR` - Euro + * * `XBA` - European Composite Unit + * * `XEU` - European Currency Unit + * * `XBB` - European Monetary Unit + * * `XBC` - European Unit of Account (XBC) + * * `XBD` - European Unit of Account (XBD) + * * `FKP` - Falkland Islands Pound + * * `FJD` - Fijian Dollar + * * `FIM` - Finnish Markka + * * `FRF` - French Franc + * * `XFO` - French Gold Franc + * * `XFU` - French UIC-Franc + * * `GMD` - Gambian Dalasi + * * `GEK` - Georgian Kupon Larit + * * `GEL` - Georgian Lari + * * `DEM` - German Mark + * * `GHS` - Ghanaian Cedi + * * `GHC` - Ghanaian Cedi (1979–2007) + * * `GIP` - Gibraltar Pound + * * `XAU` - Gold + * * `GRD` - Greek Drachma + * * `GTQ` - Guatemalan Quetzal + * * `GWP` - Guinea-Bissau Peso + * * `GNF` - Guinean Franc + * * `GNS` - Guinean Syli + * * `GYD` - Guyanaese Dollar + * * `HTG` - Haitian Gourde + * * `HNL` - Honduran Lempira + * * `HKD` - Hong Kong Dollar + * * `HUF` - Hungarian Forint + * * `IMP` - IMP + * * `ISK` - Icelandic Króna + * * `ISJ` - Icelandic Króna (1918–1981) + * * `INR` - Indian Rupee + * * `IDR` - Indonesian Rupiah + * * `IRR` - Iranian Rial + * * `IQD` - Iraqi Dinar + * * `IEP` - Irish Pound + * * `ILS` - Israeli New Shekel + * * `ILP` - Israeli Pound + * * `ILR` - Israeli Shekel (1980–1985) + * * `ITL` - Italian Lira + * * `JMD` - Jamaican Dollar + * * `JPY` - Japanese Yen + * * `JOD` - Jordanian Dinar + * * `KZT` - Kazakhstani Tenge + * * `KES` - Kenyan Shilling + * * `KWD` - Kuwaiti Dinar + * * `KGS` - Kyrgystani Som + * * `LAK` - Laotian Kip + * * `LVL` - Latvian Lats + * * `LVR` - Latvian Ruble + * * `LBP` - Lebanese Pound + * * `LSL` - Lesotho Loti + * * `LRD` - Liberian Dollar + * * `LYD` - Libyan Dinar + * * `LTL` - Lithuanian Litas + * * `LTT` - Lithuanian Talonas + * * `LUL` - Luxembourg Financial Franc + * * `LUC` - Luxembourgian Convertible Franc + * * `LUF` - Luxembourgian Franc + * * `MOP` - Macanese Pataca + * * `MKD` - Macedonian Denar + * * `MKN` - Macedonian Denar (1992–1993) + * * `MGA` - Malagasy Ariary + * * `MGF` - Malagasy Franc + * * `MWK` - Malawian Kwacha + * * `MYR` - Malaysian Ringgit + * * `MVR` - Maldivian Rufiyaa + * * `MVP` - Maldivian Rupee (1947–1981) + * * `MLF` - Malian Franc + * * `MTL` - Maltese Lira + * * `MTP` - Maltese Pound + * * `MRU` - Mauritanian Ouguiya + * * `MRO` - Mauritanian Ouguiya (1973–2017) + * * `MUR` - Mauritian Rupee + * * `MXV` - Mexican Investment Unit + * * `MXN` - Mexican Peso + * * `MXP` - Mexican Silver Peso (1861–1992) + * * `MDC` - Moldovan Cupon + * * `MDL` - Moldovan Leu + * * `MCF` - Monegasque Franc + * * `MNT` - Mongolian Tugrik + * * `MAD` - Moroccan Dirham + * * `MAF` - Moroccan Franc + * * `MZE` - Mozambican Escudo + * * `MZN` - Mozambican Metical + * * `MZM` - Mozambican Metical (1980–2006) + * * `MMK` - Myanmar Kyat + * * `NAD` - Namibian Dollar + * * `NPR` - Nepalese Rupee + * * `ANG` - Netherlands Antillean Guilder + * * `TWD` - New Taiwan Dollar + * * `NZD` - New Zealand Dollar + * * `NIO` - Nicaraguan Córdoba + * * `NIC` - Nicaraguan Córdoba (1988–1991) + * * `NGN` - Nigerian Naira + * * `KPW` - North Korean Won + * * `NOK` - Norwegian Krone + * * `OMR` - Omani Rial + * * `PKR` - Pakistani Rupee + * * `XPD` - Palladium + * * `PAB` - Panamanian Balboa + * * `PGK` - Papua New Guinean Kina + * * `PYG` - Paraguayan Guarani + * * `PEI` - Peruvian Inti + * * `PEN` - Peruvian Sol + * * `PES` - Peruvian Sol (1863–1965) + * * `PHP` - Philippine Peso + * * `XPT` - Platinum + * * `PLN` - Polish Zloty + * * `PLZ` - Polish Zloty (1950–1995) + * * `PTE` - Portuguese Escudo + * * `GWE` - Portuguese Guinea Escudo + * * `QAR` - Qatari Rial + * * `XRE` - RINET Funds + * * `RHD` - Rhodesian Dollar + * * `RON` - Romanian Leu + * * `ROL` - Romanian Leu (1952–2006) + * * `RUB` - Russian Ruble + * * `RUR` - Russian Ruble (1991–1998) + * * `RWF` - Rwandan Franc + * * `SVC` - Salvadoran Colón + * * `WST` - Samoan Tala + * * `SAR` - Saudi Riyal + * * `RSD` - Serbian Dinar + * * `CSD` - Serbian Dinar (2002–2006) + * * `SCR` - Seychellois Rupee + * * `SLL` - Sierra Leonean Leone + * * `XAG` - Silver + * * `SGD` - Singapore Dollar + * * `SKK` - Slovak Koruna + * * `SIT` - Slovenian Tolar + * * `SBD` - Solomon Islands Dollar + * * `SOS` - Somali Shilling + * * `ZAR` - South African Rand + * * `ZAL` - South African Rand (financial) + * * `KRH` - South Korean Hwan (1953–1962) + * * `KRW` - South Korean Won + * * `KRO` - South Korean Won (1945–1953) + * * `SSP` - South Sudanese Pound + * * `SUR` - Soviet Rouble + * * `ESP` - Spanish Peseta + * * `ESA` - Spanish Peseta (A account) + * * `ESB` - Spanish Peseta (convertible account) + * * `XDR` - Special Drawing Rights + * * `LKR` - Sri Lankan Rupee + * * `SHP` - St. Helena Pound + * * `XSU` - Sucre + * * `SDD` - Sudanese Dinar (1992–2007) + * * `SDG` - Sudanese Pound + * * `SDP` - Sudanese Pound (1957–1998) + * * `SRD` - Surinamese Dollar + * * `SRG` - Surinamese Guilder + * * `SZL` - Swazi Lilangeni + * * `SEK` - Swedish Krona + * * `CHF` - Swiss Franc + * * `SYP` - Syrian Pound + * * `STN` - São Tomé & Príncipe Dobra + * * `STD` - São Tomé & Príncipe Dobra (1977–2017) + * * `TVD` - TVD + * * `TJR` - Tajikistani Ruble + * * `TJS` - Tajikistani Somoni + * * `TZS` - Tanzanian Shilling + * * `XTS` - Testing Currency Code + * * `THB` - Thai Baht + * * `XXX` - The codes assigned for transactions where no currency is involved + * * `TPE` - Timorese Escudo + * * `TOP` - Tongan Paʻanga + * * `TTD` - Trinidad & Tobago Dollar + * * `TND` - Tunisian Dinar + * * `TRY` - Turkish Lira + * * `TRL` - Turkish Lira (1922–2005) + * * `TMT` - Turkmenistani Manat + * * `TMM` - Turkmenistani Manat (1993–2009) + * * `USD` - US Dollar + * * `USN` - US Dollar (Next day) + * * `USS` - US Dollar (Same day) + * * `UGX` - Ugandan Shilling + * * `UGS` - Ugandan Shilling (1966–1987) + * * `UAH` - Ukrainian Hryvnia + * * `UAK` - Ukrainian Karbovanets + * * `AED` - United Arab Emirates Dirham + * * `UYW` - Uruguayan Nominal Wage Index Unit + * * `UYU` - Uruguayan Peso + * * `UYP` - Uruguayan Peso (1975–1993) + * * `UYI` - Uruguayan Peso (Indexed Units) + * * `UZS` - Uzbekistani Som + * * `VUV` - Vanuatu Vatu + * * `VES` - Venezuelan Bolívar + * * `VEB` - Venezuelan Bolívar (1871–2008) + * * `VEF` - Venezuelan Bolívar (2008–2018) + * * `VND` - Vietnamese Dong + * * `VNN` - Vietnamese Dong (1978–1985) + * * `CHE` - WIR Euro + * * `CHW` - WIR Franc + * * `XOF` - West African CFA Franc + * * `YDD` - Yemeni Dinar + * * `YER` - Yemeni Rial + * * `YUN` - Yugoslavian Convertible Dinar (1990–1992) + * * `YUD` - Yugoslavian Hard Dinar (1966–1990) + * * `YUM` - Yugoslavian New Dinar (1994–2002) + * * `YUR` - Yugoslavian Reformed Dinar (1992–1993) + * * `ZWN` - ZWN + * * `ZRN` - Zairean New Zaire (1993–1998) + * * `ZRZ` - Zairean Zaire (1971–1993) + * * `ZMW` - Zambian Kwacha + * * `ZMK` - Zambian Kwacha (1968–2012) + * * `ZWD` - Zimbabwean Dollar (1980–2008) + * * `ZWR` - Zimbabwean Dollar (2008) + * * `ZWL` - Zimbabwean Dollar (2009) + */ +export type SalesOrderRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; diff --git a/src/api/resources/accounting/types/SalesOrderRequestCustomer.ts b/src/api/resources/accounting/types/SalesOrderRequestCustomer.ts new file mode 100644 index 000000000..9db930f22 --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderRequestCustomer.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The customer associated with the sales order. + */ +export type SalesOrderRequestCustomer = string | Merge.accounting.Contact; diff --git a/src/api/resources/accounting/types/SalesOrderRequestPaymentTerm.ts b/src/api/resources/accounting/types/SalesOrderRequestPaymentTerm.ts new file mode 100644 index 000000000..4e21856a8 --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderRequestPaymentTerm.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The payment terms applied to this order. + */ +export type SalesOrderRequestPaymentTerm = string | Merge.accounting.PaymentTerm; diff --git a/src/api/resources/accounting/types/SalesOrderRequestShippingAddress.ts b/src/api/resources/accounting/types/SalesOrderRequestShippingAddress.ts new file mode 100644 index 000000000..425b5c977 --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderRequestShippingAddress.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The shipping address for the order. + */ +export type SalesOrderRequestShippingAddress = string | Merge.accounting.Address; diff --git a/src/api/resources/accounting/types/SalesOrderRequestStatus.ts b/src/api/resources/accounting/types/SalesOrderRequestStatus.ts new file mode 100644 index 000000000..2d1aa5061 --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderRequestStatus.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The status of the sales order. + * + * * `DRAFT` - DRAFT + * * `PENDING_APPROVAL` - PENDING_APPROVAL + * * `OPEN` - OPEN + * * `PARTIALLY_COMPLETED` - PARTIALLY_COMPLETED + * * `COMPLETED` - COMPLETED + * * `CLOSED` - CLOSED + */ +export type SalesOrderRequestStatus = Merge.accounting.SalesOrderStatusEnum | string; diff --git a/src/api/resources/accounting/types/SalesOrderRequestTrackingCategoriesItem.ts b/src/api/resources/accounting/types/SalesOrderRequestTrackingCategoriesItem.ts new file mode 100644 index 000000000..ae68b2878 --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderRequestTrackingCategoriesItem.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type SalesOrderRequestTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/SalesOrderResponse.ts b/src/api/resources/accounting/types/SalesOrderResponse.ts new file mode 100644 index 000000000..2586c9eb8 --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderResponse.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface SalesOrderResponse { + model: Merge.accounting.SalesOrder; + warnings: Merge.accounting.WarningValidationProblem[]; + errors: Merge.accounting.ErrorValidationProblem[]; + logs?: Merge.accounting.DebugModeLog[]; +} diff --git a/src/api/resources/accounting/types/SalesOrderShippingAddress.ts b/src/api/resources/accounting/types/SalesOrderShippingAddress.ts new file mode 100644 index 000000000..7b4f2b9c5 --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderShippingAddress.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The shipping address for the order. + */ +export type SalesOrderShippingAddress = string | Merge.accounting.Address; diff --git a/src/api/resources/accounting/types/SalesOrderStatus.ts b/src/api/resources/accounting/types/SalesOrderStatus.ts new file mode 100644 index 000000000..94988986f --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderStatus.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The status of the sales order. + * + * * `DRAFT` - DRAFT + * * `PENDING_APPROVAL` - PENDING_APPROVAL + * * `OPEN` - OPEN + * * `PARTIALLY_COMPLETED` - PARTIALLY_COMPLETED + * * `COMPLETED` - COMPLETED + * * `CLOSED` - CLOSED + */ +export type SalesOrderStatus = Merge.accounting.SalesOrderStatusEnum | string; diff --git a/src/api/resources/accounting/types/SalesOrderStatusEnum.ts b/src/api/resources/accounting/types/SalesOrderStatusEnum.ts new file mode 100644 index 000000000..49c038e65 --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderStatusEnum.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * * `DRAFT` - DRAFT + * * `PENDING_APPROVAL` - PENDING_APPROVAL + * * `OPEN` - OPEN + * * `PARTIALLY_COMPLETED` - PARTIALLY_COMPLETED + * * `COMPLETED` - COMPLETED + * * `CLOSED` - CLOSED + */ +export const SalesOrderStatusEnum = { + Draft: "DRAFT", + PendingApproval: "PENDING_APPROVAL", + Open: "OPEN", + PartiallyCompleted: "PARTIALLY_COMPLETED", + Completed: "COMPLETED", + Closed: "CLOSED", +} as const; +export type SalesOrderStatusEnum = (typeof SalesOrderStatusEnum)[keyof typeof SalesOrderStatusEnum]; diff --git a/src/api/resources/accounting/types/SalesOrderTrackingCategoriesItem.ts b/src/api/resources/accounting/types/SalesOrderTrackingCategoriesItem.ts new file mode 100644 index 000000000..d637f2c99 --- /dev/null +++ b/src/api/resources/accounting/types/SalesOrderTrackingCategoriesItem.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type SalesOrderTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; diff --git a/src/api/resources/accounting/types/SyncStatus.ts b/src/api/resources/accounting/types/SyncStatus.ts index b299721db..8225e18f2 100644 --- a/src/api/resources/accounting/types/SyncStatus.ts +++ b/src/api/resources/accounting/types/SyncStatus.ts @@ -15,7 +15,7 @@ export interface SyncStatus { modelId: string; lastSyncStart?: Date; nextSyncStart?: Date; - lastSyncResult?: Merge.accounting.LastSyncResultEnum; + lastSyncResult?: Merge.accounting.SyncStatusLastSyncResult; lastSyncFinished?: Date; status: Merge.accounting.SyncStatusStatus; isInitialSync: boolean; diff --git a/src/api/resources/accounting/types/SyncStatusLastSyncResult.ts b/src/api/resources/accounting/types/SyncStatusLastSyncResult.ts new file mode 100644 index 000000000..60cb035a6 --- /dev/null +++ b/src/api/resources/accounting/types/SyncStatusLastSyncResult.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type SyncStatusLastSyncResult = Merge.accounting.LastSyncResultEnum | string; diff --git a/src/api/resources/accounting/types/Transaction.ts b/src/api/resources/accounting/types/Transaction.ts index bb1c35254..6b0fc7df4 100644 --- a/src/api/resources/accounting/types/Transaction.ts +++ b/src/api/resources/accounting/types/Transaction.ts @@ -353,7 +353,7 @@ export interface Transaction { /** The transaction's exchange rate. */ exchangeRate?: string; /** The company the transaction belongs to. */ - company?: string; + company?: Merge.accounting.TransactionCompany; trackingCategories?: (Merge.accounting.TransactionTrackingCategoriesItem | undefined)[]; lineItems?: Merge.accounting.TransactionLineItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ diff --git a/src/api/resources/accounting/types/TransactionCompany.ts b/src/api/resources/accounting/types/TransactionCompany.ts new file mode 100644 index 000000000..2f8a88368 --- /dev/null +++ b/src/api/resources/accounting/types/TransactionCompany.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The company the transaction belongs to. + */ +export type TransactionCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/VendorCreditBatchItemRequest.ts b/src/api/resources/accounting/types/VendorCreditBatchItemRequest.ts new file mode 100644 index 000000000..c36c99733 --- /dev/null +++ b/src/api/resources/accounting/types/VendorCreditBatchItemRequest.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface VendorCreditBatchItemRequest { + /** The third-party item ID for this model in the bulk create request */ + itemId: string; + payload: Merge.accounting.VendorCreditEndpointRequest; +} diff --git a/src/api/resources/accounting/types/VendorCreditEndpointRequest.ts b/src/api/resources/accounting/types/VendorCreditEndpointRequest.ts new file mode 100644 index 000000000..5ceae4e1f --- /dev/null +++ b/src/api/resources/accounting/types/VendorCreditEndpointRequest.ts @@ -0,0 +1,7 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface VendorCreditEndpointRequest { + model: Merge.accounting.VendorCreditRequest; +} diff --git a/src/api/resources/accounting/types/index.ts b/src/api/resources/accounting/types/index.ts index 22194d0a9..1ae5d0851 100644 --- a/src/api/resources/accounting/types/index.ts +++ b/src/api/resources/accounting/types/index.ts @@ -1,7 +1,9 @@ export * from "./Account"; export * from "./AccountAccountType"; export * from "./AccountAccountTypeEnum"; +export * from "./AccountBatchItemRequest"; export * from "./AccountClassification"; +export * from "./AccountCompany"; export * from "./AccountCurrency"; export * from "./AccountDetails"; export * from "./AccountDetailsAndActions"; @@ -9,9 +11,11 @@ export * from "./AccountDetailsAndActionsCategory"; export * from "./AccountDetailsAndActionsIntegration"; export * from "./AccountDetailsAndActionsStatus"; export * from "./AccountDetailsAndActionsStatusEnum"; -export * from "./AccountDetailsCategory"; +export * from "./AccountEndpointRequest"; export * from "./AccountIntegration"; export * from "./AccountingAttachment"; +export * from "./AccountingAttachmentBatchItemRequest"; +export * from "./AccountingAttachmentEndpointRequest"; export * from "./AccountingAttachmentRequest"; export * from "./AccountingAttachmentResponse"; export * from "./AccountingPeriod"; @@ -21,6 +25,7 @@ export * from "./AccountingPhoneNumberRequest"; export * from "./AccountRequest"; export * from "./AccountRequestAccountType"; export * from "./AccountRequestClassification"; +export * from "./AccountRequestCompany"; export * from "./AccountRequestCurrency"; export * from "./AccountRequestStatus"; export * from "./AccountResponse"; @@ -50,7 +55,9 @@ export * from "./BalanceSheetCurrency"; export * from "./BankFeedAccount"; export * from "./BankFeedAccountAccountType"; export * from "./BankFeedAccountAccountTypeEnum"; +export * from "./BankFeedAccountBatchItemRequest"; export * from "./BankFeedAccountCurrency"; +export * from "./BankFeedAccountEndpointRequest"; export * from "./BankFeedAccountFeedStatus"; export * from "./BankFeedAccountRequest"; export * from "./BankFeedAccountRequestAccountType"; @@ -59,7 +66,9 @@ export * from "./BankFeedAccountRequestFeedStatus"; export * from "./BankFeedAccountResponse"; export * from "./BankFeedTransaction"; export * from "./BankFeedTransactionBankFeedAccount"; +export * from "./BankFeedTransactionBatchItemRequest"; export * from "./BankFeedTransactionCreditOrDebit"; +export * from "./BankFeedTransactionEndpointRequest"; export * from "./BankFeedTransactionRequestRequest"; export * from "./BankFeedTransactionRequestRequestBankFeedAccount"; export * from "./BankFeedTransactionRequestRequestCreditOrDebit"; @@ -78,6 +87,8 @@ export * from "./CompanyInfoCurrency"; export * from "./ComponentTypeEnum"; export * from "./Contact"; export * from "./ContactAddressesItem"; +export * from "./ContactBatchItemRequest"; +export * from "./ContactEndpointRequest"; export * from "./ContactRequest"; export * from "./ContactRequestAddressesItem"; export * from "./ContactRequestStatus"; @@ -93,9 +104,11 @@ export * from "./CreditNoteApplyLineForCreditNoteRequest"; export * from "./CreditNoteApplyLineForCreditNoteRequestInvoice"; export * from "./CreditNoteApplyLineForInvoice"; export * from "./CreditNoteApplyLineForInvoiceCreditNote"; +export * from "./CreditNoteBatchItemRequest"; export * from "./CreditNoteCompany"; export * from "./CreditNoteContact"; export * from "./CreditNoteCurrency"; +export * from "./CreditNoteEndpointRequest"; export * from "./CreditNoteLineItem"; export * from "./CreditNoteLineItemCompany"; export * from "./CreditNoteLineItemContact"; @@ -123,7 +136,6 @@ export * from "./CreditNoteStatusEnum"; export * from "./CreditNoteTrackingCategoriesItem"; export * from "./CreditOrDebitEnum"; export * from "./DataPassthroughRequest"; -export * from "./DataPassthroughRequestMethod"; export * from "./DebugModeLog"; export * from "./DebugModelLogSummary"; export * from "./Employee"; @@ -136,10 +148,12 @@ export * from "./EventTypeEnum"; export * from "./Expense"; export * from "./ExpenseAccount"; export * from "./ExpenseAccountingPeriod"; +export * from "./ExpenseBatchItemRequest"; export * from "./ExpenseCompany"; export * from "./ExpenseContact"; export * from "./ExpenseCurrency"; export * from "./ExpenseEmployee"; +export * from "./ExpenseEndpointRequest"; export * from "./ExpenseLine"; export * from "./ExpenseLineAccount"; export * from "./ExpenseLineContact"; @@ -159,25 +173,35 @@ export * from "./ExpenseLineRequestTrackingCategory"; export * from "./ExpenseLineTrackingCategoriesItem"; export * from "./ExpenseLineTrackingCategory"; export * from "./ExpenseReport"; +export * from "./ExpenseReportAccountingPeriod"; +export * from "./ExpenseReportBatchItemRequest"; export * from "./ExpenseReportCompany"; +export * from "./ExpenseReportCurrency"; +export * from "./ExpenseReportEmployee"; +export * from "./ExpenseReportEndpointRequest"; export * from "./ExpenseReportLine"; export * from "./ExpenseReportLineAccount"; export * from "./ExpenseReportLineCompany"; export * from "./ExpenseReportLineContact"; +export * from "./ExpenseReportLineCurrency"; export * from "./ExpenseReportLineEmployee"; export * from "./ExpenseReportLineProject"; export * from "./ExpenseReportLineRequest"; export * from "./ExpenseReportLineRequestAccount"; export * from "./ExpenseReportLineRequestCompany"; export * from "./ExpenseReportLineRequestContact"; +export * from "./ExpenseReportLineRequestCurrency"; export * from "./ExpenseReportLineRequestEmployee"; export * from "./ExpenseReportLineRequestProject"; export * from "./ExpenseReportLineRequestTaxRate"; +export * from "./ExpenseReportLinesItem"; export * from "./ExpenseReportLineTaxRate"; export * from "./ExpenseReportRequest"; export * from "./ExpenseReportRequestAccountingPeriod"; export * from "./ExpenseReportRequestCompany"; +export * from "./ExpenseReportRequestCurrency"; export * from "./ExpenseReportRequestEmployee"; +export * from "./ExpenseReportRequestStatus"; export * from "./ExpenseReportResponse"; export * from "./ExpenseReportStatus"; export * from "./ExpenseReportStatusEnum"; @@ -230,10 +254,12 @@ export * from "./InvoiceAccountingPeriod"; export * from "./InvoiceAppliedCreditNotesItem"; export * from "./InvoiceAppliedPaymentsItem"; export * from "./InvoiceAppliedVendorCreditsItem"; +export * from "./InvoiceBatchItemRequest"; export * from "./InvoiceCompany"; export * from "./InvoiceContact"; export * from "./InvoiceCurrency"; export * from "./InvoiceEmployee"; +export * from "./InvoiceEndpointRequest"; export * from "./InvoiceLineItem"; export * from "./InvoiceLineItemAccount"; export * from "./InvoiceLineItemContact"; @@ -267,6 +293,7 @@ export * from "./InvoiceRequestStatus"; export * from "./InvoiceRequestTrackingCategoriesItem"; export * from "./InvoiceRequestType"; export * from "./InvoiceResponse"; +export * from "./InvoiceSalesOrdersItem"; export * from "./InvoiceStatus"; export * from "./InvoiceStatusEnum"; export * from "./InvoiceTrackingCategoriesItem"; @@ -276,8 +303,33 @@ export * from "./Issue"; export * from "./IssueStatus"; export * from "./IssueStatusEnum"; export * from "./Item"; +export * from "./ItemBatchItemRequest"; export * from "./ItemCompany"; +export * from "./ItemEndpointRequest"; export * from "./ItemFormatEnum"; +export * from "./ItemFulfillment"; +export * from "./ItemFulfillmentBatchItemRequest"; +export * from "./ItemFulfillmentCompany"; +export * from "./ItemFulfillmentCustomer"; +export * from "./ItemFulfillmentEndpointRequest"; +export * from "./ItemFulfillmentLine"; +export * from "./ItemFulfillmentLineItem"; +export * from "./ItemFulfillmentLineRequest"; +export * from "./ItemFulfillmentLineRequestItem"; +export * from "./ItemFulfillmentLineRequestSalesOrderLine"; +export * from "./ItemFulfillmentLineRequestTrackingCategoriesItem"; +export * from "./ItemFulfillmentLineSalesOrderLine"; +export * from "./ItemFulfillmentLinesItem"; +export * from "./ItemFulfillmentLineTrackingCategoriesItem"; +export * from "./ItemFulfillmentRequest"; +export * from "./ItemFulfillmentRequestCompany"; +export * from "./ItemFulfillmentRequestCustomer"; +export * from "./ItemFulfillmentRequestSalesOrder"; +export * from "./ItemFulfillmentRequestStatus"; +export * from "./ItemFulfillmentResponse"; +export * from "./ItemFulfillmentSalesOrder"; +export * from "./ItemFulfillmentStatus"; +export * from "./ItemFulfillmentStatusEnum"; export * from "./ItemPurchaseAccount"; export * from "./ItemPurchaseTaxRate"; export * from "./ItemRequestRequest"; @@ -298,8 +350,10 @@ export * from "./ItemTypeEnum"; export * from "./JournalEntry"; export * from "./JournalEntryAccountingPeriod"; export * from "./JournalEntryAppliedPaymentsItem"; +export * from "./JournalEntryBatchItemRequest"; export * from "./JournalEntryCompany"; export * from "./JournalEntryCurrency"; +export * from "./JournalEntryEndpointRequest"; export * from "./JournalEntryPaymentsItem"; export * from "./JournalEntryPostingStatus"; export * from "./JournalEntryRequest"; @@ -354,6 +408,7 @@ export * from "./PaginatedGeneralLedgerTransactionList"; export * from "./PaginatedIncomeStatementList"; export * from "./PaginatedInvoiceList"; export * from "./PaginatedIssueList"; +export * from "./PaginatedItemFulfillmentList"; export * from "./PaginatedItemList"; export * from "./PaginatedJournalEntryList"; export * from "./PaginatedPaymentList"; @@ -362,13 +417,14 @@ export * from "./PaginatedPaymentTermList"; export * from "./PaginatedProjectList"; export * from "./PaginatedPurchaseOrderList"; export * from "./PaginatedRemoteFieldClassList"; +export * from "./PaginatedSalesOrderList"; export * from "./PaginatedSyncStatusList"; export * from "./PaginatedTaxRateList"; export * from "./PaginatedTrackingCategoryList"; export * from "./PaginatedTransactionList"; export * from "./PaginatedVendorCreditList"; export * from "./PatchedContactRequest"; -export * from "./PatchedContactRequestAddressesItem"; +export * from "./PatchedContactRequestStatus"; export * from "./PatchedItemRequestRequest"; export * from "./PatchedItemRequestRequestStatus"; export * from "./PatchedItemRequestRequestType"; @@ -382,13 +438,17 @@ export * from "./PatchedPaymentRequestCurrency"; export * from "./PatchedPaymentRequestPaymentMethod"; export * from "./PatchedPaymentRequestTrackingCategoriesItem"; export * from "./PatchedPaymentRequestType"; +export * from "./PatchedVendorCreditRequest"; +export * from "./PatchedVendorCreditRequestCurrency"; export * from "./Payment"; export * from "./PaymentAccount"; export * from "./PaymentAccountingPeriod"; export * from "./PaymentAppliedToLinesItem"; +export * from "./PaymentBatchItemRequest"; export * from "./PaymentCompany"; export * from "./PaymentContact"; export * from "./PaymentCurrency"; +export * from "./PaymentEndpointRequest"; export * from "./PaymentLineItem"; export * from "./PaymentLineItemRequest"; export * from "./PaymentMethod"; @@ -416,9 +476,11 @@ export * from "./ProjectCompany"; export * from "./ProjectContact"; export * from "./PurchaseOrder"; export * from "./PurchaseOrderAccountingPeriod"; +export * from "./PurchaseOrderBatchItemRequest"; export * from "./PurchaseOrderCompany"; export * from "./PurchaseOrderCurrency"; export * from "./PurchaseOrderDeliveryAddress"; +export * from "./PurchaseOrderEndpointRequest"; export * from "./PurchaseOrderLineItem"; export * from "./PurchaseOrderLineItemCurrency"; export * from "./PurchaseOrderLineItemItem"; @@ -439,6 +501,7 @@ export * from "./PurchaseOrderStatus"; export * from "./PurchaseOrderStatusEnum"; export * from "./PurchaseOrderTrackingCategoriesItem"; export * from "./PurchaseOrderVendor"; +export * from "./RegenerateAccountToken"; export * from "./RemoteData"; export * from "./RemoteEndpointInfo"; export * from "./RemoteField"; @@ -455,11 +518,43 @@ export * from "./ReportItem"; export * from "./RequestFormatEnum"; export * from "./ResponseTypeEnum"; export * from "./RoleEnum"; +export * from "./SalesOrder"; +export * from "./SalesOrderBatchItemRequest"; +export * from "./SalesOrderCompany"; +export * from "./SalesOrderCurrency"; +export * from "./SalesOrderCustomer"; +export * from "./SalesOrderEndpointRequest"; +export * from "./SalesOrderLine"; +export * from "./SalesOrderLineCompany"; +export * from "./SalesOrderLineItem"; +export * from "./SalesOrderLineRequest"; +export * from "./SalesOrderLineRequestCompany"; +export * from "./SalesOrderLineRequestItem"; +export * from "./SalesOrderLineRequestTaxRate"; +export * from "./SalesOrderLineRequestTrackingCategoriesItem"; +export * from "./SalesOrderLinesItem"; +export * from "./SalesOrderLineTaxRate"; +export * from "./SalesOrderLineTrackingCategoriesItem"; +export * from "./SalesOrderPaymentTerm"; +export * from "./SalesOrderRequest"; +export * from "./SalesOrderRequestCompany"; +export * from "./SalesOrderRequestCurrency"; +export * from "./SalesOrderRequestCustomer"; +export * from "./SalesOrderRequestPaymentTerm"; +export * from "./SalesOrderRequestShippingAddress"; +export * from "./SalesOrderRequestStatus"; +export * from "./SalesOrderRequestTrackingCategoriesItem"; +export * from "./SalesOrderResponse"; +export * from "./SalesOrderShippingAddress"; +export * from "./SalesOrderStatus"; +export * from "./SalesOrderStatusEnum"; +export * from "./SalesOrderTrackingCategoriesItem"; export * from "./SelectiveSyncConfigurationsUsageEnum"; export * from "./Status7D1Enum"; export * from "./Status895Enum"; export * from "./StatusFd5Enum"; export * from "./SyncStatus"; +export * from "./SyncStatusLastSyncResult"; export * from "./SyncStatusStatus"; export * from "./TaxComponent"; export * from "./TaxComponentComponentType"; @@ -474,6 +569,7 @@ export * from "./TrackingCategoryStatus"; export * from "./Transaction"; export * from "./TransactionAccount"; export * from "./TransactionAccountingPeriod"; +export * from "./TransactionCompany"; export * from "./TransactionContact"; export * from "./TransactionCurrency"; export * from "./TransactionCurrencyEnum"; @@ -492,8 +588,10 @@ export * from "./VendorCreditApplyLineForVendorCredit"; export * from "./VendorCreditApplyLineForVendorCreditInvoice"; export * from "./VendorCreditApplyLineForVendorCreditRequest"; export * from "./VendorCreditApplyLineForVendorCreditRequestInvoice"; +export * from "./VendorCreditBatchItemRequest"; export * from "./VendorCreditCompany"; export * from "./VendorCreditCurrency"; +export * from "./VendorCreditEndpointRequest"; export * from "./VendorCreditLine"; export * from "./VendorCreditLineAccount"; export * from "./VendorCreditLineContact"; diff --git a/src/api/resources/ats/resources/accountToken/client/Client.ts b/src/api/resources/ats/resources/accountToken/client/Client.ts index 9b9fbda56..4b361985b 100644 --- a/src/api/resources/ats/resources/accountToken/client/Client.ts +++ b/src/api/resources/ats/resources/accountToken/client/Client.ts @@ -94,4 +94,73 @@ export class AccountTokenClient { "/ats/v1/account-token/{public_token}", ); } + + /** + * Exchange Linked Account account tokens. + * + * @param {AccountTokenClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.ats.accountToken.regenerateCreate() + */ + public regenerateCreate( + requestOptions?: AccountTokenClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__regenerateCreate(requestOptions)); + } + + private async __regenerateCreate( + requestOptions?: AccountTokenClient.RequestOptions, + ): Promise> { + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ats/v1/account-token/regenerate", + ), + method: "POST", + headers: _headers, + queryParameters: requestOptions?.queryParams, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ats.RegenerateAccountToken.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "POST", + "/ats/v1/account-token/regenerate", + ); + } } diff --git a/src/api/resources/ats/resources/activities/client/Client.ts b/src/api/resources/ats/resources/activities/client/Client.ts index 3097293ed..fa38fbd8e 100644 --- a/src/api/resources/ats/resources/activities/client/Client.ts +++ b/src/api/resources/ats/resources/activities/client/Client.ts @@ -34,7 +34,6 @@ export class ActivitiesClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "user", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -47,104 +46,114 @@ export class ActivitiesClient { * userId: "user_id" * }) */ - public list( + public async list( request: Merge.ats.ActivitiesListRequest = {}, requestOptions?: ActivitiesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ats.ActivitiesListRequest = {}, - requestOptions?: ActivitiesClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteFields, - remoteId, - showEnumOrigins, - userId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: expand != null ? expand : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_fields: - remoteFields != null - ? serializers.ats.ActivitiesListRequestRemoteFields.jsonOrThrow(remoteFields, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - remote_id: remoteId, - show_enum_origins: - showEnumOrigins != null - ? serializers.ats.ActivitiesListRequestShowEnumOrigins.jsonOrThrow(showEnumOrigins, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - user_id: userId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ats.ActivitiesListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteFields, + remoteId, + showEnumOrigins, + userId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_fields: + remoteFields != null + ? serializers.ats.ActivitiesListRequestRemoteFields.jsonOrThrow(remoteFields, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + remote_id: remoteId, + show_enum_origins: + showEnumOrigins != null + ? serializers.ats.ActivitiesListRequestShowEnumOrigins.jsonOrThrow(showEnumOrigins, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + user_id: userId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ats/v1/activities", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ats.PaginatedActivityList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/activities"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ats/v1/activities", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ats.PaginatedActivityList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/activities"); } /** @@ -236,7 +245,6 @@ export class ActivitiesClient { * * @example * await client.ats.activities.retrieve("id", { - * expand: "user", * includeRemoteData: true, * includeShellData: true, * remoteFields: "activity_type", @@ -258,7 +266,7 @@ export class ActivitiesClient { ): Promise> { const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; const _queryParams: Record = { - expand: expand != null ? expand : undefined, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, remote_fields: diff --git a/src/api/resources/ats/resources/activities/client/requests/ActivitiesListRequest.ts b/src/api/resources/ats/resources/activities/client/requests/ActivitiesListRequest.ts index 84fc25a65..c370b2710 100644 --- a/src/api/resources/ats/resources/activities/client/requests/ActivitiesListRequest.ts +++ b/src/api/resources/ats/resources/activities/client/requests/ActivitiesListRequest.ts @@ -8,7 +8,6 @@ import type * as Merge from "../../../../../../index"; * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "user", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -29,7 +28,7 @@ export interface ActivitiesListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "user"; + expand?: "user" | "user"[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -40,7 +39,7 @@ export interface ActivitiesListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** Deprecated. Use show_enum_origins. */ remoteFields?: Merge.ats.ActivitiesListRequestRemoteFields; diff --git a/src/api/resources/ats/resources/activities/client/requests/ActivitiesRetrieveRequest.ts b/src/api/resources/ats/resources/activities/client/requests/ActivitiesRetrieveRequest.ts index d1d74bdf6..c46f83465 100644 --- a/src/api/resources/ats/resources/activities/client/requests/ActivitiesRetrieveRequest.ts +++ b/src/api/resources/ats/resources/activities/client/requests/ActivitiesRetrieveRequest.ts @@ -5,7 +5,6 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "user", * includeRemoteData: true, * includeShellData: true, * remoteFields: "activity_type", @@ -14,7 +13,7 @@ import type * as Merge from "../../../../../../index"; */ export interface ActivitiesRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "user"; + expand?: "user" | "user"[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/ats/resources/applications/client/Client.ts b/src/api/resources/ats/resources/applications/client/Client.ts index 6c532cb32..f2a9eae58 100644 --- a/src/api/resources/ats/resources/applications/client/Client.ts +++ b/src/api/resources/ats/resources/applications/client/Client.ts @@ -37,7 +37,6 @@ export class ApplicationsClient { * creditedToId: "credited_to_id", * currentStageId: "current_stage_id", * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "candidate", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -50,105 +49,120 @@ export class ApplicationsClient { * source: "source" * }) */ - public list( + public async list( request: Merge.ats.ApplicationsListRequest = {}, requestOptions?: ApplicationsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ats.ApplicationsListRequest = {}, - requestOptions?: ApplicationsClient.RequestOptions, - ): Promise> { - const { - candidateId, - createdAfter, - createdBefore, - creditedToId, - currentStageId, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - jobId, - modifiedAfter, - modifiedBefore, - pageSize, - rejectReasonId, - remoteId, - source, - } = request; - const _queryParams: Record = { - candidate_id: candidateId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - credited_to_id: creditedToId, - current_stage_id: currentStageId, - cursor, - expand: - expand != null - ? serializers.ats.ApplicationsListRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - job_id: jobId, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - reject_reason_id: rejectReasonId, - remote_id: remoteId, - source, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ats.ApplicationsListRequest, + ): Promise> => { + const { + candidateId, + createdAfter, + createdBefore, + creditedToId, + currentStageId, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + jobId, + modifiedAfter, + modifiedBefore, + pageSize, + rejectReasonId, + remoteId, + source, + } = request; + const _queryParams: Record = { + candidate_id: candidateId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + credited_to_id: creditedToId, + current_stage_id: currentStageId, + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.ats.ApplicationsListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.ats.ApplicationsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + job_id: jobId, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + reject_reason_id: rejectReasonId, + remote_id: remoteId, + source, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ats/v1/applications", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ats.PaginatedApplicationList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/applications"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ats/v1/applications", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ats.PaginatedApplicationList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/applications"); } /** @@ -243,7 +257,6 @@ export class ApplicationsClient { * * @example * await client.ats.applications.retrieve("id", { - * expand: "candidate", * includeRemoteData: true, * includeShellData: true * }) @@ -263,12 +276,17 @@ export class ApplicationsClient { ): Promise> { const { expand, includeRemoteData, includeShellData } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.ats.ApplicationsRetrieveRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.ats.ApplicationsRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.ats.ApplicationsRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, }; diff --git a/src/api/resources/ats/resources/applications/client/requests/ApplicationsListRequest.ts b/src/api/resources/ats/resources/applications/client/requests/ApplicationsListRequest.ts index b6acfc9fa..efa9895ef 100644 --- a/src/api/resources/ats/resources/applications/client/requests/ApplicationsListRequest.ts +++ b/src/api/resources/ats/resources/applications/client/requests/ApplicationsListRequest.ts @@ -11,7 +11,6 @@ import type * as Merge from "../../../../../../index"; * creditedToId: "credited_to_id", * currentStageId: "current_stage_id", * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "candidate", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -38,7 +37,7 @@ export interface ApplicationsListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.ats.ApplicationsListRequestExpand; + expand?: Merge.ats.ApplicationsListRequestExpandItem | Merge.ats.ApplicationsListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ diff --git a/src/api/resources/ats/resources/applications/client/requests/ApplicationsRetrieveRequest.ts b/src/api/resources/ats/resources/applications/client/requests/ApplicationsRetrieveRequest.ts index 6fcf4a4e1..a2994a5b0 100644 --- a/src/api/resources/ats/resources/applications/client/requests/ApplicationsRetrieveRequest.ts +++ b/src/api/resources/ats/resources/applications/client/requests/ApplicationsRetrieveRequest.ts @@ -5,14 +5,13 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "candidate", * includeRemoteData: true, * includeShellData: true * } */ export interface ApplicationsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.ats.ApplicationsRetrieveRequestExpand; + expand?: Merge.ats.ApplicationsRetrieveRequestExpandItem | Merge.ats.ApplicationsRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/ats/resources/applications/types/ApplicationsListRequestExpand.ts b/src/api/resources/ats/resources/applications/types/ApplicationsListRequestExpand.ts deleted file mode 100644 index 5df0deed5..000000000 --- a/src/api/resources/ats/resources/applications/types/ApplicationsListRequestExpand.ts +++ /dev/null @@ -1,397 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const ApplicationsListRequestExpand = { - Candidate: "candidate", - CandidateCreditedTo: "candidate,credited_to", - CandidateCreditedToCurrentStage: "candidate,credited_to,current_stage", - CandidateCreditedToCurrentStageRejectReason: "candidate,credited_to,current_stage,reject_reason", - CandidateCreditedToRejectReason: "candidate,credited_to,reject_reason", - CandidateCurrentStage: "candidate,current_stage", - CandidateCurrentStageRejectReason: "candidate,current_stage,reject_reason", - CandidateJob: "candidate,job", - CandidateJobCreditedTo: "candidate,job,credited_to", - CandidateJobCreditedToCurrentStage: "candidate,job,credited_to,current_stage", - CandidateJobCreditedToCurrentStageRejectReason: "candidate,job,credited_to,current_stage,reject_reason", - CandidateJobCreditedToRejectReason: "candidate,job,credited_to,reject_reason", - CandidateJobCurrentStage: "candidate,job,current_stage", - CandidateJobCurrentStageRejectReason: "candidate,job,current_stage,reject_reason", - CandidateJobRejectReason: "candidate,job,reject_reason", - CandidateRejectReason: "candidate,reject_reason", - CreditedTo: "credited_to", - CreditedToCurrentStage: "credited_to,current_stage", - CreditedToCurrentStageRejectReason: "credited_to,current_stage,reject_reason", - CreditedToRejectReason: "credited_to,reject_reason", - CurrentStage: "current_stage", - CurrentStageRejectReason: "current_stage,reject_reason", - Job: "job", - JobCreditedTo: "job,credited_to", - JobCreditedToCurrentStage: "job,credited_to,current_stage", - JobCreditedToCurrentStageRejectReason: "job,credited_to,current_stage,reject_reason", - JobCreditedToRejectReason: "job,credited_to,reject_reason", - JobCurrentStage: "job,current_stage", - JobCurrentStageRejectReason: "job,current_stage,reject_reason", - JobRejectReason: "job,reject_reason", - Offers: "offers", - OffersCandidate: "offers,candidate", - OffersCandidateCreditedTo: "offers,candidate,credited_to", - OffersCandidateCreditedToCurrentStage: "offers,candidate,credited_to,current_stage", - OffersCandidateCreditedToCurrentStageRejectReason: "offers,candidate,credited_to,current_stage,reject_reason", - OffersCandidateCreditedToRejectReason: "offers,candidate,credited_to,reject_reason", - OffersCandidateCurrentStage: "offers,candidate,current_stage", - OffersCandidateCurrentStageRejectReason: "offers,candidate,current_stage,reject_reason", - OffersCandidateJob: "offers,candidate,job", - OffersCandidateJobCreditedTo: "offers,candidate,job,credited_to", - OffersCandidateJobCreditedToCurrentStage: "offers,candidate,job,credited_to,current_stage", - OffersCandidateJobCreditedToCurrentStageRejectReason: - "offers,candidate,job,credited_to,current_stage,reject_reason", - OffersCandidateJobCreditedToRejectReason: "offers,candidate,job,credited_to,reject_reason", - OffersCandidateJobCurrentStage: "offers,candidate,job,current_stage", - OffersCandidateJobCurrentStageRejectReason: "offers,candidate,job,current_stage,reject_reason", - OffersCandidateJobRejectReason: "offers,candidate,job,reject_reason", - OffersCandidateRejectReason: "offers,candidate,reject_reason", - OffersCreditedTo: "offers,credited_to", - OffersCreditedToCurrentStage: "offers,credited_to,current_stage", - OffersCreditedToCurrentStageRejectReason: "offers,credited_to,current_stage,reject_reason", - OffersCreditedToRejectReason: "offers,credited_to,reject_reason", - OffersCurrentStage: "offers,current_stage", - OffersCurrentStageRejectReason: "offers,current_stage,reject_reason", - OffersJob: "offers,job", - OffersJobCreditedTo: "offers,job,credited_to", - OffersJobCreditedToCurrentStage: "offers,job,credited_to,current_stage", - OffersJobCreditedToCurrentStageRejectReason: "offers,job,credited_to,current_stage,reject_reason", - OffersJobCreditedToRejectReason: "offers,job,credited_to,reject_reason", - OffersJobCurrentStage: "offers,job,current_stage", - OffersJobCurrentStageRejectReason: "offers,job,current_stage,reject_reason", - OffersJobRejectReason: "offers,job,reject_reason", - OffersRejectReason: "offers,reject_reason", - OffersScreeningQuestionAnswers: "offers,screening_question_answers", - OffersScreeningQuestionAnswersCandidate: "offers,screening_question_answers,candidate", - OffersScreeningQuestionAnswersCandidateCreditedTo: "offers,screening_question_answers,candidate,credited_to", - OffersScreeningQuestionAnswersCandidateCreditedToCurrentStage: - "offers,screening_question_answers,candidate,credited_to,current_stage", - OffersScreeningQuestionAnswersCandidateCreditedToCurrentStageRejectReason: - "offers,screening_question_answers,candidate,credited_to,current_stage,reject_reason", - OffersScreeningQuestionAnswersCandidateCreditedToRejectReason: - "offers,screening_question_answers,candidate,credited_to,reject_reason", - OffersScreeningQuestionAnswersCandidateCurrentStage: "offers,screening_question_answers,candidate,current_stage", - OffersScreeningQuestionAnswersCandidateCurrentStageRejectReason: - "offers,screening_question_answers,candidate,current_stage,reject_reason", - OffersScreeningQuestionAnswersCandidateJob: "offers,screening_question_answers,candidate,job", - OffersScreeningQuestionAnswersCandidateJobCreditedTo: "offers,screening_question_answers,candidate,job,credited_to", - OffersScreeningQuestionAnswersCandidateJobCreditedToCurrentStage: - "offers,screening_question_answers,candidate,job,credited_to,current_stage", - OffersScreeningQuestionAnswersCandidateJobCreditedToCurrentStageRejectReason: - "offers,screening_question_answers,candidate,job,credited_to,current_stage,reject_reason", - OffersScreeningQuestionAnswersCandidateJobCreditedToRejectReason: - "offers,screening_question_answers,candidate,job,credited_to,reject_reason", - OffersScreeningQuestionAnswersCandidateJobCurrentStage: - "offers,screening_question_answers,candidate,job,current_stage", - OffersScreeningQuestionAnswersCandidateJobCurrentStageRejectReason: - "offers,screening_question_answers,candidate,job,current_stage,reject_reason", - OffersScreeningQuestionAnswersCandidateJobRejectReason: - "offers,screening_question_answers,candidate,job,reject_reason", - OffersScreeningQuestionAnswersCandidateRejectReason: "offers,screening_question_answers,candidate,reject_reason", - OffersScreeningQuestionAnswersCreditedTo: "offers,screening_question_answers,credited_to", - OffersScreeningQuestionAnswersCreditedToCurrentStage: "offers,screening_question_answers,credited_to,current_stage", - OffersScreeningQuestionAnswersCreditedToCurrentStageRejectReason: - "offers,screening_question_answers,credited_to,current_stage,reject_reason", - OffersScreeningQuestionAnswersCreditedToRejectReason: "offers,screening_question_answers,credited_to,reject_reason", - OffersScreeningQuestionAnswersCurrentStage: "offers,screening_question_answers,current_stage", - OffersScreeningQuestionAnswersCurrentStageRejectReason: - "offers,screening_question_answers,current_stage,reject_reason", - OffersScreeningQuestionAnswersJob: "offers,screening_question_answers,job", - OffersScreeningQuestionAnswersJobCreditedTo: "offers,screening_question_answers,job,credited_to", - OffersScreeningQuestionAnswersJobCreditedToCurrentStage: - "offers,screening_question_answers,job,credited_to,current_stage", - OffersScreeningQuestionAnswersJobCreditedToCurrentStageRejectReason: - "offers,screening_question_answers,job,credited_to,current_stage,reject_reason", - OffersScreeningQuestionAnswersJobCreditedToRejectReason: - "offers,screening_question_answers,job,credited_to,reject_reason", - OffersScreeningQuestionAnswersJobCurrentStage: "offers,screening_question_answers,job,current_stage", - OffersScreeningQuestionAnswersJobCurrentStageRejectReason: - "offers,screening_question_answers,job,current_stage,reject_reason", - OffersScreeningQuestionAnswersJobRejectReason: "offers,screening_question_answers,job,reject_reason", - OffersScreeningQuestionAnswersRejectReason: "offers,screening_question_answers,reject_reason", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestion: - "offers,screening_question_answers,screening_question_answers.question", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidate: - "offers,screening_question_answers,screening_question_answers.question,candidate", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateCreditedTo: - "offers,screening_question_answers,screening_question_answers.question,candidate,credited_to", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateCreditedToCurrentStage: - "offers,screening_question_answers,screening_question_answers.question,candidate,credited_to,current_stage", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateCreditedToCurrentStageRejectReason: - "offers,screening_question_answers,screening_question_answers.question,candidate,credited_to,current_stage,reject_reason", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateCreditedToRejectReason: - "offers,screening_question_answers,screening_question_answers.question,candidate,credited_to,reject_reason", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateCurrentStage: - "offers,screening_question_answers,screening_question_answers.question,candidate,current_stage", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateCurrentStageRejectReason: - "offers,screening_question_answers,screening_question_answers.question,candidate,current_stage,reject_reason", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateJob: - "offers,screening_question_answers,screening_question_answers.question,candidate,job", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateJobCreditedTo: - "offers,screening_question_answers,screening_question_answers.question,candidate,job,credited_to", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateJobCreditedToCurrentStage: - "offers,screening_question_answers,screening_question_answers.question,candidate,job,credited_to,current_stage", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateJobCreditedToCurrentStageRejectReason: - "offers,screening_question_answers,screening_question_answers.question,candidate,job,credited_to,current_stage,reject_reason", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateJobCreditedToRejectReason: - "offers,screening_question_answers,screening_question_answers.question,candidate,job,credited_to,reject_reason", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateJobCurrentStage: - "offers,screening_question_answers,screening_question_answers.question,candidate,job,current_stage", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateJobCurrentStageRejectReason: - "offers,screening_question_answers,screening_question_answers.question,candidate,job,current_stage,reject_reason", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateJobRejectReason: - "offers,screening_question_answers,screening_question_answers.question,candidate,job,reject_reason", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateRejectReason: - "offers,screening_question_answers,screening_question_answers.question,candidate,reject_reason", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCreditedTo: - "offers,screening_question_answers,screening_question_answers.question,credited_to", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCreditedToCurrentStage: - "offers,screening_question_answers,screening_question_answers.question,credited_to,current_stage", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCreditedToCurrentStageRejectReason: - "offers,screening_question_answers,screening_question_answers.question,credited_to,current_stage,reject_reason", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCreditedToRejectReason: - "offers,screening_question_answers,screening_question_answers.question,credited_to,reject_reason", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCurrentStage: - "offers,screening_question_answers,screening_question_answers.question,current_stage", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCurrentStageRejectReason: - "offers,screening_question_answers,screening_question_answers.question,current_stage,reject_reason", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionJob: - "offers,screening_question_answers,screening_question_answers.question,job", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionJobCreditedTo: - "offers,screening_question_answers,screening_question_answers.question,job,credited_to", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionJobCreditedToCurrentStage: - "offers,screening_question_answers,screening_question_answers.question,job,credited_to,current_stage", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionJobCreditedToCurrentStageRejectReason: - "offers,screening_question_answers,screening_question_answers.question,job,credited_to,current_stage,reject_reason", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionJobCreditedToRejectReason: - "offers,screening_question_answers,screening_question_answers.question,job,credited_to,reject_reason", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionJobCurrentStage: - "offers,screening_question_answers,screening_question_answers.question,job,current_stage", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionJobCurrentStageRejectReason: - "offers,screening_question_answers,screening_question_answers.question,job,current_stage,reject_reason", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionJobRejectReason: - "offers,screening_question_answers,screening_question_answers.question,job,reject_reason", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionRejectReason: - "offers,screening_question_answers,screening_question_answers.question,reject_reason", - OffersScreeningQuestionAnswersQuestion: "offers,screening_question_answers.question", - OffersScreeningQuestionAnswersQuestionCandidate: "offers,screening_question_answers.question,candidate", - OffersScreeningQuestionAnswersQuestionCandidateCreditedTo: - "offers,screening_question_answers.question,candidate,credited_to", - OffersScreeningQuestionAnswersQuestionCandidateCreditedToCurrentStage: - "offers,screening_question_answers.question,candidate,credited_to,current_stage", - OffersScreeningQuestionAnswersQuestionCandidateCreditedToCurrentStageRejectReason: - "offers,screening_question_answers.question,candidate,credited_to,current_stage,reject_reason", - OffersScreeningQuestionAnswersQuestionCandidateCreditedToRejectReason: - "offers,screening_question_answers.question,candidate,credited_to,reject_reason", - OffersScreeningQuestionAnswersQuestionCandidateCurrentStage: - "offers,screening_question_answers.question,candidate,current_stage", - OffersScreeningQuestionAnswersQuestionCandidateCurrentStageRejectReason: - "offers,screening_question_answers.question,candidate,current_stage,reject_reason", - OffersScreeningQuestionAnswersQuestionCandidateJob: "offers,screening_question_answers.question,candidate,job", - OffersScreeningQuestionAnswersQuestionCandidateJobCreditedTo: - "offers,screening_question_answers.question,candidate,job,credited_to", - OffersScreeningQuestionAnswersQuestionCandidateJobCreditedToCurrentStage: - "offers,screening_question_answers.question,candidate,job,credited_to,current_stage", - OffersScreeningQuestionAnswersQuestionCandidateJobCreditedToCurrentStageRejectReason: - "offers,screening_question_answers.question,candidate,job,credited_to,current_stage,reject_reason", - OffersScreeningQuestionAnswersQuestionCandidateJobCreditedToRejectReason: - "offers,screening_question_answers.question,candidate,job,credited_to,reject_reason", - OffersScreeningQuestionAnswersQuestionCandidateJobCurrentStage: - "offers,screening_question_answers.question,candidate,job,current_stage", - OffersScreeningQuestionAnswersQuestionCandidateJobCurrentStageRejectReason: - "offers,screening_question_answers.question,candidate,job,current_stage,reject_reason", - OffersScreeningQuestionAnswersQuestionCandidateJobRejectReason: - "offers,screening_question_answers.question,candidate,job,reject_reason", - OffersScreeningQuestionAnswersQuestionCandidateRejectReason: - "offers,screening_question_answers.question,candidate,reject_reason", - OffersScreeningQuestionAnswersQuestionCreditedTo: "offers,screening_question_answers.question,credited_to", - OffersScreeningQuestionAnswersQuestionCreditedToCurrentStage: - "offers,screening_question_answers.question,credited_to,current_stage", - OffersScreeningQuestionAnswersQuestionCreditedToCurrentStageRejectReason: - "offers,screening_question_answers.question,credited_to,current_stage,reject_reason", - OffersScreeningQuestionAnswersQuestionCreditedToRejectReason: - "offers,screening_question_answers.question,credited_to,reject_reason", - OffersScreeningQuestionAnswersQuestionCurrentStage: "offers,screening_question_answers.question,current_stage", - OffersScreeningQuestionAnswersQuestionCurrentStageRejectReason: - "offers,screening_question_answers.question,current_stage,reject_reason", - OffersScreeningQuestionAnswersQuestionJob: "offers,screening_question_answers.question,job", - OffersScreeningQuestionAnswersQuestionJobCreditedTo: "offers,screening_question_answers.question,job,credited_to", - OffersScreeningQuestionAnswersQuestionJobCreditedToCurrentStage: - "offers,screening_question_answers.question,job,credited_to,current_stage", - OffersScreeningQuestionAnswersQuestionJobCreditedToCurrentStageRejectReason: - "offers,screening_question_answers.question,job,credited_to,current_stage,reject_reason", - OffersScreeningQuestionAnswersQuestionJobCreditedToRejectReason: - "offers,screening_question_answers.question,job,credited_to,reject_reason", - OffersScreeningQuestionAnswersQuestionJobCurrentStage: - "offers,screening_question_answers.question,job,current_stage", - OffersScreeningQuestionAnswersQuestionJobCurrentStageRejectReason: - "offers,screening_question_answers.question,job,current_stage,reject_reason", - OffersScreeningQuestionAnswersQuestionJobRejectReason: - "offers,screening_question_answers.question,job,reject_reason", - OffersScreeningQuestionAnswersQuestionRejectReason: "offers,screening_question_answers.question,reject_reason", - RejectReason: "reject_reason", - ScreeningQuestionAnswers: "screening_question_answers", - ScreeningQuestionAnswersCandidate: "screening_question_answers,candidate", - ScreeningQuestionAnswersCandidateCreditedTo: "screening_question_answers,candidate,credited_to", - ScreeningQuestionAnswersCandidateCreditedToCurrentStage: - "screening_question_answers,candidate,credited_to,current_stage", - ScreeningQuestionAnswersCandidateCreditedToCurrentStageRejectReason: - "screening_question_answers,candidate,credited_to,current_stage,reject_reason", - ScreeningQuestionAnswersCandidateCreditedToRejectReason: - "screening_question_answers,candidate,credited_to,reject_reason", - ScreeningQuestionAnswersCandidateCurrentStage: "screening_question_answers,candidate,current_stage", - ScreeningQuestionAnswersCandidateCurrentStageRejectReason: - "screening_question_answers,candidate,current_stage,reject_reason", - ScreeningQuestionAnswersCandidateJob: "screening_question_answers,candidate,job", - ScreeningQuestionAnswersCandidateJobCreditedTo: "screening_question_answers,candidate,job,credited_to", - ScreeningQuestionAnswersCandidateJobCreditedToCurrentStage: - "screening_question_answers,candidate,job,credited_to,current_stage", - ScreeningQuestionAnswersCandidateJobCreditedToCurrentStageRejectReason: - "screening_question_answers,candidate,job,credited_to,current_stage,reject_reason", - ScreeningQuestionAnswersCandidateJobCreditedToRejectReason: - "screening_question_answers,candidate,job,credited_to,reject_reason", - ScreeningQuestionAnswersCandidateJobCurrentStage: "screening_question_answers,candidate,job,current_stage", - ScreeningQuestionAnswersCandidateJobCurrentStageRejectReason: - "screening_question_answers,candidate,job,current_stage,reject_reason", - ScreeningQuestionAnswersCandidateJobRejectReason: "screening_question_answers,candidate,job,reject_reason", - ScreeningQuestionAnswersCandidateRejectReason: "screening_question_answers,candidate,reject_reason", - ScreeningQuestionAnswersCreditedTo: "screening_question_answers,credited_to", - ScreeningQuestionAnswersCreditedToCurrentStage: "screening_question_answers,credited_to,current_stage", - ScreeningQuestionAnswersCreditedToCurrentStageRejectReason: - "screening_question_answers,credited_to,current_stage,reject_reason", - ScreeningQuestionAnswersCreditedToRejectReason: "screening_question_answers,credited_to,reject_reason", - ScreeningQuestionAnswersCurrentStage: "screening_question_answers,current_stage", - ScreeningQuestionAnswersCurrentStageRejectReason: "screening_question_answers,current_stage,reject_reason", - ScreeningQuestionAnswersJob: "screening_question_answers,job", - ScreeningQuestionAnswersJobCreditedTo: "screening_question_answers,job,credited_to", - ScreeningQuestionAnswersJobCreditedToCurrentStage: "screening_question_answers,job,credited_to,current_stage", - ScreeningQuestionAnswersJobCreditedToCurrentStageRejectReason: - "screening_question_answers,job,credited_to,current_stage,reject_reason", - ScreeningQuestionAnswersJobCreditedToRejectReason: "screening_question_answers,job,credited_to,reject_reason", - ScreeningQuestionAnswersJobCurrentStage: "screening_question_answers,job,current_stage", - ScreeningQuestionAnswersJobCurrentStageRejectReason: "screening_question_answers,job,current_stage,reject_reason", - ScreeningQuestionAnswersJobRejectReason: "screening_question_answers,job,reject_reason", - ScreeningQuestionAnswersRejectReason: "screening_question_answers,reject_reason", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestion: - "screening_question_answers,screening_question_answers.question", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidate: - "screening_question_answers,screening_question_answers.question,candidate", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateCreditedTo: - "screening_question_answers,screening_question_answers.question,candidate,credited_to", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateCreditedToCurrentStage: - "screening_question_answers,screening_question_answers.question,candidate,credited_to,current_stage", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateCreditedToCurrentStageRejectReason: - "screening_question_answers,screening_question_answers.question,candidate,credited_to,current_stage,reject_reason", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateCreditedToRejectReason: - "screening_question_answers,screening_question_answers.question,candidate,credited_to,reject_reason", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateCurrentStage: - "screening_question_answers,screening_question_answers.question,candidate,current_stage", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateCurrentStageRejectReason: - "screening_question_answers,screening_question_answers.question,candidate,current_stage,reject_reason", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateJob: - "screening_question_answers,screening_question_answers.question,candidate,job", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateJobCreditedTo: - "screening_question_answers,screening_question_answers.question,candidate,job,credited_to", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateJobCreditedToCurrentStage: - "screening_question_answers,screening_question_answers.question,candidate,job,credited_to,current_stage", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateJobCreditedToCurrentStageRejectReason: - "screening_question_answers,screening_question_answers.question,candidate,job,credited_to,current_stage,reject_reason", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateJobCreditedToRejectReason: - "screening_question_answers,screening_question_answers.question,candidate,job,credited_to,reject_reason", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateJobCurrentStage: - "screening_question_answers,screening_question_answers.question,candidate,job,current_stage", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateJobCurrentStageRejectReason: - "screening_question_answers,screening_question_answers.question,candidate,job,current_stage,reject_reason", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateJobRejectReason: - "screening_question_answers,screening_question_answers.question,candidate,job,reject_reason", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateRejectReason: - "screening_question_answers,screening_question_answers.question,candidate,reject_reason", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCreditedTo: - "screening_question_answers,screening_question_answers.question,credited_to", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCreditedToCurrentStage: - "screening_question_answers,screening_question_answers.question,credited_to,current_stage", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCreditedToCurrentStageRejectReason: - "screening_question_answers,screening_question_answers.question,credited_to,current_stage,reject_reason", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCreditedToRejectReason: - "screening_question_answers,screening_question_answers.question,credited_to,reject_reason", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCurrentStage: - "screening_question_answers,screening_question_answers.question,current_stage", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCurrentStageRejectReason: - "screening_question_answers,screening_question_answers.question,current_stage,reject_reason", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionJob: - "screening_question_answers,screening_question_answers.question,job", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionJobCreditedTo: - "screening_question_answers,screening_question_answers.question,job,credited_to", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionJobCreditedToCurrentStage: - "screening_question_answers,screening_question_answers.question,job,credited_to,current_stage", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionJobCreditedToCurrentStageRejectReason: - "screening_question_answers,screening_question_answers.question,job,credited_to,current_stage,reject_reason", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionJobCreditedToRejectReason: - "screening_question_answers,screening_question_answers.question,job,credited_to,reject_reason", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionJobCurrentStage: - "screening_question_answers,screening_question_answers.question,job,current_stage", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionJobCurrentStageRejectReason: - "screening_question_answers,screening_question_answers.question,job,current_stage,reject_reason", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionJobRejectReason: - "screening_question_answers,screening_question_answers.question,job,reject_reason", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionRejectReason: - "screening_question_answers,screening_question_answers.question,reject_reason", - ScreeningQuestionAnswersQuestion: "screening_question_answers.question", - ScreeningQuestionAnswersQuestionCandidate: "screening_question_answers.question,candidate", - ScreeningQuestionAnswersQuestionCandidateCreditedTo: "screening_question_answers.question,candidate,credited_to", - ScreeningQuestionAnswersQuestionCandidateCreditedToCurrentStage: - "screening_question_answers.question,candidate,credited_to,current_stage", - ScreeningQuestionAnswersQuestionCandidateCreditedToCurrentStageRejectReason: - "screening_question_answers.question,candidate,credited_to,current_stage,reject_reason", - ScreeningQuestionAnswersQuestionCandidateCreditedToRejectReason: - "screening_question_answers.question,candidate,credited_to,reject_reason", - ScreeningQuestionAnswersQuestionCandidateCurrentStage: - "screening_question_answers.question,candidate,current_stage", - ScreeningQuestionAnswersQuestionCandidateCurrentStageRejectReason: - "screening_question_answers.question,candidate,current_stage,reject_reason", - ScreeningQuestionAnswersQuestionCandidateJob: "screening_question_answers.question,candidate,job", - ScreeningQuestionAnswersQuestionCandidateJobCreditedTo: - "screening_question_answers.question,candidate,job,credited_to", - ScreeningQuestionAnswersQuestionCandidateJobCreditedToCurrentStage: - "screening_question_answers.question,candidate,job,credited_to,current_stage", - ScreeningQuestionAnswersQuestionCandidateJobCreditedToCurrentStageRejectReason: - "screening_question_answers.question,candidate,job,credited_to,current_stage,reject_reason", - ScreeningQuestionAnswersQuestionCandidateJobCreditedToRejectReason: - "screening_question_answers.question,candidate,job,credited_to,reject_reason", - ScreeningQuestionAnswersQuestionCandidateJobCurrentStage: - "screening_question_answers.question,candidate,job,current_stage", - ScreeningQuestionAnswersQuestionCandidateJobCurrentStageRejectReason: - "screening_question_answers.question,candidate,job,current_stage,reject_reason", - ScreeningQuestionAnswersQuestionCandidateJobRejectReason: - "screening_question_answers.question,candidate,job,reject_reason", - ScreeningQuestionAnswersQuestionCandidateRejectReason: - "screening_question_answers.question,candidate,reject_reason", - ScreeningQuestionAnswersQuestionCreditedTo: "screening_question_answers.question,credited_to", - ScreeningQuestionAnswersQuestionCreditedToCurrentStage: - "screening_question_answers.question,credited_to,current_stage", - ScreeningQuestionAnswersQuestionCreditedToCurrentStageRejectReason: - "screening_question_answers.question,credited_to,current_stage,reject_reason", - ScreeningQuestionAnswersQuestionCreditedToRejectReason: - "screening_question_answers.question,credited_to,reject_reason", - ScreeningQuestionAnswersQuestionCurrentStage: "screening_question_answers.question,current_stage", - ScreeningQuestionAnswersQuestionCurrentStageRejectReason: - "screening_question_answers.question,current_stage,reject_reason", - ScreeningQuestionAnswersQuestionJob: "screening_question_answers.question,job", - ScreeningQuestionAnswersQuestionJobCreditedTo: "screening_question_answers.question,job,credited_to", - ScreeningQuestionAnswersQuestionJobCreditedToCurrentStage: - "screening_question_answers.question,job,credited_to,current_stage", - ScreeningQuestionAnswersQuestionJobCreditedToCurrentStageRejectReason: - "screening_question_answers.question,job,credited_to,current_stage,reject_reason", - ScreeningQuestionAnswersQuestionJobCreditedToRejectReason: - "screening_question_answers.question,job,credited_to,reject_reason", - ScreeningQuestionAnswersQuestionJobCurrentStage: "screening_question_answers.question,job,current_stage", - ScreeningQuestionAnswersQuestionJobCurrentStageRejectReason: - "screening_question_answers.question,job,current_stage,reject_reason", - ScreeningQuestionAnswersQuestionJobRejectReason: "screening_question_answers.question,job,reject_reason", - ScreeningQuestionAnswersQuestionRejectReason: "screening_question_answers.question,reject_reason", -} as const; -export type ApplicationsListRequestExpand = - (typeof ApplicationsListRequestExpand)[keyof typeof ApplicationsListRequestExpand]; diff --git a/src/api/resources/ats/resources/applications/types/ApplicationsListRequestExpandItem.ts b/src/api/resources/ats/resources/applications/types/ApplicationsListRequestExpandItem.ts new file mode 100644 index 000000000..18e4443a0 --- /dev/null +++ b/src/api/resources/ats/resources/applications/types/ApplicationsListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +export const ApplicationsListRequestExpandItem = { + Candidate: "candidate", + CreditedTo: "credited_to", + CurrentStage: "current_stage", + Job: "job", + Offers: "offers", + RejectReason: "reject_reason", + ScreeningQuestionAnswers: "screening_question_answers", + ScreeningQuestionAnswersQuestion: "screening_question_answers.question", +} as const; +export type ApplicationsListRequestExpandItem = + (typeof ApplicationsListRequestExpandItem)[keyof typeof ApplicationsListRequestExpandItem]; diff --git a/src/api/resources/ats/resources/applications/types/ApplicationsRetrieveRequestExpand.ts b/src/api/resources/ats/resources/applications/types/ApplicationsRetrieveRequestExpand.ts deleted file mode 100644 index 4c51b0f95..000000000 --- a/src/api/resources/ats/resources/applications/types/ApplicationsRetrieveRequestExpand.ts +++ /dev/null @@ -1,397 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const ApplicationsRetrieveRequestExpand = { - Candidate: "candidate", - CandidateCreditedTo: "candidate,credited_to", - CandidateCreditedToCurrentStage: "candidate,credited_to,current_stage", - CandidateCreditedToCurrentStageRejectReason: "candidate,credited_to,current_stage,reject_reason", - CandidateCreditedToRejectReason: "candidate,credited_to,reject_reason", - CandidateCurrentStage: "candidate,current_stage", - CandidateCurrentStageRejectReason: "candidate,current_stage,reject_reason", - CandidateJob: "candidate,job", - CandidateJobCreditedTo: "candidate,job,credited_to", - CandidateJobCreditedToCurrentStage: "candidate,job,credited_to,current_stage", - CandidateJobCreditedToCurrentStageRejectReason: "candidate,job,credited_to,current_stage,reject_reason", - CandidateJobCreditedToRejectReason: "candidate,job,credited_to,reject_reason", - CandidateJobCurrentStage: "candidate,job,current_stage", - CandidateJobCurrentStageRejectReason: "candidate,job,current_stage,reject_reason", - CandidateJobRejectReason: "candidate,job,reject_reason", - CandidateRejectReason: "candidate,reject_reason", - CreditedTo: "credited_to", - CreditedToCurrentStage: "credited_to,current_stage", - CreditedToCurrentStageRejectReason: "credited_to,current_stage,reject_reason", - CreditedToRejectReason: "credited_to,reject_reason", - CurrentStage: "current_stage", - CurrentStageRejectReason: "current_stage,reject_reason", - Job: "job", - JobCreditedTo: "job,credited_to", - JobCreditedToCurrentStage: "job,credited_to,current_stage", - JobCreditedToCurrentStageRejectReason: "job,credited_to,current_stage,reject_reason", - JobCreditedToRejectReason: "job,credited_to,reject_reason", - JobCurrentStage: "job,current_stage", - JobCurrentStageRejectReason: "job,current_stage,reject_reason", - JobRejectReason: "job,reject_reason", - Offers: "offers", - OffersCandidate: "offers,candidate", - OffersCandidateCreditedTo: "offers,candidate,credited_to", - OffersCandidateCreditedToCurrentStage: "offers,candidate,credited_to,current_stage", - OffersCandidateCreditedToCurrentStageRejectReason: "offers,candidate,credited_to,current_stage,reject_reason", - OffersCandidateCreditedToRejectReason: "offers,candidate,credited_to,reject_reason", - OffersCandidateCurrentStage: "offers,candidate,current_stage", - OffersCandidateCurrentStageRejectReason: "offers,candidate,current_stage,reject_reason", - OffersCandidateJob: "offers,candidate,job", - OffersCandidateJobCreditedTo: "offers,candidate,job,credited_to", - OffersCandidateJobCreditedToCurrentStage: "offers,candidate,job,credited_to,current_stage", - OffersCandidateJobCreditedToCurrentStageRejectReason: - "offers,candidate,job,credited_to,current_stage,reject_reason", - OffersCandidateJobCreditedToRejectReason: "offers,candidate,job,credited_to,reject_reason", - OffersCandidateJobCurrentStage: "offers,candidate,job,current_stage", - OffersCandidateJobCurrentStageRejectReason: "offers,candidate,job,current_stage,reject_reason", - OffersCandidateJobRejectReason: "offers,candidate,job,reject_reason", - OffersCandidateRejectReason: "offers,candidate,reject_reason", - OffersCreditedTo: "offers,credited_to", - OffersCreditedToCurrentStage: "offers,credited_to,current_stage", - OffersCreditedToCurrentStageRejectReason: "offers,credited_to,current_stage,reject_reason", - OffersCreditedToRejectReason: "offers,credited_to,reject_reason", - OffersCurrentStage: "offers,current_stage", - OffersCurrentStageRejectReason: "offers,current_stage,reject_reason", - OffersJob: "offers,job", - OffersJobCreditedTo: "offers,job,credited_to", - OffersJobCreditedToCurrentStage: "offers,job,credited_to,current_stage", - OffersJobCreditedToCurrentStageRejectReason: "offers,job,credited_to,current_stage,reject_reason", - OffersJobCreditedToRejectReason: "offers,job,credited_to,reject_reason", - OffersJobCurrentStage: "offers,job,current_stage", - OffersJobCurrentStageRejectReason: "offers,job,current_stage,reject_reason", - OffersJobRejectReason: "offers,job,reject_reason", - OffersRejectReason: "offers,reject_reason", - OffersScreeningQuestionAnswers: "offers,screening_question_answers", - OffersScreeningQuestionAnswersCandidate: "offers,screening_question_answers,candidate", - OffersScreeningQuestionAnswersCandidateCreditedTo: "offers,screening_question_answers,candidate,credited_to", - OffersScreeningQuestionAnswersCandidateCreditedToCurrentStage: - "offers,screening_question_answers,candidate,credited_to,current_stage", - OffersScreeningQuestionAnswersCandidateCreditedToCurrentStageRejectReason: - "offers,screening_question_answers,candidate,credited_to,current_stage,reject_reason", - OffersScreeningQuestionAnswersCandidateCreditedToRejectReason: - "offers,screening_question_answers,candidate,credited_to,reject_reason", - OffersScreeningQuestionAnswersCandidateCurrentStage: "offers,screening_question_answers,candidate,current_stage", - OffersScreeningQuestionAnswersCandidateCurrentStageRejectReason: - "offers,screening_question_answers,candidate,current_stage,reject_reason", - OffersScreeningQuestionAnswersCandidateJob: "offers,screening_question_answers,candidate,job", - OffersScreeningQuestionAnswersCandidateJobCreditedTo: "offers,screening_question_answers,candidate,job,credited_to", - OffersScreeningQuestionAnswersCandidateJobCreditedToCurrentStage: - "offers,screening_question_answers,candidate,job,credited_to,current_stage", - OffersScreeningQuestionAnswersCandidateJobCreditedToCurrentStageRejectReason: - "offers,screening_question_answers,candidate,job,credited_to,current_stage,reject_reason", - OffersScreeningQuestionAnswersCandidateJobCreditedToRejectReason: - "offers,screening_question_answers,candidate,job,credited_to,reject_reason", - OffersScreeningQuestionAnswersCandidateJobCurrentStage: - "offers,screening_question_answers,candidate,job,current_stage", - OffersScreeningQuestionAnswersCandidateJobCurrentStageRejectReason: - "offers,screening_question_answers,candidate,job,current_stage,reject_reason", - OffersScreeningQuestionAnswersCandidateJobRejectReason: - "offers,screening_question_answers,candidate,job,reject_reason", - OffersScreeningQuestionAnswersCandidateRejectReason: "offers,screening_question_answers,candidate,reject_reason", - OffersScreeningQuestionAnswersCreditedTo: "offers,screening_question_answers,credited_to", - OffersScreeningQuestionAnswersCreditedToCurrentStage: "offers,screening_question_answers,credited_to,current_stage", - OffersScreeningQuestionAnswersCreditedToCurrentStageRejectReason: - "offers,screening_question_answers,credited_to,current_stage,reject_reason", - OffersScreeningQuestionAnswersCreditedToRejectReason: "offers,screening_question_answers,credited_to,reject_reason", - OffersScreeningQuestionAnswersCurrentStage: "offers,screening_question_answers,current_stage", - OffersScreeningQuestionAnswersCurrentStageRejectReason: - "offers,screening_question_answers,current_stage,reject_reason", - OffersScreeningQuestionAnswersJob: "offers,screening_question_answers,job", - OffersScreeningQuestionAnswersJobCreditedTo: "offers,screening_question_answers,job,credited_to", - OffersScreeningQuestionAnswersJobCreditedToCurrentStage: - "offers,screening_question_answers,job,credited_to,current_stage", - OffersScreeningQuestionAnswersJobCreditedToCurrentStageRejectReason: - "offers,screening_question_answers,job,credited_to,current_stage,reject_reason", - OffersScreeningQuestionAnswersJobCreditedToRejectReason: - "offers,screening_question_answers,job,credited_to,reject_reason", - OffersScreeningQuestionAnswersJobCurrentStage: "offers,screening_question_answers,job,current_stage", - OffersScreeningQuestionAnswersJobCurrentStageRejectReason: - "offers,screening_question_answers,job,current_stage,reject_reason", - OffersScreeningQuestionAnswersJobRejectReason: "offers,screening_question_answers,job,reject_reason", - OffersScreeningQuestionAnswersRejectReason: "offers,screening_question_answers,reject_reason", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestion: - "offers,screening_question_answers,screening_question_answers.question", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidate: - "offers,screening_question_answers,screening_question_answers.question,candidate", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateCreditedTo: - "offers,screening_question_answers,screening_question_answers.question,candidate,credited_to", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateCreditedToCurrentStage: - "offers,screening_question_answers,screening_question_answers.question,candidate,credited_to,current_stage", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateCreditedToCurrentStageRejectReason: - "offers,screening_question_answers,screening_question_answers.question,candidate,credited_to,current_stage,reject_reason", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateCreditedToRejectReason: - "offers,screening_question_answers,screening_question_answers.question,candidate,credited_to,reject_reason", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateCurrentStage: - "offers,screening_question_answers,screening_question_answers.question,candidate,current_stage", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateCurrentStageRejectReason: - "offers,screening_question_answers,screening_question_answers.question,candidate,current_stage,reject_reason", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateJob: - "offers,screening_question_answers,screening_question_answers.question,candidate,job", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateJobCreditedTo: - "offers,screening_question_answers,screening_question_answers.question,candidate,job,credited_to", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateJobCreditedToCurrentStage: - "offers,screening_question_answers,screening_question_answers.question,candidate,job,credited_to,current_stage", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateJobCreditedToCurrentStageRejectReason: - "offers,screening_question_answers,screening_question_answers.question,candidate,job,credited_to,current_stage,reject_reason", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateJobCreditedToRejectReason: - "offers,screening_question_answers,screening_question_answers.question,candidate,job,credited_to,reject_reason", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateJobCurrentStage: - "offers,screening_question_answers,screening_question_answers.question,candidate,job,current_stage", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateJobCurrentStageRejectReason: - "offers,screening_question_answers,screening_question_answers.question,candidate,job,current_stage,reject_reason", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateJobRejectReason: - "offers,screening_question_answers,screening_question_answers.question,candidate,job,reject_reason", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateRejectReason: - "offers,screening_question_answers,screening_question_answers.question,candidate,reject_reason", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCreditedTo: - "offers,screening_question_answers,screening_question_answers.question,credited_to", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCreditedToCurrentStage: - "offers,screening_question_answers,screening_question_answers.question,credited_to,current_stage", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCreditedToCurrentStageRejectReason: - "offers,screening_question_answers,screening_question_answers.question,credited_to,current_stage,reject_reason", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCreditedToRejectReason: - "offers,screening_question_answers,screening_question_answers.question,credited_to,reject_reason", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCurrentStage: - "offers,screening_question_answers,screening_question_answers.question,current_stage", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionCurrentStageRejectReason: - "offers,screening_question_answers,screening_question_answers.question,current_stage,reject_reason", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionJob: - "offers,screening_question_answers,screening_question_answers.question,job", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionJobCreditedTo: - "offers,screening_question_answers,screening_question_answers.question,job,credited_to", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionJobCreditedToCurrentStage: - "offers,screening_question_answers,screening_question_answers.question,job,credited_to,current_stage", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionJobCreditedToCurrentStageRejectReason: - "offers,screening_question_answers,screening_question_answers.question,job,credited_to,current_stage,reject_reason", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionJobCreditedToRejectReason: - "offers,screening_question_answers,screening_question_answers.question,job,credited_to,reject_reason", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionJobCurrentStage: - "offers,screening_question_answers,screening_question_answers.question,job,current_stage", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionJobCurrentStageRejectReason: - "offers,screening_question_answers,screening_question_answers.question,job,current_stage,reject_reason", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionJobRejectReason: - "offers,screening_question_answers,screening_question_answers.question,job,reject_reason", - OffersScreeningQuestionAnswersScreeningQuestionAnswersQuestionRejectReason: - "offers,screening_question_answers,screening_question_answers.question,reject_reason", - OffersScreeningQuestionAnswersQuestion: "offers,screening_question_answers.question", - OffersScreeningQuestionAnswersQuestionCandidate: "offers,screening_question_answers.question,candidate", - OffersScreeningQuestionAnswersQuestionCandidateCreditedTo: - "offers,screening_question_answers.question,candidate,credited_to", - OffersScreeningQuestionAnswersQuestionCandidateCreditedToCurrentStage: - "offers,screening_question_answers.question,candidate,credited_to,current_stage", - OffersScreeningQuestionAnswersQuestionCandidateCreditedToCurrentStageRejectReason: - "offers,screening_question_answers.question,candidate,credited_to,current_stage,reject_reason", - OffersScreeningQuestionAnswersQuestionCandidateCreditedToRejectReason: - "offers,screening_question_answers.question,candidate,credited_to,reject_reason", - OffersScreeningQuestionAnswersQuestionCandidateCurrentStage: - "offers,screening_question_answers.question,candidate,current_stage", - OffersScreeningQuestionAnswersQuestionCandidateCurrentStageRejectReason: - "offers,screening_question_answers.question,candidate,current_stage,reject_reason", - OffersScreeningQuestionAnswersQuestionCandidateJob: "offers,screening_question_answers.question,candidate,job", - OffersScreeningQuestionAnswersQuestionCandidateJobCreditedTo: - "offers,screening_question_answers.question,candidate,job,credited_to", - OffersScreeningQuestionAnswersQuestionCandidateJobCreditedToCurrentStage: - "offers,screening_question_answers.question,candidate,job,credited_to,current_stage", - OffersScreeningQuestionAnswersQuestionCandidateJobCreditedToCurrentStageRejectReason: - "offers,screening_question_answers.question,candidate,job,credited_to,current_stage,reject_reason", - OffersScreeningQuestionAnswersQuestionCandidateJobCreditedToRejectReason: - "offers,screening_question_answers.question,candidate,job,credited_to,reject_reason", - OffersScreeningQuestionAnswersQuestionCandidateJobCurrentStage: - "offers,screening_question_answers.question,candidate,job,current_stage", - OffersScreeningQuestionAnswersQuestionCandidateJobCurrentStageRejectReason: - "offers,screening_question_answers.question,candidate,job,current_stage,reject_reason", - OffersScreeningQuestionAnswersQuestionCandidateJobRejectReason: - "offers,screening_question_answers.question,candidate,job,reject_reason", - OffersScreeningQuestionAnswersQuestionCandidateRejectReason: - "offers,screening_question_answers.question,candidate,reject_reason", - OffersScreeningQuestionAnswersQuestionCreditedTo: "offers,screening_question_answers.question,credited_to", - OffersScreeningQuestionAnswersQuestionCreditedToCurrentStage: - "offers,screening_question_answers.question,credited_to,current_stage", - OffersScreeningQuestionAnswersQuestionCreditedToCurrentStageRejectReason: - "offers,screening_question_answers.question,credited_to,current_stage,reject_reason", - OffersScreeningQuestionAnswersQuestionCreditedToRejectReason: - "offers,screening_question_answers.question,credited_to,reject_reason", - OffersScreeningQuestionAnswersQuestionCurrentStage: "offers,screening_question_answers.question,current_stage", - OffersScreeningQuestionAnswersQuestionCurrentStageRejectReason: - "offers,screening_question_answers.question,current_stage,reject_reason", - OffersScreeningQuestionAnswersQuestionJob: "offers,screening_question_answers.question,job", - OffersScreeningQuestionAnswersQuestionJobCreditedTo: "offers,screening_question_answers.question,job,credited_to", - OffersScreeningQuestionAnswersQuestionJobCreditedToCurrentStage: - "offers,screening_question_answers.question,job,credited_to,current_stage", - OffersScreeningQuestionAnswersQuestionJobCreditedToCurrentStageRejectReason: - "offers,screening_question_answers.question,job,credited_to,current_stage,reject_reason", - OffersScreeningQuestionAnswersQuestionJobCreditedToRejectReason: - "offers,screening_question_answers.question,job,credited_to,reject_reason", - OffersScreeningQuestionAnswersQuestionJobCurrentStage: - "offers,screening_question_answers.question,job,current_stage", - OffersScreeningQuestionAnswersQuestionJobCurrentStageRejectReason: - "offers,screening_question_answers.question,job,current_stage,reject_reason", - OffersScreeningQuestionAnswersQuestionJobRejectReason: - "offers,screening_question_answers.question,job,reject_reason", - OffersScreeningQuestionAnswersQuestionRejectReason: "offers,screening_question_answers.question,reject_reason", - RejectReason: "reject_reason", - ScreeningQuestionAnswers: "screening_question_answers", - ScreeningQuestionAnswersCandidate: "screening_question_answers,candidate", - ScreeningQuestionAnswersCandidateCreditedTo: "screening_question_answers,candidate,credited_to", - ScreeningQuestionAnswersCandidateCreditedToCurrentStage: - "screening_question_answers,candidate,credited_to,current_stage", - ScreeningQuestionAnswersCandidateCreditedToCurrentStageRejectReason: - "screening_question_answers,candidate,credited_to,current_stage,reject_reason", - ScreeningQuestionAnswersCandidateCreditedToRejectReason: - "screening_question_answers,candidate,credited_to,reject_reason", - ScreeningQuestionAnswersCandidateCurrentStage: "screening_question_answers,candidate,current_stage", - ScreeningQuestionAnswersCandidateCurrentStageRejectReason: - "screening_question_answers,candidate,current_stage,reject_reason", - ScreeningQuestionAnswersCandidateJob: "screening_question_answers,candidate,job", - ScreeningQuestionAnswersCandidateJobCreditedTo: "screening_question_answers,candidate,job,credited_to", - ScreeningQuestionAnswersCandidateJobCreditedToCurrentStage: - "screening_question_answers,candidate,job,credited_to,current_stage", - ScreeningQuestionAnswersCandidateJobCreditedToCurrentStageRejectReason: - "screening_question_answers,candidate,job,credited_to,current_stage,reject_reason", - ScreeningQuestionAnswersCandidateJobCreditedToRejectReason: - "screening_question_answers,candidate,job,credited_to,reject_reason", - ScreeningQuestionAnswersCandidateJobCurrentStage: "screening_question_answers,candidate,job,current_stage", - ScreeningQuestionAnswersCandidateJobCurrentStageRejectReason: - "screening_question_answers,candidate,job,current_stage,reject_reason", - ScreeningQuestionAnswersCandidateJobRejectReason: "screening_question_answers,candidate,job,reject_reason", - ScreeningQuestionAnswersCandidateRejectReason: "screening_question_answers,candidate,reject_reason", - ScreeningQuestionAnswersCreditedTo: "screening_question_answers,credited_to", - ScreeningQuestionAnswersCreditedToCurrentStage: "screening_question_answers,credited_to,current_stage", - ScreeningQuestionAnswersCreditedToCurrentStageRejectReason: - "screening_question_answers,credited_to,current_stage,reject_reason", - ScreeningQuestionAnswersCreditedToRejectReason: "screening_question_answers,credited_to,reject_reason", - ScreeningQuestionAnswersCurrentStage: "screening_question_answers,current_stage", - ScreeningQuestionAnswersCurrentStageRejectReason: "screening_question_answers,current_stage,reject_reason", - ScreeningQuestionAnswersJob: "screening_question_answers,job", - ScreeningQuestionAnswersJobCreditedTo: "screening_question_answers,job,credited_to", - ScreeningQuestionAnswersJobCreditedToCurrentStage: "screening_question_answers,job,credited_to,current_stage", - ScreeningQuestionAnswersJobCreditedToCurrentStageRejectReason: - "screening_question_answers,job,credited_to,current_stage,reject_reason", - ScreeningQuestionAnswersJobCreditedToRejectReason: "screening_question_answers,job,credited_to,reject_reason", - ScreeningQuestionAnswersJobCurrentStage: "screening_question_answers,job,current_stage", - ScreeningQuestionAnswersJobCurrentStageRejectReason: "screening_question_answers,job,current_stage,reject_reason", - ScreeningQuestionAnswersJobRejectReason: "screening_question_answers,job,reject_reason", - ScreeningQuestionAnswersRejectReason: "screening_question_answers,reject_reason", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestion: - "screening_question_answers,screening_question_answers.question", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidate: - "screening_question_answers,screening_question_answers.question,candidate", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateCreditedTo: - "screening_question_answers,screening_question_answers.question,candidate,credited_to", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateCreditedToCurrentStage: - "screening_question_answers,screening_question_answers.question,candidate,credited_to,current_stage", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateCreditedToCurrentStageRejectReason: - "screening_question_answers,screening_question_answers.question,candidate,credited_to,current_stage,reject_reason", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateCreditedToRejectReason: - "screening_question_answers,screening_question_answers.question,candidate,credited_to,reject_reason", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateCurrentStage: - "screening_question_answers,screening_question_answers.question,candidate,current_stage", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateCurrentStageRejectReason: - "screening_question_answers,screening_question_answers.question,candidate,current_stage,reject_reason", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateJob: - "screening_question_answers,screening_question_answers.question,candidate,job", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateJobCreditedTo: - "screening_question_answers,screening_question_answers.question,candidate,job,credited_to", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateJobCreditedToCurrentStage: - "screening_question_answers,screening_question_answers.question,candidate,job,credited_to,current_stage", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateJobCreditedToCurrentStageRejectReason: - "screening_question_answers,screening_question_answers.question,candidate,job,credited_to,current_stage,reject_reason", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateJobCreditedToRejectReason: - "screening_question_answers,screening_question_answers.question,candidate,job,credited_to,reject_reason", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateJobCurrentStage: - "screening_question_answers,screening_question_answers.question,candidate,job,current_stage", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateJobCurrentStageRejectReason: - "screening_question_answers,screening_question_answers.question,candidate,job,current_stage,reject_reason", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateJobRejectReason: - "screening_question_answers,screening_question_answers.question,candidate,job,reject_reason", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCandidateRejectReason: - "screening_question_answers,screening_question_answers.question,candidate,reject_reason", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCreditedTo: - "screening_question_answers,screening_question_answers.question,credited_to", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCreditedToCurrentStage: - "screening_question_answers,screening_question_answers.question,credited_to,current_stage", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCreditedToCurrentStageRejectReason: - "screening_question_answers,screening_question_answers.question,credited_to,current_stage,reject_reason", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCreditedToRejectReason: - "screening_question_answers,screening_question_answers.question,credited_to,reject_reason", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCurrentStage: - "screening_question_answers,screening_question_answers.question,current_stage", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionCurrentStageRejectReason: - "screening_question_answers,screening_question_answers.question,current_stage,reject_reason", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionJob: - "screening_question_answers,screening_question_answers.question,job", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionJobCreditedTo: - "screening_question_answers,screening_question_answers.question,job,credited_to", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionJobCreditedToCurrentStage: - "screening_question_answers,screening_question_answers.question,job,credited_to,current_stage", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionJobCreditedToCurrentStageRejectReason: - "screening_question_answers,screening_question_answers.question,job,credited_to,current_stage,reject_reason", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionJobCreditedToRejectReason: - "screening_question_answers,screening_question_answers.question,job,credited_to,reject_reason", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionJobCurrentStage: - "screening_question_answers,screening_question_answers.question,job,current_stage", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionJobCurrentStageRejectReason: - "screening_question_answers,screening_question_answers.question,job,current_stage,reject_reason", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionJobRejectReason: - "screening_question_answers,screening_question_answers.question,job,reject_reason", - ScreeningQuestionAnswersScreeningQuestionAnswersQuestionRejectReason: - "screening_question_answers,screening_question_answers.question,reject_reason", - ScreeningQuestionAnswersQuestion: "screening_question_answers.question", - ScreeningQuestionAnswersQuestionCandidate: "screening_question_answers.question,candidate", - ScreeningQuestionAnswersQuestionCandidateCreditedTo: "screening_question_answers.question,candidate,credited_to", - ScreeningQuestionAnswersQuestionCandidateCreditedToCurrentStage: - "screening_question_answers.question,candidate,credited_to,current_stage", - ScreeningQuestionAnswersQuestionCandidateCreditedToCurrentStageRejectReason: - "screening_question_answers.question,candidate,credited_to,current_stage,reject_reason", - ScreeningQuestionAnswersQuestionCandidateCreditedToRejectReason: - "screening_question_answers.question,candidate,credited_to,reject_reason", - ScreeningQuestionAnswersQuestionCandidateCurrentStage: - "screening_question_answers.question,candidate,current_stage", - ScreeningQuestionAnswersQuestionCandidateCurrentStageRejectReason: - "screening_question_answers.question,candidate,current_stage,reject_reason", - ScreeningQuestionAnswersQuestionCandidateJob: "screening_question_answers.question,candidate,job", - ScreeningQuestionAnswersQuestionCandidateJobCreditedTo: - "screening_question_answers.question,candidate,job,credited_to", - ScreeningQuestionAnswersQuestionCandidateJobCreditedToCurrentStage: - "screening_question_answers.question,candidate,job,credited_to,current_stage", - ScreeningQuestionAnswersQuestionCandidateJobCreditedToCurrentStageRejectReason: - "screening_question_answers.question,candidate,job,credited_to,current_stage,reject_reason", - ScreeningQuestionAnswersQuestionCandidateJobCreditedToRejectReason: - "screening_question_answers.question,candidate,job,credited_to,reject_reason", - ScreeningQuestionAnswersQuestionCandidateJobCurrentStage: - "screening_question_answers.question,candidate,job,current_stage", - ScreeningQuestionAnswersQuestionCandidateJobCurrentStageRejectReason: - "screening_question_answers.question,candidate,job,current_stage,reject_reason", - ScreeningQuestionAnswersQuestionCandidateJobRejectReason: - "screening_question_answers.question,candidate,job,reject_reason", - ScreeningQuestionAnswersQuestionCandidateRejectReason: - "screening_question_answers.question,candidate,reject_reason", - ScreeningQuestionAnswersQuestionCreditedTo: "screening_question_answers.question,credited_to", - ScreeningQuestionAnswersQuestionCreditedToCurrentStage: - "screening_question_answers.question,credited_to,current_stage", - ScreeningQuestionAnswersQuestionCreditedToCurrentStageRejectReason: - "screening_question_answers.question,credited_to,current_stage,reject_reason", - ScreeningQuestionAnswersQuestionCreditedToRejectReason: - "screening_question_answers.question,credited_to,reject_reason", - ScreeningQuestionAnswersQuestionCurrentStage: "screening_question_answers.question,current_stage", - ScreeningQuestionAnswersQuestionCurrentStageRejectReason: - "screening_question_answers.question,current_stage,reject_reason", - ScreeningQuestionAnswersQuestionJob: "screening_question_answers.question,job", - ScreeningQuestionAnswersQuestionJobCreditedTo: "screening_question_answers.question,job,credited_to", - ScreeningQuestionAnswersQuestionJobCreditedToCurrentStage: - "screening_question_answers.question,job,credited_to,current_stage", - ScreeningQuestionAnswersQuestionJobCreditedToCurrentStageRejectReason: - "screening_question_answers.question,job,credited_to,current_stage,reject_reason", - ScreeningQuestionAnswersQuestionJobCreditedToRejectReason: - "screening_question_answers.question,job,credited_to,reject_reason", - ScreeningQuestionAnswersQuestionJobCurrentStage: "screening_question_answers.question,job,current_stage", - ScreeningQuestionAnswersQuestionJobCurrentStageRejectReason: - "screening_question_answers.question,job,current_stage,reject_reason", - ScreeningQuestionAnswersQuestionJobRejectReason: "screening_question_answers.question,job,reject_reason", - ScreeningQuestionAnswersQuestionRejectReason: "screening_question_answers.question,reject_reason", -} as const; -export type ApplicationsRetrieveRequestExpand = - (typeof ApplicationsRetrieveRequestExpand)[keyof typeof ApplicationsRetrieveRequestExpand]; diff --git a/src/api/resources/ats/resources/applications/types/ApplicationsRetrieveRequestExpandItem.ts b/src/api/resources/ats/resources/applications/types/ApplicationsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..d852c195f --- /dev/null +++ b/src/api/resources/ats/resources/applications/types/ApplicationsRetrieveRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +export const ApplicationsRetrieveRequestExpandItem = { + Candidate: "candidate", + CreditedTo: "credited_to", + CurrentStage: "current_stage", + Job: "job", + Offers: "offers", + RejectReason: "reject_reason", + ScreeningQuestionAnswers: "screening_question_answers", + ScreeningQuestionAnswersQuestion: "screening_question_answers.question", +} as const; +export type ApplicationsRetrieveRequestExpandItem = + (typeof ApplicationsRetrieveRequestExpandItem)[keyof typeof ApplicationsRetrieveRequestExpandItem]; diff --git a/src/api/resources/ats/resources/applications/types/index.ts b/src/api/resources/ats/resources/applications/types/index.ts index 10d68b6c6..61c840207 100644 --- a/src/api/resources/ats/resources/applications/types/index.ts +++ b/src/api/resources/ats/resources/applications/types/index.ts @@ -1,2 +1,2 @@ -export * from "./ApplicationsListRequestExpand"; -export * from "./ApplicationsRetrieveRequestExpand"; +export * from "./ApplicationsListRequestExpandItem"; +export * from "./ApplicationsRetrieveRequestExpandItem"; diff --git a/src/api/resources/ats/resources/attachments/client/Client.ts b/src/api/resources/ats/resources/attachments/client/Client.ts index e22c0aa46..8144cee49 100644 --- a/src/api/resources/ats/resources/attachments/client/Client.ts +++ b/src/api/resources/ats/resources/attachments/client/Client.ts @@ -35,7 +35,6 @@ export class AttachmentsClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "candidate", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -47,94 +46,104 @@ export class AttachmentsClient { * showEnumOrigins: "attachment_type" * }) */ - public list( + public async list( request: Merge.ats.AttachmentsListRequest = {}, requestOptions?: AttachmentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ats.AttachmentsListRequest = {}, - requestOptions?: AttachmentsClient.RequestOptions, - ): Promise> { - const { - candidateId, - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteFields, - remoteId, - showEnumOrigins, - } = request; - const _queryParams: Record = { - candidate_id: candidateId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: expand != null ? expand : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_fields: remoteFields != null ? remoteFields : undefined, - remote_id: remoteId, - show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ats.AttachmentsListRequest, + ): Promise> => { + const { + candidateId, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteFields, + remoteId, + showEnumOrigins, + } = request; + const _queryParams: Record = { + candidate_id: candidateId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_fields: remoteFields != null ? remoteFields : undefined, + remote_id: remoteId, + show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ats/v1/attachments", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ats.PaginatedAttachmentList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/attachments"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ats/v1/attachments", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ats.PaginatedAttachmentList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/attachments"); } /** @@ -226,7 +235,6 @@ export class AttachmentsClient { * * @example * await client.ats.attachments.retrieve("id", { - * expand: "candidate", * includeRemoteData: true, * includeShellData: true, * remoteFields: "attachment_type", @@ -248,7 +256,7 @@ export class AttachmentsClient { ): Promise> { const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; const _queryParams: Record = { - expand: expand != null ? expand : undefined, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, remote_fields: remoteFields != null ? remoteFields : undefined, diff --git a/src/api/resources/ats/resources/attachments/client/requests/AttachmentsListRequest.ts b/src/api/resources/ats/resources/attachments/client/requests/AttachmentsListRequest.ts index 4031b8947..c43a64a17 100644 --- a/src/api/resources/ats/resources/attachments/client/requests/AttachmentsListRequest.ts +++ b/src/api/resources/ats/resources/attachments/client/requests/AttachmentsListRequest.ts @@ -7,7 +7,6 @@ * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "candidate", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -29,7 +28,7 @@ export interface AttachmentsListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "candidate"; + expand?: "candidate" | "candidate"[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ diff --git a/src/api/resources/ats/resources/attachments/client/requests/AttachmentsRetrieveRequest.ts b/src/api/resources/ats/resources/attachments/client/requests/AttachmentsRetrieveRequest.ts index acea419f9..a0f67a3ad 100644 --- a/src/api/resources/ats/resources/attachments/client/requests/AttachmentsRetrieveRequest.ts +++ b/src/api/resources/ats/resources/attachments/client/requests/AttachmentsRetrieveRequest.ts @@ -3,7 +3,6 @@ /** * @example * { - * expand: "candidate", * includeRemoteData: true, * includeShellData: true, * remoteFields: "attachment_type", @@ -12,7 +11,7 @@ */ export interface AttachmentsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "candidate"; + expand?: "candidate" | "candidate"[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/ats/resources/auditTrail/client/Client.ts b/src/api/resources/ats/resources/auditTrail/client/Client.ts index 3868adaba..50f548500 100644 --- a/src/api/resources/ats/resources/auditTrail/client/Client.ts +++ b/src/api/resources/ats/resources/auditTrail/client/Client.ts @@ -39,70 +39,80 @@ export class AuditTrailClient { * userEmail: "user_email" * }) */ - public list( + public async list( request: Merge.ats.AuditTrailListRequest = {}, requestOptions?: AuditTrailClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ats.AuditTrailListRequest = {}, - requestOptions?: AuditTrailClient.RequestOptions, - ): Promise> { - const { cursor, endDate, eventType, pageSize, startDate, userEmail } = request; - const _queryParams: Record = { - cursor, - end_date: endDate, - event_type: eventType, - page_size: pageSize, - start_date: startDate, - user_email: userEmail, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ats.AuditTrailListRequest, + ): Promise> => { + const { cursor, endDate, eventType, pageSize, startDate, userEmail } = request; + const _queryParams: Record = { + cursor, + end_date: endDate, + event_type: eventType, + page_size: pageSize, + start_date: startDate, + user_email: userEmail, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ats/v1/audit-trail", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ats.PaginatedAuditLogEventList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/audit-trail"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ats/v1/audit-trail", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ats.PaginatedAuditLogEventList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/audit-trail"); } } 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 65216f96c..b188a570e 100644 --- a/src/api/resources/ats/resources/auditTrail/client/requests/AuditTrailListRequest.ts +++ b/src/api/resources/ats/resources/auditTrail/client/requests/AuditTrailListRequest.ts @@ -18,7 +18,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`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_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`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` */ eventType?: string; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** If included, will only include audit trail events that occurred after this time */ startDate?: string; diff --git a/src/api/resources/ats/resources/candidates/client/Client.ts b/src/api/resources/ats/resources/candidates/client/Client.ts index 7863aac47..074eb3b8f 100644 --- a/src/api/resources/ats/resources/candidates/client/Client.ts +++ b/src/api/resources/ats/resources/candidates/client/Client.ts @@ -35,7 +35,6 @@ export class CandidatesClient { * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * emailAddresses: "email_addresses", - * expand: "applications", * firstName: "first_name", * includeDeletedData: true, * includeRemoteData: true, @@ -48,101 +47,116 @@ export class CandidatesClient { * tags: "tags" * }) */ - public list( + public async list( request: Merge.ats.CandidatesListRequest = {}, requestOptions?: CandidatesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ats.CandidatesListRequest = {}, - requestOptions?: CandidatesClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - emailAddresses, - expand, - firstName, - includeDeletedData, - includeRemoteData, - includeShellData, - lastName, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - tags, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - email_addresses: emailAddresses, - expand: - expand != null - ? serializers.ats.CandidatesListRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - first_name: firstName, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - last_name: lastName, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - tags, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ats.CandidatesListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + emailAddresses, + expand, + firstName, + includeDeletedData, + includeRemoteData, + includeShellData, + lastName, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + tags, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + email_addresses: emailAddresses, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.ats.CandidatesListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.ats.CandidatesListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + first_name: firstName, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + last_name: lastName, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + tags, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ats/v1/candidates", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ats.PaginatedCandidateList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/candidates"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ats/v1/candidates", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ats.PaginatedCandidateList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/candidates"); } /** @@ -234,7 +248,6 @@ export class CandidatesClient { * * @example * await client.ats.candidates.retrieve("id", { - * expand: "applications", * includeRemoteData: true, * includeShellData: true * }) @@ -254,12 +267,17 @@ export class CandidatesClient { ): Promise> { const { expand, includeRemoteData, includeShellData } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.ats.CandidatesRetrieveRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.ats.CandidatesRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.ats.CandidatesRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, }; diff --git a/src/api/resources/ats/resources/candidates/client/requests/CandidatesListRequest.ts b/src/api/resources/ats/resources/candidates/client/requests/CandidatesListRequest.ts index 406be4caa..7c4b420e1 100644 --- a/src/api/resources/ats/resources/candidates/client/requests/CandidatesListRequest.ts +++ b/src/api/resources/ats/resources/candidates/client/requests/CandidatesListRequest.ts @@ -9,7 +9,6 @@ import type * as Merge from "../../../../../../index"; * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * emailAddresses: "email_addresses", - * expand: "applications", * firstName: "first_name", * includeDeletedData: true, * includeRemoteData: true, @@ -32,7 +31,7 @@ export interface CandidatesListRequest { /** If provided, will only return candidates with these email addresses; multiple addresses can be separated by commas. */ emailAddresses?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.ats.CandidatesListRequestExpand; + expand?: Merge.ats.CandidatesListRequestExpandItem | Merge.ats.CandidatesListRequestExpandItem[]; /** If provided, will only return candidates with this first name. */ firstName?: string; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ diff --git a/src/api/resources/ats/resources/candidates/client/requests/CandidatesRetrieveRequest.ts b/src/api/resources/ats/resources/candidates/client/requests/CandidatesRetrieveRequest.ts index c4a736357..03808945e 100644 --- a/src/api/resources/ats/resources/candidates/client/requests/CandidatesRetrieveRequest.ts +++ b/src/api/resources/ats/resources/candidates/client/requests/CandidatesRetrieveRequest.ts @@ -5,14 +5,13 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "applications", * includeRemoteData: true, * includeShellData: true * } */ export interface CandidatesRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.ats.CandidatesRetrieveRequestExpand; + expand?: Merge.ats.CandidatesRetrieveRequestExpandItem | Merge.ats.CandidatesRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/ats/resources/candidates/client/requests/IgnoreCommonModelRequest.ts b/src/api/resources/ats/resources/candidates/client/requests/IgnoreCommonModelRequest.ts deleted file mode 100644 index 545e610d1..000000000 --- a/src/api/resources/ats/resources/candidates/client/requests/IgnoreCommonModelRequest.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * reason: "GENERAL_CUSTOMER_REQUEST" - * } - */ -export interface IgnoreCommonModelRequest { - reason: Merge.ats.IgnoreCommonModelRequestReason; - message?: string; -} diff --git a/src/api/resources/ats/resources/candidates/client/requests/index.ts b/src/api/resources/ats/resources/candidates/client/requests/index.ts index aa3b78a75..7510c919b 100644 --- a/src/api/resources/ats/resources/candidates/client/requests/index.ts +++ b/src/api/resources/ats/resources/candidates/client/requests/index.ts @@ -1,5 +1,4 @@ export type { CandidateEndpointRequest } from "./CandidateEndpointRequest"; export type { CandidatesListRequest } from "./CandidatesListRequest"; export type { CandidatesRetrieveRequest } from "./CandidatesRetrieveRequest"; -export type { IgnoreCommonModelRequest } from "./IgnoreCommonModelRequest"; export type { PatchedCandidateEndpointRequest } from "./PatchedCandidateEndpointRequest"; diff --git a/src/api/resources/ats/resources/candidates/types/CandidatesListRequestExpand.ts b/src/api/resources/ats/resources/candidates/types/CandidatesListRequestExpand.ts deleted file mode 100644 index acaacec1d..000000000 --- a/src/api/resources/ats/resources/candidates/types/CandidatesListRequestExpand.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const CandidatesListRequestExpand = { - Applications: "applications", - ApplicationsAttachments: "applications,attachments", - Attachments: "attachments", -} as const; -export type CandidatesListRequestExpand = - (typeof CandidatesListRequestExpand)[keyof typeof CandidatesListRequestExpand]; diff --git a/src/api/resources/ats/resources/candidates/types/CandidatesListRequestExpandItem.ts b/src/api/resources/ats/resources/candidates/types/CandidatesListRequestExpandItem.ts new file mode 100644 index 000000000..6e835b39f --- /dev/null +++ b/src/api/resources/ats/resources/candidates/types/CandidatesListRequestExpandItem.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export const CandidatesListRequestExpandItem = { + Applications: "applications", + Attachments: "attachments", +} as const; +export type CandidatesListRequestExpandItem = + (typeof CandidatesListRequestExpandItem)[keyof typeof CandidatesListRequestExpandItem]; diff --git a/src/api/resources/ats/resources/candidates/types/CandidatesRetrieveRequestExpand.ts b/src/api/resources/ats/resources/candidates/types/CandidatesRetrieveRequestExpand.ts deleted file mode 100644 index 78880a37c..000000000 --- a/src/api/resources/ats/resources/candidates/types/CandidatesRetrieveRequestExpand.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const CandidatesRetrieveRequestExpand = { - Applications: "applications", - ApplicationsAttachments: "applications,attachments", - Attachments: "attachments", -} as const; -export type CandidatesRetrieveRequestExpand = - (typeof CandidatesRetrieveRequestExpand)[keyof typeof CandidatesRetrieveRequestExpand]; diff --git a/src/api/resources/ats/resources/candidates/types/CandidatesRetrieveRequestExpandItem.ts b/src/api/resources/ats/resources/candidates/types/CandidatesRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..03cb2ebcc --- /dev/null +++ b/src/api/resources/ats/resources/candidates/types/CandidatesRetrieveRequestExpandItem.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export const CandidatesRetrieveRequestExpandItem = { + Applications: "applications", + Attachments: "attachments", +} as const; +export type CandidatesRetrieveRequestExpandItem = + (typeof CandidatesRetrieveRequestExpandItem)[keyof typeof CandidatesRetrieveRequestExpandItem]; diff --git a/src/api/resources/ats/resources/candidates/types/IgnoreCommonModelRequestReason.ts b/src/api/resources/ats/resources/candidates/types/IgnoreCommonModelRequestReason.ts deleted file mode 100644 index 80eb9d0be..000000000 --- a/src/api/resources/ats/resources/candidates/types/IgnoreCommonModelRequestReason.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../index"; - -export type IgnoreCommonModelRequestReason = Merge.ats.ReasonEnum | string; diff --git a/src/api/resources/ats/resources/candidates/types/index.ts b/src/api/resources/ats/resources/candidates/types/index.ts index 36e0b3d6e..354754a74 100644 --- a/src/api/resources/ats/resources/candidates/types/index.ts +++ b/src/api/resources/ats/resources/candidates/types/index.ts @@ -1,3 +1,2 @@ -export * from "./CandidatesListRequestExpand"; -export * from "./CandidatesRetrieveRequestExpand"; -export * from "./IgnoreCommonModelRequestReason"; +export * from "./CandidatesListRequestExpandItem"; +export * from "./CandidatesRetrieveRequestExpandItem"; diff --git a/src/api/resources/ats/resources/departments/client/Client.ts b/src/api/resources/ats/resources/departments/client/Client.ts index 085ebc346..275147fab 100644 --- a/src/api/resources/ats/resources/departments/client/Client.ts +++ b/src/api/resources/ats/resources/departments/client/Client.ts @@ -43,86 +43,96 @@ export class DepartmentsClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.ats.DepartmentsListRequest = {}, requestOptions?: DepartmentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ats.DepartmentsListRequest = {}, - requestOptions?: DepartmentsClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ats.DepartmentsListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ats/v1/departments", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ats.PaginatedDepartmentList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/departments"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ats/v1/departments", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ats.PaginatedDepartmentList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/departments"); } /** diff --git a/src/api/resources/ats/resources/eeocs/client/Client.ts b/src/api/resources/ats/resources/eeocs/client/Client.ts index 8e7f848bb..92939e164 100644 --- a/src/api/resources/ats/resources/eeocs/client/Client.ts +++ b/src/api/resources/ats/resources/eeocs/client/Client.ts @@ -35,7 +35,6 @@ export class EeocsClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "candidate", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -47,104 +46,112 @@ export class EeocsClient { * showEnumOrigins: "disability_status" * }) */ - public list( + public async list( request: Merge.ats.EeocsListRequest = {}, requestOptions?: EeocsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ats.EeocsListRequest = {}, - requestOptions?: EeocsClient.RequestOptions, - ): Promise> { - const { - candidateId, - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteFields, - remoteId, - showEnumOrigins, - } = request; - const _queryParams: Record = { - candidate_id: candidateId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: expand != null ? expand : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_fields: - remoteFields != null - ? serializers.ats.EeocsListRequestRemoteFields.jsonOrThrow(remoteFields, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - remote_id: remoteId, - show_enum_origins: - showEnumOrigins != null - ? serializers.ats.EeocsListRequestShowEnumOrigins.jsonOrThrow(showEnumOrigins, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async (request: Merge.ats.EeocsListRequest): Promise> => { + const { + candidateId, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteFields, + remoteId, + showEnumOrigins, + } = request; + const _queryParams: Record = { + candidate_id: candidateId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_fields: + remoteFields != null + ? serializers.ats.EeocsListRequestRemoteFields.jsonOrThrow(remoteFields, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + remote_id: remoteId, + show_enum_origins: + showEnumOrigins != null + ? serializers.ats.EeocsListRequestShowEnumOrigins.jsonOrThrow(showEnumOrigins, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ats/v1/eeocs", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ats.PaginatedEeocList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/eeocs"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ats/v1/eeocs", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ats.PaginatedEeocList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/eeocs"); } /** @@ -156,7 +163,6 @@ export class EeocsClient { * * @example * await client.ats.eeocs.retrieve("id", { - * expand: "candidate", * includeRemoteData: true, * includeShellData: true, * remoteFields: "disability_status", @@ -178,7 +184,7 @@ export class EeocsClient { ): Promise> { const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; const _queryParams: Record = { - expand: expand != null ? expand : undefined, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, remote_fields: diff --git a/src/api/resources/ats/resources/eeocs/client/requests/EeocsListRequest.ts b/src/api/resources/ats/resources/eeocs/client/requests/EeocsListRequest.ts index 69854759d..0ca3964ae 100644 --- a/src/api/resources/ats/resources/eeocs/client/requests/EeocsListRequest.ts +++ b/src/api/resources/ats/resources/eeocs/client/requests/EeocsListRequest.ts @@ -9,7 +9,6 @@ import type * as Merge from "../../../../../../index"; * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "candidate", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -31,7 +30,7 @@ export interface EeocsListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "candidate"; + expand?: "candidate" | "candidate"[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -42,7 +41,7 @@ export interface EeocsListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** Deprecated. Use show_enum_origins. */ remoteFields?: Merge.ats.EeocsListRequestRemoteFields; diff --git a/src/api/resources/ats/resources/eeocs/client/requests/EeocsRetrieveRequest.ts b/src/api/resources/ats/resources/eeocs/client/requests/EeocsRetrieveRequest.ts index 6d64bd2da..a2fbf02e7 100644 --- a/src/api/resources/ats/resources/eeocs/client/requests/EeocsRetrieveRequest.ts +++ b/src/api/resources/ats/resources/eeocs/client/requests/EeocsRetrieveRequest.ts @@ -5,7 +5,6 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "candidate", * includeRemoteData: true, * includeShellData: true, * remoteFields: "disability_status", @@ -14,7 +13,7 @@ import type * as Merge from "../../../../../../index"; */ export interface EeocsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "candidate"; + expand?: "candidate" | "candidate"[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/ats/resources/fieldMapping/client/Client.ts b/src/api/resources/ats/resources/fieldMapping/client/Client.ts index 664285953..820461e2d 100644 --- a/src/api/resources/ats/resources/fieldMapping/client/Client.ts +++ b/src/api/resources/ats/resources/fieldMapping/client/Client.ts @@ -258,7 +258,9 @@ export class FieldMappingClient { * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.ats.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id") + * await client.ats.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { + * remoteDataIterationCount: 1 + * }) */ public fieldMappingsPartialUpdate( field_mapping_id: string, @@ -275,6 +277,10 @@ export class FieldMappingClient { request: Merge.ats.PatchedEditFieldMappingRequest = {}, requestOptions?: FieldMappingClient.RequestOptions, ): Promise> { + const { remoteDataIterationCount, ..._body } = request; + const _queryParams: Record = { + remote_data_iteration_count: remoteDataIterationCount, + }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, @@ -292,9 +298,9 @@ export class FieldMappingClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, requestType: "json", - body: serializers.ats.PatchedEditFieldMappingRequest.jsonOrThrow(request, { + body: serializers.ats.PatchedEditFieldMappingRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip", }), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/api/resources/ats/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts b/src/api/resources/ats/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts index e711ea5fc..64683cd2f 100644 --- a/src/api/resources/ats/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts +++ b/src/api/resources/ats/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts @@ -27,4 +27,6 @@ export interface CreateFieldMappingRequest { remoteUrlPath: string; /** The name of the Common Model that the remote field corresponds to in a given category. */ commonModelName: string; + /** JMES path to specify json query expression to be used on field mapping. */ + jmesPath?: string; } 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 0efe65466..3c388858f 100644 --- a/src/api/resources/ats/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts +++ b/src/api/resources/ats/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts @@ -2,13 +2,19 @@ /** * @example - * {} + * { + * remoteDataIterationCount: 1 + * } */ export interface PatchedEditFieldMappingRequest { + /** Number of common model instances to iterate through when fetching remote data for field mappings. Defaults to 250 if not provided. */ + remoteDataIterationCount?: number; /** The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. */ remoteFieldTraversalPath?: unknown[]; /** The method of the remote endpoint where the remote field is coming from. */ remoteMethod?: string; /** The path of the remote endpoint where the remote field is coming from. */ remoteUrlPath?: string; + /** JMES path to specify json query expression to be used on field mapping. */ + jmesPath?: string; } diff --git a/src/api/resources/ats/resources/interviews/client/Client.ts b/src/api/resources/ats/resources/interviews/client/Client.ts index d8a7ac131..3ea9edbc5 100644 --- a/src/api/resources/ats/resources/interviews/client/Client.ts +++ b/src/api/resources/ats/resources/interviews/client/Client.ts @@ -35,7 +35,6 @@ export class InterviewsClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "application", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -50,105 +49,120 @@ export class InterviewsClient { * showEnumOrigins: "status" * }) */ - public list( + public async list( request: Merge.ats.InterviewsListRequest = {}, requestOptions?: InterviewsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ats.InterviewsListRequest = {}, - requestOptions?: InterviewsClient.RequestOptions, - ): Promise> { - const { - applicationId, - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - jobId, - jobInterviewStageId, - modifiedAfter, - modifiedBefore, - organizerId, - pageSize, - remoteFields, - remoteId, - showEnumOrigins, - } = request; - const _queryParams: Record = { - application_id: applicationId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: - expand != null - ? serializers.ats.InterviewsListRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - job_id: jobId, - job_interview_stage_id: jobInterviewStageId, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - organizer_id: organizerId, - page_size: pageSize, - remote_fields: remoteFields != null ? remoteFields : undefined, - remote_id: remoteId, - show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ats.InterviewsListRequest, + ): Promise> => { + const { + applicationId, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + jobId, + jobInterviewStageId, + modifiedAfter, + modifiedBefore, + organizerId, + pageSize, + remoteFields, + remoteId, + showEnumOrigins, + } = request; + const _queryParams: Record = { + application_id: applicationId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.ats.InterviewsListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.ats.InterviewsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + job_id: jobId, + job_interview_stage_id: jobInterviewStageId, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + organizer_id: organizerId, + page_size: pageSize, + remote_fields: remoteFields != null ? remoteFields : undefined, + remote_id: remoteId, + show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ats/v1/interviews", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ats.PaginatedScheduledInterviewList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/interviews"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ats/v1/interviews", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ats.PaginatedScheduledInterviewList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/interviews"); } /** @@ -242,7 +256,6 @@ export class InterviewsClient { * * @example * await client.ats.interviews.retrieve("id", { - * expand: "application", * includeRemoteData: true, * includeShellData: true, * remoteFields: "status", @@ -264,12 +277,17 @@ export class InterviewsClient { ): Promise> { const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.ats.InterviewsRetrieveRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.ats.InterviewsRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.ats.InterviewsRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, remote_fields: remoteFields != null ? remoteFields : undefined, diff --git a/src/api/resources/ats/resources/interviews/client/requests/InterviewsListRequest.ts b/src/api/resources/ats/resources/interviews/client/requests/InterviewsListRequest.ts index 274bbf37e..1118370f4 100644 --- a/src/api/resources/ats/resources/interviews/client/requests/InterviewsListRequest.ts +++ b/src/api/resources/ats/resources/interviews/client/requests/InterviewsListRequest.ts @@ -9,7 +9,6 @@ import type * as Merge from "../../../../../../index"; * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "application", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -34,7 +33,7 @@ export interface InterviewsListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.ats.InterviewsListRequestExpand; + expand?: Merge.ats.InterviewsListRequestExpandItem | Merge.ats.InterviewsListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -51,7 +50,7 @@ export interface InterviewsListRequest { modifiedBefore?: Date; /** If provided, will only return interviews organized by this user. */ organizerId?: string; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** Deprecated. Use show_enum_origins. */ remoteFields?: "status"; diff --git a/src/api/resources/ats/resources/interviews/client/requests/InterviewsRetrieveRequest.ts b/src/api/resources/ats/resources/interviews/client/requests/InterviewsRetrieveRequest.ts index f19b43e30..af1e5a6a7 100644 --- a/src/api/resources/ats/resources/interviews/client/requests/InterviewsRetrieveRequest.ts +++ b/src/api/resources/ats/resources/interviews/client/requests/InterviewsRetrieveRequest.ts @@ -5,7 +5,6 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "application", * includeRemoteData: true, * includeShellData: true, * remoteFields: "status", @@ -14,7 +13,7 @@ import type * as Merge from "../../../../../../index"; */ export interface InterviewsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.ats.InterviewsRetrieveRequestExpand; + expand?: Merge.ats.InterviewsRetrieveRequestExpandItem | Merge.ats.InterviewsRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/ats/resources/interviews/types/InterviewsListRequestExpand.ts b/src/api/resources/ats/resources/interviews/types/InterviewsListRequestExpand.ts deleted file mode 100644 index a986d1cb1..000000000 --- a/src/api/resources/ats/resources/interviews/types/InterviewsListRequestExpand.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const InterviewsListRequestExpand = { - Application: "application", - ApplicationJobInterviewStage: "application,job_interview_stage", - Interviewers: "interviewers", - InterviewersApplication: "interviewers,application", - InterviewersApplicationJobInterviewStage: "interviewers,application,job_interview_stage", - InterviewersJobInterviewStage: "interviewers,job_interview_stage", - InterviewersOrganizer: "interviewers,organizer", - InterviewersOrganizerApplication: "interviewers,organizer,application", - InterviewersOrganizerApplicationJobInterviewStage: "interviewers,organizer,application,job_interview_stage", - InterviewersOrganizerJobInterviewStage: "interviewers,organizer,job_interview_stage", - JobInterviewStage: "job_interview_stage", - Organizer: "organizer", - OrganizerApplication: "organizer,application", - OrganizerApplicationJobInterviewStage: "organizer,application,job_interview_stage", - OrganizerJobInterviewStage: "organizer,job_interview_stage", -} as const; -export type InterviewsListRequestExpand = - (typeof InterviewsListRequestExpand)[keyof typeof InterviewsListRequestExpand]; diff --git a/src/api/resources/ats/resources/interviews/types/InterviewsListRequestExpandItem.ts b/src/api/resources/ats/resources/interviews/types/InterviewsListRequestExpandItem.ts new file mode 100644 index 000000000..8be492ce8 --- /dev/null +++ b/src/api/resources/ats/resources/interviews/types/InterviewsListRequestExpandItem.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +export const InterviewsListRequestExpandItem = { + Application: "application", + Interviewers: "interviewers", + JobInterviewStage: "job_interview_stage", + Organizer: "organizer", +} as const; +export type InterviewsListRequestExpandItem = + (typeof InterviewsListRequestExpandItem)[keyof typeof InterviewsListRequestExpandItem]; diff --git a/src/api/resources/ats/resources/interviews/types/InterviewsRetrieveRequestExpand.ts b/src/api/resources/ats/resources/interviews/types/InterviewsRetrieveRequestExpand.ts deleted file mode 100644 index f1f55ee6e..000000000 --- a/src/api/resources/ats/resources/interviews/types/InterviewsRetrieveRequestExpand.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const InterviewsRetrieveRequestExpand = { - Application: "application", - ApplicationJobInterviewStage: "application,job_interview_stage", - Interviewers: "interviewers", - InterviewersApplication: "interviewers,application", - InterviewersApplicationJobInterviewStage: "interviewers,application,job_interview_stage", - InterviewersJobInterviewStage: "interviewers,job_interview_stage", - InterviewersOrganizer: "interviewers,organizer", - InterviewersOrganizerApplication: "interviewers,organizer,application", - InterviewersOrganizerApplicationJobInterviewStage: "interviewers,organizer,application,job_interview_stage", - InterviewersOrganizerJobInterviewStage: "interviewers,organizer,job_interview_stage", - JobInterviewStage: "job_interview_stage", - Organizer: "organizer", - OrganizerApplication: "organizer,application", - OrganizerApplicationJobInterviewStage: "organizer,application,job_interview_stage", - OrganizerJobInterviewStage: "organizer,job_interview_stage", -} as const; -export type InterviewsRetrieveRequestExpand = - (typeof InterviewsRetrieveRequestExpand)[keyof typeof InterviewsRetrieveRequestExpand]; diff --git a/src/api/resources/ats/resources/interviews/types/InterviewsRetrieveRequestExpandItem.ts b/src/api/resources/ats/resources/interviews/types/InterviewsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..f998c82b1 --- /dev/null +++ b/src/api/resources/ats/resources/interviews/types/InterviewsRetrieveRequestExpandItem.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +export const InterviewsRetrieveRequestExpandItem = { + Application: "application", + Interviewers: "interviewers", + JobInterviewStage: "job_interview_stage", + Organizer: "organizer", +} as const; +export type InterviewsRetrieveRequestExpandItem = + (typeof InterviewsRetrieveRequestExpandItem)[keyof typeof InterviewsRetrieveRequestExpandItem]; diff --git a/src/api/resources/ats/resources/interviews/types/index.ts b/src/api/resources/ats/resources/interviews/types/index.ts index 51b55d6c2..93e139549 100644 --- a/src/api/resources/ats/resources/interviews/types/index.ts +++ b/src/api/resources/ats/resources/interviews/types/index.ts @@ -1,2 +1,2 @@ -export * from "./InterviewsListRequestExpand"; -export * from "./InterviewsRetrieveRequestExpand"; +export * from "./InterviewsListRequestExpandItem"; +export * from "./InterviewsRetrieveRequestExpandItem"; diff --git a/src/api/resources/ats/resources/issues/client/Client.ts b/src/api/resources/ats/resources/issues/client/Client.ts index 5b4d73817..8ebf1d07d 100644 --- a/src/api/resources/ats/resources/issues/client/Client.ts +++ b/src/api/resources/ats/resources/issues/client/Client.ts @@ -47,97 +47,109 @@ export class IssuesClient { * status: "ONGOING" * }) */ - public list( + public async list( request: Merge.ats.IssuesListRequest = {}, requestOptions?: IssuesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ats.IssuesListRequest = {}, - requestOptions?: IssuesClient.RequestOptions, - ): Promise> { - const { - accountToken, - cursor, - endDate, - endUserOrganizationName, - firstIncidentTimeAfter, - firstIncidentTimeBefore, - includeMuted, - integrationName, - lastIncidentTimeAfter, - lastIncidentTimeBefore, - linkedAccountId, - pageSize, - startDate, - status, - } = request; - const _queryParams: Record = { - account_token: accountToken, - cursor, - end_date: endDate, - end_user_organization_name: endUserOrganizationName, - first_incident_time_after: firstIncidentTimeAfter?.toISOString(), - first_incident_time_before: firstIncidentTimeBefore?.toISOString(), - include_muted: includeMuted, - integration_name: integrationName, - last_incident_time_after: lastIncidentTimeAfter?.toISOString(), - last_incident_time_before: lastIncidentTimeBefore?.toISOString(), - linked_account_id: linkedAccountId, - page_size: pageSize, - start_date: startDate, - status: - status != null - ? serializers.ats.IssuesListRequestStatus.jsonOrThrow(status, { unrecognizedObjectKeys: "strip" }) - : undefined, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ats.IssuesListRequest, + ): Promise> => { + const { + accountToken, + cursor, + endDate, + endUserOrganizationName, + firstIncidentTimeAfter, + firstIncidentTimeBefore, + includeMuted, + integrationName, + lastIncidentTimeAfter, + lastIncidentTimeBefore, + linkedAccountId, + pageSize, + startDate, + status, + } = request; + const _queryParams: Record = { + account_token: accountToken, + cursor, + end_date: endDate, + end_user_organization_name: endUserOrganizationName, + first_incident_time_after: firstIncidentTimeAfter?.toISOString(), + first_incident_time_before: firstIncidentTimeBefore?.toISOString(), + include_muted: includeMuted, + integration_name: integrationName, + last_incident_time_after: lastIncidentTimeAfter?.toISOString(), + last_incident_time_before: lastIncidentTimeBefore?.toISOString(), + linked_account_id: linkedAccountId, + page_size: pageSize, + start_date: startDate, + status: + status != null + ? serializers.ats.IssuesListRequestStatus.jsonOrThrow(status, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ats/v1/issues", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ats.PaginatedIssueList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/issues"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ats/v1/issues", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ats.PaginatedIssueList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/issues"); } /** diff --git a/src/api/resources/ats/resources/issues/client/requests/IssuesListRequest.ts b/src/api/resources/ats/resources/issues/client/requests/IssuesListRequest.ts index a63191296..565b88b30 100644 --- a/src/api/resources/ats/resources/issues/client/requests/IssuesListRequest.ts +++ b/src/api/resources/ats/resources/issues/client/requests/IssuesListRequest.ts @@ -41,7 +41,7 @@ export interface IssuesListRequest { lastIncidentTimeBefore?: Date; /** If provided, will only include issues pertaining to the linked account passed in. */ linkedAccountId?: string; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** If included, will only include issues whose most recent action occurred after this time */ startDate?: string; diff --git a/src/api/resources/ats/resources/jobInterviewStages/client/Client.ts b/src/api/resources/ats/resources/jobInterviewStages/client/Client.ts index 43ed565d5..0fe5a6ded 100644 --- a/src/api/resources/ats/resources/jobInterviewStages/client/Client.ts +++ b/src/api/resources/ats/resources/jobInterviewStages/client/Client.ts @@ -34,7 +34,6 @@ export class JobInterviewStagesClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "job", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -45,90 +44,105 @@ export class JobInterviewStagesClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.ats.JobInterviewStagesListRequest = {}, requestOptions?: JobInterviewStagesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ats.JobInterviewStagesListRequest = {}, - requestOptions?: JobInterviewStagesClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - jobId, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: expand != null ? expand : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - job_id: jobId, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ats.JobInterviewStagesListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + jobId, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + job_id: jobId, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ats/v1/job-interview-stages", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ats.PaginatedJobInterviewStageList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/ats/v1/job-interview-stages", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ats/v1/job-interview-stages", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ats.PaginatedJobInterviewStageList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/job-interview-stages"); } /** @@ -140,7 +154,6 @@ export class JobInterviewStagesClient { * * @example * await client.ats.jobInterviewStages.retrieve("id", { - * expand: "job", * includeRemoteData: true, * includeShellData: true * }) @@ -160,7 +173,7 @@ export class JobInterviewStagesClient { ): Promise> { const { expand, includeRemoteData, includeShellData } = request; const _queryParams: Record = { - expand: expand != null ? expand : undefined, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, }; diff --git a/src/api/resources/ats/resources/jobInterviewStages/client/requests/JobInterviewStagesListRequest.ts b/src/api/resources/ats/resources/jobInterviewStages/client/requests/JobInterviewStagesListRequest.ts index fc770023f..df83450bd 100644 --- a/src/api/resources/ats/resources/jobInterviewStages/client/requests/JobInterviewStagesListRequest.ts +++ b/src/api/resources/ats/resources/jobInterviewStages/client/requests/JobInterviewStagesListRequest.ts @@ -6,7 +6,6 @@ * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "job", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -25,7 +24,7 @@ export interface JobInterviewStagesListRequest { /** 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"; + expand?: "job" | "job"[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -38,7 +37,7 @@ export interface JobInterviewStagesListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; diff --git a/src/api/resources/ats/resources/jobInterviewStages/client/requests/JobInterviewStagesRetrieveRequest.ts b/src/api/resources/ats/resources/jobInterviewStages/client/requests/JobInterviewStagesRetrieveRequest.ts index d11a172c8..acd21b819 100644 --- a/src/api/resources/ats/resources/jobInterviewStages/client/requests/JobInterviewStagesRetrieveRequest.ts +++ b/src/api/resources/ats/resources/jobInterviewStages/client/requests/JobInterviewStagesRetrieveRequest.ts @@ -3,14 +3,13 @@ /** * @example * { - * expand: "job", * includeRemoteData: true, * includeShellData: true * } */ export interface JobInterviewStagesRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "job"; + expand?: "job" | "job"[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/ats/resources/jobPostings/client/Client.ts b/src/api/resources/ats/resources/jobPostings/client/Client.ts index 959d3efa9..1f3457d91 100644 --- a/src/api/resources/ats/resources/jobPostings/client/Client.ts +++ b/src/api/resources/ats/resources/jobPostings/client/Client.ts @@ -34,7 +34,6 @@ export class JobPostingsClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "job", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -45,95 +44,105 @@ export class JobPostingsClient { * status: "CLOSED" * }) */ - public list( + public async list( request: Merge.ats.JobPostingsListRequest = {}, requestOptions?: JobPostingsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ats.JobPostingsListRequest = {}, - requestOptions?: JobPostingsClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - status, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: expand != null ? expand : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - status: - status != null - ? serializers.ats.JobPostingsListRequestStatus.jsonOrThrow(status, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ats.JobPostingsListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + status, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + status: + status != null + ? serializers.ats.JobPostingsListRequestStatus.jsonOrThrow(status, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ats/v1/job-postings", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ats.PaginatedJobPostingList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/job-postings"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ats/v1/job-postings", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ats.PaginatedJobPostingList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/job-postings"); } /** @@ -145,7 +154,6 @@ export class JobPostingsClient { * * @example * await client.ats.jobPostings.retrieve("id", { - * expand: "job", * includeRemoteData: true, * includeShellData: true * }) @@ -165,7 +173,7 @@ export class JobPostingsClient { ): Promise> { const { expand, includeRemoteData, includeShellData } = request; const _queryParams: Record = { - expand: expand != null ? expand : undefined, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, }; 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 31b7e7f8a..431777aa0 100644 --- a/src/api/resources/ats/resources/jobPostings/client/requests/JobPostingsListRequest.ts +++ b/src/api/resources/ats/resources/jobPostings/client/requests/JobPostingsListRequest.ts @@ -8,7 +8,6 @@ import type * as Merge from "../../../../../../index"; * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "job", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -27,7 +26,7 @@ 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"; + expand?: "job" | "job"[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -38,7 +37,7 @@ export interface JobPostingsListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; 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 ed305cfd7..9f22f371f 100644 --- a/src/api/resources/ats/resources/jobPostings/client/requests/JobPostingsRetrieveRequest.ts +++ b/src/api/resources/ats/resources/jobPostings/client/requests/JobPostingsRetrieveRequest.ts @@ -3,14 +3,13 @@ /** * @example * { - * expand: "job", * includeRemoteData: true, * includeShellData: true * } */ export interface JobPostingsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "job"; + expand?: "job" | "job"[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/ats/resources/jobs/client/Client.ts b/src/api/resources/ats/resources/jobs/client/Client.ts index d4cea40fd..d80d4d69e 100644 --- a/src/api/resources/ats/resources/jobs/client/Client.ts +++ b/src/api/resources/ats/resources/jobs/client/Client.ts @@ -35,7 +35,6 @@ export class JobsClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "departments", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -49,104 +48,121 @@ export class JobsClient { * status: "ARCHIVED" * }) */ - public list( + public async list( request: Merge.ats.JobsListRequest = {}, requestOptions?: JobsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ats.JobsListRequest = {}, - requestOptions?: JobsClient.RequestOptions, - ): Promise> { - const { - code, - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - offices, - pageSize, - remoteFields, - remoteId, - showEnumOrigins, - status, - } = request; - const _queryParams: Record = { - code, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: - expand != null - ? serializers.ats.JobsListRequestExpand.jsonOrThrow(expand, { unrecognizedObjectKeys: "strip" }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - offices, - page_size: pageSize, - remote_fields: remoteFields != null ? remoteFields : undefined, - remote_id: remoteId, - show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, - status: - status != null - ? serializers.ats.JobsListRequestStatus.jsonOrThrow(status, { unrecognizedObjectKeys: "strip" }) - : undefined, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async (request: Merge.ats.JobsListRequest): Promise> => { + const { + code, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + offices, + pageSize, + remoteFields, + remoteId, + showEnumOrigins, + status, + } = request; + const _queryParams: Record = { + code, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.ats.JobsListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.ats.JobsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + offices, + page_size: pageSize, + remote_fields: remoteFields != null ? remoteFields : undefined, + remote_id: remoteId, + show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, + status: + status != null + ? serializers.ats.JobsListRequestStatus.jsonOrThrow(status, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ats/v1/jobs", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ats.PaginatedJobList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/jobs"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ats/v1/jobs", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ats.PaginatedJobList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/jobs"); } /** @@ -158,7 +174,6 @@ export class JobsClient { * * @example * await client.ats.jobs.retrieve("id", { - * expand: "departments", * includeRemoteData: true, * includeShellData: true, * remoteFields: "status", @@ -180,10 +195,17 @@ export class JobsClient { ): Promise> { const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.ats.JobsRetrieveRequestExpand.jsonOrThrow(expand, { unrecognizedObjectKeys: "strip" }) - : undefined, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.ats.JobsRetrieveRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.ats.JobsRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, remote_fields: remoteFields != null ? remoteFields : undefined, @@ -246,89 +268,102 @@ export class JobsClient { * @example * await client.ats.jobs.screeningQuestionsList("job_id", { * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "job", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, * pageSize: 1 * }) */ - public screeningQuestionsList( + public async screeningQuestionsList( job_id: string, request: Merge.ats.JobsScreeningQuestionsListRequest = {}, requestOptions?: JobsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__screeningQuestionsList(job_id, request, requestOptions)); - } - - private async __screeningQuestionsList( - job_id: string, - request: Merge.ats.JobsScreeningQuestionsListRequest = {}, - requestOptions?: JobsClient.RequestOptions, - ): Promise> { - const { cursor, expand, includeDeletedData, includeRemoteData, includeShellData, pageSize } = request; - const _queryParams: Record = { - cursor, - expand: - expand != null - ? serializers.ats.JobsScreeningQuestionsListRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - page_size: pageSize, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ats.JobsScreeningQuestionsListRequest, + ): Promise> => { + const { cursor, expand, includeDeletedData, includeRemoteData, includeShellData, pageSize } = request; + const _queryParams: Record = { + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.ats.JobsScreeningQuestionsListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.ats.JobsScreeningQuestionsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + `ats/v1/jobs/${core.url.encodePathParam(job_id)}/screening-questions`, + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ats.PaginatedScreeningQuestionList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/ats/v1/jobs/{job_id}/screening-questions", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `ats/v1/jobs/${core.url.encodePathParam(job_id)}/screening-questions`, - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ats.PaginatedScreeningQuestionList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/ats/v1/jobs/{job_id}/screening-questions", - ); } } diff --git a/src/api/resources/ats/resources/jobs/client/requests/JobsListRequest.ts b/src/api/resources/ats/resources/jobs/client/requests/JobsListRequest.ts index dc76cf5bc..3cf9ec938 100644 --- a/src/api/resources/ats/resources/jobs/client/requests/JobsListRequest.ts +++ b/src/api/resources/ats/resources/jobs/client/requests/JobsListRequest.ts @@ -9,7 +9,6 @@ import type * as Merge from "../../../../../../index"; * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "departments", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -33,7 +32,7 @@ export interface JobsListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.ats.JobsListRequestExpand; + expand?: Merge.ats.JobsListRequestExpandItem | Merge.ats.JobsListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -46,7 +45,7 @@ export interface JobsListRequest { modifiedBefore?: Date; /** If provided, will only return jobs for this office; multiple offices can be separated by commas. */ offices?: string; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** Deprecated. Use show_enum_origins. */ remoteFields?: "status"; diff --git a/src/api/resources/ats/resources/jobs/client/requests/JobsRetrieveRequest.ts b/src/api/resources/ats/resources/jobs/client/requests/JobsRetrieveRequest.ts index fc7b7be56..024c7f662 100644 --- a/src/api/resources/ats/resources/jobs/client/requests/JobsRetrieveRequest.ts +++ b/src/api/resources/ats/resources/jobs/client/requests/JobsRetrieveRequest.ts @@ -5,7 +5,6 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "departments", * includeRemoteData: true, * includeShellData: true, * remoteFields: "status", @@ -14,7 +13,7 @@ import type * as Merge from "../../../../../../index"; */ export interface JobsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.ats.JobsRetrieveRequestExpand; + expand?: Merge.ats.JobsRetrieveRequestExpandItem | Merge.ats.JobsRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/ats/resources/jobs/client/requests/JobsScreeningQuestionsListRequest.ts b/src/api/resources/ats/resources/jobs/client/requests/JobsScreeningQuestionsListRequest.ts index 0cce6999c..d75db55e3 100644 --- a/src/api/resources/ats/resources/jobs/client/requests/JobsScreeningQuestionsListRequest.ts +++ b/src/api/resources/ats/resources/jobs/client/requests/JobsScreeningQuestionsListRequest.ts @@ -6,7 +6,6 @@ import type * as Merge from "../../../../../../index"; * @example * { * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "job", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -17,13 +16,15 @@ export interface JobsScreeningQuestionsListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.ats.JobsScreeningQuestionsListRequestExpand; + expand?: + | Merge.ats.JobsScreeningQuestionsListRequestExpandItem + | Merge.ats.JobsScreeningQuestionsListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ includeShellData?: boolean; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; } diff --git a/src/api/resources/ats/resources/jobs/types/JobsListRequestExpand.ts b/src/api/resources/ats/resources/jobs/types/JobsListRequestExpand.ts deleted file mode 100644 index 689110876..000000000 --- a/src/api/resources/ats/resources/jobs/types/JobsListRequestExpand.ts +++ /dev/null @@ -1,37 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const JobsListRequestExpand = { - Departments: "departments", - DepartmentsHiringManagers: "departments,hiring_managers", - DepartmentsHiringManagersJobPostings: "departments,hiring_managers,job_postings", - DepartmentsHiringManagersJobPostingsRecruiters: "departments,hiring_managers,job_postings,recruiters", - DepartmentsHiringManagersRecruiters: "departments,hiring_managers,recruiters", - DepartmentsJobPostings: "departments,job_postings", - DepartmentsJobPostingsRecruiters: "departments,job_postings,recruiters", - DepartmentsOffices: "departments,offices", - DepartmentsOfficesHiringManagers: "departments,offices,hiring_managers", - DepartmentsOfficesHiringManagersJobPostings: "departments,offices,hiring_managers,job_postings", - DepartmentsOfficesHiringManagersJobPostingsRecruiters: - "departments,offices,hiring_managers,job_postings,recruiters", - DepartmentsOfficesHiringManagersRecruiters: "departments,offices,hiring_managers,recruiters", - DepartmentsOfficesJobPostings: "departments,offices,job_postings", - DepartmentsOfficesJobPostingsRecruiters: "departments,offices,job_postings,recruiters", - DepartmentsOfficesRecruiters: "departments,offices,recruiters", - DepartmentsRecruiters: "departments,recruiters", - HiringManagers: "hiring_managers", - HiringManagersJobPostings: "hiring_managers,job_postings", - HiringManagersJobPostingsRecruiters: "hiring_managers,job_postings,recruiters", - HiringManagersRecruiters: "hiring_managers,recruiters", - JobPostings: "job_postings", - JobPostingsRecruiters: "job_postings,recruiters", - Offices: "offices", - OfficesHiringManagers: "offices,hiring_managers", - OfficesHiringManagersJobPostings: "offices,hiring_managers,job_postings", - OfficesHiringManagersJobPostingsRecruiters: "offices,hiring_managers,job_postings,recruiters", - OfficesHiringManagersRecruiters: "offices,hiring_managers,recruiters", - OfficesJobPostings: "offices,job_postings", - OfficesJobPostingsRecruiters: "offices,job_postings,recruiters", - OfficesRecruiters: "offices,recruiters", - Recruiters: "recruiters", -} as const; -export type JobsListRequestExpand = (typeof JobsListRequestExpand)[keyof typeof JobsListRequestExpand]; diff --git a/src/api/resources/ats/resources/jobs/types/JobsListRequestExpandItem.ts b/src/api/resources/ats/resources/jobs/types/JobsListRequestExpandItem.ts new file mode 100644 index 000000000..175d6b58e --- /dev/null +++ b/src/api/resources/ats/resources/jobs/types/JobsListRequestExpandItem.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +export const JobsListRequestExpandItem = { + Departments: "departments", + HiringManagers: "hiring_managers", + JobPostings: "job_postings", + Offices: "offices", + Recruiters: "recruiters", +} as const; +export type JobsListRequestExpandItem = (typeof JobsListRequestExpandItem)[keyof typeof JobsListRequestExpandItem]; diff --git a/src/api/resources/ats/resources/jobs/types/JobsRetrieveRequestExpand.ts b/src/api/resources/ats/resources/jobs/types/JobsRetrieveRequestExpand.ts deleted file mode 100644 index b350b2694..000000000 --- a/src/api/resources/ats/resources/jobs/types/JobsRetrieveRequestExpand.ts +++ /dev/null @@ -1,37 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const JobsRetrieveRequestExpand = { - Departments: "departments", - DepartmentsHiringManagers: "departments,hiring_managers", - DepartmentsHiringManagersJobPostings: "departments,hiring_managers,job_postings", - DepartmentsHiringManagersJobPostingsRecruiters: "departments,hiring_managers,job_postings,recruiters", - DepartmentsHiringManagersRecruiters: "departments,hiring_managers,recruiters", - DepartmentsJobPostings: "departments,job_postings", - DepartmentsJobPostingsRecruiters: "departments,job_postings,recruiters", - DepartmentsOffices: "departments,offices", - DepartmentsOfficesHiringManagers: "departments,offices,hiring_managers", - DepartmentsOfficesHiringManagersJobPostings: "departments,offices,hiring_managers,job_postings", - DepartmentsOfficesHiringManagersJobPostingsRecruiters: - "departments,offices,hiring_managers,job_postings,recruiters", - DepartmentsOfficesHiringManagersRecruiters: "departments,offices,hiring_managers,recruiters", - DepartmentsOfficesJobPostings: "departments,offices,job_postings", - DepartmentsOfficesJobPostingsRecruiters: "departments,offices,job_postings,recruiters", - DepartmentsOfficesRecruiters: "departments,offices,recruiters", - DepartmentsRecruiters: "departments,recruiters", - HiringManagers: "hiring_managers", - HiringManagersJobPostings: "hiring_managers,job_postings", - HiringManagersJobPostingsRecruiters: "hiring_managers,job_postings,recruiters", - HiringManagersRecruiters: "hiring_managers,recruiters", - JobPostings: "job_postings", - JobPostingsRecruiters: "job_postings,recruiters", - Offices: "offices", - OfficesHiringManagers: "offices,hiring_managers", - OfficesHiringManagersJobPostings: "offices,hiring_managers,job_postings", - OfficesHiringManagersJobPostingsRecruiters: "offices,hiring_managers,job_postings,recruiters", - OfficesHiringManagersRecruiters: "offices,hiring_managers,recruiters", - OfficesJobPostings: "offices,job_postings", - OfficesJobPostingsRecruiters: "offices,job_postings,recruiters", - OfficesRecruiters: "offices,recruiters", - Recruiters: "recruiters", -} as const; -export type JobsRetrieveRequestExpand = (typeof JobsRetrieveRequestExpand)[keyof typeof JobsRetrieveRequestExpand]; diff --git a/src/api/resources/ats/resources/jobs/types/JobsRetrieveRequestExpandItem.ts b/src/api/resources/ats/resources/jobs/types/JobsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..ec1a16d80 --- /dev/null +++ b/src/api/resources/ats/resources/jobs/types/JobsRetrieveRequestExpandItem.ts @@ -0,0 +1,11 @@ +// This file was auto-generated by Fern from our API Definition. + +export const JobsRetrieveRequestExpandItem = { + Departments: "departments", + HiringManagers: "hiring_managers", + JobPostings: "job_postings", + Offices: "offices", + Recruiters: "recruiters", +} as const; +export type JobsRetrieveRequestExpandItem = + (typeof JobsRetrieveRequestExpandItem)[keyof typeof JobsRetrieveRequestExpandItem]; diff --git a/src/api/resources/ats/resources/jobs/types/JobsScreeningQuestionsListRequestExpand.ts b/src/api/resources/ats/resources/jobs/types/JobsScreeningQuestionsListRequestExpand.ts deleted file mode 100644 index 8d6e21f66..000000000 --- a/src/api/resources/ats/resources/jobs/types/JobsScreeningQuestionsListRequestExpand.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const JobsScreeningQuestionsListRequestExpand = { - Job: "job", - Options: "options", - OptionsJob: "options,job", -} as const; -export type JobsScreeningQuestionsListRequestExpand = - (typeof JobsScreeningQuestionsListRequestExpand)[keyof typeof JobsScreeningQuestionsListRequestExpand]; diff --git a/src/api/resources/ats/resources/jobs/types/JobsScreeningQuestionsListRequestExpandItem.ts b/src/api/resources/ats/resources/jobs/types/JobsScreeningQuestionsListRequestExpandItem.ts new file mode 100644 index 000000000..d21f93ae1 --- /dev/null +++ b/src/api/resources/ats/resources/jobs/types/JobsScreeningQuestionsListRequestExpandItem.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export const JobsScreeningQuestionsListRequestExpandItem = { + Job: "job", + Options: "options", +} as const; +export type JobsScreeningQuestionsListRequestExpandItem = + (typeof JobsScreeningQuestionsListRequestExpandItem)[keyof typeof JobsScreeningQuestionsListRequestExpandItem]; diff --git a/src/api/resources/ats/resources/jobs/types/index.ts b/src/api/resources/ats/resources/jobs/types/index.ts index ebb23b639..2e02930d1 100644 --- a/src/api/resources/ats/resources/jobs/types/index.ts +++ b/src/api/resources/ats/resources/jobs/types/index.ts @@ -1,4 +1,4 @@ -export * from "./JobsListRequestExpand"; +export * from "./JobsListRequestExpandItem"; export * from "./JobsListRequestStatus"; -export * from "./JobsRetrieveRequestExpand"; -export * from "./JobsScreeningQuestionsListRequestExpand"; +export * from "./JobsRetrieveRequestExpandItem"; +export * from "./JobsScreeningQuestionsListRequestExpandItem"; diff --git a/src/api/resources/ats/resources/linkToken/client/Client.ts b/src/api/resources/ats/resources/linkToken/client/Client.ts index 01624f586..658f4a5b3 100644 --- a/src/api/resources/ats/resources/linkToken/client/Client.ts +++ b/src/api/resources/ats/resources/linkToken/client/Client.ts @@ -24,7 +24,7 @@ export class LinkTokenClient { } /** - * Creates a link token to be used when linking a new end user. + * Creates a link token to be used when linking a new end user. The link token expires after single use. * * @param {Merge.ats.EndUserDetailsRequest} request * @param {LinkTokenClient.RequestOptions} requestOptions - Request-specific configuration. diff --git a/src/api/resources/ats/resources/linkedAccounts/client/Client.ts b/src/api/resources/ats/resources/linkedAccounts/client/Client.ts index 42b3ce32b..297032c31 100644 --- a/src/api/resources/ats/resources/linkedAccounts/client/Client.ts +++ b/src/api/resources/ats/resources/linkedAccounts/client/Client.ts @@ -46,96 +46,111 @@ export class LinkedAccountsClient { * status: "status" * }) */ - public list( + public async list( request: Merge.ats.LinkedAccountsListRequest = {}, requestOptions?: LinkedAccountsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ats.LinkedAccountsListRequest = {}, - requestOptions?: LinkedAccountsClient.RequestOptions, - ): Promise> { - const { - category, - cursor, - endUserEmailAddress, - endUserOrganizationName, - endUserOriginId, - endUserOriginIds, - id, - ids, - includeDuplicates, - integrationName, - isTestAccount, - pageSize, - status, - } = request; - const _queryParams: Record = { - category: - category != null - ? serializers.ats.LinkedAccountsListRequestCategory.jsonOrThrow(category, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - cursor, - end_user_email_address: endUserEmailAddress, - end_user_organization_name: endUserOrganizationName, - end_user_origin_id: endUserOriginId, - end_user_origin_ids: endUserOriginIds, - id, - ids, - include_duplicates: includeDuplicates, - integration_name: integrationName, - is_test_account: isTestAccount, - page_size: pageSize, - status, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ats.LinkedAccountsListRequest, + ): Promise> => { + const { + category, + cursor, + endUserEmailAddress, + endUserOrganizationName, + endUserOriginId, + endUserOriginIds, + id, + ids, + includeDuplicates, + integrationName, + isTestAccount, + pageSize, + status, + } = request; + const _queryParams: Record = { + category: + category != null + ? serializers.ats.LinkedAccountsListRequestCategory.jsonOrThrow(category, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + cursor, + end_user_email_address: endUserEmailAddress, + end_user_organization_name: endUserOrganizationName, + end_user_origin_id: endUserOriginId, + end_user_origin_ids: endUserOriginIds, + id, + ids, + include_duplicates: includeDuplicates, + integration_name: integrationName, + is_test_account: isTestAccount, + page_size: pageSize, + status, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ats/v1/linked-accounts", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ats.PaginatedAccountDetailsAndActionsList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/ats/v1/linked-accounts", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ats/v1/linked-accounts", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ats.PaginatedAccountDetailsAndActionsList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/linked-accounts"); } } diff --git a/src/api/resources/ats/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts b/src/api/resources/ats/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts index 621690454..8a95bb1ff 100644 --- a/src/api/resources/ats/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts +++ b/src/api/resources/ats/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts @@ -52,7 +52,7 @@ export interface LinkedAccountsListRequest { integrationName?: string; /** If included, will only include test linked accounts. If not included, will only include non-test linked accounts. */ isTestAccount?: string; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` */ status?: string; diff --git a/src/api/resources/ats/resources/offers/client/Client.ts b/src/api/resources/ats/resources/offers/client/Client.ts index ea6f417c7..f34d7abb4 100644 --- a/src/api/resources/ats/resources/offers/client/Client.ts +++ b/src/api/resources/ats/resources/offers/client/Client.ts @@ -36,7 +36,6 @@ export class OffersClient { * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * creatorId: "creator_id", * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "application", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -45,102 +44,127 @@ export class OffersClient { * pageSize: 1, * remoteFields: "status", * remoteId: "remote_id", - * showEnumOrigins: "status" + * showEnumOrigins: "status", + * status: "APPROVAL-SENT" * }) */ - public list( + public async list( request: Merge.ats.OffersListRequest = {}, requestOptions?: OffersClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ats.OffersListRequest = {}, - requestOptions?: OffersClient.RequestOptions, - ): Promise> { - const { - applicationId, - createdAfter, - createdBefore, - creatorId, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteFields, - remoteId, - showEnumOrigins, - } = request; - const _queryParams: Record = { - application_id: applicationId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - creator_id: creatorId, - cursor, - expand: - expand != null - ? serializers.ats.OffersListRequestExpand.jsonOrThrow(expand, { unrecognizedObjectKeys: "strip" }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_fields: remoteFields != null ? remoteFields : undefined, - remote_id: remoteId, - show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ats.OffersListRequest, + ): Promise> => { + const { + applicationId, + createdAfter, + createdBefore, + creatorId, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteFields, + remoteId, + showEnumOrigins, + status, + } = request; + const _queryParams: Record = { + application_id: applicationId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + creator_id: creatorId, + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.ats.OffersListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.ats.OffersListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_fields: remoteFields != null ? remoteFields : undefined, + remote_id: remoteId, + show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, + status: + status != null + ? serializers.ats.OffersListRequestStatus.jsonOrThrow(status, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ats/v1/offers", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ats.PaginatedOfferList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/offers"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ats/v1/offers", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ats.PaginatedOfferList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/offers"); } /** @@ -152,7 +176,6 @@ export class OffersClient { * * @example * await client.ats.offers.retrieve("id", { - * expand: "application", * includeRemoteData: true, * includeShellData: true, * remoteFields: "status", @@ -174,12 +197,17 @@ export class OffersClient { ): Promise> { const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.ats.OffersRetrieveRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.ats.OffersRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.ats.OffersRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, remote_fields: remoteFields != null ? remoteFields : undefined, diff --git a/src/api/resources/ats/resources/offers/client/requests/OffersListRequest.ts b/src/api/resources/ats/resources/offers/client/requests/OffersListRequest.ts index 69571c37f..ebe50573e 100644 --- a/src/api/resources/ats/resources/offers/client/requests/OffersListRequest.ts +++ b/src/api/resources/ats/resources/offers/client/requests/OffersListRequest.ts @@ -10,7 +10,6 @@ import type * as Merge from "../../../../../../index"; * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * creatorId: "creator_id", * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "application", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -19,7 +18,8 @@ import type * as Merge from "../../../../../../index"; * pageSize: 1, * remoteFields: "status", * remoteId: "remote_id", - * showEnumOrigins: "status" + * showEnumOrigins: "status", + * status: "APPROVAL-SENT" * } */ export interface OffersListRequest { @@ -34,7 +34,7 @@ export interface OffersListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.ats.OffersListRequestExpand; + expand?: Merge.ats.OffersListRequestExpandItem | Merge.ats.OffersListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -53,4 +53,18 @@ export interface OffersListRequest { remoteId?: string; /** A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) */ showEnumOrigins?: "status"; + /** + * If provided, will only return offers with this status. Options: ('DRAFT', 'APPROVAL-SENT', 'APPROVED', 'SENT', 'SENT-MANUALLY', 'OPENED', 'DENIED', 'SIGNED', 'DEPRECATED') + * + * * `DRAFT` - DRAFT + * * `APPROVAL-SENT` - APPROVAL-SENT + * * `APPROVED` - APPROVED + * * `SENT` - SENT + * * `SENT-MANUALLY` - SENT-MANUALLY + * * `OPENED` - OPENED + * * `DENIED` - DENIED + * * `SIGNED` - SIGNED + * * `DEPRECATED` - DEPRECATED + */ + status?: Merge.ats.OffersListRequestStatus; } diff --git a/src/api/resources/ats/resources/offers/client/requests/OffersRetrieveRequest.ts b/src/api/resources/ats/resources/offers/client/requests/OffersRetrieveRequest.ts index 5b416ad43..8f7c472f3 100644 --- a/src/api/resources/ats/resources/offers/client/requests/OffersRetrieveRequest.ts +++ b/src/api/resources/ats/resources/offers/client/requests/OffersRetrieveRequest.ts @@ -5,7 +5,6 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "application", * includeRemoteData: true, * includeShellData: true, * remoteFields: "status", @@ -14,7 +13,7 @@ import type * as Merge from "../../../../../../index"; */ export interface OffersRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.ats.OffersRetrieveRequestExpand; + expand?: Merge.ats.OffersRetrieveRequestExpandItem | Merge.ats.OffersRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/ats/resources/offers/types/OffersListRequestExpand.ts b/src/api/resources/ats/resources/offers/types/OffersListRequestExpand.ts deleted file mode 100644 index 17a2fe94b..000000000 --- a/src/api/resources/ats/resources/offers/types/OffersListRequestExpand.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const OffersListRequestExpand = { - Application: "application", - ApplicationCreator: "application,creator", - Creator: "creator", -} as const; -export type OffersListRequestExpand = (typeof OffersListRequestExpand)[keyof typeof OffersListRequestExpand]; diff --git a/src/api/resources/ats/resources/offers/types/OffersListRequestExpandItem.ts b/src/api/resources/ats/resources/offers/types/OffersListRequestExpandItem.ts new file mode 100644 index 000000000..d7a17feae --- /dev/null +++ b/src/api/resources/ats/resources/offers/types/OffersListRequestExpandItem.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export const OffersListRequestExpandItem = { + Application: "application", + Creator: "creator", +} as const; +export type OffersListRequestExpandItem = + (typeof OffersListRequestExpandItem)[keyof typeof OffersListRequestExpandItem]; diff --git a/src/api/resources/ats/resources/offers/types/OffersListRequestStatus.ts b/src/api/resources/ats/resources/offers/types/OffersListRequestStatus.ts new file mode 100644 index 000000000..4cfa134c7 --- /dev/null +++ b/src/api/resources/ats/resources/offers/types/OffersListRequestStatus.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +export const OffersListRequestStatus = { + ApprovalSent: "APPROVAL-SENT", + Approved: "APPROVED", + Denied: "DENIED", + Deprecated: "DEPRECATED", + Draft: "DRAFT", + Opened: "OPENED", + Sent: "SENT", + SentManually: "SENT-MANUALLY", + Signed: "SIGNED", +} as const; +export type OffersListRequestStatus = (typeof OffersListRequestStatus)[keyof typeof OffersListRequestStatus]; diff --git a/src/api/resources/ats/resources/offers/types/OffersRetrieveRequestExpand.ts b/src/api/resources/ats/resources/offers/types/OffersRetrieveRequestExpand.ts deleted file mode 100644 index 589172d94..000000000 --- a/src/api/resources/ats/resources/offers/types/OffersRetrieveRequestExpand.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const OffersRetrieveRequestExpand = { - Application: "application", - ApplicationCreator: "application,creator", - Creator: "creator", -} as const; -export type OffersRetrieveRequestExpand = - (typeof OffersRetrieveRequestExpand)[keyof typeof OffersRetrieveRequestExpand]; diff --git a/src/api/resources/ats/resources/offers/types/OffersRetrieveRequestExpandItem.ts b/src/api/resources/ats/resources/offers/types/OffersRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..80c375b59 --- /dev/null +++ b/src/api/resources/ats/resources/offers/types/OffersRetrieveRequestExpandItem.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export const OffersRetrieveRequestExpandItem = { + Application: "application", + Creator: "creator", +} as const; +export type OffersRetrieveRequestExpandItem = + (typeof OffersRetrieveRequestExpandItem)[keyof typeof OffersRetrieveRequestExpandItem]; diff --git a/src/api/resources/ats/resources/offers/types/index.ts b/src/api/resources/ats/resources/offers/types/index.ts index 4b81bcdb5..593f93074 100644 --- a/src/api/resources/ats/resources/offers/types/index.ts +++ b/src/api/resources/ats/resources/offers/types/index.ts @@ -1,2 +1,3 @@ -export * from "./OffersListRequestExpand"; -export * from "./OffersRetrieveRequestExpand"; +export * from "./OffersListRequestExpandItem"; +export * from "./OffersListRequestStatus"; +export * from "./OffersRetrieveRequestExpandItem"; diff --git a/src/api/resources/ats/resources/offices/client/Client.ts b/src/api/resources/ats/resources/offices/client/Client.ts index c4a2d0469..145fa0dec 100644 --- a/src/api/resources/ats/resources/offices/client/Client.ts +++ b/src/api/resources/ats/resources/offices/client/Client.ts @@ -43,86 +43,96 @@ export class OfficesClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.ats.OfficesListRequest = {}, requestOptions?: OfficesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ats.OfficesListRequest = {}, - requestOptions?: OfficesClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ats.OfficesListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ats/v1/offices", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ats.PaginatedOfficeList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/offices"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ats/v1/offices", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ats.PaginatedOfficeList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/offices"); } /** diff --git a/src/api/resources/ats/resources/offices/client/requests/OfficesListRequest.ts b/src/api/resources/ats/resources/offices/client/requests/OfficesListRequest.ts index 77f14bb02..40e9a0bac 100644 --- a/src/api/resources/ats/resources/offices/client/requests/OfficesListRequest.ts +++ b/src/api/resources/ats/resources/offices/client/requests/OfficesListRequest.ts @@ -32,7 +32,7 @@ export interface OfficesListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; diff --git a/src/api/resources/ats/resources/rejectReasons/client/Client.ts b/src/api/resources/ats/resources/rejectReasons/client/Client.ts index 0f7151605..7db9b91af 100644 --- a/src/api/resources/ats/resources/rejectReasons/client/Client.ts +++ b/src/api/resources/ats/resources/rejectReasons/client/Client.ts @@ -43,86 +43,101 @@ export class RejectReasonsClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.ats.RejectReasonsListRequest = {}, requestOptions?: RejectReasonsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ats.RejectReasonsListRequest = {}, - requestOptions?: RejectReasonsClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ats.RejectReasonsListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ats/v1/reject-reasons", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ats.PaginatedRejectReasonList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/ats/v1/reject-reasons", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ats/v1/reject-reasons", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ats.PaginatedRejectReasonList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/reject-reasons"); } /** diff --git a/src/api/resources/ats/resources/rejectReasons/client/requests/RejectReasonsListRequest.ts b/src/api/resources/ats/resources/rejectReasons/client/requests/RejectReasonsListRequest.ts index d83e5a6d7..4b5302da7 100644 --- a/src/api/resources/ats/resources/rejectReasons/client/requests/RejectReasonsListRequest.ts +++ b/src/api/resources/ats/resources/rejectReasons/client/requests/RejectReasonsListRequest.ts @@ -32,7 +32,7 @@ export interface RejectReasonsListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; diff --git a/src/api/resources/ats/resources/scorecards/client/Client.ts b/src/api/resources/ats/resources/scorecards/client/Client.ts index 1cb17c6df..0ee9b21e8 100644 --- a/src/api/resources/ats/resources/scorecards/client/Client.ts +++ b/src/api/resources/ats/resources/scorecards/client/Client.ts @@ -35,7 +35,6 @@ export class ScorecardsClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "application", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -49,103 +48,118 @@ export class ScorecardsClient { * showEnumOrigins: "overall_recommendation" * }) */ - public list( + public async list( request: Merge.ats.ScorecardsListRequest = {}, requestOptions?: ScorecardsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ats.ScorecardsListRequest = {}, - requestOptions?: ScorecardsClient.RequestOptions, - ): Promise> { - const { - applicationId, - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - interviewId, - interviewerId, - modifiedAfter, - modifiedBefore, - pageSize, - remoteFields, - remoteId, - showEnumOrigins, - } = request; - const _queryParams: Record = { - application_id: applicationId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: - expand != null - ? serializers.ats.ScorecardsListRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - interview_id: interviewId, - interviewer_id: interviewerId, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_fields: remoteFields != null ? remoteFields : undefined, - remote_id: remoteId, - show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ats.ScorecardsListRequest, + ): Promise> => { + const { + applicationId, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + interviewId, + interviewerId, + modifiedAfter, + modifiedBefore, + pageSize, + remoteFields, + remoteId, + showEnumOrigins, + } = request; + const _queryParams: Record = { + application_id: applicationId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.ats.ScorecardsListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.ats.ScorecardsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + interview_id: interviewId, + interviewer_id: interviewerId, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_fields: remoteFields != null ? remoteFields : undefined, + remote_id: remoteId, + show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ats/v1/scorecards", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ats.PaginatedScorecardList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/scorecards"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ats/v1/scorecards", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ats.PaginatedScorecardList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/scorecards"); } /** @@ -157,7 +171,6 @@ export class ScorecardsClient { * * @example * await client.ats.scorecards.retrieve("id", { - * expand: "application", * includeRemoteData: true, * includeShellData: true, * remoteFields: "overall_recommendation", @@ -179,12 +192,17 @@ export class ScorecardsClient { ): Promise> { const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.ats.ScorecardsRetrieveRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.ats.ScorecardsRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.ats.ScorecardsRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, remote_fields: remoteFields != null ? remoteFields : undefined, diff --git a/src/api/resources/ats/resources/scorecards/client/requests/ScorecardsListRequest.ts b/src/api/resources/ats/resources/scorecards/client/requests/ScorecardsListRequest.ts index 65053aa7a..57762f658 100644 --- a/src/api/resources/ats/resources/scorecards/client/requests/ScorecardsListRequest.ts +++ b/src/api/resources/ats/resources/scorecards/client/requests/ScorecardsListRequest.ts @@ -9,7 +9,6 @@ import type * as Merge from "../../../../../../index"; * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "application", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -33,7 +32,7 @@ export interface ScorecardsListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.ats.ScorecardsListRequestExpand; + expand?: Merge.ats.ScorecardsListRequestExpandItem | Merge.ats.ScorecardsListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -48,7 +47,7 @@ export interface ScorecardsListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** Deprecated. Use show_enum_origins. */ remoteFields?: "overall_recommendation"; diff --git a/src/api/resources/ats/resources/scorecards/client/requests/ScorecardsRetrieveRequest.ts b/src/api/resources/ats/resources/scorecards/client/requests/ScorecardsRetrieveRequest.ts index a18a6e5e4..f389bb365 100644 --- a/src/api/resources/ats/resources/scorecards/client/requests/ScorecardsRetrieveRequest.ts +++ b/src/api/resources/ats/resources/scorecards/client/requests/ScorecardsRetrieveRequest.ts @@ -5,7 +5,6 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "application", * includeRemoteData: true, * includeShellData: true, * remoteFields: "overall_recommendation", @@ -14,7 +13,7 @@ import type * as Merge from "../../../../../../index"; */ export interface ScorecardsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.ats.ScorecardsRetrieveRequestExpand; + expand?: Merge.ats.ScorecardsRetrieveRequestExpandItem | Merge.ats.ScorecardsRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/ats/resources/scorecards/types/ScorecardsListRequestExpand.ts b/src/api/resources/ats/resources/scorecards/types/ScorecardsListRequestExpand.ts deleted file mode 100644 index 331d4420e..000000000 --- a/src/api/resources/ats/resources/scorecards/types/ScorecardsListRequestExpand.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const ScorecardsListRequestExpand = { - Application: "application", - ApplicationInterview: "application,interview", - ApplicationInterviewInterviewer: "application,interview,interviewer", - ApplicationInterviewer: "application,interviewer", - Interview: "interview", - InterviewInterviewer: "interview,interviewer", - Interviewer: "interviewer", -} as const; -export type ScorecardsListRequestExpand = - (typeof ScorecardsListRequestExpand)[keyof typeof ScorecardsListRequestExpand]; diff --git a/src/api/resources/ats/resources/scorecards/types/ScorecardsListRequestExpandItem.ts b/src/api/resources/ats/resources/scorecards/types/ScorecardsListRequestExpandItem.ts new file mode 100644 index 000000000..044eb269c --- /dev/null +++ b/src/api/resources/ats/resources/scorecards/types/ScorecardsListRequestExpandItem.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +export const ScorecardsListRequestExpandItem = { + Application: "application", + Interview: "interview", + Interviewer: "interviewer", +} as const; +export type ScorecardsListRequestExpandItem = + (typeof ScorecardsListRequestExpandItem)[keyof typeof ScorecardsListRequestExpandItem]; diff --git a/src/api/resources/ats/resources/scorecards/types/ScorecardsRetrieveRequestExpand.ts b/src/api/resources/ats/resources/scorecards/types/ScorecardsRetrieveRequestExpand.ts deleted file mode 100644 index 5b7cc6e65..000000000 --- a/src/api/resources/ats/resources/scorecards/types/ScorecardsRetrieveRequestExpand.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const ScorecardsRetrieveRequestExpand = { - Application: "application", - ApplicationInterview: "application,interview", - ApplicationInterviewInterviewer: "application,interview,interviewer", - ApplicationInterviewer: "application,interviewer", - Interview: "interview", - InterviewInterviewer: "interview,interviewer", - Interviewer: "interviewer", -} as const; -export type ScorecardsRetrieveRequestExpand = - (typeof ScorecardsRetrieveRequestExpand)[keyof typeof ScorecardsRetrieveRequestExpand]; diff --git a/src/api/resources/ats/resources/scorecards/types/ScorecardsRetrieveRequestExpandItem.ts b/src/api/resources/ats/resources/scorecards/types/ScorecardsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..3f5943d0e --- /dev/null +++ b/src/api/resources/ats/resources/scorecards/types/ScorecardsRetrieveRequestExpandItem.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +export const ScorecardsRetrieveRequestExpandItem = { + Application: "application", + Interview: "interview", + Interviewer: "interviewer", +} as const; +export type ScorecardsRetrieveRequestExpandItem = + (typeof ScorecardsRetrieveRequestExpandItem)[keyof typeof ScorecardsRetrieveRequestExpandItem]; diff --git a/src/api/resources/ats/resources/scorecards/types/index.ts b/src/api/resources/ats/resources/scorecards/types/index.ts index abc9dc751..a46a8019d 100644 --- a/src/api/resources/ats/resources/scorecards/types/index.ts +++ b/src/api/resources/ats/resources/scorecards/types/index.ts @@ -1,2 +1,2 @@ -export * from "./ScorecardsListRequestExpand"; -export * from "./ScorecardsRetrieveRequestExpand"; +export * from "./ScorecardsListRequestExpandItem"; +export * from "./ScorecardsRetrieveRequestExpandItem"; diff --git a/src/api/resources/ats/resources/syncStatus/client/Client.ts b/src/api/resources/ats/resources/syncStatus/client/Client.ts index 4ca7aedb2..01aba7f88 100644 --- a/src/api/resources/ats/resources/syncStatus/client/Client.ts +++ b/src/api/resources/ats/resources/syncStatus/client/Client.ts @@ -35,66 +35,76 @@ export class SyncStatusClient { * pageSize: 1 * }) */ - public list( + public async list( request: Merge.ats.SyncStatusListRequest = {}, requestOptions?: SyncStatusClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ats.SyncStatusListRequest = {}, - requestOptions?: SyncStatusClient.RequestOptions, - ): Promise> { - const { cursor, pageSize } = request; - const _queryParams: Record = { - cursor, - page_size: pageSize, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ats.SyncStatusListRequest, + ): Promise> => { + const { cursor, pageSize } = request; + const _queryParams: Record = { + cursor, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ats/v1/sync-status", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ats.PaginatedSyncStatusList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/sync-status"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ats/v1/sync-status", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ats.PaginatedSyncStatusList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/sync-status"); } } diff --git a/src/api/resources/ats/resources/syncStatus/client/requests/SyncStatusListRequest.ts b/src/api/resources/ats/resources/syncStatus/client/requests/SyncStatusListRequest.ts index 2bbace517..94e1240fc 100644 --- a/src/api/resources/ats/resources/syncStatus/client/requests/SyncStatusListRequest.ts +++ b/src/api/resources/ats/resources/syncStatus/client/requests/SyncStatusListRequest.ts @@ -10,6 +10,6 @@ export interface SyncStatusListRequest { /** The pagination cursor value. */ cursor?: string; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; } diff --git a/src/api/resources/ats/resources/tags/client/Client.ts b/src/api/resources/ats/resources/tags/client/Client.ts index 9ac38e007..73cb361af 100644 --- a/src/api/resources/ats/resources/tags/client/Client.ts +++ b/src/api/resources/ats/resources/tags/client/Client.ts @@ -43,85 +43,93 @@ export class TagsClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.ats.TagsListRequest = {}, requestOptions?: TagsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ats.TagsListRequest = {}, - requestOptions?: TagsClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async (request: Merge.ats.TagsListRequest): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ats/v1/tags", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ats.PaginatedTagList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/tags"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ats/v1/tags", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ats.PaginatedTagList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/tags"); } } diff --git a/src/api/resources/ats/resources/tags/client/requests/TagsListRequest.ts b/src/api/resources/ats/resources/tags/client/requests/TagsListRequest.ts index 363d84271..440c60c11 100644 --- a/src/api/resources/ats/resources/tags/client/requests/TagsListRequest.ts +++ b/src/api/resources/ats/resources/tags/client/requests/TagsListRequest.ts @@ -32,7 +32,7 @@ export interface TagsListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; diff --git a/src/api/resources/ats/resources/users/client/Client.ts b/src/api/resources/ats/resources/users/client/Client.ts index 21e0b02fe..201c305e6 100644 --- a/src/api/resources/ats/resources/users/client/Client.ts +++ b/src/api/resources/ats/resources/users/client/Client.ts @@ -46,92 +46,102 @@ export class UsersClient { * showEnumOrigins: "access_role" * }) */ - public list( + public async list( request: Merge.ats.UsersListRequest = {}, requestOptions?: UsersClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ats.UsersListRequest = {}, - requestOptions?: UsersClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - email, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteFields, - remoteId, - showEnumOrigins, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - email, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_fields: remoteFields != null ? remoteFields : undefined, - remote_id: remoteId, - show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ats.UsersListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + email, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteFields, + remoteId, + showEnumOrigins, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + email, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_fields: remoteFields != null ? remoteFields : undefined, + remote_id: remoteId, + show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ats/v1/users", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ats.PaginatedRemoteUserList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/users"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ats/v1/users", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ats.PaginatedRemoteUserList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ats/v1/users"); } /** diff --git a/src/api/resources/ats/resources/users/client/requests/UsersListRequest.ts b/src/api/resources/ats/resources/users/client/requests/UsersListRequest.ts index c0835bcb6..84a9065c5 100644 --- a/src/api/resources/ats/resources/users/client/requests/UsersListRequest.ts +++ b/src/api/resources/ats/resources/users/client/requests/UsersListRequest.ts @@ -37,7 +37,7 @@ export interface UsersListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** Deprecated. Use show_enum_origins. */ remoteFields?: "access_role"; diff --git a/src/api/resources/ats/types/ActivityRequest.ts b/src/api/resources/ats/types/ActivityRequest.ts index 4767f62be..5a34fdc64 100644 --- a/src/api/resources/ats/types/ActivityRequest.ts +++ b/src/api/resources/ats/types/ActivityRequest.ts @@ -19,7 +19,7 @@ export interface ActivityRequest { * * `EMAIL` - EMAIL * * `OTHER` - OTHER */ - activityType?: Merge.ats.ActivityRequestActivityType; + activityType?: Merge.ats.ActivityTypeEnum; /** The activity's subject. */ subject?: string; /** The activity's body. */ diff --git a/src/api/resources/ats/types/ActivityRequestActivityType.ts b/src/api/resources/ats/types/ActivityRequestActivityType.ts deleted file mode 100644 index ff69db56c..000000000 --- a/src/api/resources/ats/types/ActivityRequestActivityType.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The activity's type. - * - * * `NOTE` - NOTE - * * `EMAIL` - EMAIL - * * `OTHER` - OTHER - */ -export type ActivityRequestActivityType = Merge.ats.ActivityTypeEnum | string; diff --git a/src/api/resources/ats/types/AuditLogEvent.ts b/src/api/resources/ats/types/AuditLogEvent.ts index b9f43c5ae..caf6bc3eb 100644 --- a/src/api/resources/ats/types/AuditLogEvent.ts +++ b/src/api/resources/ats/types/AuditLogEvent.ts @@ -17,6 +17,7 @@ export interface AuditLogEvent { * * `API` - API * * `SYSTEM` - SYSTEM * * `MERGE_TEAM` - MERGE_TEAM + * * `SUPPORT` - SUPPORT */ role: Merge.ats.AuditLogEventRole; ipAddress: string; diff --git a/src/api/resources/ats/types/AuditLogEventRole.ts b/src/api/resources/ats/types/AuditLogEventRole.ts index 1d184fac1..55d5132f6 100644 --- a/src/api/resources/ats/types/AuditLogEventRole.ts +++ b/src/api/resources/ats/types/AuditLogEventRole.ts @@ -11,5 +11,6 @@ import type * as Merge from "../../../index"; * * `API` - API * * `SYSTEM` - SYSTEM * * `MERGE_TEAM` - MERGE_TEAM + * * `SUPPORT` - SUPPORT */ export type AuditLogEventRole = Merge.ats.RoleEnum | string; diff --git a/src/api/resources/ats/types/FieldMappingApiInstance.ts b/src/api/resources/ats/types/FieldMappingApiInstance.ts index c2693faba..c77f313d9 100644 --- a/src/api/resources/ats/types/FieldMappingApiInstance.ts +++ b/src/api/resources/ats/types/FieldMappingApiInstance.ts @@ -7,4 +7,5 @@ export interface FieldMappingApiInstance { isIntegrationWide?: boolean; targetField?: Merge.ats.FieldMappingApiInstanceTargetField; remoteField?: Merge.ats.FieldMappingApiInstanceRemoteField; + jmesPath?: string; } diff --git a/src/api/resources/ats/types/IgnoreCommonModelRequest.ts b/src/api/resources/ats/types/IgnoreCommonModelRequest.ts new file mode 100644 index 000000000..9dfac706d --- /dev/null +++ b/src/api/resources/ats/types/IgnoreCommonModelRequest.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface IgnoreCommonModelRequest { + reason: Merge.ats.IgnoreCommonModelRequestReason; + message?: string; +} diff --git a/src/api/resources/ats/types/IgnoreCommonModelRequestReason.ts b/src/api/resources/ats/types/IgnoreCommonModelRequestReason.ts new file mode 100644 index 000000000..f0bbec653 --- /dev/null +++ b/src/api/resources/ats/types/IgnoreCommonModelRequestReason.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type IgnoreCommonModelRequestReason = Merge.ats.ReasonEnum | string; diff --git a/src/api/resources/ats/types/RegenerateAccountToken.ts b/src/api/resources/ats/types/RegenerateAccountToken.ts new file mode 100644 index 000000000..2cd31ce05 --- /dev/null +++ b/src/api/resources/ats/types/RegenerateAccountToken.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * # The RegenerateAccountToken Object + * ### Description + * The `RegenerateAccountToken` object is used to exchange an old account token for a new one. + * + * ### Usage Example + * Post to receive a new `RegenerateAccountToken`. + */ +export interface RegenerateAccountToken { + linkedAccountId: string; + accountToken: string; +} diff --git a/src/api/resources/ats/types/RoleEnum.ts b/src/api/resources/ats/types/RoleEnum.ts index 524088eb7..584dbc84e 100644 --- a/src/api/resources/ats/types/RoleEnum.ts +++ b/src/api/resources/ats/types/RoleEnum.ts @@ -7,6 +7,7 @@ * * `API` - API * * `SYSTEM` - SYSTEM * * `MERGE_TEAM` - MERGE_TEAM + * * `SUPPORT` - SUPPORT */ export const RoleEnum = { Admin: "ADMIN", @@ -15,5 +16,6 @@ export const RoleEnum = { Api: "API", System: "SYSTEM", MergeTeam: "MERGE_TEAM", + Support: "SUPPORT", } as const; export type RoleEnum = (typeof RoleEnum)[keyof typeof RoleEnum]; diff --git a/src/api/resources/ats/types/ScreeningQuestion.ts b/src/api/resources/ats/types/ScreeningQuestion.ts index bca2a72f9..706fb34b5 100644 --- a/src/api/resources/ats/types/ScreeningQuestion.ts +++ b/src/api/resources/ats/types/ScreeningQuestion.ts @@ -39,7 +39,7 @@ export interface ScreeningQuestion { type?: Merge.ats.ScreeningQuestionType; /** Whether or not the screening question is required. */ required?: boolean; - options?: unknown[]; + options?: Merge.ats.ScreeningQuestionOptionsItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ remoteWasDeleted?: boolean; } diff --git a/src/api/resources/ats/types/ScreeningQuestionOptionsItem.ts b/src/api/resources/ats/types/ScreeningQuestionOptionsItem.ts new file mode 100644 index 000000000..ba5505e16 --- /dev/null +++ b/src/api/resources/ats/types/ScreeningQuestionOptionsItem.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type ScreeningQuestionOptionsItem = string | Merge.ats.ScreeningQuestionOption; diff --git a/src/api/resources/ats/types/index.ts b/src/api/resources/ats/types/index.ts index c8264290b..24021589a 100644 --- a/src/api/resources/ats/types/index.ts +++ b/src/api/resources/ats/types/index.ts @@ -11,7 +11,6 @@ export * from "./AccountToken"; export * from "./Activity"; export * from "./ActivityActivityType"; export * from "./ActivityRequest"; -export * from "./ActivityRequestActivityType"; export * from "./ActivityRequestUser"; export * from "./ActivityRequestVisibility"; export * from "./ActivityResponse"; @@ -89,6 +88,8 @@ export * from "./FieldMappingInstanceResponse"; export * from "./FieldPermissionDeserializer"; export * from "./FieldPermissionDeserializerRequest"; export * from "./GenderEnum"; +export * from "./IgnoreCommonModelRequest"; +export * from "./IgnoreCommonModelRequestReason"; export * from "./IndividualCommonModelScopeDeserializer"; export * from "./IndividualCommonModelScopeDeserializerRequest"; export * from "./Issue"; @@ -157,6 +158,7 @@ export * from "./PhoneNumberRequestPhoneNumberType"; export * from "./PhoneNumberTypeEnum"; export * from "./RaceEnum"; export * from "./ReasonEnum"; +export * from "./RegenerateAccountToken"; export * from "./RejectReason"; export * from "./RemoteData"; export * from "./RemoteEndpointInfo"; @@ -197,6 +199,7 @@ export * from "./ScreeningQuestionAnswerRequest"; export * from "./ScreeningQuestionAnswerRequestQuestion"; export * from "./ScreeningQuestionJob"; export * from "./ScreeningQuestionOption"; +export * from "./ScreeningQuestionOptionsItem"; export * from "./ScreeningQuestionType"; export * from "./ScreeningQuestionTypeEnum"; export * from "./SelectiveSyncConfigurationsUsageEnum"; diff --git a/src/api/resources/crm/resources/accountToken/client/Client.ts b/src/api/resources/crm/resources/accountToken/client/Client.ts index 6770a64c9..61a7b51d9 100644 --- a/src/api/resources/crm/resources/accountToken/client/Client.ts +++ b/src/api/resources/crm/resources/accountToken/client/Client.ts @@ -94,4 +94,73 @@ export class AccountTokenClient { "/crm/v1/account-token/{public_token}", ); } + + /** + * Exchange Linked Account account tokens. + * + * @param {AccountTokenClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.crm.accountToken.regenerateCreate() + */ + public regenerateCreate( + requestOptions?: AccountTokenClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__regenerateCreate(requestOptions)); + } + + private async __regenerateCreate( + requestOptions?: AccountTokenClient.RequestOptions, + ): Promise> { + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "crm/v1/account-token/regenerate", + ), + method: "POST", + headers: _headers, + queryParameters: requestOptions?.queryParams, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.crm.RegenerateAccountToken.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "POST", + "/crm/v1/account-token/regenerate", + ); + } } diff --git a/src/api/resources/crm/resources/accounts/client/Client.ts b/src/api/resources/crm/resources/accounts/client/Client.ts index 16c19058c..733cecf01 100644 --- a/src/api/resources/crm/resources/accounts/client/Client.ts +++ b/src/api/resources/crm/resources/accounts/client/Client.ts @@ -34,7 +34,6 @@ export class AccountsClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "owner", * includeDeletedData: true, * includeRemoteData: true, * includeRemoteFields: true, @@ -47,94 +46,104 @@ export class AccountsClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.crm.AccountsListRequest = {}, requestOptions?: AccountsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.crm.AccountsListRequest = {}, - requestOptions?: AccountsClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeRemoteFields, - includeShellData, - modifiedAfter, - modifiedBefore, - name, - ownerId, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: expand != null ? expand : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - name, - owner_id: ownerId, - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.crm.AccountsListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + modifiedAfter, + modifiedBefore, + name, + ownerId, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + name, + owner_id: ownerId, + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "crm/v1/accounts", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.crm.PaginatedAccountList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/crm/v1/accounts"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "crm/v1/accounts", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.crm.PaginatedAccountList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/crm/v1/accounts"); } /** @@ -225,7 +234,6 @@ export class AccountsClient { * * @example * await client.crm.accounts.retrieve("id", { - * expand: "owner", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true @@ -246,7 +254,7 @@ export class AccountsClient { ): Promise> { const { expand, includeRemoteData, includeRemoteFields, includeShellData } = request; const _queryParams: Record = { - expand: expand != null ? expand : undefined, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, include_remote_data: includeRemoteData, include_remote_fields: includeRemoteFields, include_shell_data: includeShellData, @@ -536,86 +544,96 @@ export class AccountsClient { * pageSize: 1 * }) */ - public remoteFieldClassesList( - request: Merge.crm.AccountsRemoteFieldClassesListRequest = {}, - requestOptions?: AccountsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldClassesList(request, requestOptions)); - } - - private async __remoteFieldClassesList( + public async remoteFieldClassesList( request: Merge.crm.AccountsRemoteFieldClassesListRequest = {}, requestOptions?: AccountsClient.RequestOptions, - ): Promise> { - const { - cursor, - includeDeletedData, - includeRemoteData, - includeRemoteFields, - includeShellData, - isCommonModelField, - isCustom, - pageSize, - } = request; - const _queryParams: Record = { - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - is_common_model_field: isCommonModelField, - is_custom: isCustom, - page_size: pageSize, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.crm.AccountsRemoteFieldClassesListRequest, + ): Promise> => { + const { + cursor, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + isCommonModelField, + isCustom, + pageSize, + } = request; + const _queryParams: Record = { + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + is_common_model_field: isCommonModelField, + is_custom: isCustom, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "crm/v1/accounts/remote-field-classes", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.crm.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/crm/v1/accounts/remote-field-classes", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "crm/v1/accounts/remote-field-classes", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.crm.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/crm/v1/accounts/remote-field-classes", - ); } } diff --git a/src/api/resources/crm/resources/accounts/client/requests/AccountsListRequest.ts b/src/api/resources/crm/resources/accounts/client/requests/AccountsListRequest.ts index 4a7ccf78f..8e0086554 100644 --- a/src/api/resources/crm/resources/accounts/client/requests/AccountsListRequest.ts +++ b/src/api/resources/crm/resources/accounts/client/requests/AccountsListRequest.ts @@ -6,7 +6,6 @@ * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "owner", * includeDeletedData: true, * includeRemoteData: true, * includeRemoteFields: true, @@ -27,7 +26,7 @@ export interface AccountsListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "owner"; + expand?: "owner" | "owner"[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -44,7 +43,7 @@ export interface AccountsListRequest { name?: string; /** If provided, will only return accounts with this owner. */ ownerId?: string; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; diff --git a/src/api/resources/crm/resources/accounts/client/requests/AccountsRemoteFieldClassesListRequest.ts b/src/api/resources/crm/resources/accounts/client/requests/AccountsRemoteFieldClassesListRequest.ts index e7bc71de5..871d1fe3b 100644 --- a/src/api/resources/crm/resources/accounts/client/requests/AccountsRemoteFieldClassesListRequest.ts +++ b/src/api/resources/crm/resources/accounts/client/requests/AccountsRemoteFieldClassesListRequest.ts @@ -28,6 +28,6 @@ export interface AccountsRemoteFieldClassesListRequest { isCommonModelField?: boolean; /** If provided, will only return remote fields classes with this is_custom value */ isCustom?: boolean; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; } diff --git a/src/api/resources/crm/resources/accounts/client/requests/AccountsRetrieveRequest.ts b/src/api/resources/crm/resources/accounts/client/requests/AccountsRetrieveRequest.ts index fa529092f..5aa87755b 100644 --- a/src/api/resources/crm/resources/accounts/client/requests/AccountsRetrieveRequest.ts +++ b/src/api/resources/crm/resources/accounts/client/requests/AccountsRetrieveRequest.ts @@ -3,7 +3,6 @@ /** * @example * { - * expand: "owner", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true @@ -11,7 +10,7 @@ */ export interface AccountsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "owner"; + expand?: "owner" | "owner"[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. */ diff --git a/src/api/resources/crm/resources/associationTypes/client/Client.ts b/src/api/resources/crm/resources/associationTypes/client/Client.ts index f9fe6a7bd..6c8674944 100644 --- a/src/api/resources/crm/resources/associationTypes/client/Client.ts +++ b/src/api/resources/crm/resources/associationTypes/client/Client.ts @@ -35,7 +35,6 @@ export class AssociationTypesClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "target_object_classes", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -45,97 +44,104 @@ export class AssociationTypesClient { * remoteId: "remote_id" * }) */ - public customObjectClassesAssociationTypesList( + public async customObjectClassesAssociationTypesList( custom_object_class_id: string, request: Merge.crm.CustomObjectClassesAssociationTypesListRequest = {}, requestOptions?: AssociationTypesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise( - this.__customObjectClassesAssociationTypesList(custom_object_class_id, request, requestOptions), + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.crm.CustomObjectClassesAssociationTypesListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + `crm/v1/custom-object-classes/${core.url.encodePathParam(custom_object_class_id)}/association-types`, + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.crm.PaginatedAssociationTypeList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/crm/v1/custom-object-classes/{custom_object_class_id}/association-types", + ); + }, ); - } - - private async __customObjectClassesAssociationTypesList( - custom_object_class_id: string, - request: Merge.crm.CustomObjectClassesAssociationTypesListRequest = {}, - requestOptions?: AssociationTypesClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: expand != null ? expand : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `crm/v1/custom-object-classes/${core.url.encodePathParam(custom_object_class_id)}/association-types`, - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.crm.PaginatedAssociationTypeList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/crm/v1/custom-object-classes/{custom_object_class_id}/association-types", - ); } /** @@ -249,7 +255,6 @@ export class AssociationTypesClient { * * @example * await client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve("custom_object_class_id", "id", { - * expand: "target_object_classes", * includeRemoteData: true, * includeShellData: true * }) @@ -273,7 +278,7 @@ export class AssociationTypesClient { ): Promise> { const { expand, includeRemoteData, includeShellData } = request; const _queryParams: Record = { - expand: expand != null ? expand : undefined, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, }; diff --git a/src/api/resources/crm/resources/associationTypes/client/requests/CustomObjectClassesAssociationTypesListRequest.ts b/src/api/resources/crm/resources/associationTypes/client/requests/CustomObjectClassesAssociationTypesListRequest.ts index 9edf74932..fcb66c299 100644 --- a/src/api/resources/crm/resources/associationTypes/client/requests/CustomObjectClassesAssociationTypesListRequest.ts +++ b/src/api/resources/crm/resources/associationTypes/client/requests/CustomObjectClassesAssociationTypesListRequest.ts @@ -6,7 +6,6 @@ * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "target_object_classes", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -24,7 +23,7 @@ export interface CustomObjectClassesAssociationTypesListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "target_object_classes"; + expand?: "target_object_classes" | "target_object_classes"[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -35,7 +34,7 @@ export interface CustomObjectClassesAssociationTypesListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; diff --git a/src/api/resources/crm/resources/associationTypes/client/requests/CustomObjectClassesAssociationTypesRetrieveRequest.ts b/src/api/resources/crm/resources/associationTypes/client/requests/CustomObjectClassesAssociationTypesRetrieveRequest.ts index 429c89354..a14aa66fb 100644 --- a/src/api/resources/crm/resources/associationTypes/client/requests/CustomObjectClassesAssociationTypesRetrieveRequest.ts +++ b/src/api/resources/crm/resources/associationTypes/client/requests/CustomObjectClassesAssociationTypesRetrieveRequest.ts @@ -3,14 +3,13 @@ /** * @example * { - * expand: "target_object_classes", * includeRemoteData: true, * includeShellData: true * } */ export interface CustomObjectClassesAssociationTypesRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "target_object_classes"; + expand?: "target_object_classes" | "target_object_classes"[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/crm/resources/associations/client/Client.ts b/src/api/resources/crm/resources/associations/client/Client.ts index 17b16dbd4..3607eb0cd 100644 --- a/src/api/resources/crm/resources/associations/client/Client.ts +++ b/src/api/resources/crm/resources/associations/client/Client.ts @@ -37,7 +37,6 @@ export class AssociationsClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "association_type", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -47,106 +46,107 @@ export class AssociationsClient { * remoteId: "remote_id" * }) */ - public customObjectClassesCustomObjectsAssociationsList( + public async customObjectClassesCustomObjectsAssociationsList( custom_object_class_id: string, object_id: string, request: Merge.crm.CustomObjectClassesCustomObjectsAssociationsListRequest = {}, requestOptions?: AssociationsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise( - this.__customObjectClassesCustomObjectsAssociationsList( - custom_object_class_id, - object_id, - request, - requestOptions, - ), - ); - } - - private async __customObjectClassesCustomObjectsAssociationsList( - custom_object_class_id: string, - object_id: string, - request: Merge.crm.CustomObjectClassesCustomObjectsAssociationsListRequest = {}, - requestOptions?: AssociationsClient.RequestOptions, - ): Promise> { - const { - associationTypeId, - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - association_type_id: associationTypeId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: expand != null ? expand : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.crm.CustomObjectClassesCustomObjectsAssociationsListRequest, + ): Promise> => { + const { + associationTypeId, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + association_type_id: associationTypeId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + `crm/v1/custom-object-classes/${core.url.encodePathParam(custom_object_class_id)}/custom-objects/${core.url.encodePathParam(object_id)}/associations`, + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.crm.PaginatedAssociationList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/crm/v1/custom-object-classes/{custom_object_class_id}/custom-objects/{object_id}/associations", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `crm/v1/custom-object-classes/${core.url.encodePathParam(custom_object_class_id)}/custom-objects/${core.url.encodePathParam(object_id)}/associations`, - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.crm.PaginatedAssociationList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/crm/v1/custom-object-classes/{custom_object_class_id}/custom-objects/{object_id}/associations", - ); } /** diff --git a/src/api/resources/crm/resources/associations/client/requests/CustomObjectClassesCustomObjectsAssociationsListRequest.ts b/src/api/resources/crm/resources/associations/client/requests/CustomObjectClassesCustomObjectsAssociationsListRequest.ts index f2046de64..95e9e03de 100644 --- a/src/api/resources/crm/resources/associations/client/requests/CustomObjectClassesCustomObjectsAssociationsListRequest.ts +++ b/src/api/resources/crm/resources/associations/client/requests/CustomObjectClassesCustomObjectsAssociationsListRequest.ts @@ -7,7 +7,6 @@ * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "association_type", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -27,7 +26,7 @@ export interface CustomObjectClassesCustomObjectsAssociationsListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "association_type"; + expand?: "association_type" | "association_type"[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -38,7 +37,7 @@ export interface CustomObjectClassesCustomObjectsAssociationsListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; diff --git a/src/api/resources/crm/resources/auditTrail/client/Client.ts b/src/api/resources/crm/resources/auditTrail/client/Client.ts index 583a3ddb8..10850f744 100644 --- a/src/api/resources/crm/resources/auditTrail/client/Client.ts +++ b/src/api/resources/crm/resources/auditTrail/client/Client.ts @@ -39,70 +39,80 @@ export class AuditTrailClient { * userEmail: "user_email" * }) */ - public list( + public async list( request: Merge.crm.AuditTrailListRequest = {}, requestOptions?: AuditTrailClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.crm.AuditTrailListRequest = {}, - requestOptions?: AuditTrailClient.RequestOptions, - ): Promise> { - const { cursor, endDate, eventType, pageSize, startDate, userEmail } = request; - const _queryParams: Record = { - cursor, - end_date: endDate, - event_type: eventType, - page_size: pageSize, - start_date: startDate, - user_email: userEmail, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.crm.AuditTrailListRequest, + ): Promise> => { + const { cursor, endDate, eventType, pageSize, startDate, userEmail } = request; + const _queryParams: Record = { + cursor, + end_date: endDate, + event_type: eventType, + page_size: pageSize, + start_date: startDate, + user_email: userEmail, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "crm/v1/audit-trail", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.crm.PaginatedAuditLogEventList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/crm/v1/audit-trail"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "crm/v1/audit-trail", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.crm.PaginatedAuditLogEventList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/crm/v1/audit-trail"); } } 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 65216f96c..b188a570e 100644 --- a/src/api/resources/crm/resources/auditTrail/client/requests/AuditTrailListRequest.ts +++ b/src/api/resources/crm/resources/auditTrail/client/requests/AuditTrailListRequest.ts @@ -18,7 +18,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`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_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`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` */ eventType?: string; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** If included, will only include audit trail events that occurred after this time */ startDate?: string; diff --git a/src/api/resources/crm/resources/contacts/client/Client.ts b/src/api/resources/crm/resources/contacts/client/Client.ts index 618c5967e..ce70819b3 100644 --- a/src/api/resources/crm/resources/contacts/client/Client.ts +++ b/src/api/resources/crm/resources/contacts/client/Client.ts @@ -36,7 +36,6 @@ export class ContactsClient { * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * emailAddresses: "email_addresses", - * expand: "account", * includeDeletedData: true, * includeRemoteData: true, * includeRemoteFields: true, @@ -48,99 +47,116 @@ export class ContactsClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.crm.ContactsListRequest = {}, requestOptions?: ContactsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.crm.ContactsListRequest = {}, - requestOptions?: ContactsClient.RequestOptions, - ): Promise> { - const { - accountId, - createdAfter, - createdBefore, - cursor, - emailAddresses, - expand, - includeDeletedData, - includeRemoteData, - includeRemoteFields, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - phoneNumbers, - remoteId, - } = request; - const _queryParams: Record = { - account_id: accountId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - email_addresses: emailAddresses, - expand: - expand != null - ? serializers.crm.ContactsListRequestExpand.jsonOrThrow(expand, { unrecognizedObjectKeys: "strip" }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - phone_numbers: phoneNumbers, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.crm.ContactsListRequest, + ): Promise> => { + const { + accountId, + createdAfter, + createdBefore, + cursor, + emailAddresses, + expand, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + phoneNumbers, + remoteId, + } = request; + const _queryParams: Record = { + account_id: accountId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + email_addresses: emailAddresses, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.crm.ContactsListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.crm.ContactsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + phone_numbers: phoneNumbers, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "crm/v1/contacts", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.crm.PaginatedContactList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/crm/v1/contacts"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "crm/v1/contacts", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.crm.PaginatedContactList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/crm/v1/contacts"); } /** @@ -231,7 +247,6 @@ export class ContactsClient { * * @example * await client.crm.contacts.retrieve("id", { - * expand: "account", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true @@ -252,12 +267,17 @@ export class ContactsClient { ): Promise> { const { expand, includeRemoteData, includeRemoteFields, includeShellData } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.crm.ContactsRetrieveRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.crm.ContactsRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.crm.ContactsRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_remote_fields: includeRemoteFields, include_shell_data: includeShellData, @@ -618,86 +638,96 @@ export class ContactsClient { * pageSize: 1 * }) */ - public remoteFieldClassesList( - request: Merge.crm.ContactsRemoteFieldClassesListRequest = {}, - requestOptions?: ContactsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldClassesList(request, requestOptions)); - } - - private async __remoteFieldClassesList( + public async remoteFieldClassesList( request: Merge.crm.ContactsRemoteFieldClassesListRequest = {}, requestOptions?: ContactsClient.RequestOptions, - ): Promise> { - const { - cursor, - includeDeletedData, - includeRemoteData, - includeRemoteFields, - includeShellData, - isCommonModelField, - isCustom, - pageSize, - } = request; - const _queryParams: Record = { - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - is_common_model_field: isCommonModelField, - is_custom: isCustom, - page_size: pageSize, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.crm.ContactsRemoteFieldClassesListRequest, + ): Promise> => { + const { + cursor, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + isCommonModelField, + isCustom, + pageSize, + } = request; + const _queryParams: Record = { + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + is_common_model_field: isCommonModelField, + is_custom: isCustom, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "crm/v1/contacts/remote-field-classes", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.crm.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/crm/v1/contacts/remote-field-classes", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "crm/v1/contacts/remote-field-classes", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.crm.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/crm/v1/contacts/remote-field-classes", - ); } } diff --git a/src/api/resources/crm/resources/contacts/client/requests/ContactsListRequest.ts b/src/api/resources/crm/resources/contacts/client/requests/ContactsListRequest.ts index 63c79d2f1..49a4ef000 100644 --- a/src/api/resources/crm/resources/contacts/client/requests/ContactsListRequest.ts +++ b/src/api/resources/crm/resources/contacts/client/requests/ContactsListRequest.ts @@ -10,7 +10,6 @@ import type * as Merge from "../../../../../../index"; * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * emailAddresses: "email_addresses", - * expand: "account", * includeDeletedData: true, * includeRemoteData: true, * includeRemoteFields: true, @@ -34,7 +33,7 @@ export interface ContactsListRequest { /** If provided, will only return contacts matching the email addresses; multiple email_addresses can be separated by commas. */ emailAddresses?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.crm.ContactsListRequestExpand; + expand?: Merge.crm.ContactsListRequestExpandItem | Merge.crm.ContactsListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -47,7 +46,7 @@ export interface ContactsListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** If provided, will only return contacts matching the phone numbers; multiple phone numbers can be separated by commas. */ phoneNumbers?: string; diff --git a/src/api/resources/crm/resources/contacts/client/requests/ContactsRemoteFieldClassesListRequest.ts b/src/api/resources/crm/resources/contacts/client/requests/ContactsRemoteFieldClassesListRequest.ts index 111315793..b51e826d6 100644 --- a/src/api/resources/crm/resources/contacts/client/requests/ContactsRemoteFieldClassesListRequest.ts +++ b/src/api/resources/crm/resources/contacts/client/requests/ContactsRemoteFieldClassesListRequest.ts @@ -28,6 +28,6 @@ export interface ContactsRemoteFieldClassesListRequest { isCommonModelField?: boolean; /** If provided, will only return remote fields classes with this is_custom value */ isCustom?: boolean; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; } diff --git a/src/api/resources/crm/resources/contacts/client/requests/ContactsRetrieveRequest.ts b/src/api/resources/crm/resources/contacts/client/requests/ContactsRetrieveRequest.ts index 56a3f7097..ce00ab24d 100644 --- a/src/api/resources/crm/resources/contacts/client/requests/ContactsRetrieveRequest.ts +++ b/src/api/resources/crm/resources/contacts/client/requests/ContactsRetrieveRequest.ts @@ -5,7 +5,6 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "account", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true @@ -13,7 +12,7 @@ import type * as Merge from "../../../../../../index"; */ export interface ContactsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.crm.ContactsRetrieveRequestExpand; + expand?: Merge.crm.ContactsRetrieveRequestExpandItem | Merge.crm.ContactsRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. */ diff --git a/src/api/resources/crm/resources/contacts/types/ContactsListRequestExpand.ts b/src/api/resources/crm/resources/contacts/types/ContactsListRequestExpand.ts deleted file mode 100644 index 8f9779725..000000000 --- a/src/api/resources/crm/resources/contacts/types/ContactsListRequestExpand.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const ContactsListRequestExpand = { - Account: "account", - AccountOwner: "account,owner", - Owner: "owner", -} as const; -export type ContactsListRequestExpand = (typeof ContactsListRequestExpand)[keyof typeof ContactsListRequestExpand]; diff --git a/src/api/resources/crm/resources/contacts/types/ContactsListRequestExpandItem.ts b/src/api/resources/crm/resources/contacts/types/ContactsListRequestExpandItem.ts new file mode 100644 index 000000000..19d041208 --- /dev/null +++ b/src/api/resources/crm/resources/contacts/types/ContactsListRequestExpandItem.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export const ContactsListRequestExpandItem = { + Account: "account", + Owner: "owner", +} as const; +export type ContactsListRequestExpandItem = + (typeof ContactsListRequestExpandItem)[keyof typeof ContactsListRequestExpandItem]; diff --git a/src/api/resources/crm/resources/contacts/types/ContactsRetrieveRequestExpand.ts b/src/api/resources/crm/resources/contacts/types/ContactsRetrieveRequestExpand.ts deleted file mode 100644 index bb4d941df..000000000 --- a/src/api/resources/crm/resources/contacts/types/ContactsRetrieveRequestExpand.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const ContactsRetrieveRequestExpand = { - Account: "account", - AccountOwner: "account,owner", - Owner: "owner", -} as const; -export type ContactsRetrieveRequestExpand = - (typeof ContactsRetrieveRequestExpand)[keyof typeof ContactsRetrieveRequestExpand]; diff --git a/src/api/resources/crm/resources/contacts/types/ContactsRetrieveRequestExpandItem.ts b/src/api/resources/crm/resources/contacts/types/ContactsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..e7a3e838f --- /dev/null +++ b/src/api/resources/crm/resources/contacts/types/ContactsRetrieveRequestExpandItem.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export const ContactsRetrieveRequestExpandItem = { + Account: "account", + Owner: "owner", +} as const; +export type ContactsRetrieveRequestExpandItem = + (typeof ContactsRetrieveRequestExpandItem)[keyof typeof ContactsRetrieveRequestExpandItem]; diff --git a/src/api/resources/crm/resources/contacts/types/index.ts b/src/api/resources/crm/resources/contacts/types/index.ts index 1f8bc8653..0a309424e 100644 --- a/src/api/resources/crm/resources/contacts/types/index.ts +++ b/src/api/resources/crm/resources/contacts/types/index.ts @@ -1,2 +1,2 @@ -export * from "./ContactsListRequestExpand"; -export * from "./ContactsRetrieveRequestExpand"; +export * from "./ContactsListRequestExpandItem"; +export * from "./ContactsRetrieveRequestExpandItem"; diff --git a/src/api/resources/crm/resources/customObjectClasses/client/Client.ts b/src/api/resources/crm/resources/customObjectClasses/client/Client.ts index 53d9b1e91..f1c5ef71e 100644 --- a/src/api/resources/crm/resources/customObjectClasses/client/Client.ts +++ b/src/api/resources/crm/resources/customObjectClasses/client/Client.ts @@ -34,7 +34,6 @@ export class CustomObjectClassesClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "fields", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -44,88 +43,103 @@ export class CustomObjectClassesClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.crm.CustomObjectClassesListRequest = {}, requestOptions?: CustomObjectClassesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.crm.CustomObjectClassesListRequest = {}, - requestOptions?: CustomObjectClassesClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: expand != null ? expand : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.crm.CustomObjectClassesListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "crm/v1/custom-object-classes", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.crm.PaginatedCustomObjectClassList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/crm/v1/custom-object-classes", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "crm/v1/custom-object-classes", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.crm.PaginatedCustomObjectClassList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/crm/v1/custom-object-classes"); } /** @@ -137,7 +151,6 @@ export class CustomObjectClassesClient { * * @example * await client.crm.customObjectClasses.retrieve("id", { - * expand: "fields", * includeRemoteData: true, * includeShellData: true * }) @@ -157,7 +170,7 @@ export class CustomObjectClassesClient { ): Promise> { const { expand, includeRemoteData, includeShellData } = request; const _queryParams: Record = { - expand: expand != null ? expand : undefined, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, }; diff --git a/src/api/resources/crm/resources/customObjectClasses/client/requests/CustomObjectClassesListRequest.ts b/src/api/resources/crm/resources/customObjectClasses/client/requests/CustomObjectClassesListRequest.ts index ce7b88d4d..590305a45 100644 --- a/src/api/resources/crm/resources/customObjectClasses/client/requests/CustomObjectClassesListRequest.ts +++ b/src/api/resources/crm/resources/customObjectClasses/client/requests/CustomObjectClassesListRequest.ts @@ -6,7 +6,6 @@ * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "fields", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -24,7 +23,7 @@ export interface CustomObjectClassesListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "fields"; + expand?: "fields" | "fields"[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -35,7 +34,7 @@ export interface CustomObjectClassesListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; diff --git a/src/api/resources/crm/resources/customObjectClasses/client/requests/CustomObjectClassesRetrieveRequest.ts b/src/api/resources/crm/resources/customObjectClasses/client/requests/CustomObjectClassesRetrieveRequest.ts index 9e0642b17..ec3d003c3 100644 --- a/src/api/resources/crm/resources/customObjectClasses/client/requests/CustomObjectClassesRetrieveRequest.ts +++ b/src/api/resources/crm/resources/customObjectClasses/client/requests/CustomObjectClassesRetrieveRequest.ts @@ -3,14 +3,13 @@ /** * @example * { - * expand: "fields", * includeRemoteData: true, * includeShellData: true * } */ export interface CustomObjectClassesRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "fields"; + expand?: "fields" | "fields"[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/crm/resources/customObjects/client/Client.ts b/src/api/resources/crm/resources/customObjects/client/Client.ts index ec68ca99a..3d38859fc 100644 --- a/src/api/resources/crm/resources/customObjects/client/Client.ts +++ b/src/api/resources/crm/resources/customObjects/client/Client.ts @@ -45,97 +45,104 @@ export class CustomObjectsClient { * remoteId: "remote_id" * }) */ - public customObjectClassesCustomObjectsList( + public async customObjectClassesCustomObjectsList( custom_object_class_id: string, request: Merge.crm.CustomObjectClassesCustomObjectsListRequest = {}, requestOptions?: CustomObjectsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise( - this.__customObjectClassesCustomObjectsList(custom_object_class_id, request, requestOptions), + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.crm.CustomObjectClassesCustomObjectsListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + `crm/v1/custom-object-classes/${core.url.encodePathParam(custom_object_class_id)}/custom-objects`, + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.crm.PaginatedCustomObjectList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/crm/v1/custom-object-classes/{custom_object_class_id}/custom-objects", + ); + }, ); - } - - private async __customObjectClassesCustomObjectsList( - custom_object_class_id: string, - request: Merge.crm.CustomObjectClassesCustomObjectsListRequest = {}, - requestOptions?: CustomObjectsClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - includeDeletedData, - includeRemoteData, - includeRemoteFields, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `crm/v1/custom-object-classes/${core.url.encodePathParam(custom_object_class_id)}/custom-objects`, - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.crm.PaginatedCustomObjectList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/crm/v1/custom-object-classes/{custom_object_class_id}/custom-objects", - ); } /** @@ -415,88 +422,96 @@ export class CustomObjectsClient { * pageSize: 1 * }) */ - public customObjectClassesCustomObjectsRemoteFieldClassesList( + public async customObjectClassesCustomObjectsRemoteFieldClassesList( request: Merge.crm.CustomObjectClassesCustomObjectsRemoteFieldClassesListRequest = {}, requestOptions?: CustomObjectsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise( - this.__customObjectClassesCustomObjectsRemoteFieldClassesList(request, requestOptions), + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.crm.CustomObjectClassesCustomObjectsRemoteFieldClassesListRequest, + ): Promise> => { + const { + cursor, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + isCommonModelField, + isCustom, + pageSize, + } = request; + const _queryParams: Record = { + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + is_common_model_field: isCommonModelField, + is_custom: isCustom, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "crm/v1/custom-object-classes/custom-objects/remote-field-classes", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.crm.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/crm/v1/custom-object-classes/custom-objects/remote-field-classes", + ); + }, ); - } - - private async __customObjectClassesCustomObjectsRemoteFieldClassesList( - request: Merge.crm.CustomObjectClassesCustomObjectsRemoteFieldClassesListRequest = {}, - requestOptions?: CustomObjectsClient.RequestOptions, - ): Promise> { - const { - cursor, - includeDeletedData, - includeRemoteData, - includeRemoteFields, - includeShellData, - isCommonModelField, - isCustom, - pageSize, - } = request; - const _queryParams: Record = { - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - is_common_model_field: isCommonModelField, - is_custom: isCustom, - page_size: pageSize, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, - ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "crm/v1/custom-object-classes/custom-objects/remote-field-classes", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.crm.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/crm/v1/custom-object-classes/custom-objects/remote-field-classes", - ); } } diff --git a/src/api/resources/crm/resources/customObjects/client/requests/CustomObjectClassesCustomObjectsListRequest.ts b/src/api/resources/crm/resources/customObjects/client/requests/CustomObjectClassesCustomObjectsListRequest.ts index 1b224b424..4ae6ae7c1 100644 --- a/src/api/resources/crm/resources/customObjects/client/requests/CustomObjectClassesCustomObjectsListRequest.ts +++ b/src/api/resources/crm/resources/customObjects/client/requests/CustomObjectClassesCustomObjectsListRequest.ts @@ -35,7 +35,7 @@ export interface CustomObjectClassesCustomObjectsListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; diff --git a/src/api/resources/crm/resources/customObjects/client/requests/CustomObjectClassesCustomObjectsRemoteFieldClassesListRequest.ts b/src/api/resources/crm/resources/customObjects/client/requests/CustomObjectClassesCustomObjectsRemoteFieldClassesListRequest.ts index 98763ce36..bf7f2bd79 100644 --- a/src/api/resources/crm/resources/customObjects/client/requests/CustomObjectClassesCustomObjectsRemoteFieldClassesListRequest.ts +++ b/src/api/resources/crm/resources/customObjects/client/requests/CustomObjectClassesCustomObjectsRemoteFieldClassesListRequest.ts @@ -28,6 +28,6 @@ export interface CustomObjectClassesCustomObjectsRemoteFieldClassesListRequest { isCommonModelField?: boolean; /** If provided, will only return remote fields classes with this is_custom value */ isCustom?: boolean; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; } diff --git a/src/api/resources/crm/resources/engagementTypes/client/Client.ts b/src/api/resources/crm/resources/engagementTypes/client/Client.ts index 4faca2ee1..d3e927f22 100644 --- a/src/api/resources/crm/resources/engagementTypes/client/Client.ts +++ b/src/api/resources/crm/resources/engagementTypes/client/Client.ts @@ -44,88 +44,103 @@ export class EngagementTypesClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.crm.EngagementTypesListRequest = {}, requestOptions?: EngagementTypesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.crm.EngagementTypesListRequest = {}, - requestOptions?: EngagementTypesClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - includeDeletedData, - includeRemoteData, - includeRemoteFields, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.crm.EngagementTypesListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "crm/v1/engagement-types", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.crm.PaginatedEngagementTypeList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/crm/v1/engagement-types", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "crm/v1/engagement-types", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.crm.PaginatedEngagementTypeList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/crm/v1/engagement-types"); } /** @@ -226,86 +241,96 @@ export class EngagementTypesClient { * pageSize: 1 * }) */ - public remoteFieldClassesList( + public async remoteFieldClassesList( request: Merge.crm.EngagementTypesRemoteFieldClassesListRequest = {}, requestOptions?: EngagementTypesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldClassesList(request, requestOptions)); - } - - private async __remoteFieldClassesList( - request: Merge.crm.EngagementTypesRemoteFieldClassesListRequest = {}, - requestOptions?: EngagementTypesClient.RequestOptions, - ): Promise> { - const { - cursor, - includeDeletedData, - includeRemoteData, - includeRemoteFields, - includeShellData, - isCommonModelField, - isCustom, - pageSize, - } = request; - const _queryParams: Record = { - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - is_common_model_field: isCommonModelField, - is_custom: isCustom, - page_size: pageSize, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.crm.EngagementTypesRemoteFieldClassesListRequest, + ): Promise> => { + const { + cursor, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + isCommonModelField, + isCustom, + pageSize, + } = request; + const _queryParams: Record = { + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + is_common_model_field: isCommonModelField, + is_custom: isCustom, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "crm/v1/engagement-types/remote-field-classes", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.crm.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/crm/v1/engagement-types/remote-field-classes", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "crm/v1/engagement-types/remote-field-classes", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.crm.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/crm/v1/engagement-types/remote-field-classes", - ); } } diff --git a/src/api/resources/crm/resources/engagementTypes/client/requests/EngagementTypesListRequest.ts b/src/api/resources/crm/resources/engagementTypes/client/requests/EngagementTypesListRequest.ts index 4c6d75602..243f9c2a7 100644 --- a/src/api/resources/crm/resources/engagementTypes/client/requests/EngagementTypesListRequest.ts +++ b/src/api/resources/crm/resources/engagementTypes/client/requests/EngagementTypesListRequest.ts @@ -35,7 +35,7 @@ export interface EngagementTypesListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; diff --git a/src/api/resources/crm/resources/engagementTypes/client/requests/EngagementTypesRemoteFieldClassesListRequest.ts b/src/api/resources/crm/resources/engagementTypes/client/requests/EngagementTypesRemoteFieldClassesListRequest.ts index 375e5a19b..35d6046d0 100644 --- a/src/api/resources/crm/resources/engagementTypes/client/requests/EngagementTypesRemoteFieldClassesListRequest.ts +++ b/src/api/resources/crm/resources/engagementTypes/client/requests/EngagementTypesRemoteFieldClassesListRequest.ts @@ -28,6 +28,6 @@ export interface EngagementTypesRemoteFieldClassesListRequest { isCommonModelField?: boolean; /** If provided, will only return remote fields classes with this is_custom value */ isCustom?: boolean; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; } diff --git a/src/api/resources/crm/resources/engagements/client/Client.ts b/src/api/resources/crm/resources/engagements/client/Client.ts index 891b1b1e1..72c091256 100644 --- a/src/api/resources/crm/resources/engagements/client/Client.ts +++ b/src/api/resources/crm/resources/engagements/client/Client.ts @@ -34,7 +34,6 @@ export class EngagementsClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "account", * includeDeletedData: true, * includeRemoteData: true, * includeRemoteFields: true, @@ -47,99 +46,114 @@ export class EngagementsClient { * startedBefore: new Date("2024-01-15T09:30:00.000Z") * }) */ - public list( + public async list( request: Merge.crm.EngagementsListRequest = {}, requestOptions?: EngagementsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.crm.EngagementsListRequest = {}, - requestOptions?: EngagementsClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeRemoteFields, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - startedAfter, - startedBefore, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: - expand != null - ? serializers.crm.EngagementsListRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - started_after: startedAfter?.toISOString(), - started_before: startedBefore?.toISOString(), - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.crm.EngagementsListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + startedAfter, + startedBefore, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.crm.EngagementsListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.crm.EngagementsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + started_after: startedAfter?.toISOString(), + started_before: startedBefore?.toISOString(), + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "crm/v1/engagements", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.crm.PaginatedEngagementList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/crm/v1/engagements"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "crm/v1/engagements", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.crm.PaginatedEngagementList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/crm/v1/engagements"); } /** @@ -230,7 +244,6 @@ export class EngagementsClient { * * @example * await client.crm.engagements.retrieve("id", { - * expand: "account", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true @@ -251,12 +264,17 @@ export class EngagementsClient { ): Promise> { const { expand, includeRemoteData, includeRemoteFields, includeShellData } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.crm.EngagementsRetrieveRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.crm.EngagementsRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.crm.EngagementsRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_remote_fields: includeRemoteFields, include_shell_data: includeShellData, @@ -546,86 +564,96 @@ export class EngagementsClient { * pageSize: 1 * }) */ - public remoteFieldClassesList( + public async remoteFieldClassesList( request: Merge.crm.EngagementsRemoteFieldClassesListRequest = {}, requestOptions?: EngagementsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldClassesList(request, requestOptions)); - } - - private async __remoteFieldClassesList( - request: Merge.crm.EngagementsRemoteFieldClassesListRequest = {}, - requestOptions?: EngagementsClient.RequestOptions, - ): Promise> { - const { - cursor, - includeDeletedData, - includeRemoteData, - includeRemoteFields, - includeShellData, - isCommonModelField, - isCustom, - pageSize, - } = request; - const _queryParams: Record = { - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - is_common_model_field: isCommonModelField, - is_custom: isCustom, - page_size: pageSize, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.crm.EngagementsRemoteFieldClassesListRequest, + ): Promise> => { + const { + cursor, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + isCommonModelField, + isCustom, + pageSize, + } = request; + const _queryParams: Record = { + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + is_common_model_field: isCommonModelField, + is_custom: isCustom, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "crm/v1/engagements/remote-field-classes", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.crm.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/crm/v1/engagements/remote-field-classes", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "crm/v1/engagements/remote-field-classes", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.crm.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/crm/v1/engagements/remote-field-classes", - ); } } diff --git a/src/api/resources/crm/resources/engagements/client/requests/EngagementsListRequest.ts b/src/api/resources/crm/resources/engagements/client/requests/EngagementsListRequest.ts index 7083834aa..9da1aeb84 100644 --- a/src/api/resources/crm/resources/engagements/client/requests/EngagementsListRequest.ts +++ b/src/api/resources/crm/resources/engagements/client/requests/EngagementsListRequest.ts @@ -8,7 +8,6 @@ import type * as Merge from "../../../../../../index"; * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "account", * includeDeletedData: true, * includeRemoteData: true, * includeRemoteFields: true, @@ -29,7 +28,7 @@ export interface EngagementsListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.crm.EngagementsListRequestExpand; + expand?: Merge.crm.EngagementsListRequestExpandItem | Merge.crm.EngagementsListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -42,7 +41,7 @@ export interface EngagementsListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; diff --git a/src/api/resources/crm/resources/engagements/client/requests/EngagementsRemoteFieldClassesListRequest.ts b/src/api/resources/crm/resources/engagements/client/requests/EngagementsRemoteFieldClassesListRequest.ts index 8b2413649..dc872044e 100644 --- a/src/api/resources/crm/resources/engagements/client/requests/EngagementsRemoteFieldClassesListRequest.ts +++ b/src/api/resources/crm/resources/engagements/client/requests/EngagementsRemoteFieldClassesListRequest.ts @@ -28,6 +28,6 @@ export interface EngagementsRemoteFieldClassesListRequest { isCommonModelField?: boolean; /** If provided, will only return remote fields classes with this is_custom value */ isCustom?: boolean; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; } diff --git a/src/api/resources/crm/resources/engagements/client/requests/EngagementsRetrieveRequest.ts b/src/api/resources/crm/resources/engagements/client/requests/EngagementsRetrieveRequest.ts index 9dab8b684..37e20e1af 100644 --- a/src/api/resources/crm/resources/engagements/client/requests/EngagementsRetrieveRequest.ts +++ b/src/api/resources/crm/resources/engagements/client/requests/EngagementsRetrieveRequest.ts @@ -5,7 +5,6 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "account", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true @@ -13,7 +12,7 @@ import type * as Merge from "../../../../../../index"; */ export interface EngagementsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.crm.EngagementsRetrieveRequestExpand; + expand?: Merge.crm.EngagementsRetrieveRequestExpandItem | Merge.crm.EngagementsRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. */ diff --git a/src/api/resources/crm/resources/engagements/types/EngagementsListRequestExpand.ts b/src/api/resources/crm/resources/engagements/types/EngagementsListRequestExpand.ts deleted file mode 100644 index 885993ef0..000000000 --- a/src/api/resources/crm/resources/engagements/types/EngagementsListRequestExpand.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const EngagementsListRequestExpand = { - Account: "account", - AccountEngagementType: "account,engagement_type", - Contacts: "contacts", - ContactsAccount: "contacts,account", - ContactsAccountEngagementType: "contacts,account,engagement_type", - ContactsEngagementType: "contacts,engagement_type", - ContactsOwner: "contacts,owner", - ContactsOwnerAccount: "contacts,owner,account", - ContactsOwnerAccountEngagementType: "contacts,owner,account,engagement_type", - ContactsOwnerEngagementType: "contacts,owner,engagement_type", - EngagementType: "engagement_type", - Owner: "owner", - OwnerAccount: "owner,account", - OwnerAccountEngagementType: "owner,account,engagement_type", - OwnerEngagementType: "owner,engagement_type", -} as const; -export type EngagementsListRequestExpand = - (typeof EngagementsListRequestExpand)[keyof typeof EngagementsListRequestExpand]; diff --git a/src/api/resources/crm/resources/engagements/types/EngagementsListRequestExpandItem.ts b/src/api/resources/crm/resources/engagements/types/EngagementsListRequestExpandItem.ts new file mode 100644 index 000000000..7062503c3 --- /dev/null +++ b/src/api/resources/crm/resources/engagements/types/EngagementsListRequestExpandItem.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +export const EngagementsListRequestExpandItem = { + Account: "account", + Contacts: "contacts", + EngagementType: "engagement_type", + Owner: "owner", +} as const; +export type EngagementsListRequestExpandItem = + (typeof EngagementsListRequestExpandItem)[keyof typeof EngagementsListRequestExpandItem]; diff --git a/src/api/resources/crm/resources/engagements/types/EngagementsRetrieveRequestExpand.ts b/src/api/resources/crm/resources/engagements/types/EngagementsRetrieveRequestExpand.ts deleted file mode 100644 index 1e4ce1e44..000000000 --- a/src/api/resources/crm/resources/engagements/types/EngagementsRetrieveRequestExpand.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const EngagementsRetrieveRequestExpand = { - Account: "account", - AccountEngagementType: "account,engagement_type", - Contacts: "contacts", - ContactsAccount: "contacts,account", - ContactsAccountEngagementType: "contacts,account,engagement_type", - ContactsEngagementType: "contacts,engagement_type", - ContactsOwner: "contacts,owner", - ContactsOwnerAccount: "contacts,owner,account", - ContactsOwnerAccountEngagementType: "contacts,owner,account,engagement_type", - ContactsOwnerEngagementType: "contacts,owner,engagement_type", - EngagementType: "engagement_type", - Owner: "owner", - OwnerAccount: "owner,account", - OwnerAccountEngagementType: "owner,account,engagement_type", - OwnerEngagementType: "owner,engagement_type", -} as const; -export type EngagementsRetrieveRequestExpand = - (typeof EngagementsRetrieveRequestExpand)[keyof typeof EngagementsRetrieveRequestExpand]; diff --git a/src/api/resources/crm/resources/engagements/types/EngagementsRetrieveRequestExpandItem.ts b/src/api/resources/crm/resources/engagements/types/EngagementsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..2f12181f0 --- /dev/null +++ b/src/api/resources/crm/resources/engagements/types/EngagementsRetrieveRequestExpandItem.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +export const EngagementsRetrieveRequestExpandItem = { + Account: "account", + Contacts: "contacts", + EngagementType: "engagement_type", + Owner: "owner", +} as const; +export type EngagementsRetrieveRequestExpandItem = + (typeof EngagementsRetrieveRequestExpandItem)[keyof typeof EngagementsRetrieveRequestExpandItem]; diff --git a/src/api/resources/crm/resources/engagements/types/index.ts b/src/api/resources/crm/resources/engagements/types/index.ts index 742b3ef68..31b07a506 100644 --- a/src/api/resources/crm/resources/engagements/types/index.ts +++ b/src/api/resources/crm/resources/engagements/types/index.ts @@ -1,2 +1,2 @@ -export * from "./EngagementsListRequestExpand"; -export * from "./EngagementsRetrieveRequestExpand"; +export * from "./EngagementsListRequestExpandItem"; +export * from "./EngagementsRetrieveRequestExpandItem"; diff --git a/src/api/resources/crm/resources/fieldMapping/client/Client.ts b/src/api/resources/crm/resources/fieldMapping/client/Client.ts index 078d9e149..1239152af 100644 --- a/src/api/resources/crm/resources/fieldMapping/client/Client.ts +++ b/src/api/resources/crm/resources/fieldMapping/client/Client.ts @@ -105,6 +105,7 @@ export class FieldMappingClient { * @example * await client.crm.fieldMapping.fieldMappingsCreate({ * excludeRemoteFieldMetadata: true, + * remoteDataIterationCount: 1, * targetFieldName: "example_target_field_name", * targetFieldDescription: "this is a example description of the target field", * remoteFieldTraversalPath: ["example_remote_field"], @@ -124,9 +125,10 @@ export class FieldMappingClient { request: Merge.crm.CreateFieldMappingRequest, requestOptions?: FieldMappingClient.RequestOptions, ): Promise> { - const { excludeRemoteFieldMetadata, ..._body } = request; + const { excludeRemoteFieldMetadata, remoteDataIterationCount, ..._body } = request; const _queryParams: Record = { exclude_remote_field_metadata: excludeRemoteFieldMetadata, + remote_data_iteration_count: remoteDataIterationCount, }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( @@ -258,7 +260,9 @@ export class FieldMappingClient { * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.crm.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id") + * await client.crm.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { + * remoteDataIterationCount: 1 + * }) */ public fieldMappingsPartialUpdate( field_mapping_id: string, @@ -275,6 +279,10 @@ export class FieldMappingClient { request: Merge.crm.PatchedEditFieldMappingRequest = {}, requestOptions?: FieldMappingClient.RequestOptions, ): Promise> { + const { remoteDataIterationCount, ..._body } = request; + const _queryParams: Record = { + remote_data_iteration_count: remoteDataIterationCount, + }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, @@ -292,9 +300,9 @@ export class FieldMappingClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, requestType: "json", - body: serializers.crm.PatchedEditFieldMappingRequest.jsonOrThrow(request, { + body: serializers.crm.PatchedEditFieldMappingRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip", }), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/api/resources/crm/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts b/src/api/resources/crm/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts index e711ea5fc..118f1512d 100644 --- a/src/api/resources/crm/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts +++ b/src/api/resources/crm/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts @@ -4,6 +4,7 @@ * @example * { * excludeRemoteFieldMetadata: true, + * remoteDataIterationCount: 1, * targetFieldName: "example_target_field_name", * targetFieldDescription: "this is a example description of the target field", * remoteFieldTraversalPath: ["example_remote_field"], @@ -15,6 +16,8 @@ export interface CreateFieldMappingRequest { /** If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. */ excludeRemoteFieldMetadata?: boolean; + /** Number of common model instances to iterate through when fetching remote data for field mappings. Defaults to 250 if not provided. */ + remoteDataIterationCount?: number; /** The name of the target field you want this remote field to map to. */ targetFieldName: string; /** The description of the target field you want this remote field to map to. */ @@ -27,4 +30,6 @@ export interface CreateFieldMappingRequest { remoteUrlPath: string; /** The name of the Common Model that the remote field corresponds to in a given category. */ commonModelName: string; + /** JMES path to specify json query expression to be used on field mapping. */ + jmesPath?: string; } 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 0efe65466..3c388858f 100644 --- a/src/api/resources/crm/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts +++ b/src/api/resources/crm/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts @@ -2,13 +2,19 @@ /** * @example - * {} + * { + * remoteDataIterationCount: 1 + * } */ export interface PatchedEditFieldMappingRequest { + /** Number of common model instances to iterate through when fetching remote data for field mappings. Defaults to 250 if not provided. */ + remoteDataIterationCount?: number; /** The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. */ remoteFieldTraversalPath?: unknown[]; /** The method of the remote endpoint where the remote field is coming from. */ remoteMethod?: string; /** The path of the remote endpoint where the remote field is coming from. */ remoteUrlPath?: string; + /** JMES path to specify json query expression to be used on field mapping. */ + jmesPath?: string; } diff --git a/src/api/resources/crm/resources/issues/client/Client.ts b/src/api/resources/crm/resources/issues/client/Client.ts index cfb60a06d..0dfe18af7 100644 --- a/src/api/resources/crm/resources/issues/client/Client.ts +++ b/src/api/resources/crm/resources/issues/client/Client.ts @@ -47,97 +47,109 @@ export class IssuesClient { * status: "ONGOING" * }) */ - public list( + public async list( request: Merge.crm.IssuesListRequest = {}, requestOptions?: IssuesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.crm.IssuesListRequest = {}, - requestOptions?: IssuesClient.RequestOptions, - ): Promise> { - const { - accountToken, - cursor, - endDate, - endUserOrganizationName, - firstIncidentTimeAfter, - firstIncidentTimeBefore, - includeMuted, - integrationName, - lastIncidentTimeAfter, - lastIncidentTimeBefore, - linkedAccountId, - pageSize, - startDate, - status, - } = request; - const _queryParams: Record = { - account_token: accountToken, - cursor, - end_date: endDate, - end_user_organization_name: endUserOrganizationName, - first_incident_time_after: firstIncidentTimeAfter?.toISOString(), - first_incident_time_before: firstIncidentTimeBefore?.toISOString(), - include_muted: includeMuted, - integration_name: integrationName, - last_incident_time_after: lastIncidentTimeAfter?.toISOString(), - last_incident_time_before: lastIncidentTimeBefore?.toISOString(), - linked_account_id: linkedAccountId, - page_size: pageSize, - start_date: startDate, - status: - status != null - ? serializers.crm.IssuesListRequestStatus.jsonOrThrow(status, { unrecognizedObjectKeys: "strip" }) - : undefined, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.crm.IssuesListRequest, + ): Promise> => { + const { + accountToken, + cursor, + endDate, + endUserOrganizationName, + firstIncidentTimeAfter, + firstIncidentTimeBefore, + includeMuted, + integrationName, + lastIncidentTimeAfter, + lastIncidentTimeBefore, + linkedAccountId, + pageSize, + startDate, + status, + } = request; + const _queryParams: Record = { + account_token: accountToken, + cursor, + end_date: endDate, + end_user_organization_name: endUserOrganizationName, + first_incident_time_after: firstIncidentTimeAfter?.toISOString(), + first_incident_time_before: firstIncidentTimeBefore?.toISOString(), + include_muted: includeMuted, + integration_name: integrationName, + last_incident_time_after: lastIncidentTimeAfter?.toISOString(), + last_incident_time_before: lastIncidentTimeBefore?.toISOString(), + linked_account_id: linkedAccountId, + page_size: pageSize, + start_date: startDate, + status: + status != null + ? serializers.crm.IssuesListRequestStatus.jsonOrThrow(status, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "crm/v1/issues", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.crm.PaginatedIssueList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/crm/v1/issues"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "crm/v1/issues", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.crm.PaginatedIssueList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/crm/v1/issues"); } /** diff --git a/src/api/resources/crm/resources/issues/client/requests/IssuesListRequest.ts b/src/api/resources/crm/resources/issues/client/requests/IssuesListRequest.ts index 6a42e8ce7..8640f6d41 100644 --- a/src/api/resources/crm/resources/issues/client/requests/IssuesListRequest.ts +++ b/src/api/resources/crm/resources/issues/client/requests/IssuesListRequest.ts @@ -41,7 +41,7 @@ export interface IssuesListRequest { lastIncidentTimeBefore?: Date; /** If provided, will only include issues pertaining to the linked account passed in. */ linkedAccountId?: string; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** If included, will only include issues whose most recent action occurred after this time */ startDate?: string; diff --git a/src/api/resources/crm/resources/leads/client/Client.ts b/src/api/resources/crm/resources/leads/client/Client.ts index 70b5eaf5f..b852fa9a7 100644 --- a/src/api/resources/crm/resources/leads/client/Client.ts +++ b/src/api/resources/crm/resources/leads/client/Client.ts @@ -37,7 +37,6 @@ export class LeadsClient { * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * emailAddresses: "email_addresses", - * expand: "converted_account", * includeDeletedData: true, * includeRemoteData: true, * includeRemoteFields: true, @@ -50,103 +49,118 @@ export class LeadsClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.crm.LeadsListRequest = {}, requestOptions?: LeadsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.crm.LeadsListRequest = {}, - requestOptions?: LeadsClient.RequestOptions, - ): Promise> { - const { - convertedAccountId, - convertedContactId, - createdAfter, - createdBefore, - cursor, - emailAddresses, - expand, - includeDeletedData, - includeRemoteData, - includeRemoteFields, - includeShellData, - modifiedAfter, - modifiedBefore, - ownerId, - pageSize, - phoneNumbers, - remoteId, - } = request; - const _queryParams: Record = { - converted_account_id: convertedAccountId, - converted_contact_id: convertedContactId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - email_addresses: emailAddresses, - expand: - expand != null - ? serializers.crm.LeadsListRequestExpand.jsonOrThrow(expand, { unrecognizedObjectKeys: "strip" }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - owner_id: ownerId, - page_size: pageSize, - phone_numbers: phoneNumbers, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async (request: Merge.crm.LeadsListRequest): Promise> => { + const { + convertedAccountId, + convertedContactId, + createdAfter, + createdBefore, + cursor, + emailAddresses, + expand, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + modifiedAfter, + modifiedBefore, + ownerId, + pageSize, + phoneNumbers, + remoteId, + } = request; + const _queryParams: Record = { + converted_account_id: convertedAccountId, + converted_contact_id: convertedContactId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + email_addresses: emailAddresses, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.crm.LeadsListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.crm.LeadsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + owner_id: ownerId, + page_size: pageSize, + phone_numbers: phoneNumbers, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "crm/v1/leads", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.crm.PaginatedLeadList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/crm/v1/leads"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "crm/v1/leads", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.crm.PaginatedLeadList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/crm/v1/leads"); } /** @@ -237,7 +251,6 @@ export class LeadsClient { * * @example * await client.crm.leads.retrieve("id", { - * expand: "converted_account", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true @@ -258,12 +271,17 @@ export class LeadsClient { ): Promise> { const { expand, includeRemoteData, includeRemoteFields, includeShellData } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.crm.LeadsRetrieveRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.crm.LeadsRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.crm.LeadsRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_remote_fields: includeRemoteFields, include_shell_data: includeShellData, @@ -397,86 +415,96 @@ export class LeadsClient { * pageSize: 1 * }) */ - public remoteFieldClassesList( + public async remoteFieldClassesList( request: Merge.crm.LeadsRemoteFieldClassesListRequest = {}, requestOptions?: LeadsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldClassesList(request, requestOptions)); - } - - private async __remoteFieldClassesList( - request: Merge.crm.LeadsRemoteFieldClassesListRequest = {}, - requestOptions?: LeadsClient.RequestOptions, - ): Promise> { - const { - cursor, - includeDeletedData, - includeRemoteData, - includeRemoteFields, - includeShellData, - isCommonModelField, - isCustom, - pageSize, - } = request; - const _queryParams: Record = { - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - is_common_model_field: isCommonModelField, - is_custom: isCustom, - page_size: pageSize, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.crm.LeadsRemoteFieldClassesListRequest, + ): Promise> => { + const { + cursor, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + isCommonModelField, + isCustom, + pageSize, + } = request; + const _queryParams: Record = { + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + is_common_model_field: isCommonModelField, + is_custom: isCustom, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "crm/v1/leads/remote-field-classes", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.crm.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/crm/v1/leads/remote-field-classes", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "crm/v1/leads/remote-field-classes", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.crm.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/crm/v1/leads/remote-field-classes", - ); } } diff --git a/src/api/resources/crm/resources/leads/client/requests/LeadsListRequest.ts b/src/api/resources/crm/resources/leads/client/requests/LeadsListRequest.ts index bae97c7a0..7c746dc40 100644 --- a/src/api/resources/crm/resources/leads/client/requests/LeadsListRequest.ts +++ b/src/api/resources/crm/resources/leads/client/requests/LeadsListRequest.ts @@ -11,7 +11,6 @@ import type * as Merge from "../../../../../../index"; * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * emailAddresses: "email_addresses", - * expand: "converted_account", * includeDeletedData: true, * includeRemoteData: true, * includeRemoteFields: true, @@ -38,7 +37,7 @@ export interface LeadsListRequest { /** If provided, will only return contacts matching the email addresses; multiple email_addresses can be separated by commas. */ emailAddresses?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.crm.LeadsListRequestExpand; + expand?: Merge.crm.LeadsListRequestExpandItem | Merge.crm.LeadsListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -53,7 +52,7 @@ export interface LeadsListRequest { modifiedBefore?: Date; /** If provided, will only return leads with this owner. */ ownerId?: string; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** If provided, will only return contacts matching the phone numbers; multiple phone numbers can be separated by commas. */ phoneNumbers?: string; diff --git a/src/api/resources/crm/resources/leads/client/requests/LeadsRemoteFieldClassesListRequest.ts b/src/api/resources/crm/resources/leads/client/requests/LeadsRemoteFieldClassesListRequest.ts index 9a14bd80d..b5350835e 100644 --- a/src/api/resources/crm/resources/leads/client/requests/LeadsRemoteFieldClassesListRequest.ts +++ b/src/api/resources/crm/resources/leads/client/requests/LeadsRemoteFieldClassesListRequest.ts @@ -28,6 +28,6 @@ export interface LeadsRemoteFieldClassesListRequest { isCommonModelField?: boolean; /** If provided, will only return remote fields classes with this is_custom value */ isCustom?: boolean; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; } diff --git a/src/api/resources/crm/resources/leads/client/requests/LeadsRetrieveRequest.ts b/src/api/resources/crm/resources/leads/client/requests/LeadsRetrieveRequest.ts index bc9e60540..124a01f7e 100644 --- a/src/api/resources/crm/resources/leads/client/requests/LeadsRetrieveRequest.ts +++ b/src/api/resources/crm/resources/leads/client/requests/LeadsRetrieveRequest.ts @@ -5,7 +5,6 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "converted_account", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true @@ -13,7 +12,7 @@ import type * as Merge from "../../../../../../index"; */ export interface LeadsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.crm.LeadsRetrieveRequestExpand; + expand?: Merge.crm.LeadsRetrieveRequestExpandItem | Merge.crm.LeadsRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. */ diff --git a/src/api/resources/crm/resources/leads/types/LeadsListRequestExpand.ts b/src/api/resources/crm/resources/leads/types/LeadsListRequestExpand.ts deleted file mode 100644 index 26ee621f5..000000000 --- a/src/api/resources/crm/resources/leads/types/LeadsListRequestExpand.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const LeadsListRequestExpand = { - ConvertedAccount: "converted_account", - ConvertedContact: "converted_contact", - ConvertedContactConvertedAccount: "converted_contact,converted_account", - Owner: "owner", - OwnerConvertedAccount: "owner,converted_account", - OwnerConvertedContact: "owner,converted_contact", - OwnerConvertedContactConvertedAccount: "owner,converted_contact,converted_account", -} as const; -export type LeadsListRequestExpand = (typeof LeadsListRequestExpand)[keyof typeof LeadsListRequestExpand]; diff --git a/src/api/resources/crm/resources/leads/types/LeadsListRequestExpandItem.ts b/src/api/resources/crm/resources/leads/types/LeadsListRequestExpandItem.ts new file mode 100644 index 000000000..61a16cf45 --- /dev/null +++ b/src/api/resources/crm/resources/leads/types/LeadsListRequestExpandItem.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export const LeadsListRequestExpandItem = { + ConvertedAccount: "converted_account", + ConvertedContact: "converted_contact", + Owner: "owner", +} as const; +export type LeadsListRequestExpandItem = (typeof LeadsListRequestExpandItem)[keyof typeof LeadsListRequestExpandItem]; diff --git a/src/api/resources/crm/resources/leads/types/LeadsRetrieveRequestExpand.ts b/src/api/resources/crm/resources/leads/types/LeadsRetrieveRequestExpand.ts deleted file mode 100644 index e22f4ca00..000000000 --- a/src/api/resources/crm/resources/leads/types/LeadsRetrieveRequestExpand.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const LeadsRetrieveRequestExpand = { - ConvertedAccount: "converted_account", - ConvertedContact: "converted_contact", - ConvertedContactConvertedAccount: "converted_contact,converted_account", - Owner: "owner", - OwnerConvertedAccount: "owner,converted_account", - OwnerConvertedContact: "owner,converted_contact", - OwnerConvertedContactConvertedAccount: "owner,converted_contact,converted_account", -} as const; -export type LeadsRetrieveRequestExpand = (typeof LeadsRetrieveRequestExpand)[keyof typeof LeadsRetrieveRequestExpand]; diff --git a/src/api/resources/crm/resources/leads/types/LeadsRetrieveRequestExpandItem.ts b/src/api/resources/crm/resources/leads/types/LeadsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..56ef8900d --- /dev/null +++ b/src/api/resources/crm/resources/leads/types/LeadsRetrieveRequestExpandItem.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +export const LeadsRetrieveRequestExpandItem = { + ConvertedAccount: "converted_account", + ConvertedContact: "converted_contact", + Owner: "owner", +} as const; +export type LeadsRetrieveRequestExpandItem = + (typeof LeadsRetrieveRequestExpandItem)[keyof typeof LeadsRetrieveRequestExpandItem]; diff --git a/src/api/resources/crm/resources/leads/types/index.ts b/src/api/resources/crm/resources/leads/types/index.ts index 139d390d0..910b5ea9c 100644 --- a/src/api/resources/crm/resources/leads/types/index.ts +++ b/src/api/resources/crm/resources/leads/types/index.ts @@ -1,2 +1,2 @@ -export * from "./LeadsListRequestExpand"; -export * from "./LeadsRetrieveRequestExpand"; +export * from "./LeadsListRequestExpandItem"; +export * from "./LeadsRetrieveRequestExpandItem"; diff --git a/src/api/resources/crm/resources/linkToken/client/Client.ts b/src/api/resources/crm/resources/linkToken/client/Client.ts index 3021f9774..4d69a44b7 100644 --- a/src/api/resources/crm/resources/linkToken/client/Client.ts +++ b/src/api/resources/crm/resources/linkToken/client/Client.ts @@ -24,7 +24,7 @@ export class LinkTokenClient { } /** - * Creates a link token to be used when linking a new end user. + * Creates a link token to be used when linking a new end user. The link token expires after single use. * * @param {Merge.crm.EndUserDetailsRequest} request * @param {LinkTokenClient.RequestOptions} requestOptions - Request-specific configuration. diff --git a/src/api/resources/crm/resources/linkedAccounts/client/Client.ts b/src/api/resources/crm/resources/linkedAccounts/client/Client.ts index 76adf07f6..f4625ffd8 100644 --- a/src/api/resources/crm/resources/linkedAccounts/client/Client.ts +++ b/src/api/resources/crm/resources/linkedAccounts/client/Client.ts @@ -46,96 +46,111 @@ export class LinkedAccountsClient { * status: "status" * }) */ - public list( + public async list( request: Merge.crm.LinkedAccountsListRequest = {}, requestOptions?: LinkedAccountsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.crm.LinkedAccountsListRequest = {}, - requestOptions?: LinkedAccountsClient.RequestOptions, - ): Promise> { - const { - category, - cursor, - endUserEmailAddress, - endUserOrganizationName, - endUserOriginId, - endUserOriginIds, - id, - ids, - includeDuplicates, - integrationName, - isTestAccount, - pageSize, - status, - } = request; - const _queryParams: Record = { - category: - category != null - ? serializers.crm.LinkedAccountsListRequestCategory.jsonOrThrow(category, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - cursor, - end_user_email_address: endUserEmailAddress, - end_user_organization_name: endUserOrganizationName, - end_user_origin_id: endUserOriginId, - end_user_origin_ids: endUserOriginIds, - id, - ids, - include_duplicates: includeDuplicates, - integration_name: integrationName, - is_test_account: isTestAccount, - page_size: pageSize, - status, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.crm.LinkedAccountsListRequest, + ): Promise> => { + const { + category, + cursor, + endUserEmailAddress, + endUserOrganizationName, + endUserOriginId, + endUserOriginIds, + id, + ids, + includeDuplicates, + integrationName, + isTestAccount, + pageSize, + status, + } = request; + const _queryParams: Record = { + category: + category != null + ? serializers.crm.LinkedAccountsListRequestCategory.jsonOrThrow(category, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + cursor, + end_user_email_address: endUserEmailAddress, + end_user_organization_name: endUserOrganizationName, + end_user_origin_id: endUserOriginId, + end_user_origin_ids: endUserOriginIds, + id, + ids, + include_duplicates: includeDuplicates, + integration_name: integrationName, + is_test_account: isTestAccount, + page_size: pageSize, + status, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "crm/v1/linked-accounts", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.crm.PaginatedAccountDetailsAndActionsList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/crm/v1/linked-accounts", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "crm/v1/linked-accounts", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.crm.PaginatedAccountDetailsAndActionsList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/crm/v1/linked-accounts"); } } diff --git a/src/api/resources/crm/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts b/src/api/resources/crm/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts index 5b780f089..36ddf4324 100644 --- a/src/api/resources/crm/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts +++ b/src/api/resources/crm/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts @@ -52,7 +52,7 @@ export interface LinkedAccountsListRequest { integrationName?: string; /** If included, will only include test linked accounts. If not included, will only include non-test linked accounts. */ isTestAccount?: string; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` */ status?: string; diff --git a/src/api/resources/crm/resources/notes/client/Client.ts b/src/api/resources/crm/resources/notes/client/Client.ts index 5ff779b18..3c2f8176e 100644 --- a/src/api/resources/crm/resources/notes/client/Client.ts +++ b/src/api/resources/crm/resources/notes/client/Client.ts @@ -36,7 +36,6 @@ export class NotesClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "account", * includeDeletedData: true, * includeRemoteData: true, * includeRemoteFields: true, @@ -49,101 +48,116 @@ export class NotesClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.crm.NotesListRequest = {}, requestOptions?: NotesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.crm.NotesListRequest = {}, - requestOptions?: NotesClient.RequestOptions, - ): Promise> { - const { - accountId, - contactId, - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeRemoteFields, - includeShellData, - modifiedAfter, - modifiedBefore, - opportunityId, - ownerId, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - account_id: accountId, - contact_id: contactId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: - expand != null - ? serializers.crm.NotesListRequestExpand.jsonOrThrow(expand, { unrecognizedObjectKeys: "strip" }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - opportunity_id: opportunityId, - owner_id: ownerId, - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async (request: Merge.crm.NotesListRequest): Promise> => { + const { + accountId, + contactId, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + modifiedAfter, + modifiedBefore, + opportunityId, + ownerId, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + account_id: accountId, + contact_id: contactId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.crm.NotesListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.crm.NotesListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + opportunity_id: opportunityId, + owner_id: ownerId, + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "crm/v1/notes", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.crm.PaginatedNoteList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/crm/v1/notes"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "crm/v1/notes", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.crm.PaginatedNoteList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/crm/v1/notes"); } /** @@ -234,7 +248,6 @@ export class NotesClient { * * @example * await client.crm.notes.retrieve("id", { - * expand: "account", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true @@ -255,12 +268,17 @@ export class NotesClient { ): Promise> { const { expand, includeRemoteData, includeRemoteFields, includeShellData } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.crm.NotesRetrieveRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.crm.NotesRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.crm.NotesRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_remote_fields: includeRemoteFields, include_shell_data: includeShellData, @@ -394,86 +412,96 @@ export class NotesClient { * pageSize: 1 * }) */ - public remoteFieldClassesList( + public async remoteFieldClassesList( request: Merge.crm.NotesRemoteFieldClassesListRequest = {}, requestOptions?: NotesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldClassesList(request, requestOptions)); - } - - private async __remoteFieldClassesList( - request: Merge.crm.NotesRemoteFieldClassesListRequest = {}, - requestOptions?: NotesClient.RequestOptions, - ): Promise> { - const { - cursor, - includeDeletedData, - includeRemoteData, - includeRemoteFields, - includeShellData, - isCommonModelField, - isCustom, - pageSize, - } = request; - const _queryParams: Record = { - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - is_common_model_field: isCommonModelField, - is_custom: isCustom, - page_size: pageSize, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.crm.NotesRemoteFieldClassesListRequest, + ): Promise> => { + const { + cursor, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + isCommonModelField, + isCustom, + pageSize, + } = request; + const _queryParams: Record = { + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + is_common_model_field: isCommonModelField, + is_custom: isCustom, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "crm/v1/notes/remote-field-classes", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.crm.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/crm/v1/notes/remote-field-classes", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "crm/v1/notes/remote-field-classes", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.crm.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/crm/v1/notes/remote-field-classes", - ); } } diff --git a/src/api/resources/crm/resources/notes/client/requests/NotesListRequest.ts b/src/api/resources/crm/resources/notes/client/requests/NotesListRequest.ts index 1e1817dcc..84bf3ace1 100644 --- a/src/api/resources/crm/resources/notes/client/requests/NotesListRequest.ts +++ b/src/api/resources/crm/resources/notes/client/requests/NotesListRequest.ts @@ -10,7 +10,6 @@ import type * as Merge from "../../../../../../index"; * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "account", * includeDeletedData: true, * includeRemoteData: true, * includeRemoteFields: true, @@ -35,7 +34,7 @@ export interface NotesListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.crm.NotesListRequestExpand; + expand?: Merge.crm.NotesListRequestExpandItem | Merge.crm.NotesListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -52,7 +51,7 @@ export interface NotesListRequest { opportunityId?: string; /** If provided, will only return notes with this owner. */ ownerId?: string; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; diff --git a/src/api/resources/crm/resources/notes/client/requests/NotesRemoteFieldClassesListRequest.ts b/src/api/resources/crm/resources/notes/client/requests/NotesRemoteFieldClassesListRequest.ts index fe008a6bc..6b80151a7 100644 --- a/src/api/resources/crm/resources/notes/client/requests/NotesRemoteFieldClassesListRequest.ts +++ b/src/api/resources/crm/resources/notes/client/requests/NotesRemoteFieldClassesListRequest.ts @@ -28,6 +28,6 @@ export interface NotesRemoteFieldClassesListRequest { isCommonModelField?: boolean; /** If provided, will only return remote fields classes with this is_custom value */ isCustom?: boolean; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; } diff --git a/src/api/resources/crm/resources/notes/client/requests/NotesRetrieveRequest.ts b/src/api/resources/crm/resources/notes/client/requests/NotesRetrieveRequest.ts index 81790928d..3da0ce558 100644 --- a/src/api/resources/crm/resources/notes/client/requests/NotesRetrieveRequest.ts +++ b/src/api/resources/crm/resources/notes/client/requests/NotesRetrieveRequest.ts @@ -5,7 +5,6 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "account", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true @@ -13,7 +12,7 @@ import type * as Merge from "../../../../../../index"; */ export interface NotesRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.crm.NotesRetrieveRequestExpand; + expand?: Merge.crm.NotesRetrieveRequestExpandItem | Merge.crm.NotesRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. */ diff --git a/src/api/resources/crm/resources/notes/types/NotesListRequestExpand.ts b/src/api/resources/crm/resources/notes/types/NotesListRequestExpand.ts deleted file mode 100644 index 1568dc7af..000000000 --- a/src/api/resources/crm/resources/notes/types/NotesListRequestExpand.ts +++ /dev/null @@ -1,20 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const NotesListRequestExpand = { - Account: "account", - AccountOpportunity: "account,opportunity", - Contact: "contact", - ContactAccount: "contact,account", - ContactAccountOpportunity: "contact,account,opportunity", - ContactOpportunity: "contact,opportunity", - Opportunity: "opportunity", - Owner: "owner", - OwnerAccount: "owner,account", - OwnerAccountOpportunity: "owner,account,opportunity", - OwnerContact: "owner,contact", - OwnerContactAccount: "owner,contact,account", - OwnerContactAccountOpportunity: "owner,contact,account,opportunity", - OwnerContactOpportunity: "owner,contact,opportunity", - OwnerOpportunity: "owner,opportunity", -} as const; -export type NotesListRequestExpand = (typeof NotesListRequestExpand)[keyof typeof NotesListRequestExpand]; diff --git a/src/api/resources/crm/resources/notes/types/NotesListRequestExpandItem.ts b/src/api/resources/crm/resources/notes/types/NotesListRequestExpandItem.ts new file mode 100644 index 000000000..81878c010 --- /dev/null +++ b/src/api/resources/crm/resources/notes/types/NotesListRequestExpandItem.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +export const NotesListRequestExpandItem = { + Account: "account", + Contact: "contact", + Opportunity: "opportunity", + Owner: "owner", +} as const; +export type NotesListRequestExpandItem = (typeof NotesListRequestExpandItem)[keyof typeof NotesListRequestExpandItem]; diff --git a/src/api/resources/crm/resources/notes/types/NotesRetrieveRequestExpand.ts b/src/api/resources/crm/resources/notes/types/NotesRetrieveRequestExpand.ts deleted file mode 100644 index 9f9902de9..000000000 --- a/src/api/resources/crm/resources/notes/types/NotesRetrieveRequestExpand.ts +++ /dev/null @@ -1,20 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const NotesRetrieveRequestExpand = { - Account: "account", - AccountOpportunity: "account,opportunity", - Contact: "contact", - ContactAccount: "contact,account", - ContactAccountOpportunity: "contact,account,opportunity", - ContactOpportunity: "contact,opportunity", - Opportunity: "opportunity", - Owner: "owner", - OwnerAccount: "owner,account", - OwnerAccountOpportunity: "owner,account,opportunity", - OwnerContact: "owner,contact", - OwnerContactAccount: "owner,contact,account", - OwnerContactAccountOpportunity: "owner,contact,account,opportunity", - OwnerContactOpportunity: "owner,contact,opportunity", - OwnerOpportunity: "owner,opportunity", -} as const; -export type NotesRetrieveRequestExpand = (typeof NotesRetrieveRequestExpand)[keyof typeof NotesRetrieveRequestExpand]; diff --git a/src/api/resources/crm/resources/notes/types/NotesRetrieveRequestExpandItem.ts b/src/api/resources/crm/resources/notes/types/NotesRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..27bc3950f --- /dev/null +++ b/src/api/resources/crm/resources/notes/types/NotesRetrieveRequestExpandItem.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +export const NotesRetrieveRequestExpandItem = { + Account: "account", + Contact: "contact", + Opportunity: "opportunity", + Owner: "owner", +} as const; +export type NotesRetrieveRequestExpandItem = + (typeof NotesRetrieveRequestExpandItem)[keyof typeof NotesRetrieveRequestExpandItem]; diff --git a/src/api/resources/crm/resources/notes/types/index.ts b/src/api/resources/crm/resources/notes/types/index.ts index 619a79b71..34de923cd 100644 --- a/src/api/resources/crm/resources/notes/types/index.ts +++ b/src/api/resources/crm/resources/notes/types/index.ts @@ -1,2 +1,2 @@ -export * from "./NotesListRequestExpand"; -export * from "./NotesRetrieveRequestExpand"; +export * from "./NotesListRequestExpandItem"; +export * from "./NotesRetrieveRequestExpandItem"; diff --git a/src/api/resources/crm/resources/opportunities/client/Client.ts b/src/api/resources/crm/resources/opportunities/client/Client.ts index c51c21345..62b4cd0bc 100644 --- a/src/api/resources/crm/resources/opportunities/client/Client.ts +++ b/src/api/resources/crm/resources/opportunities/client/Client.ts @@ -35,7 +35,6 @@ export class OpportunitiesClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "account", * includeDeletedData: true, * includeRemoteData: true, * includeRemoteFields: true, @@ -52,114 +51,129 @@ export class OpportunitiesClient { * status: "LOST" * }) */ - public list( + public async list( request: Merge.crm.OpportunitiesListRequest = {}, requestOptions?: OpportunitiesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.crm.OpportunitiesListRequest = {}, - requestOptions?: OpportunitiesClient.RequestOptions, - ): Promise> { - const { - accountId, - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeRemoteFields, - includeShellData, - modifiedAfter, - modifiedBefore, - ownerId, - pageSize, - remoteCreatedAfter, - remoteFields, - remoteId, - showEnumOrigins, - stageId, - status, - } = request; - const _queryParams: Record = { - account_id: accountId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: - expand != null - ? serializers.crm.OpportunitiesListRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - owner_id: ownerId, - page_size: pageSize, - remote_created_after: remoteCreatedAfter?.toISOString(), - remote_fields: remoteFields != null ? remoteFields : undefined, - remote_id: remoteId, - show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, - stage_id: stageId, - status: - status != null - ? serializers.crm.OpportunitiesListRequestStatus.jsonOrThrow(status, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.crm.OpportunitiesListRequest, + ): Promise> => { + const { + accountId, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + modifiedAfter, + modifiedBefore, + ownerId, + pageSize, + remoteCreatedAfter, + remoteFields, + remoteId, + showEnumOrigins, + stageId, + status, + } = request; + const _queryParams: Record = { + account_id: accountId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.crm.OpportunitiesListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.crm.OpportunitiesListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + owner_id: ownerId, + page_size: pageSize, + remote_created_after: remoteCreatedAfter?.toISOString(), + remote_fields: remoteFields != null ? remoteFields : undefined, + remote_id: remoteId, + show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, + stage_id: stageId, + status: + status != null + ? serializers.crm.OpportunitiesListRequestStatus.jsonOrThrow(status, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "crm/v1/opportunities", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.crm.PaginatedOpportunityList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/crm/v1/opportunities"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "crm/v1/opportunities", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.crm.PaginatedOpportunityList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/crm/v1/opportunities"); } /** @@ -250,7 +264,6 @@ export class OpportunitiesClient { * * @example * await client.crm.opportunities.retrieve("id", { - * expand: "account", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true, @@ -274,12 +287,17 @@ export class OpportunitiesClient { const { expand, includeRemoteData, includeRemoteFields, includeShellData, remoteFields, showEnumOrigins } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.crm.OpportunitiesRetrieveRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.crm.OpportunitiesRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.crm.OpportunitiesRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_remote_fields: includeRemoteFields, include_shell_data: includeShellData, @@ -576,86 +594,96 @@ export class OpportunitiesClient { * pageSize: 1 * }) */ - public remoteFieldClassesList( + public async remoteFieldClassesList( request: Merge.crm.OpportunitiesRemoteFieldClassesListRequest = {}, requestOptions?: OpportunitiesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldClassesList(request, requestOptions)); - } - - private async __remoteFieldClassesList( - request: Merge.crm.OpportunitiesRemoteFieldClassesListRequest = {}, - requestOptions?: OpportunitiesClient.RequestOptions, - ): Promise> { - const { - cursor, - includeDeletedData, - includeRemoteData, - includeRemoteFields, - includeShellData, - isCommonModelField, - isCustom, - pageSize, - } = request; - const _queryParams: Record = { - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - is_common_model_field: isCommonModelField, - is_custom: isCustom, - page_size: pageSize, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.crm.OpportunitiesRemoteFieldClassesListRequest, + ): Promise> => { + const { + cursor, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + isCommonModelField, + isCustom, + pageSize, + } = request; + const _queryParams: Record = { + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + is_common_model_field: isCommonModelField, + is_custom: isCustom, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "crm/v1/opportunities/remote-field-classes", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.crm.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/crm/v1/opportunities/remote-field-classes", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "crm/v1/opportunities/remote-field-classes", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.crm.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/crm/v1/opportunities/remote-field-classes", - ); } } diff --git a/src/api/resources/crm/resources/opportunities/client/requests/OpportunitiesListRequest.ts b/src/api/resources/crm/resources/opportunities/client/requests/OpportunitiesListRequest.ts index 9ac6d37c0..8691b3457 100644 --- a/src/api/resources/crm/resources/opportunities/client/requests/OpportunitiesListRequest.ts +++ b/src/api/resources/crm/resources/opportunities/client/requests/OpportunitiesListRequest.ts @@ -9,7 +9,6 @@ import type * as Merge from "../../../../../../index"; * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "account", * includeDeletedData: true, * includeRemoteData: true, * includeRemoteFields: true, @@ -36,7 +35,7 @@ export interface OpportunitiesListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.crm.OpportunitiesListRequestExpand; + expand?: Merge.crm.OpportunitiesListRequestExpandItem | Merge.crm.OpportunitiesListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -51,7 +50,7 @@ export interface OpportunitiesListRequest { modifiedBefore?: Date; /** If provided, will only return opportunities with this owner. */ ownerId?: string; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** If provided, will only return opportunities created in the third party platform after this datetime. */ remoteCreatedAfter?: Date; diff --git a/src/api/resources/crm/resources/opportunities/client/requests/OpportunitiesRemoteFieldClassesListRequest.ts b/src/api/resources/crm/resources/opportunities/client/requests/OpportunitiesRemoteFieldClassesListRequest.ts index 9cd78691d..43433e3e5 100644 --- a/src/api/resources/crm/resources/opportunities/client/requests/OpportunitiesRemoteFieldClassesListRequest.ts +++ b/src/api/resources/crm/resources/opportunities/client/requests/OpportunitiesRemoteFieldClassesListRequest.ts @@ -28,6 +28,6 @@ export interface OpportunitiesRemoteFieldClassesListRequest { isCommonModelField?: boolean; /** If provided, will only return remote fields classes with this is_custom value */ isCustom?: boolean; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; } diff --git a/src/api/resources/crm/resources/opportunities/client/requests/OpportunitiesRetrieveRequest.ts b/src/api/resources/crm/resources/opportunities/client/requests/OpportunitiesRetrieveRequest.ts index 00cd01800..1d74e74a1 100644 --- a/src/api/resources/crm/resources/opportunities/client/requests/OpportunitiesRetrieveRequest.ts +++ b/src/api/resources/crm/resources/opportunities/client/requests/OpportunitiesRetrieveRequest.ts @@ -5,7 +5,6 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "account", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true, @@ -15,7 +14,7 @@ import type * as Merge from "../../../../../../index"; */ export interface OpportunitiesRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.crm.OpportunitiesRetrieveRequestExpand; + expand?: Merge.crm.OpportunitiesRetrieveRequestExpandItem | Merge.crm.OpportunitiesRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. */ diff --git a/src/api/resources/crm/resources/opportunities/types/OpportunitiesListRequestExpand.ts b/src/api/resources/crm/resources/opportunities/types/OpportunitiesListRequestExpand.ts deleted file mode 100644 index 9657d6f7b..000000000 --- a/src/api/resources/crm/resources/opportunities/types/OpportunitiesListRequestExpand.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const OpportunitiesListRequestExpand = { - Account: "account", - Owner: "owner", - OwnerAccount: "owner,account", - OwnerStage: "owner,stage", - OwnerStageAccount: "owner,stage,account", - Stage: "stage", - StageAccount: "stage,account", -} as const; -export type OpportunitiesListRequestExpand = - (typeof OpportunitiesListRequestExpand)[keyof typeof OpportunitiesListRequestExpand]; diff --git a/src/api/resources/crm/resources/opportunities/types/OpportunitiesListRequestExpandItem.ts b/src/api/resources/crm/resources/opportunities/types/OpportunitiesListRequestExpandItem.ts new file mode 100644 index 000000000..a1c231d55 --- /dev/null +++ b/src/api/resources/crm/resources/opportunities/types/OpportunitiesListRequestExpandItem.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +export const OpportunitiesListRequestExpandItem = { + Account: "account", + Owner: "owner", + Stage: "stage", +} as const; +export type OpportunitiesListRequestExpandItem = + (typeof OpportunitiesListRequestExpandItem)[keyof typeof OpportunitiesListRequestExpandItem]; diff --git a/src/api/resources/crm/resources/opportunities/types/OpportunitiesRetrieveRequestExpand.ts b/src/api/resources/crm/resources/opportunities/types/OpportunitiesRetrieveRequestExpand.ts deleted file mode 100644 index f220a54de..000000000 --- a/src/api/resources/crm/resources/opportunities/types/OpportunitiesRetrieveRequestExpand.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const OpportunitiesRetrieveRequestExpand = { - Account: "account", - Owner: "owner", - OwnerAccount: "owner,account", - OwnerStage: "owner,stage", - OwnerStageAccount: "owner,stage,account", - Stage: "stage", - StageAccount: "stage,account", -} as const; -export type OpportunitiesRetrieveRequestExpand = - (typeof OpportunitiesRetrieveRequestExpand)[keyof typeof OpportunitiesRetrieveRequestExpand]; diff --git a/src/api/resources/crm/resources/opportunities/types/OpportunitiesRetrieveRequestExpandItem.ts b/src/api/resources/crm/resources/opportunities/types/OpportunitiesRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..7df9d6260 --- /dev/null +++ b/src/api/resources/crm/resources/opportunities/types/OpportunitiesRetrieveRequestExpandItem.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +export const OpportunitiesRetrieveRequestExpandItem = { + Account: "account", + Owner: "owner", + Stage: "stage", +} as const; +export type OpportunitiesRetrieveRequestExpandItem = + (typeof OpportunitiesRetrieveRequestExpandItem)[keyof typeof OpportunitiesRetrieveRequestExpandItem]; diff --git a/src/api/resources/crm/resources/opportunities/types/index.ts b/src/api/resources/crm/resources/opportunities/types/index.ts index 0d6d5b6f1..94845ece4 100644 --- a/src/api/resources/crm/resources/opportunities/types/index.ts +++ b/src/api/resources/crm/resources/opportunities/types/index.ts @@ -1,3 +1,3 @@ -export * from "./OpportunitiesListRequestExpand"; +export * from "./OpportunitiesListRequestExpandItem"; export * from "./OpportunitiesListRequestStatus"; -export * from "./OpportunitiesRetrieveRequestExpand"; +export * from "./OpportunitiesRetrieveRequestExpandItem"; diff --git a/src/api/resources/crm/resources/stages/client/Client.ts b/src/api/resources/crm/resources/stages/client/Client.ts index 4b0b4d991..dcbe39183 100644 --- a/src/api/resources/crm/resources/stages/client/Client.ts +++ b/src/api/resources/crm/resources/stages/client/Client.ts @@ -44,88 +44,98 @@ export class StagesClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.crm.StagesListRequest = {}, requestOptions?: StagesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.crm.StagesListRequest = {}, - requestOptions?: StagesClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - includeDeletedData, - includeRemoteData, - includeRemoteFields, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.crm.StagesListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "crm/v1/stages", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.crm.PaginatedStageList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/crm/v1/stages"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "crm/v1/stages", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.crm.PaginatedStageList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/crm/v1/stages"); } /** @@ -226,86 +236,96 @@ export class StagesClient { * pageSize: 1 * }) */ - public remoteFieldClassesList( + public async remoteFieldClassesList( request: Merge.crm.StagesRemoteFieldClassesListRequest = {}, requestOptions?: StagesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldClassesList(request, requestOptions)); - } - - private async __remoteFieldClassesList( - request: Merge.crm.StagesRemoteFieldClassesListRequest = {}, - requestOptions?: StagesClient.RequestOptions, - ): Promise> { - const { - cursor, - includeDeletedData, - includeRemoteData, - includeRemoteFields, - includeShellData, - isCommonModelField, - isCustom, - pageSize, - } = request; - const _queryParams: Record = { - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - is_common_model_field: isCommonModelField, - is_custom: isCustom, - page_size: pageSize, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.crm.StagesRemoteFieldClassesListRequest, + ): Promise> => { + const { + cursor, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + isCommonModelField, + isCustom, + pageSize, + } = request; + const _queryParams: Record = { + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + is_common_model_field: isCommonModelField, + is_custom: isCustom, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "crm/v1/stages/remote-field-classes", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.crm.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/crm/v1/stages/remote-field-classes", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "crm/v1/stages/remote-field-classes", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.crm.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/crm/v1/stages/remote-field-classes", - ); } } diff --git a/src/api/resources/crm/resources/stages/client/requests/StagesListRequest.ts b/src/api/resources/crm/resources/stages/client/requests/StagesListRequest.ts index ea9774448..5ed52d2f3 100644 --- a/src/api/resources/crm/resources/stages/client/requests/StagesListRequest.ts +++ b/src/api/resources/crm/resources/stages/client/requests/StagesListRequest.ts @@ -35,7 +35,7 @@ export interface StagesListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; diff --git a/src/api/resources/crm/resources/stages/client/requests/StagesRemoteFieldClassesListRequest.ts b/src/api/resources/crm/resources/stages/client/requests/StagesRemoteFieldClassesListRequest.ts index d58b50088..dcbf4752c 100644 --- a/src/api/resources/crm/resources/stages/client/requests/StagesRemoteFieldClassesListRequest.ts +++ b/src/api/resources/crm/resources/stages/client/requests/StagesRemoteFieldClassesListRequest.ts @@ -28,6 +28,6 @@ export interface StagesRemoteFieldClassesListRequest { isCommonModelField?: boolean; /** If provided, will only return remote fields classes with this is_custom value */ isCustom?: boolean; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; } diff --git a/src/api/resources/crm/resources/syncStatus/client/Client.ts b/src/api/resources/crm/resources/syncStatus/client/Client.ts index 12a0e19ee..38f998035 100644 --- a/src/api/resources/crm/resources/syncStatus/client/Client.ts +++ b/src/api/resources/crm/resources/syncStatus/client/Client.ts @@ -35,66 +35,76 @@ export class SyncStatusClient { * pageSize: 1 * }) */ - public list( + public async list( request: Merge.crm.SyncStatusListRequest = {}, requestOptions?: SyncStatusClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.crm.SyncStatusListRequest = {}, - requestOptions?: SyncStatusClient.RequestOptions, - ): Promise> { - const { cursor, pageSize } = request; - const _queryParams: Record = { - cursor, - page_size: pageSize, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.crm.SyncStatusListRequest, + ): Promise> => { + const { cursor, pageSize } = request; + const _queryParams: Record = { + cursor, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "crm/v1/sync-status", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.crm.PaginatedSyncStatusList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/crm/v1/sync-status"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "crm/v1/sync-status", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.crm.PaginatedSyncStatusList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/crm/v1/sync-status"); } } diff --git a/src/api/resources/crm/resources/syncStatus/client/requests/SyncStatusListRequest.ts b/src/api/resources/crm/resources/syncStatus/client/requests/SyncStatusListRequest.ts index 2bbace517..94e1240fc 100644 --- a/src/api/resources/crm/resources/syncStatus/client/requests/SyncStatusListRequest.ts +++ b/src/api/resources/crm/resources/syncStatus/client/requests/SyncStatusListRequest.ts @@ -10,6 +10,6 @@ export interface SyncStatusListRequest { /** The pagination cursor value. */ cursor?: string; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; } diff --git a/src/api/resources/crm/resources/tasks/client/Client.ts b/src/api/resources/crm/resources/tasks/client/Client.ts index 7801b6c2e..1d2f43340 100644 --- a/src/api/resources/crm/resources/tasks/client/Client.ts +++ b/src/api/resources/crm/resources/tasks/client/Client.ts @@ -34,7 +34,6 @@ export class TasksClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "account", * includeDeletedData: true, * includeRemoteData: true, * includeRemoteFields: true, @@ -45,93 +44,108 @@ export class TasksClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.crm.TasksListRequest = {}, requestOptions?: TasksClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.crm.TasksListRequest = {}, - requestOptions?: TasksClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeRemoteFields, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: - expand != null - ? serializers.crm.TasksListRequestExpand.jsonOrThrow(expand, { unrecognizedObjectKeys: "strip" }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async (request: Merge.crm.TasksListRequest): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.crm.TasksListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.crm.TasksListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "crm/v1/tasks", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.crm.PaginatedTaskList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/crm/v1/tasks"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "crm/v1/tasks", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.crm.PaginatedTaskList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/crm/v1/tasks"); } /** @@ -222,7 +236,6 @@ export class TasksClient { * * @example * await client.crm.tasks.retrieve("id", { - * expand: "account", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true @@ -243,12 +256,17 @@ export class TasksClient { ): Promise> { const { expand, includeRemoteData, includeRemoteFields, includeShellData } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.crm.TasksRetrieveRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.crm.TasksRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.crm.TasksRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_remote_fields: includeRemoteFields, include_shell_data: includeShellData, @@ -531,86 +549,96 @@ export class TasksClient { * pageSize: 1 * }) */ - public remoteFieldClassesList( + public async remoteFieldClassesList( request: Merge.crm.TasksRemoteFieldClassesListRequest = {}, requestOptions?: TasksClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldClassesList(request, requestOptions)); - } - - private async __remoteFieldClassesList( - request: Merge.crm.TasksRemoteFieldClassesListRequest = {}, - requestOptions?: TasksClient.RequestOptions, - ): Promise> { - const { - cursor, - includeDeletedData, - includeRemoteData, - includeRemoteFields, - includeShellData, - isCommonModelField, - isCustom, - pageSize, - } = request; - const _queryParams: Record = { - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - is_common_model_field: isCommonModelField, - is_custom: isCustom, - page_size: pageSize, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.crm.TasksRemoteFieldClassesListRequest, + ): Promise> => { + const { + cursor, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + isCommonModelField, + isCustom, + pageSize, + } = request; + const _queryParams: Record = { + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + is_common_model_field: isCommonModelField, + is_custom: isCustom, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "crm/v1/tasks/remote-field-classes", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.crm.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/crm/v1/tasks/remote-field-classes", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "crm/v1/tasks/remote-field-classes", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.crm.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/crm/v1/tasks/remote-field-classes", - ); } } diff --git a/src/api/resources/crm/resources/tasks/client/requests/TasksListRequest.ts b/src/api/resources/crm/resources/tasks/client/requests/TasksListRequest.ts index 798a6899a..4844cf0e2 100644 --- a/src/api/resources/crm/resources/tasks/client/requests/TasksListRequest.ts +++ b/src/api/resources/crm/resources/tasks/client/requests/TasksListRequest.ts @@ -8,7 +8,6 @@ import type * as Merge from "../../../../../../index"; * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "account", * includeDeletedData: true, * includeRemoteData: true, * includeRemoteFields: true, @@ -27,7 +26,7 @@ export interface TasksListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.crm.TasksListRequestExpand; + expand?: Merge.crm.TasksListRequestExpandItem | Merge.crm.TasksListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -40,7 +39,7 @@ export interface TasksListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; diff --git a/src/api/resources/crm/resources/tasks/client/requests/TasksRemoteFieldClassesListRequest.ts b/src/api/resources/crm/resources/tasks/client/requests/TasksRemoteFieldClassesListRequest.ts index d550bd9bb..90cd17b12 100644 --- a/src/api/resources/crm/resources/tasks/client/requests/TasksRemoteFieldClassesListRequest.ts +++ b/src/api/resources/crm/resources/tasks/client/requests/TasksRemoteFieldClassesListRequest.ts @@ -28,6 +28,6 @@ export interface TasksRemoteFieldClassesListRequest { isCommonModelField?: boolean; /** If provided, will only return remote fields classes with this is_custom value */ isCustom?: boolean; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; } diff --git a/src/api/resources/crm/resources/tasks/client/requests/TasksRetrieveRequest.ts b/src/api/resources/crm/resources/tasks/client/requests/TasksRetrieveRequest.ts index 1e76664a9..64639bcf8 100644 --- a/src/api/resources/crm/resources/tasks/client/requests/TasksRetrieveRequest.ts +++ b/src/api/resources/crm/resources/tasks/client/requests/TasksRetrieveRequest.ts @@ -5,7 +5,6 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "account", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true @@ -13,7 +12,7 @@ import type * as Merge from "../../../../../../index"; */ export interface TasksRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.crm.TasksRetrieveRequestExpand; + expand?: Merge.crm.TasksRetrieveRequestExpandItem | Merge.crm.TasksRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. */ diff --git a/src/api/resources/crm/resources/tasks/types/TasksListRequestExpand.ts b/src/api/resources/crm/resources/tasks/types/TasksListRequestExpand.ts deleted file mode 100644 index 503f8b173..000000000 --- a/src/api/resources/crm/resources/tasks/types/TasksListRequestExpand.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const TasksListRequestExpand = { - Account: "account", - AccountOpportunity: "account,opportunity", - Opportunity: "opportunity", - Owner: "owner", - OwnerAccount: "owner,account", - OwnerAccountOpportunity: "owner,account,opportunity", - OwnerOpportunity: "owner,opportunity", -} as const; -export type TasksListRequestExpand = (typeof TasksListRequestExpand)[keyof typeof TasksListRequestExpand]; diff --git a/src/api/resources/crm/resources/tasks/types/TasksListRequestExpandItem.ts b/src/api/resources/crm/resources/tasks/types/TasksListRequestExpandItem.ts new file mode 100644 index 000000000..17b70de07 --- /dev/null +++ b/src/api/resources/crm/resources/tasks/types/TasksListRequestExpandItem.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +export const TasksListRequestExpandItem = { + Account: "account", + Contact: "contact", + Opportunity: "opportunity", + Owner: "owner", +} as const; +export type TasksListRequestExpandItem = (typeof TasksListRequestExpandItem)[keyof typeof TasksListRequestExpandItem]; diff --git a/src/api/resources/crm/resources/tasks/types/TasksRetrieveRequestExpand.ts b/src/api/resources/crm/resources/tasks/types/TasksRetrieveRequestExpand.ts deleted file mode 100644 index 0b251fcd4..000000000 --- a/src/api/resources/crm/resources/tasks/types/TasksRetrieveRequestExpand.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const TasksRetrieveRequestExpand = { - Account: "account", - AccountOpportunity: "account,opportunity", - Opportunity: "opportunity", - Owner: "owner", - OwnerAccount: "owner,account", - OwnerAccountOpportunity: "owner,account,opportunity", - OwnerOpportunity: "owner,opportunity", -} as const; -export type TasksRetrieveRequestExpand = (typeof TasksRetrieveRequestExpand)[keyof typeof TasksRetrieveRequestExpand]; diff --git a/src/api/resources/crm/resources/tasks/types/TasksRetrieveRequestExpandItem.ts b/src/api/resources/crm/resources/tasks/types/TasksRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..03edadbf3 --- /dev/null +++ b/src/api/resources/crm/resources/tasks/types/TasksRetrieveRequestExpandItem.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +export const TasksRetrieveRequestExpandItem = { + Account: "account", + Contact: "contact", + Opportunity: "opportunity", + Owner: "owner", +} as const; +export type TasksRetrieveRequestExpandItem = + (typeof TasksRetrieveRequestExpandItem)[keyof typeof TasksRetrieveRequestExpandItem]; diff --git a/src/api/resources/crm/resources/tasks/types/index.ts b/src/api/resources/crm/resources/tasks/types/index.ts index 570802a11..13aa3a20e 100644 --- a/src/api/resources/crm/resources/tasks/types/index.ts +++ b/src/api/resources/crm/resources/tasks/types/index.ts @@ -1,2 +1,2 @@ -export * from "./TasksListRequestExpand"; -export * from "./TasksRetrieveRequestExpand"; +export * from "./TasksListRequestExpandItem"; +export * from "./TasksRetrieveRequestExpandItem"; diff --git a/src/api/resources/crm/resources/users/client/Client.ts b/src/api/resources/crm/resources/users/client/Client.ts index 9c1be02c5..37d94b76f 100644 --- a/src/api/resources/crm/resources/users/client/Client.ts +++ b/src/api/resources/crm/resources/users/client/Client.ts @@ -45,90 +45,98 @@ export class UsersClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.crm.UsersListRequest = {}, requestOptions?: UsersClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.crm.UsersListRequest = {}, - requestOptions?: UsersClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - email, - includeDeletedData, - includeRemoteData, - includeRemoteFields, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - email, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async (request: Merge.crm.UsersListRequest): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + email, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + email, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "crm/v1/users", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.crm.PaginatedUserList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/crm/v1/users"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "crm/v1/users", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.crm.PaginatedUserList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/crm/v1/users"); } /** @@ -300,86 +308,96 @@ export class UsersClient { * pageSize: 1 * }) */ - public remoteFieldClassesList( - request: Merge.crm.UsersRemoteFieldClassesListRequest = {}, - requestOptions?: UsersClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldClassesList(request, requestOptions)); - } - - private async __remoteFieldClassesList( + public async remoteFieldClassesList( request: Merge.crm.UsersRemoteFieldClassesListRequest = {}, requestOptions?: UsersClient.RequestOptions, - ): Promise> { - const { - cursor, - includeDeletedData, - includeRemoteData, - includeRemoteFields, - includeShellData, - isCommonModelField, - isCustom, - pageSize, - } = request; - const _queryParams: Record = { - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - is_common_model_field: isCommonModelField, - is_custom: isCustom, - page_size: pageSize, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.crm.UsersRemoteFieldClassesListRequest, + ): Promise> => { + const { + cursor, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + isCommonModelField, + isCustom, + pageSize, + } = request; + const _queryParams: Record = { + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + is_common_model_field: isCommonModelField, + is_custom: isCustom, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "crm/v1/users/remote-field-classes", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.crm.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/crm/v1/users/remote-field-classes", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "crm/v1/users/remote-field-classes", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.crm.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/crm/v1/users/remote-field-classes", - ); } } diff --git a/src/api/resources/crm/resources/users/client/requests/UsersListRequest.ts b/src/api/resources/crm/resources/users/client/requests/UsersListRequest.ts index eedb84d34..ada90f081 100644 --- a/src/api/resources/crm/resources/users/client/requests/UsersListRequest.ts +++ b/src/api/resources/crm/resources/users/client/requests/UsersListRequest.ts @@ -38,7 +38,7 @@ export interface UsersListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; diff --git a/src/api/resources/crm/resources/users/client/requests/UsersRemoteFieldClassesListRequest.ts b/src/api/resources/crm/resources/users/client/requests/UsersRemoteFieldClassesListRequest.ts index 230d6f048..b79f47114 100644 --- a/src/api/resources/crm/resources/users/client/requests/UsersRemoteFieldClassesListRequest.ts +++ b/src/api/resources/crm/resources/users/client/requests/UsersRemoteFieldClassesListRequest.ts @@ -28,6 +28,6 @@ export interface UsersRemoteFieldClassesListRequest { isCommonModelField?: boolean; /** If provided, will only return remote fields classes with this is_custom value */ isCustom?: boolean; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; } diff --git a/src/api/resources/crm/types/AccountDetailsAndActions.ts b/src/api/resources/crm/types/AccountDetailsAndActions.ts index b2b41d2a1..5dcf2ccb5 100644 --- a/src/api/resources/crm/types/AccountDetailsAndActions.ts +++ b/src/api/resources/crm/types/AccountDetailsAndActions.ts @@ -26,4 +26,5 @@ export interface AccountDetailsAndActions { integration?: Merge.crm.AccountDetailsAndActionsIntegration; accountType: string; completedAt: Date; + integrationSpecificFields?: Record; } diff --git a/src/api/resources/crm/types/AuditLogEvent.ts b/src/api/resources/crm/types/AuditLogEvent.ts index 3fe03476f..eca504885 100644 --- a/src/api/resources/crm/types/AuditLogEvent.ts +++ b/src/api/resources/crm/types/AuditLogEvent.ts @@ -17,6 +17,7 @@ export interface AuditLogEvent { * * `API` - API * * `SYSTEM` - SYSTEM * * `MERGE_TEAM` - MERGE_TEAM + * * `SUPPORT` - SUPPORT */ role: Merge.crm.AuditLogEventRole; ipAddress: string; diff --git a/src/api/resources/crm/types/AuditLogEventRole.ts b/src/api/resources/crm/types/AuditLogEventRole.ts index 6fe82275a..46806f478 100644 --- a/src/api/resources/crm/types/AuditLogEventRole.ts +++ b/src/api/resources/crm/types/AuditLogEventRole.ts @@ -11,5 +11,6 @@ import type * as Merge from "../../../index"; * * `API` - API * * `SYSTEM` - SYSTEM * * `MERGE_TEAM` - MERGE_TEAM + * * `SUPPORT` - SUPPORT */ export type AuditLogEventRole = Merge.crm.RoleEnum | string; diff --git a/src/api/resources/crm/types/FieldMappingApiInstance.ts b/src/api/resources/crm/types/FieldMappingApiInstance.ts index 3351944c2..f1e45fee3 100644 --- a/src/api/resources/crm/types/FieldMappingApiInstance.ts +++ b/src/api/resources/crm/types/FieldMappingApiInstance.ts @@ -7,4 +7,5 @@ export interface FieldMappingApiInstance { isIntegrationWide?: boolean; targetField?: Merge.crm.FieldMappingApiInstanceTargetField; remoteField?: Merge.crm.FieldMappingApiInstanceRemoteField; + jmesPath?: string; } diff --git a/src/api/resources/crm/types/Lead.ts b/src/api/resources/crm/types/Lead.ts index e3c145d84..72fbe204b 100644 --- a/src/api/resources/crm/types/Lead.ts +++ b/src/api/resources/crm/types/Lead.ts @@ -42,6 +42,15 @@ export interface Lead { convertedContact?: Merge.crm.LeadConvertedContact; /** The account of the converted lead. */ convertedAccount?: Merge.crm.LeadConvertedAccount; + /** + * The lead's status. + * + * * `OPEN` - OPEN + * * `CLOSED` - CLOSED + * * `UNQUALIFIED` - UNQUALIFIED + * * `QUALIFIED` - QUALIFIED + */ + status?: Merge.crm.LeadStatus; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ remoteWasDeleted?: boolean; fieldMappings?: Record; diff --git a/src/api/resources/crm/types/LeadStatus.ts b/src/api/resources/crm/types/LeadStatus.ts new file mode 100644 index 000000000..3b8cf7d14 --- /dev/null +++ b/src/api/resources/crm/types/LeadStatus.ts @@ -0,0 +1,13 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The lead's status. + * + * * `OPEN` - OPEN + * * `CLOSED` - CLOSED + * * `UNQUALIFIED` - UNQUALIFIED + * * `QUALIFIED` - QUALIFIED + */ +export type LeadStatus = Merge.crm.LeadStatusEnum | string; diff --git a/src/api/resources/crm/types/LeadStatusEnum.ts b/src/api/resources/crm/types/LeadStatusEnum.ts new file mode 100644 index 000000000..c04c8cb12 --- /dev/null +++ b/src/api/resources/crm/types/LeadStatusEnum.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * * `OPEN` - OPEN + * * `CLOSED` - CLOSED + * * `UNQUALIFIED` - UNQUALIFIED + * * `QUALIFIED` - QUALIFIED + */ +export const LeadStatusEnum = { + Open: "OPEN", + Closed: "CLOSED", + Unqualified: "UNQUALIFIED", + Qualified: "QUALIFIED", +} as const; +export type LeadStatusEnum = (typeof LeadStatusEnum)[keyof typeof LeadStatusEnum]; diff --git a/src/api/resources/crm/types/PatchedTaskRequest.ts b/src/api/resources/crm/types/PatchedTaskRequest.ts index debd4ad67..f2634dec7 100644 --- a/src/api/resources/crm/types/PatchedTaskRequest.ts +++ b/src/api/resources/crm/types/PatchedTaskRequest.ts @@ -20,6 +20,8 @@ export interface PatchedTaskRequest { account?: string; /** The task's opportunity. */ opportunity?: string; + /** The task's contact. */ + contact?: string; /** When the task is completed. */ completedDate?: Date; /** When the task is due. */ diff --git a/src/api/resources/crm/types/RegenerateAccountToken.ts b/src/api/resources/crm/types/RegenerateAccountToken.ts new file mode 100644 index 000000000..2cd31ce05 --- /dev/null +++ b/src/api/resources/crm/types/RegenerateAccountToken.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * # The RegenerateAccountToken Object + * ### Description + * The `RegenerateAccountToken` object is used to exchange an old account token for a new one. + * + * ### Usage Example + * Post to receive a new `RegenerateAccountToken`. + */ +export interface RegenerateAccountToken { + linkedAccountId: string; + accountToken: string; +} diff --git a/src/api/resources/crm/types/RemoteFieldClass.ts b/src/api/resources/crm/types/RemoteFieldClass.ts index cf9de91f0..2d1e97f94 100644 --- a/src/api/resources/crm/types/RemoteFieldClass.ts +++ b/src/api/resources/crm/types/RemoteFieldClass.ts @@ -10,8 +10,8 @@ export interface RemoteFieldClass { isCustom?: boolean; isCommonModelField?: boolean; isRequired?: boolean; - fieldType?: Merge.crm.RemoteFieldClassFieldType; - fieldFormat?: Merge.crm.RemoteFieldClassFieldFormat; + fieldType?: Merge.crm.FieldTypeEnum; + fieldFormat?: Merge.crm.FieldFormatEnum; fieldChoices?: Merge.crm.RemoteFieldClassFieldChoicesItem[]; itemSchema?: Merge.crm.ItemSchema; } diff --git a/src/api/resources/crm/types/RemoteFieldClassFieldFormat.ts b/src/api/resources/crm/types/RemoteFieldClassFieldFormat.ts deleted file mode 100644 index 3f821dcdc..000000000 --- a/src/api/resources/crm/types/RemoteFieldClassFieldFormat.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export type RemoteFieldClassFieldFormat = Merge.crm.FieldFormatEnum | string; diff --git a/src/api/resources/crm/types/RemoteFieldClassFieldType.ts b/src/api/resources/crm/types/RemoteFieldClassFieldType.ts deleted file mode 100644 index 6e400d96c..000000000 --- a/src/api/resources/crm/types/RemoteFieldClassFieldType.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export type RemoteFieldClassFieldType = Merge.crm.FieldTypeEnum | string; diff --git a/src/api/resources/crm/types/RemoteResponse.ts b/src/api/resources/crm/types/RemoteResponse.ts index b0555227d..d384d9f19 100644 --- a/src/api/resources/crm/types/RemoteResponse.ts +++ b/src/api/resources/crm/types/RemoteResponse.ts @@ -16,6 +16,6 @@ export interface RemoteResponse { status: number; response?: unknown; responseHeaders?: Record; - responseType?: Merge.crm.ResponseTypeEnum; + responseType?: Merge.crm.RemoteResponseResponseType; headers?: Record; } diff --git a/src/api/resources/crm/types/RemoteResponseResponseType.ts b/src/api/resources/crm/types/RemoteResponseResponseType.ts new file mode 100644 index 000000000..a75204556 --- /dev/null +++ b/src/api/resources/crm/types/RemoteResponseResponseType.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type RemoteResponseResponseType = Merge.crm.ResponseTypeEnum | string; diff --git a/src/api/resources/crm/types/RoleEnum.ts b/src/api/resources/crm/types/RoleEnum.ts index 524088eb7..584dbc84e 100644 --- a/src/api/resources/crm/types/RoleEnum.ts +++ b/src/api/resources/crm/types/RoleEnum.ts @@ -7,6 +7,7 @@ * * `API` - API * * `SYSTEM` - SYSTEM * * `MERGE_TEAM` - MERGE_TEAM + * * `SUPPORT` - SUPPORT */ export const RoleEnum = { Admin: "ADMIN", @@ -15,5 +16,6 @@ export const RoleEnum = { Api: "API", System: "SYSTEM", MergeTeam: "MERGE_TEAM", + Support: "SUPPORT", } as const; export type RoleEnum = (typeof RoleEnum)[keyof typeof RoleEnum]; diff --git a/src/api/resources/crm/types/Task.ts b/src/api/resources/crm/types/Task.ts index 8152d15e0..934a959e9 100644 --- a/src/api/resources/crm/types/Task.ts +++ b/src/api/resources/crm/types/Task.ts @@ -27,6 +27,8 @@ export interface Task { account?: Merge.crm.TaskAccount; /** The task's opportunity. */ opportunity?: Merge.crm.TaskOpportunity; + /** The task's contact. */ + contact?: Merge.crm.TaskContact; /** When the task is completed. */ completedDate?: Date; /** When the task is due. */ diff --git a/src/api/resources/crm/types/TaskContact.ts b/src/api/resources/crm/types/TaskContact.ts new file mode 100644 index 000000000..942870879 --- /dev/null +++ b/src/api/resources/crm/types/TaskContact.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The task's contact. + */ +export type TaskContact = string | Merge.crm.Contact; diff --git a/src/api/resources/crm/types/TaskRequest.ts b/src/api/resources/crm/types/TaskRequest.ts index 465d36050..a22f4a46f 100644 --- a/src/api/resources/crm/types/TaskRequest.ts +++ b/src/api/resources/crm/types/TaskRequest.ts @@ -20,6 +20,8 @@ export interface TaskRequest { account?: Merge.crm.TaskRequestAccount; /** The task's opportunity. */ opportunity?: Merge.crm.TaskRequestOpportunity; + /** The task's contact. */ + contact?: Merge.crm.TaskRequestContact; /** When the task is completed. */ completedDate?: Date; /** When the task is due. */ diff --git a/src/api/resources/crm/types/TaskRequestContact.ts b/src/api/resources/crm/types/TaskRequestContact.ts new file mode 100644 index 000000000..7e90b7758 --- /dev/null +++ b/src/api/resources/crm/types/TaskRequestContact.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * The task's contact. + */ +export type TaskRequestContact = string | Merge.crm.Contact; diff --git a/src/api/resources/crm/types/index.ts b/src/api/resources/crm/types/index.ts index d5c268b4d..63b7132b3 100644 --- a/src/api/resources/crm/types/index.ts +++ b/src/api/resources/crm/types/index.ts @@ -108,6 +108,8 @@ export * from "./LeadRequestConvertedAccount"; export * from "./LeadRequestConvertedContact"; export * from "./LeadRequestOwner"; export * from "./LeadResponse"; +export * from "./LeadStatus"; +export * from "./LeadStatusEnum"; export * from "./LinkedAccountStatus"; export * from "./LinkToken"; export * from "./MetaResponse"; @@ -173,6 +175,7 @@ export * from "./PatchedTaskRequestStatus"; export * from "./PhoneNumber"; export * from "./PhoneNumberRequest"; export * from "./ReasonEnum"; +export * from "./RegenerateAccountToken"; export * from "./RemoteData"; export * from "./RemoteEndpointInfo"; export * from "./RemoteField"; @@ -181,8 +184,6 @@ export * from "./RemoteFieldApiCoverage"; export * from "./RemoteFieldApiResponse"; export * from "./RemoteFieldClass"; export * from "./RemoteFieldClassFieldChoicesItem"; -export * from "./RemoteFieldClassFieldFormat"; -export * from "./RemoteFieldClassFieldType"; export * from "./RemoteFieldClassForCustomObjectClass"; export * from "./RemoteFieldClassForCustomObjectClassFieldChoicesItem"; export * from "./RemoteFieldClassForCustomObjectClassFieldFormat"; @@ -193,6 +194,7 @@ export * from "./RemoteFieldRequest"; export * from "./RemoteFieldRequestRemoteFieldClass"; export * from "./RemoteKey"; export * from "./RemoteResponse"; +export * from "./RemoteResponseResponseType"; export * from "./RequestFormatEnum"; export * from "./ResponseTypeEnum"; export * from "./RoleEnum"; @@ -204,10 +206,12 @@ export * from "./SyncStatusLastSyncResult"; export * from "./SyncStatusStatus"; export * from "./Task"; export * from "./TaskAccount"; +export * from "./TaskContact"; export * from "./TaskOpportunity"; export * from "./TaskOwner"; export * from "./TaskRequest"; export * from "./TaskRequestAccount"; +export * from "./TaskRequestContact"; export * from "./TaskRequestOpportunity"; export * from "./TaskRequestOwner"; export * from "./TaskRequestStatus"; diff --git a/src/api/resources/filestorage/resources/accountToken/client/Client.ts b/src/api/resources/filestorage/resources/accountToken/client/Client.ts index c93f3a12f..8182f57c3 100644 --- a/src/api/resources/filestorage/resources/accountToken/client/Client.ts +++ b/src/api/resources/filestorage/resources/accountToken/client/Client.ts @@ -94,4 +94,73 @@ export class AccountTokenClient { "/filestorage/v1/account-token/{public_token}", ); } + + /** + * Exchange Linked Account account tokens. + * + * @param {AccountTokenClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.filestorage.accountToken.regenerateCreate() + */ + public regenerateCreate( + requestOptions?: AccountTokenClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__regenerateCreate(requestOptions)); + } + + private async __regenerateCreate( + requestOptions?: AccountTokenClient.RequestOptions, + ): Promise> { + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "filestorage/v1/account-token/regenerate", + ), + method: "POST", + headers: _headers, + queryParameters: requestOptions?.queryParams, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.filestorage.RegenerateAccountToken.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "POST", + "/filestorage/v1/account-token/regenerate", + ); + } } diff --git a/src/api/resources/filestorage/resources/auditTrail/client/Client.ts b/src/api/resources/filestorage/resources/auditTrail/client/Client.ts index 4f7c365f0..bb298b3f2 100644 --- a/src/api/resources/filestorage/resources/auditTrail/client/Client.ts +++ b/src/api/resources/filestorage/resources/auditTrail/client/Client.ts @@ -39,70 +39,85 @@ export class AuditTrailClient { * userEmail: "user_email" * }) */ - public list( + public async list( request: Merge.filestorage.AuditTrailListRequest = {}, requestOptions?: AuditTrailClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.filestorage.AuditTrailListRequest = {}, - requestOptions?: AuditTrailClient.RequestOptions, - ): Promise> { - const { cursor, endDate, eventType, pageSize, startDate, userEmail } = request; - const _queryParams: Record = { - cursor, - end_date: endDate, - event_type: eventType, - page_size: pageSize, - start_date: startDate, - user_email: userEmail, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.filestorage.AuditTrailListRequest, + ): Promise> => { + const { cursor, endDate, eventType, pageSize, startDate, userEmail } = request; + const _queryParams: Record = { + cursor, + end_date: endDate, + event_type: eventType, + page_size: pageSize, + start_date: startDate, + user_email: userEmail, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "filestorage/v1/audit-trail", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.filestorage.PaginatedAuditLogEventList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/filestorage/v1/audit-trail", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "filestorage/v1/audit-trail", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.filestorage.PaginatedAuditLogEventList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/filestorage/v1/audit-trail"); } } 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 65216f96c..b188a570e 100644 --- a/src/api/resources/filestorage/resources/auditTrail/client/requests/AuditTrailListRequest.ts +++ b/src/api/resources/filestorage/resources/auditTrail/client/requests/AuditTrailListRequest.ts @@ -18,7 +18,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`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_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`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` */ eventType?: string; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** If included, will only include audit trail events that occurred after this time */ startDate?: string; diff --git a/src/api/resources/filestorage/resources/drives/client/Client.ts b/src/api/resources/filestorage/resources/drives/client/Client.ts index 3bbd02557..22ce0ec90 100644 --- a/src/api/resources/filestorage/resources/drives/client/Client.ts +++ b/src/api/resources/filestorage/resources/drives/client/Client.ts @@ -44,88 +44,103 @@ export class DrivesClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.filestorage.DrivesListRequest = {}, requestOptions?: DrivesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.filestorage.DrivesListRequest = {}, - requestOptions?: DrivesClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - name, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - name, - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.filestorage.DrivesListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + name, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + name, + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "filestorage/v1/drives", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.filestorage.PaginatedDriveList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/filestorage/v1/drives", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "filestorage/v1/drives", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.filestorage.PaginatedDriveList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/filestorage/v1/drives"); } /** diff --git a/src/api/resources/filestorage/resources/fieldMapping/client/Client.ts b/src/api/resources/filestorage/resources/fieldMapping/client/Client.ts index 565abcd0b..259be1be9 100644 --- a/src/api/resources/filestorage/resources/fieldMapping/client/Client.ts +++ b/src/api/resources/filestorage/resources/fieldMapping/client/Client.ts @@ -110,6 +110,7 @@ export class FieldMappingClient { * @example * await client.filestorage.fieldMapping.fieldMappingsCreate({ * excludeRemoteFieldMetadata: true, + * remoteDataIterationCount: 1, * targetFieldName: "example_target_field_name", * targetFieldDescription: "this is a example description of the target field", * remoteFieldTraversalPath: ["example_remote_field"], @@ -129,9 +130,10 @@ export class FieldMappingClient { request: Merge.filestorage.CreateFieldMappingRequest, requestOptions?: FieldMappingClient.RequestOptions, ): Promise> { - const { excludeRemoteFieldMetadata, ..._body } = request; + const { excludeRemoteFieldMetadata, remoteDataIterationCount, ..._body } = request; const _queryParams: Record = { exclude_remote_field_metadata: excludeRemoteFieldMetadata, + remote_data_iteration_count: remoteDataIterationCount, }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( @@ -270,7 +272,9 @@ export class FieldMappingClient { * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id") + * await client.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { + * remoteDataIterationCount: 1 + * }) */ public fieldMappingsPartialUpdate( field_mapping_id: string, @@ -287,6 +291,10 @@ export class FieldMappingClient { request: Merge.filestorage.PatchedEditFieldMappingRequest = {}, requestOptions?: FieldMappingClient.RequestOptions, ): Promise> { + const { remoteDataIterationCount, ..._body } = request; + const _queryParams: Record = { + remote_data_iteration_count: remoteDataIterationCount, + }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, @@ -304,9 +312,9 @@ export class FieldMappingClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, requestType: "json", - body: serializers.filestorage.PatchedEditFieldMappingRequest.jsonOrThrow(request, { + body: serializers.filestorage.PatchedEditFieldMappingRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip", }), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/api/resources/filestorage/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts b/src/api/resources/filestorage/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts index e711ea5fc..118f1512d 100644 --- a/src/api/resources/filestorage/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts +++ b/src/api/resources/filestorage/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts @@ -4,6 +4,7 @@ * @example * { * excludeRemoteFieldMetadata: true, + * remoteDataIterationCount: 1, * targetFieldName: "example_target_field_name", * targetFieldDescription: "this is a example description of the target field", * remoteFieldTraversalPath: ["example_remote_field"], @@ -15,6 +16,8 @@ export interface CreateFieldMappingRequest { /** If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. */ excludeRemoteFieldMetadata?: boolean; + /** Number of common model instances to iterate through when fetching remote data for field mappings. Defaults to 250 if not provided. */ + remoteDataIterationCount?: number; /** The name of the target field you want this remote field to map to. */ targetFieldName: string; /** The description of the target field you want this remote field to map to. */ @@ -27,4 +30,6 @@ export interface CreateFieldMappingRequest { remoteUrlPath: string; /** The name of the Common Model that the remote field corresponds to in a given category. */ commonModelName: string; + /** JMES path to specify json query expression to be used on field mapping. */ + jmesPath?: string; } 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 0efe65466..3c388858f 100644 --- a/src/api/resources/filestorage/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts +++ b/src/api/resources/filestorage/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts @@ -2,13 +2,19 @@ /** * @example - * {} + * { + * remoteDataIterationCount: 1 + * } */ export interface PatchedEditFieldMappingRequest { + /** Number of common model instances to iterate through when fetching remote data for field mappings. Defaults to 250 if not provided. */ + remoteDataIterationCount?: number; /** The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. */ remoteFieldTraversalPath?: unknown[]; /** The method of the remote endpoint where the remote field is coming from. */ remoteMethod?: string; /** The path of the remote endpoint where the remote field is coming from. */ remoteUrlPath?: string; + /** JMES path to specify json query expression to be used on field mapping. */ + jmesPath?: string; } diff --git a/src/api/resources/filestorage/resources/files/client/Client.ts b/src/api/resources/filestorage/resources/files/client/Client.ts index 188291c05..f915cf4fa 100644 --- a/src/api/resources/filestorage/resources/files/client/Client.ts +++ b/src/api/resources/filestorage/resources/files/client/Client.ts @@ -36,7 +36,6 @@ export class FilesClient { * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * driveId: "drive_id", - * expand: "drive", * folderId: "folder_id", * includeDeletedData: true, * includeRemoteData: true, @@ -52,112 +51,127 @@ export class FilesClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.filestorage.FilesListRequest = {}, requestOptions?: FilesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.filestorage.FilesListRequest = {}, - requestOptions?: FilesClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - driveId, - expand, - folderId, - includeDeletedData, - includeRemoteData, - includeShellData, - mimeType, - modifiedAfter, - modifiedBefore, - name, - orderBy, - pageSize, - remoteCreatedAfter, - remoteCreatedBefore, - remoteId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - drive_id: driveId, - expand: - expand != null - ? serializers.filestorage.FilesListRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - folder_id: folderId, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - mime_type: mimeType, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - name, - order_by: - orderBy != null - ? serializers.filestorage.FilesListRequestOrderBy.jsonOrThrow(orderBy, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - page_size: pageSize, - remote_created_after: remoteCreatedAfter?.toISOString(), - remote_created_before: remoteCreatedBefore?.toISOString(), - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.filestorage.FilesListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + driveId, + expand, + folderId, + includeDeletedData, + includeRemoteData, + includeShellData, + mimeType, + modifiedAfter, + modifiedBefore, + name, + orderBy, + pageSize, + remoteCreatedAfter, + remoteCreatedBefore, + remoteId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + drive_id: driveId, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.filestorage.FilesListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.filestorage.FilesListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + folder_id: folderId, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + mime_type: mimeType, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + name, + order_by: + orderBy != null + ? serializers.filestorage.FilesListRequestOrderBy.jsonOrThrow(orderBy, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + page_size: pageSize, + remote_created_after: remoteCreatedAfter?.toISOString(), + remote_created_before: remoteCreatedBefore?.toISOString(), + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "filestorage/v1/files", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.filestorage.PaginatedFileList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/filestorage/v1/files"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "filestorage/v1/files", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.filestorage.PaginatedFileList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/filestorage/v1/files"); } /** @@ -250,7 +264,6 @@ export class FilesClient { * * @example * await client.filestorage.files.retrieve("id", { - * expand: "drive", * includeRemoteData: true, * includeShellData: true * }) @@ -270,12 +283,17 @@ export class FilesClient { ): Promise> { const { expand, includeRemoteData, includeShellData } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.filestorage.FilesRetrieveRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.filestorage.FilesRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.filestorage.FilesRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, }; @@ -392,7 +410,7 @@ export class FilesClient { } /** - * Returns metadata to construct an authenticated file download request for a singular file, allowing you to download file directly from the third-party. + * Returns metadata to construct an authenticated file download request for a singular file, allowing you to download file directly from the third-party. For information on our download process please refer to our direct file download help center article. * * @param {string} id * @param {Merge.filestorage.FilesDownloadRequestMetaRetrieveRequest} request @@ -491,95 +509,107 @@ export class FilesClient { * pageSize: 1 * }) */ - public downloadRequestMetaList( + public async downloadRequestMetaList( request: Merge.filestorage.FilesDownloadRequestMetaListRequest = {}, requestOptions?: FilesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__downloadRequestMetaList(request, requestOptions)); - } - - private async __downloadRequestMetaList( - request: Merge.filestorage.FilesDownloadRequestMetaListRequest = {}, - requestOptions?: FilesClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - ids, - includeDeletedData, - mimeTypes, - modifiedAfter, - modifiedBefore, - orderBy, - pageSize, - } = request; - const _queryParams: Record = { - created_after: createdAfter, - created_before: createdBefore, - cursor, - ids, - include_deleted_data: includeDeletedData, - mime_types: mimeTypes, - modified_after: modifiedAfter, - modified_before: modifiedBefore, - order_by: - orderBy != null - ? serializers.filestorage.FilesDownloadRequestMetaListRequestOrderBy.jsonOrThrow(orderBy, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - page_size: pageSize, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.filestorage.FilesDownloadRequestMetaListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + ids, + includeDeletedData, + mimeTypes, + modifiedAfter, + modifiedBefore, + orderBy, + pageSize, + } = request; + const _queryParams: Record = { + created_after: createdAfter, + created_before: createdBefore, + cursor, + ids, + include_deleted_data: includeDeletedData, + mime_types: mimeTypes, + modified_after: modifiedAfter, + modified_before: modifiedBefore, + order_by: + orderBy != null + ? serializers.filestorage.FilesDownloadRequestMetaListRequestOrderBy.jsonOrThrow(orderBy, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "filestorage/v1/files/download/request-meta", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.filestorage.PaginatedDownloadRequestMetaList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/filestorage/v1/files/download/request-meta", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "filestorage/v1/files/download/request-meta", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, - }); - if (_response.ok) { - return { - data: serializers.filestorage.PaginatedDownloadRequestMetaList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/filestorage/v1/files/download/request-meta", + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page( + { + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, + }, ); } diff --git a/src/api/resources/filestorage/resources/files/client/requests/FilesDownloadRequestMetaRetrieveRequest.ts b/src/api/resources/filestorage/resources/files/client/requests/FilesDownloadRequestMetaRetrieveRequest.ts index 526353492..fad25004f 100644 --- a/src/api/resources/filestorage/resources/files/client/requests/FilesDownloadRequestMetaRetrieveRequest.ts +++ b/src/api/resources/filestorage/resources/files/client/requests/FilesDownloadRequestMetaRetrieveRequest.ts @@ -7,6 +7,6 @@ * } */ export interface FilesDownloadRequestMetaRetrieveRequest { - /** If provided, specifies the export format of the file to be downloaded. For information on supported export formats, please refer to our export format help center article. */ + /** If provided, specifies the export format of the file to be downloaded. */ mimeType?: string; } diff --git a/src/api/resources/filestorage/resources/files/client/requests/FilesListRequest.ts b/src/api/resources/filestorage/resources/files/client/requests/FilesListRequest.ts index 5ad43d02a..45d04800a 100644 --- a/src/api/resources/filestorage/resources/files/client/requests/FilesListRequest.ts +++ b/src/api/resources/filestorage/resources/files/client/requests/FilesListRequest.ts @@ -9,7 +9,6 @@ import type * as Merge from "../../../../../../index"; * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * driveId: "drive_id", - * expand: "drive", * folderId: "folder_id", * includeDeletedData: true, * includeRemoteData: true, @@ -35,7 +34,7 @@ export interface FilesListRequest { /** Specifying a drive id returns only the files in that drive. Specifying null returns only the files outside the top-level drive. */ driveId?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.filestorage.FilesListRequestExpand; + expand?: Merge.filestorage.FilesListRequestExpandItem | Merge.filestorage.FilesListRequestExpandItem[]; /** Specifying a folder id returns only the files in that folder. Specifying null returns only the files in root directory. */ folderId?: string; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ @@ -54,7 +53,7 @@ export interface FilesListRequest { name?: string; /** Overrides the default ordering for this endpoint. Possible values include: created_at, -created_at, modified_at, -modified_at. */ orderBy?: Merge.filestorage.FilesListRequestOrderBy; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** If provided, will only return files created in the third party platform after this datetime. */ remoteCreatedAfter?: Date; diff --git a/src/api/resources/filestorage/resources/files/client/requests/FilesRetrieveRequest.ts b/src/api/resources/filestorage/resources/files/client/requests/FilesRetrieveRequest.ts index b7286e489..0d93be5d8 100644 --- a/src/api/resources/filestorage/resources/files/client/requests/FilesRetrieveRequest.ts +++ b/src/api/resources/filestorage/resources/files/client/requests/FilesRetrieveRequest.ts @@ -5,14 +5,13 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "drive", * includeRemoteData: true, * includeShellData: true * } */ export interface FilesRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.filestorage.FilesRetrieveRequestExpand; + expand?: Merge.filestorage.FilesRetrieveRequestExpandItem | Merge.filestorage.FilesRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/filestorage/resources/files/types/FilesListRequestExpand.ts b/src/api/resources/filestorage/resources/files/types/FilesListRequestExpand.ts deleted file mode 100644 index 60920c212..000000000 --- a/src/api/resources/filestorage/resources/files/types/FilesListRequestExpand.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const FilesListRequestExpand = { - Drive: "drive", - Folder: "folder", - FolderDrive: "folder,drive", - Permissions: "permissions", - PermissionsDrive: "permissions,drive", - PermissionsFolder: "permissions,folder", - PermissionsFolderDrive: "permissions,folder,drive", -} as const; -export type FilesListRequestExpand = (typeof FilesListRequestExpand)[keyof typeof FilesListRequestExpand]; diff --git a/src/api/resources/filestorage/resources/files/types/FilesListRequestExpandItem.ts b/src/api/resources/filestorage/resources/files/types/FilesListRequestExpandItem.ts new file mode 100644 index 000000000..ed4bbe1d4 --- /dev/null +++ b/src/api/resources/filestorage/resources/files/types/FilesListRequestExpandItem.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export const FilesListRequestExpandItem = { + Drive: "drive", + Folder: "folder", + Permissions: "permissions", +} as const; +export type FilesListRequestExpandItem = (typeof FilesListRequestExpandItem)[keyof typeof FilesListRequestExpandItem]; diff --git a/src/api/resources/filestorage/resources/files/types/FilesRetrieveRequestExpand.ts b/src/api/resources/filestorage/resources/files/types/FilesRetrieveRequestExpand.ts deleted file mode 100644 index 7c07b6e42..000000000 --- a/src/api/resources/filestorage/resources/files/types/FilesRetrieveRequestExpand.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const FilesRetrieveRequestExpand = { - Drive: "drive", - Folder: "folder", - FolderDrive: "folder,drive", - Permissions: "permissions", - PermissionsDrive: "permissions,drive", - PermissionsFolder: "permissions,folder", - PermissionsFolderDrive: "permissions,folder,drive", -} as const; -export type FilesRetrieveRequestExpand = (typeof FilesRetrieveRequestExpand)[keyof typeof FilesRetrieveRequestExpand]; diff --git a/src/api/resources/filestorage/resources/files/types/FilesRetrieveRequestExpandItem.ts b/src/api/resources/filestorage/resources/files/types/FilesRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..101ffb7f5 --- /dev/null +++ b/src/api/resources/filestorage/resources/files/types/FilesRetrieveRequestExpandItem.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +export const FilesRetrieveRequestExpandItem = { + Drive: "drive", + Folder: "folder", + Permissions: "permissions", +} as const; +export type FilesRetrieveRequestExpandItem = + (typeof FilesRetrieveRequestExpandItem)[keyof typeof FilesRetrieveRequestExpandItem]; diff --git a/src/api/resources/filestorage/resources/files/types/index.ts b/src/api/resources/filestorage/resources/files/types/index.ts index 5c705d3d6..0183b907e 100644 --- a/src/api/resources/filestorage/resources/files/types/index.ts +++ b/src/api/resources/filestorage/resources/files/types/index.ts @@ -1,4 +1,4 @@ export * from "./FilesDownloadRequestMetaListRequestOrderBy"; -export * from "./FilesListRequestExpand"; +export * from "./FilesListRequestExpandItem"; export * from "./FilesListRequestOrderBy"; -export * from "./FilesRetrieveRequestExpand"; +export * from "./FilesRetrieveRequestExpandItem"; diff --git a/src/api/resources/filestorage/resources/folders/client/Client.ts b/src/api/resources/filestorage/resources/folders/client/Client.ts index 717516274..456abd341 100644 --- a/src/api/resources/filestorage/resources/folders/client/Client.ts +++ b/src/api/resources/filestorage/resources/folders/client/Client.ts @@ -35,7 +35,6 @@ export class FoldersClient { * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * driveId: "drive_id", - * expand: "drive", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -47,99 +46,119 @@ export class FoldersClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.filestorage.FoldersListRequest = {}, requestOptions?: FoldersClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.filestorage.FoldersListRequest = {}, - requestOptions?: FoldersClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - driveId, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - name, - pageSize, - parentFolderId, - remoteId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - drive_id: driveId, - expand: - expand != null - ? serializers.filestorage.FoldersListRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - name, - page_size: pageSize, - parent_folder_id: parentFolderId, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.filestorage.FoldersListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + driveId, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + name, + pageSize, + parentFolderId, + remoteId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + drive_id: driveId, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.filestorage.FoldersListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.filestorage.FoldersListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + name, + page_size: pageSize, + parent_folder_id: parentFolderId, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "filestorage/v1/folders", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.filestorage.PaginatedFolderList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/filestorage/v1/folders", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "filestorage/v1/folders", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.filestorage.PaginatedFolderList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/filestorage/v1/folders"); } /** @@ -232,7 +251,6 @@ export class FoldersClient { * * @example * await client.filestorage.folders.retrieve("id", { - * expand: "drive", * includeRemoteData: true, * includeShellData: true * }) @@ -252,12 +270,17 @@ export class FoldersClient { ): Promise> { const { expand, includeRemoteData, includeShellData } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.filestorage.FoldersRetrieveRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.filestorage.FoldersRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.filestorage.FoldersRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, }; diff --git a/src/api/resources/filestorage/resources/folders/client/requests/FoldersListRequest.ts b/src/api/resources/filestorage/resources/folders/client/requests/FoldersListRequest.ts index 921a1af8e..54120b18e 100644 --- a/src/api/resources/filestorage/resources/folders/client/requests/FoldersListRequest.ts +++ b/src/api/resources/filestorage/resources/folders/client/requests/FoldersListRequest.ts @@ -9,7 +9,6 @@ import type * as Merge from "../../../../../../index"; * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * driveId: "drive_id", - * expand: "drive", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -31,7 +30,7 @@ export interface FoldersListRequest { /** If provided, will only return folders in this drive. */ driveId?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.filestorage.FoldersListRequestExpand; + expand?: Merge.filestorage.FoldersListRequestExpandItem | Merge.filestorage.FoldersListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -44,7 +43,7 @@ export interface FoldersListRequest { modifiedBefore?: Date; /** If provided, will only return folders with this name. This performs an exact match. */ name?: string; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** If provided, will only return folders in this parent folder. If null, will return folders in root directory. */ parentFolderId?: string; diff --git a/src/api/resources/filestorage/resources/folders/client/requests/FoldersRetrieveRequest.ts b/src/api/resources/filestorage/resources/folders/client/requests/FoldersRetrieveRequest.ts index a2959c714..bba976204 100644 --- a/src/api/resources/filestorage/resources/folders/client/requests/FoldersRetrieveRequest.ts +++ b/src/api/resources/filestorage/resources/folders/client/requests/FoldersRetrieveRequest.ts @@ -5,14 +5,13 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "drive", * includeRemoteData: true, * includeShellData: true * } */ export interface FoldersRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.filestorage.FoldersRetrieveRequestExpand; + expand?: Merge.filestorage.FoldersRetrieveRequestExpandItem | Merge.filestorage.FoldersRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/filestorage/resources/folders/types/FoldersListRequestExpand.ts b/src/api/resources/filestorage/resources/folders/types/FoldersListRequestExpand.ts deleted file mode 100644 index d1cb693c1..000000000 --- a/src/api/resources/filestorage/resources/folders/types/FoldersListRequestExpand.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const FoldersListRequestExpand = { - Drive: "drive", - ParentFolder: "parent_folder", - ParentFolderDrive: "parent_folder,drive", - Permissions: "permissions", - PermissionsDrive: "permissions,drive", - PermissionsParentFolder: "permissions,parent_folder", - PermissionsParentFolderDrive: "permissions,parent_folder,drive", -} as const; -export type FoldersListRequestExpand = (typeof FoldersListRequestExpand)[keyof typeof FoldersListRequestExpand]; diff --git a/src/api/resources/filestorage/resources/folders/types/FoldersListRequestExpandItem.ts b/src/api/resources/filestorage/resources/folders/types/FoldersListRequestExpandItem.ts new file mode 100644 index 000000000..404cab17c --- /dev/null +++ b/src/api/resources/filestorage/resources/folders/types/FoldersListRequestExpandItem.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +export const FoldersListRequestExpandItem = { + Drive: "drive", + ParentFolder: "parent_folder", + Permissions: "permissions", +} as const; +export type FoldersListRequestExpandItem = + (typeof FoldersListRequestExpandItem)[keyof typeof FoldersListRequestExpandItem]; diff --git a/src/api/resources/filestorage/resources/folders/types/FoldersRetrieveRequestExpand.ts b/src/api/resources/filestorage/resources/folders/types/FoldersRetrieveRequestExpand.ts deleted file mode 100644 index 874ae2608..000000000 --- a/src/api/resources/filestorage/resources/folders/types/FoldersRetrieveRequestExpand.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const FoldersRetrieveRequestExpand = { - Drive: "drive", - ParentFolder: "parent_folder", - ParentFolderDrive: "parent_folder,drive", - Permissions: "permissions", - PermissionsDrive: "permissions,drive", - PermissionsParentFolder: "permissions,parent_folder", - PermissionsParentFolderDrive: "permissions,parent_folder,drive", -} as const; -export type FoldersRetrieveRequestExpand = - (typeof FoldersRetrieveRequestExpand)[keyof typeof FoldersRetrieveRequestExpand]; diff --git a/src/api/resources/filestorage/resources/folders/types/FoldersRetrieveRequestExpandItem.ts b/src/api/resources/filestorage/resources/folders/types/FoldersRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..aef0b69a5 --- /dev/null +++ b/src/api/resources/filestorage/resources/folders/types/FoldersRetrieveRequestExpandItem.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +export const FoldersRetrieveRequestExpandItem = { + Drive: "drive", + ParentFolder: "parent_folder", + Permissions: "permissions", +} as const; +export type FoldersRetrieveRequestExpandItem = + (typeof FoldersRetrieveRequestExpandItem)[keyof typeof FoldersRetrieveRequestExpandItem]; diff --git a/src/api/resources/filestorage/resources/folders/types/index.ts b/src/api/resources/filestorage/resources/folders/types/index.ts index 855f5754e..19290772a 100644 --- a/src/api/resources/filestorage/resources/folders/types/index.ts +++ b/src/api/resources/filestorage/resources/folders/types/index.ts @@ -1,2 +1,2 @@ -export * from "./FoldersListRequestExpand"; -export * from "./FoldersRetrieveRequestExpand"; +export * from "./FoldersListRequestExpandItem"; +export * from "./FoldersRetrieveRequestExpandItem"; diff --git a/src/api/resources/filestorage/resources/groups/client/Client.ts b/src/api/resources/filestorage/resources/groups/client/Client.ts index 8a65f4605..0c57ad4b4 100644 --- a/src/api/resources/filestorage/resources/groups/client/Client.ts +++ b/src/api/resources/filestorage/resources/groups/client/Client.ts @@ -34,7 +34,6 @@ export class GroupsClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "child_groups", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -44,88 +43,113 @@ export class GroupsClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.filestorage.GroupsListRequest = {}, requestOptions?: GroupsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.filestorage.GroupsListRequest = {}, - requestOptions?: GroupsClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: expand != null ? expand : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.filestorage.GroupsListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.filestorage.GroupsListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.filestorage.GroupsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "filestorage/v1/groups", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.filestorage.PaginatedGroupList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/filestorage/v1/groups", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "filestorage/v1/groups", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.filestorage.PaginatedGroupList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/filestorage/v1/groups"); } /** @@ -137,7 +161,6 @@ export class GroupsClient { * * @example * await client.filestorage.groups.retrieve("id", { - * expand: "child_groups", * includeRemoteData: true, * includeShellData: true * }) @@ -157,7 +180,17 @@ export class GroupsClient { ): Promise> { const { expand, includeRemoteData, includeShellData } = request; const _queryParams: Record = { - expand: expand != null ? expand : undefined, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.filestorage.GroupsRetrieveRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.filestorage.GroupsRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, }; diff --git a/src/api/resources/filestorage/resources/groups/client/requests/GroupsListRequest.ts b/src/api/resources/filestorage/resources/groups/client/requests/GroupsListRequest.ts index bdbe59fe8..482c528d1 100644 --- a/src/api/resources/filestorage/resources/groups/client/requests/GroupsListRequest.ts +++ b/src/api/resources/filestorage/resources/groups/client/requests/GroupsListRequest.ts @@ -1,12 +1,13 @@ // This file was auto-generated by Fern from our API Definition. +import type * as Merge from "../../../../../../index"; + /** * @example * { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "child_groups", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -24,7 +25,7 @@ export interface GroupsListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "child_groups"; + expand?: Merge.filestorage.GroupsListRequestExpandItem | Merge.filestorage.GroupsListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -35,7 +36,7 @@ export interface GroupsListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; diff --git a/src/api/resources/filestorage/resources/groups/client/requests/GroupsRetrieveRequest.ts b/src/api/resources/filestorage/resources/groups/client/requests/GroupsRetrieveRequest.ts index 4d3e5b5af..93ba5b168 100644 --- a/src/api/resources/filestorage/resources/groups/client/requests/GroupsRetrieveRequest.ts +++ b/src/api/resources/filestorage/resources/groups/client/requests/GroupsRetrieveRequest.ts @@ -1,16 +1,17 @@ // This file was auto-generated by Fern from our API Definition. +import type * as Merge from "../../../../../../index"; + /** * @example * { - * expand: "child_groups", * includeRemoteData: true, * includeShellData: true * } */ export interface GroupsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "child_groups"; + expand?: Merge.filestorage.GroupsRetrieveRequestExpandItem | Merge.filestorage.GroupsRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/filestorage/resources/groups/index.ts b/src/api/resources/filestorage/resources/groups/index.ts index 5ec76921e..d2ec2302c 100644 --- a/src/api/resources/filestorage/resources/groups/index.ts +++ b/src/api/resources/filestorage/resources/groups/index.ts @@ -1 +1,2 @@ export * from "./client"; +export * from "./types"; diff --git a/src/api/resources/filestorage/resources/groups/types/GroupsListRequestExpandItem.ts b/src/api/resources/filestorage/resources/groups/types/GroupsListRequestExpandItem.ts new file mode 100644 index 000000000..64a7cb2af --- /dev/null +++ b/src/api/resources/filestorage/resources/groups/types/GroupsListRequestExpandItem.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export const GroupsListRequestExpandItem = { + ChildGroups: "child_groups", + Users: "users", +} as const; +export type GroupsListRequestExpandItem = + (typeof GroupsListRequestExpandItem)[keyof typeof GroupsListRequestExpandItem]; diff --git a/src/api/resources/filestorage/resources/groups/types/GroupsRetrieveRequestExpandItem.ts b/src/api/resources/filestorage/resources/groups/types/GroupsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..17eb871f7 --- /dev/null +++ b/src/api/resources/filestorage/resources/groups/types/GroupsRetrieveRequestExpandItem.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export const GroupsRetrieveRequestExpandItem = { + ChildGroups: "child_groups", + Users: "users", +} as const; +export type GroupsRetrieveRequestExpandItem = + (typeof GroupsRetrieveRequestExpandItem)[keyof typeof GroupsRetrieveRequestExpandItem]; diff --git a/src/api/resources/filestorage/resources/groups/types/index.ts b/src/api/resources/filestorage/resources/groups/types/index.ts new file mode 100644 index 000000000..f5785eaaf --- /dev/null +++ b/src/api/resources/filestorage/resources/groups/types/index.ts @@ -0,0 +1,2 @@ +export * from "./GroupsListRequestExpandItem"; +export * from "./GroupsRetrieveRequestExpandItem"; diff --git a/src/api/resources/filestorage/resources/index.ts b/src/api/resources/filestorage/resources/index.ts index ecfd1bf0a..edcd95786 100644 --- a/src/api/resources/filestorage/resources/index.ts +++ b/src/api/resources/filestorage/resources/index.ts @@ -21,6 +21,7 @@ export * as generateKey from "./generateKey"; export * from "./generateKey/client/requests"; export * as groups from "./groups"; export * from "./groups/client/requests"; +export * from "./groups/types"; export * as issues from "./issues"; export * from "./issues/client/requests"; export * from "./issues/types"; @@ -29,6 +30,7 @@ export * from "./linkedAccounts/client/requests"; export * from "./linkedAccounts/types"; export * as linkToken from "./linkToken"; export * from "./linkToken/client/requests"; +export * from "./linkToken/types"; export * as passthrough from "./passthrough"; export * as regenerateKey from "./regenerateKey"; export * from "./regenerateKey/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 b3e3be0a9..3bcaf1159 100644 --- a/src/api/resources/filestorage/resources/issues/client/Client.ts +++ b/src/api/resources/filestorage/resources/issues/client/Client.ts @@ -47,99 +47,114 @@ export class IssuesClient { * status: "ONGOING" * }) */ - public list( + public async list( request: Merge.filestorage.IssuesListRequest = {}, requestOptions?: IssuesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.filestorage.IssuesListRequest = {}, - requestOptions?: IssuesClient.RequestOptions, - ): Promise> { - const { - accountToken, - cursor, - endDate, - endUserOrganizationName, - firstIncidentTimeAfter, - firstIncidentTimeBefore, - includeMuted, - integrationName, - lastIncidentTimeAfter, - lastIncidentTimeBefore, - linkedAccountId, - pageSize, - startDate, - status, - } = request; - const _queryParams: Record = { - account_token: accountToken, - cursor, - end_date: endDate, - end_user_organization_name: endUserOrganizationName, - first_incident_time_after: firstIncidentTimeAfter?.toISOString(), - first_incident_time_before: firstIncidentTimeBefore?.toISOString(), - include_muted: includeMuted, - integration_name: integrationName, - last_incident_time_after: lastIncidentTimeAfter?.toISOString(), - last_incident_time_before: lastIncidentTimeBefore?.toISOString(), - linked_account_id: linkedAccountId, - page_size: pageSize, - start_date: startDate, - status: - status != null - ? serializers.filestorage.IssuesListRequestStatus.jsonOrThrow(status, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.filestorage.IssuesListRequest, + ): Promise> => { + const { + accountToken, + cursor, + endDate, + endUserOrganizationName, + firstIncidentTimeAfter, + firstIncidentTimeBefore, + includeMuted, + integrationName, + lastIncidentTimeAfter, + lastIncidentTimeBefore, + linkedAccountId, + pageSize, + startDate, + status, + } = request; + const _queryParams: Record = { + account_token: accountToken, + cursor, + end_date: endDate, + end_user_organization_name: endUserOrganizationName, + first_incident_time_after: firstIncidentTimeAfter?.toISOString(), + first_incident_time_before: firstIncidentTimeBefore?.toISOString(), + include_muted: includeMuted, + integration_name: integrationName, + last_incident_time_after: lastIncidentTimeAfter?.toISOString(), + last_incident_time_before: lastIncidentTimeBefore?.toISOString(), + linked_account_id: linkedAccountId, + page_size: pageSize, + start_date: startDate, + status: + status != null + ? serializers.filestorage.IssuesListRequestStatus.jsonOrThrow(status, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "filestorage/v1/issues", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.filestorage.PaginatedIssueList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/filestorage/v1/issues", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "filestorage/v1/issues", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.filestorage.PaginatedIssueList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/filestorage/v1/issues"); } /** diff --git a/src/api/resources/filestorage/resources/issues/client/requests/IssuesListRequest.ts b/src/api/resources/filestorage/resources/issues/client/requests/IssuesListRequest.ts index be45ff0bd..44a9f9b24 100644 --- a/src/api/resources/filestorage/resources/issues/client/requests/IssuesListRequest.ts +++ b/src/api/resources/filestorage/resources/issues/client/requests/IssuesListRequest.ts @@ -41,7 +41,7 @@ export interface IssuesListRequest { lastIncidentTimeBefore?: Date; /** If provided, will only include issues pertaining to the linked account passed in. */ linkedAccountId?: string; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** If included, will only include issues whose most recent action occurred after this time */ startDate?: string; diff --git a/src/api/resources/filestorage/resources/linkToken/client/Client.ts b/src/api/resources/filestorage/resources/linkToken/client/Client.ts index eb955f53a..7e8265983 100644 --- a/src/api/resources/filestorage/resources/linkToken/client/Client.ts +++ b/src/api/resources/filestorage/resources/linkToken/client/Client.ts @@ -24,7 +24,7 @@ export class LinkTokenClient { } /** - * Creates a link token to be used when linking a new end user. + * Creates a link token to be used when linking a new end user. The link token expires after single use. * * @param {Merge.filestorage.EndUserDetailsRequest} request * @param {LinkTokenClient.RequestOptions} requestOptions - Request-specific configuration. 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 1bce5dd30..2110e0035 100644 --- a/src/api/resources/filestorage/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ b/src/api/resources/filestorage/resources/linkToken/client/requests/EndUserDetailsRequest.ts @@ -41,7 +41,7 @@ export interface EndUserDetailsRequest { * * `en` - en * * `de` - de */ - language?: Merge.filestorage.LanguageEnum; + language?: Merge.filestorage.EndUserDetailsRequestLanguage; /** The boolean that indicates whether initial, periodic, and force syncs will be disabled. */ areSyncsDisabled?: boolean; /** A JSON object containing integration-specific configuration options. */ diff --git a/src/api/resources/filestorage/resources/linkToken/index.ts b/src/api/resources/filestorage/resources/linkToken/index.ts index 5ec76921e..d2ec2302c 100644 --- a/src/api/resources/filestorage/resources/linkToken/index.ts +++ b/src/api/resources/filestorage/resources/linkToken/index.ts @@ -1 +1,2 @@ export * from "./client"; +export * from "./types"; diff --git a/src/api/resources/filestorage/resources/linkToken/types/EndUserDetailsRequestLanguage.ts b/src/api/resources/filestorage/resources/linkToken/types/EndUserDetailsRequestLanguage.ts new file mode 100644 index 000000000..543efd1dd --- /dev/null +++ b/src/api/resources/filestorage/resources/linkToken/types/EndUserDetailsRequestLanguage.ts @@ -0,0 +1,11 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../index"; + +/** + * The following subset of IETF language tags can be used to configure localization. + * + * * `en` - en + * * `de` - de + */ +export type EndUserDetailsRequestLanguage = Merge.filestorage.LanguageEnum | string; diff --git a/src/api/resources/filestorage/resources/linkToken/types/index.ts b/src/api/resources/filestorage/resources/linkToken/types/index.ts new file mode 100644 index 000000000..c90e13c37 --- /dev/null +++ b/src/api/resources/filestorage/resources/linkToken/types/index.ts @@ -0,0 +1 @@ +export * from "./EndUserDetailsRequestLanguage"; diff --git a/src/api/resources/filestorage/resources/linkedAccounts/client/Client.ts b/src/api/resources/filestorage/resources/linkedAccounts/client/Client.ts index 095f40be9..809093371 100644 --- a/src/api/resources/filestorage/resources/linkedAccounts/client/Client.ts +++ b/src/api/resources/filestorage/resources/linkedAccounts/client/Client.ts @@ -46,101 +46,119 @@ export class LinkedAccountsClient { * status: "status" * }) */ - public list( + public async list( request: Merge.filestorage.LinkedAccountsListRequest = {}, requestOptions?: LinkedAccountsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.filestorage.LinkedAccountsListRequest = {}, - requestOptions?: LinkedAccountsClient.RequestOptions, - ): Promise> { - const { - category, - cursor, - endUserEmailAddress, - endUserOrganizationName, - endUserOriginId, - endUserOriginIds, - id, - ids, - includeDuplicates, - integrationName, - isTestAccount, - pageSize, - status, - } = request; - const _queryParams: Record = { - category: - category != null - ? serializers.filestorage.LinkedAccountsListRequestCategory.jsonOrThrow(category, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - cursor, - end_user_email_address: endUserEmailAddress, - end_user_organization_name: endUserOrganizationName, - end_user_origin_id: endUserOriginId, - end_user_origin_ids: endUserOriginIds, - id, - ids, - include_duplicates: includeDuplicates, - integration_name: integrationName, - is_test_account: isTestAccount, - page_size: pageSize, - status, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise< + core.Page + > { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.filestorage.LinkedAccountsListRequest, + ): Promise> => { + const { + category, + cursor, + endUserEmailAddress, + endUserOrganizationName, + endUserOriginId, + endUserOriginIds, + id, + ids, + includeDuplicates, + integrationName, + isTestAccount, + pageSize, + status, + } = request; + const _queryParams: Record = { + category: + category != null + ? serializers.filestorage.LinkedAccountsListRequestCategory.jsonOrThrow(category, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + cursor, + end_user_email_address: endUserEmailAddress, + end_user_organization_name: endUserOrganizationName, + end_user_origin_id: endUserOriginId, + end_user_origin_ids: endUserOriginIds, + id, + ids, + include_duplicates: includeDuplicates, + integration_name: integrationName, + is_test_account: isTestAccount, + page_size: pageSize, + status, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "filestorage/v1/linked-accounts", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.filestorage.PaginatedAccountDetailsAndActionsList.parseOrThrow( + _response.body, + { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }, + ), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/filestorage/v1/linked-accounts", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "filestorage/v1/linked-accounts", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page< + Merge.filestorage.AccountDetailsAndActions, + Merge.filestorage.PaginatedAccountDetailsAndActionsList + >({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.filestorage.PaginatedAccountDetailsAndActionsList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/filestorage/v1/linked-accounts", - ); } } diff --git a/src/api/resources/filestorage/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts b/src/api/resources/filestorage/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts index b55d4d434..64237d854 100644 --- a/src/api/resources/filestorage/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts +++ b/src/api/resources/filestorage/resources/linkedAccounts/client/requests/LinkedAccountsListRequest.ts @@ -52,7 +52,7 @@ export interface LinkedAccountsListRequest { integrationName?: string; /** If included, will only include test linked accounts. If not included, will only include non-test linked accounts. */ isTestAccount?: string; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** Filter by status. Options: `COMPLETE`, `IDLE`, `INCOMPLETE`, `RELINK_NEEDED` */ status?: string; diff --git a/src/api/resources/filestorage/resources/syncStatus/client/Client.ts b/src/api/resources/filestorage/resources/syncStatus/client/Client.ts index cd6ed0da4..285890694 100644 --- a/src/api/resources/filestorage/resources/syncStatus/client/Client.ts +++ b/src/api/resources/filestorage/resources/syncStatus/client/Client.ts @@ -35,66 +35,81 @@ export class SyncStatusClient { * pageSize: 1 * }) */ - public list( + public async list( request: Merge.filestorage.SyncStatusListRequest = {}, requestOptions?: SyncStatusClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.filestorage.SyncStatusListRequest = {}, - requestOptions?: SyncStatusClient.RequestOptions, - ): Promise> { - const { cursor, pageSize } = request; - const _queryParams: Record = { - cursor, - page_size: pageSize, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.filestorage.SyncStatusListRequest, + ): Promise> => { + const { cursor, pageSize } = request; + const _queryParams: Record = { + cursor, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "filestorage/v1/sync-status", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.filestorage.PaginatedSyncStatusList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/filestorage/v1/sync-status", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "filestorage/v1/sync-status", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.filestorage.PaginatedSyncStatusList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/filestorage/v1/sync-status"); } } diff --git a/src/api/resources/filestorage/resources/syncStatus/client/requests/SyncStatusListRequest.ts b/src/api/resources/filestorage/resources/syncStatus/client/requests/SyncStatusListRequest.ts index 2bbace517..94e1240fc 100644 --- a/src/api/resources/filestorage/resources/syncStatus/client/requests/SyncStatusListRequest.ts +++ b/src/api/resources/filestorage/resources/syncStatus/client/requests/SyncStatusListRequest.ts @@ -10,6 +10,6 @@ export interface SyncStatusListRequest { /** The pagination cursor value. */ cursor?: string; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; } diff --git a/src/api/resources/filestorage/resources/users/client/Client.ts b/src/api/resources/filestorage/resources/users/client/Client.ts index a831193c8..4026b170f 100644 --- a/src/api/resources/filestorage/resources/users/client/Client.ts +++ b/src/api/resources/filestorage/resources/users/client/Client.ts @@ -34,6 +34,7 @@ export class UsersClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * emailAddress: "email_address", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -44,88 +45,100 @@ export class UsersClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.filestorage.UsersListRequest = {}, requestOptions?: UsersClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.filestorage.UsersListRequest = {}, - requestOptions?: UsersClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - includeDeletedData, - includeRemoteData, - includeShellData, - isMe, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - is_me: isMe, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.filestorage.UsersListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + emailAddress, + includeDeletedData, + includeRemoteData, + includeShellData, + isMe, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + email_address: emailAddress, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + is_me: isMe, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "filestorage/v1/users", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.filestorage.PaginatedUserList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/filestorage/v1/users"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "filestorage/v1/users", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.filestorage.PaginatedUserList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/filestorage/v1/users"); } /** diff --git a/src/api/resources/filestorage/resources/users/client/requests/UsersListRequest.ts b/src/api/resources/filestorage/resources/users/client/requests/UsersListRequest.ts index 1aeb5220c..8bf9ba479 100644 --- a/src/api/resources/filestorage/resources/users/client/requests/UsersListRequest.ts +++ b/src/api/resources/filestorage/resources/users/client/requests/UsersListRequest.ts @@ -6,6 +6,7 @@ * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + * emailAddress: "email_address", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -23,6 +24,8 @@ export interface UsersListRequest { createdBefore?: Date; /** The pagination cursor value. */ cursor?: string; + /** If provided, will only return users with emails equal to this value (case insensitive). */ + emailAddress?: string; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -35,7 +38,7 @@ export interface UsersListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; diff --git a/src/api/resources/filestorage/types/AccountDetails.ts b/src/api/resources/filestorage/types/AccountDetails.ts index 964b97d4e..d60564947 100644 --- a/src/api/resources/filestorage/types/AccountDetails.ts +++ b/src/api/resources/filestorage/types/AccountDetails.ts @@ -6,7 +6,7 @@ export interface AccountDetails { id?: string; integration?: string; integrationSlug?: string; - category?: Merge.filestorage.CategoryEnum; + category?: Merge.filestorage.AccountDetailsCategory; endUserOriginId?: string; endUserOrganizationName?: string; endUserEmailAddress?: string; diff --git a/src/api/resources/filestorage/types/AccountDetailsAndActions.ts b/src/api/resources/filestorage/types/AccountDetailsAndActions.ts index 5f127b73a..b39c6a6e9 100644 --- a/src/api/resources/filestorage/types/AccountDetailsAndActions.ts +++ b/src/api/resources/filestorage/types/AccountDetailsAndActions.ts @@ -12,8 +12,8 @@ import type * as Merge from "../../../index"; */ export interface AccountDetailsAndActions { id: string; - category?: Merge.filestorage.CategoryEnum; - status: Merge.filestorage.AccountDetailsAndActionsStatusEnum; + category?: Merge.filestorage.AccountDetailsAndActionsCategory; + status: Merge.filestorage.AccountDetailsAndActionsStatus; statusDetail?: string; endUserOriginId?: string; endUserOrganizationName: string; diff --git a/src/api/resources/filestorage/types/AccountDetailsAndActionsCategory.ts b/src/api/resources/filestorage/types/AccountDetailsAndActionsCategory.ts new file mode 100644 index 000000000..05d886f7b --- /dev/null +++ b/src/api/resources/filestorage/types/AccountDetailsAndActionsCategory.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type AccountDetailsAndActionsCategory = Merge.filestorage.CategoryEnum | string; diff --git a/src/api/resources/filestorage/types/AccountDetailsAndActionsStatus.ts b/src/api/resources/filestorage/types/AccountDetailsAndActionsStatus.ts new file mode 100644 index 000000000..1588d4671 --- /dev/null +++ b/src/api/resources/filestorage/types/AccountDetailsAndActionsStatus.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type AccountDetailsAndActionsStatus = Merge.filestorage.AccountDetailsAndActionsStatusEnum | string; diff --git a/src/api/resources/filestorage/types/AccountDetailsCategory.ts b/src/api/resources/filestorage/types/AccountDetailsCategory.ts new file mode 100644 index 000000000..d1bf0fb80 --- /dev/null +++ b/src/api/resources/filestorage/types/AccountDetailsCategory.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type AccountDetailsCategory = Merge.filestorage.CategoryEnum | string; diff --git a/src/api/resources/filestorage/types/FieldMappingApiInstance.ts b/src/api/resources/filestorage/types/FieldMappingApiInstance.ts index d9d3be4cd..e1fc7fe5d 100644 --- a/src/api/resources/filestorage/types/FieldMappingApiInstance.ts +++ b/src/api/resources/filestorage/types/FieldMappingApiInstance.ts @@ -7,4 +7,5 @@ export interface FieldMappingApiInstance { isIntegrationWide?: boolean; targetField?: Merge.filestorage.FieldMappingApiInstanceTargetField; remoteField?: Merge.filestorage.FieldMappingApiInstanceRemoteField; + jmesPath?: string; } diff --git a/src/api/resources/filestorage/types/Permission.ts b/src/api/resources/filestorage/types/Permission.ts index 5a5420992..9ca733819 100644 --- a/src/api/resources/filestorage/types/Permission.ts +++ b/src/api/resources/filestorage/types/Permission.ts @@ -33,4 +33,7 @@ export interface Permission { type?: Merge.filestorage.PermissionType; /** The permissions that the user or group has for the File or Folder. It is possible for a user or group to have multiple roles, such as viewing & uploading. Possible values include: `READ`, `WRITE`, `OWNER`. In cases where there is no clear mapping, the original value passed through will be returned. */ roles?: (Merge.filestorage.PermissionRolesItem | undefined)[]; + /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ + remoteWasDeleted?: boolean; + fieldMappings?: Record; } diff --git a/src/api/resources/filestorage/types/RegenerateAccountToken.ts b/src/api/resources/filestorage/types/RegenerateAccountToken.ts new file mode 100644 index 000000000..2cd31ce05 --- /dev/null +++ b/src/api/resources/filestorage/types/RegenerateAccountToken.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * # The RegenerateAccountToken Object + * ### Description + * The `RegenerateAccountToken` object is used to exchange an old account token for a new one. + * + * ### Usage Example + * Post to receive a new `RegenerateAccountToken`. + */ +export interface RegenerateAccountToken { + linkedAccountId: string; + accountToken: string; +} diff --git a/src/api/resources/filestorage/types/RemoteResponse.ts b/src/api/resources/filestorage/types/RemoteResponse.ts index e026d3641..097a9d8b9 100644 --- a/src/api/resources/filestorage/types/RemoteResponse.ts +++ b/src/api/resources/filestorage/types/RemoteResponse.ts @@ -16,6 +16,6 @@ export interface RemoteResponse { status: number; response?: unknown; responseHeaders?: Record; - responseType?: Merge.filestorage.ResponseTypeEnum; + responseType?: Merge.filestorage.RemoteResponseResponseType; headers?: Record; } diff --git a/src/api/resources/filestorage/types/RemoteResponseResponseType.ts b/src/api/resources/filestorage/types/RemoteResponseResponseType.ts new file mode 100644 index 000000000..acbde002d --- /dev/null +++ b/src/api/resources/filestorage/types/RemoteResponseResponseType.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type RemoteResponseResponseType = Merge.filestorage.ResponseTypeEnum | string; diff --git a/src/api/resources/filestorage/types/RoleEnum.ts b/src/api/resources/filestorage/types/RoleEnum.ts index 524088eb7..584dbc84e 100644 --- a/src/api/resources/filestorage/types/RoleEnum.ts +++ b/src/api/resources/filestorage/types/RoleEnum.ts @@ -7,6 +7,7 @@ * * `API` - API * * `SYSTEM` - SYSTEM * * `MERGE_TEAM` - MERGE_TEAM + * * `SUPPORT` - SUPPORT */ export const RoleEnum = { Admin: "ADMIN", @@ -15,5 +16,6 @@ export const RoleEnum = { Api: "API", System: "SYSTEM", MergeTeam: "MERGE_TEAM", + Support: "SUPPORT", } as const; export type RoleEnum = (typeof RoleEnum)[keyof typeof RoleEnum]; diff --git a/src/api/resources/filestorage/types/SyncStatus.ts b/src/api/resources/filestorage/types/SyncStatus.ts index c021b9b82..3ef4bbcb0 100644 --- a/src/api/resources/filestorage/types/SyncStatus.ts +++ b/src/api/resources/filestorage/types/SyncStatus.ts @@ -17,7 +17,7 @@ export interface SyncStatus { nextSyncStart?: Date; lastSyncResult?: Merge.filestorage.SyncStatusLastSyncResult; lastSyncFinished?: Date; - status: Merge.filestorage.StatusFd5Enum; + status: Merge.filestorage.SyncStatusStatus; isInitialSync: boolean; selectiveSyncConfigurationsUsage?: Merge.filestorage.SelectiveSyncConfigurationsUsageEnum; } diff --git a/src/api/resources/filestorage/types/SyncStatusStatus.ts b/src/api/resources/filestorage/types/SyncStatusStatus.ts new file mode 100644 index 000000000..a2f4ba808 --- /dev/null +++ b/src/api/resources/filestorage/types/SyncStatusStatus.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type SyncStatusStatus = Merge.filestorage.StatusFd5Enum | string; diff --git a/src/api/resources/filestorage/types/index.ts b/src/api/resources/filestorage/types/index.ts index 80763bb71..ae8cbf90e 100644 --- a/src/api/resources/filestorage/types/index.ts +++ b/src/api/resources/filestorage/types/index.ts @@ -1,7 +1,10 @@ export * from "./AccountDetails"; export * from "./AccountDetailsAndActions"; +export * from "./AccountDetailsAndActionsCategory"; export * from "./AccountDetailsAndActionsIntegration"; +export * from "./AccountDetailsAndActionsStatus"; export * from "./AccountDetailsAndActionsStatusEnum"; +export * from "./AccountDetailsCategory"; export * from "./AccountIntegration"; export * from "./AccountToken"; export * from "./AdvancedMetadata"; @@ -93,6 +96,7 @@ export * from "./PermissionRequestUser"; export * from "./PermissionRolesItem"; export * from "./PermissionType"; export * from "./PermissionUser"; +export * from "./RegenerateAccountToken"; export * from "./RemoteData"; export * from "./RemoteEndpointInfo"; export * from "./RemoteFieldApi"; @@ -100,6 +104,7 @@ export * from "./RemoteFieldApiCoverage"; export * from "./RemoteFieldApiResponse"; export * from "./RemoteKey"; export * from "./RemoteResponse"; +export * from "./RemoteResponseResponseType"; export * from "./RequestFormatEnum"; export * from "./ResponseTypeEnum"; export * from "./RoleEnum"; @@ -108,6 +113,7 @@ export * from "./SelectiveSyncConfigurationsUsageEnum"; export * from "./StatusFd5Enum"; export * from "./SyncStatus"; export * from "./SyncStatusLastSyncResult"; +export * from "./SyncStatusStatus"; export * from "./TypeEnum"; export * from "./User"; export * from "./ValidationProblemSource"; diff --git a/src/api/resources/hris/resources/accountToken/client/Client.ts b/src/api/resources/hris/resources/accountToken/client/Client.ts index 639122699..210cb18a0 100644 --- a/src/api/resources/hris/resources/accountToken/client/Client.ts +++ b/src/api/resources/hris/resources/accountToken/client/Client.ts @@ -94,4 +94,73 @@ export class AccountTokenClient { "/hris/v1/account-token/{public_token}", ); } + + /** + * Exchange Linked Account account tokens. + * + * @param {AccountTokenClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.hris.accountToken.regenerateCreate() + */ + public regenerateCreate( + requestOptions?: AccountTokenClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__regenerateCreate(requestOptions)); + } + + private async __regenerateCreate( + requestOptions?: AccountTokenClient.RequestOptions, + ): Promise> { + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "hris/v1/account-token/regenerate", + ), + method: "POST", + headers: _headers, + queryParameters: requestOptions?.queryParams, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.hris.RegenerateAccountToken.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "POST", + "/hris/v1/account-token/regenerate", + ); + } } diff --git a/src/api/resources/hris/resources/auditTrail/client/Client.ts b/src/api/resources/hris/resources/auditTrail/client/Client.ts index 4a0832d33..553863619 100644 --- a/src/api/resources/hris/resources/auditTrail/client/Client.ts +++ b/src/api/resources/hris/resources/auditTrail/client/Client.ts @@ -39,70 +39,80 @@ export class AuditTrailClient { * userEmail: "user_email" * }) */ - public list( + public async list( request: Merge.hris.AuditTrailListRequest = {}, requestOptions?: AuditTrailClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.hris.AuditTrailListRequest = {}, - requestOptions?: AuditTrailClient.RequestOptions, - ): Promise> { - const { cursor, endDate, eventType, pageSize, startDate, userEmail } = request; - const _queryParams: Record = { - cursor, - end_date: endDate, - event_type: eventType, - page_size: pageSize, - start_date: startDate, - user_email: userEmail, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.hris.AuditTrailListRequest, + ): Promise> => { + const { cursor, endDate, eventType, pageSize, startDate, userEmail } = request; + const _queryParams: Record = { + cursor, + end_date: endDate, + event_type: eventType, + page_size: pageSize, + start_date: startDate, + user_email: userEmail, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "hris/v1/audit-trail", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.hris.PaginatedAuditLogEventList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/audit-trail"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "hris/v1/audit-trail", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.hris.PaginatedAuditLogEventList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/audit-trail"); } } 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 65216f96c..b188a570e 100644 --- a/src/api/resources/hris/resources/auditTrail/client/requests/AuditTrailListRequest.ts +++ b/src/api/resources/hris/resources/auditTrail/client/requests/AuditTrailListRequest.ts @@ -18,7 +18,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`, `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `DELETED_ALL_COMMON_MODELS_FOR_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`, `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`, `END_USER_CREDENTIALS_ACCESSED` */ eventType?: string; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** If included, will only include audit trail events that occurred after this time */ startDate?: string; diff --git a/src/api/resources/hris/resources/bankInfo/client/Client.ts b/src/api/resources/hris/resources/bankInfo/client/Client.ts index 164117b86..23cf4e517 100644 --- a/src/api/resources/hris/resources/bankInfo/client/Client.ts +++ b/src/api/resources/hris/resources/bankInfo/client/Client.ts @@ -37,7 +37,6 @@ export class BankInfoClient { * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * employeeId: "employee_id", - * expand: "employee", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -50,110 +49,120 @@ export class BankInfoClient { * showEnumOrigins: "account_type" * }) */ - public list( + public async list( request: Merge.hris.BankInfoListRequest = {}, requestOptions?: BankInfoClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.hris.BankInfoListRequest = {}, - requestOptions?: BankInfoClient.RequestOptions, - ): Promise> { - const { - accountType, - bankName, - createdAfter, - createdBefore, - cursor, - employeeId, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - orderBy, - pageSize, - remoteFields, - remoteId, - showEnumOrigins, - } = request; - const _queryParams: Record = { - account_type: - accountType != null - ? serializers.hris.BankInfoListRequestAccountType.jsonOrThrow(accountType, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - bank_name: bankName, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - employee_id: employeeId, - expand: expand != null ? expand : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - order_by: - orderBy != null - ? serializers.hris.BankInfoListRequestOrderBy.jsonOrThrow(orderBy, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - page_size: pageSize, - remote_fields: remoteFields != null ? remoteFields : undefined, - remote_id: remoteId, - show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.hris.BankInfoListRequest, + ): Promise> => { + const { + accountType, + bankName, + createdAfter, + createdBefore, + cursor, + employeeId, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + orderBy, + pageSize, + remoteFields, + remoteId, + showEnumOrigins, + } = request; + const _queryParams: Record = { + account_type: + accountType != null + ? serializers.hris.BankInfoListRequestAccountType.jsonOrThrow(accountType, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + bank_name: bankName, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + employee_id: employeeId, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + order_by: + orderBy != null + ? serializers.hris.BankInfoListRequestOrderBy.jsonOrThrow(orderBy, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + page_size: pageSize, + remote_fields: remoteFields != null ? remoteFields : undefined, + remote_id: remoteId, + show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "hris/v1/bank-info", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.hris.PaginatedBankInfoList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/bank-info"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "hris/v1/bank-info", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.hris.PaginatedBankInfoList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/bank-info"); } /** @@ -165,7 +174,6 @@ export class BankInfoClient { * * @example * await client.hris.bankInfo.retrieve("id", { - * expand: "employee", * includeRemoteData: true, * includeShellData: true, * remoteFields: "account_type", @@ -187,7 +195,7 @@ export class BankInfoClient { ): Promise> { const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; const _queryParams: Record = { - expand: expand != null ? expand : undefined, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, remote_fields: remoteFields != null ? remoteFields : undefined, diff --git a/src/api/resources/hris/resources/bankInfo/client/requests/BankInfoListRequest.ts b/src/api/resources/hris/resources/bankInfo/client/requests/BankInfoListRequest.ts index 835c764b1..66a49e69b 100644 --- a/src/api/resources/hris/resources/bankInfo/client/requests/BankInfoListRequest.ts +++ b/src/api/resources/hris/resources/bankInfo/client/requests/BankInfoListRequest.ts @@ -11,7 +11,6 @@ import type * as Merge from "../../../../../../index"; * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * employeeId: "employee_id", - * expand: "employee", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -43,7 +42,7 @@ export interface BankInfoListRequest { /** If provided, will only return bank accounts for this employee. */ employeeId?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "employee"; + expand?: "employee" | "employee"[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ diff --git a/src/api/resources/hris/resources/bankInfo/client/requests/BankInfoRetrieveRequest.ts b/src/api/resources/hris/resources/bankInfo/client/requests/BankInfoRetrieveRequest.ts index 40b686525..412c9f0b8 100644 --- a/src/api/resources/hris/resources/bankInfo/client/requests/BankInfoRetrieveRequest.ts +++ b/src/api/resources/hris/resources/bankInfo/client/requests/BankInfoRetrieveRequest.ts @@ -3,7 +3,6 @@ /** * @example * { - * expand: "employee", * includeRemoteData: true, * includeShellData: true, * remoteFields: "account_type", @@ -12,7 +11,7 @@ */ export interface BankInfoRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "employee"; + expand?: "employee" | "employee"[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/hris/resources/benefits/client/Client.ts b/src/api/resources/hris/resources/benefits/client/Client.ts index ac955b314..36ce449e4 100644 --- a/src/api/resources/hris/resources/benefits/client/Client.ts +++ b/src/api/resources/hris/resources/benefits/client/Client.ts @@ -35,7 +35,6 @@ export class BenefitsClient { * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * employeeId: "employee_id", - * expand: "employee", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -45,90 +44,100 @@ export class BenefitsClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.hris.BenefitsListRequest = {}, requestOptions?: BenefitsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.hris.BenefitsListRequest = {}, - requestOptions?: BenefitsClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - employeeId, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - employee_id: employeeId, - expand: expand != null ? expand : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.hris.BenefitsListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + employeeId, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + employee_id: employeeId, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "hris/v1/benefits", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.hris.PaginatedBenefitList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/benefits"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "hris/v1/benefits", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.hris.PaginatedBenefitList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/benefits"); } /** @@ -140,7 +149,6 @@ export class BenefitsClient { * * @example * await client.hris.benefits.retrieve("id", { - * expand: "employee", * includeRemoteData: true, * includeShellData: true * }) @@ -160,7 +168,7 @@ export class BenefitsClient { ): Promise> { const { expand, includeRemoteData, includeShellData } = request; const _queryParams: Record = { - expand: expand != null ? expand : undefined, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, }; diff --git a/src/api/resources/hris/resources/benefits/client/requests/BenefitsListRequest.ts b/src/api/resources/hris/resources/benefits/client/requests/BenefitsListRequest.ts index 4b1f60a22..2a7efffe4 100644 --- a/src/api/resources/hris/resources/benefits/client/requests/BenefitsListRequest.ts +++ b/src/api/resources/hris/resources/benefits/client/requests/BenefitsListRequest.ts @@ -7,7 +7,6 @@ * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * employeeId: "employee_id", - * expand: "employee", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -27,7 +26,7 @@ export interface BenefitsListRequest { /** If provided, will return the benefits associated with the employee. */ employeeId?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "employee"; + expand?: "employee" | "employee"[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ diff --git a/src/api/resources/hris/resources/benefits/client/requests/BenefitsRetrieveRequest.ts b/src/api/resources/hris/resources/benefits/client/requests/BenefitsRetrieveRequest.ts index 66e794081..098cecdcc 100644 --- a/src/api/resources/hris/resources/benefits/client/requests/BenefitsRetrieveRequest.ts +++ b/src/api/resources/hris/resources/benefits/client/requests/BenefitsRetrieveRequest.ts @@ -3,14 +3,13 @@ /** * @example * { - * expand: "employee", * includeRemoteData: true, * includeShellData: true * } */ export interface BenefitsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "employee"; + expand?: "employee" | "employee"[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/hris/resources/companies/client/Client.ts b/src/api/resources/hris/resources/companies/client/Client.ts index fdf3f82fd..e8f73400f 100644 --- a/src/api/resources/hris/resources/companies/client/Client.ts +++ b/src/api/resources/hris/resources/companies/client/Client.ts @@ -43,86 +43,96 @@ export class CompaniesClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.hris.CompaniesListRequest = {}, requestOptions?: CompaniesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.hris.CompaniesListRequest = {}, - requestOptions?: CompaniesClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.hris.CompaniesListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "hris/v1/companies", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.hris.PaginatedCompanyList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/companies"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "hris/v1/companies", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.hris.PaginatedCompanyList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/companies"); } /** diff --git a/src/api/resources/hris/resources/dependents/client/Client.ts b/src/api/resources/hris/resources/dependents/client/Client.ts index 7913e3fd5..1511e2b08 100644 --- a/src/api/resources/hris/resources/dependents/client/Client.ts +++ b/src/api/resources/hris/resources/dependents/client/Client.ts @@ -45,90 +45,100 @@ export class DependentsClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.hris.DependentsListRequest = {}, requestOptions?: DependentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.hris.DependentsListRequest = {}, - requestOptions?: DependentsClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - employeeId, - includeDeletedData, - includeRemoteData, - includeSensitiveFields, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - employee_id: employeeId, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_sensitive_fields: includeSensitiveFields, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.hris.DependentsListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + employeeId, + includeDeletedData, + includeRemoteData, + includeSensitiveFields, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + employee_id: employeeId, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_sensitive_fields: includeSensitiveFields, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "hris/v1/dependents", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.hris.PaginatedDependentList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/dependents"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "hris/v1/dependents", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.hris.PaginatedDependentList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/dependents"); } /** diff --git a/src/api/resources/hris/resources/employeePayrollRuns/client/Client.ts b/src/api/resources/hris/resources/employeePayrollRuns/client/Client.ts index 87494a0b0..c474889d8 100644 --- a/src/api/resources/hris/resources/employeePayrollRuns/client/Client.ts +++ b/src/api/resources/hris/resources/employeePayrollRuns/client/Client.ts @@ -37,7 +37,6 @@ export class EmployeePayrollRunsClient { * employeeId: "employee_id", * endedAfter: new Date("2024-01-15T09:30:00.000Z"), * endedBefore: new Date("2024-01-15T09:30:00.000Z"), - * expand: "employee", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -50,110 +49,125 @@ export class EmployeePayrollRunsClient { * startedBefore: new Date("2024-01-15T09:30:00.000Z") * }) */ - public list( + public async list( request: Merge.hris.EmployeePayrollRunsListRequest = {}, requestOptions?: EmployeePayrollRunsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.hris.EmployeePayrollRunsListRequest = {}, - requestOptions?: EmployeePayrollRunsClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - employeeId, - endedAfter, - endedBefore, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - payrollRunId, - remoteId, - startedAfter, - startedBefore, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - employee_id: employeeId, - ended_after: endedAfter?.toISOString(), - ended_before: endedBefore?.toISOString(), - expand: - expand != null - ? serializers.hris.EmployeePayrollRunsListRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - payroll_run_id: payrollRunId, - remote_id: remoteId, - started_after: startedAfter?.toISOString(), - started_before: startedBefore?.toISOString(), - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.hris.EmployeePayrollRunsListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + employeeId, + endedAfter, + endedBefore, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + payrollRunId, + remoteId, + startedAfter, + startedBefore, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + employee_id: employeeId, + ended_after: endedAfter?.toISOString(), + ended_before: endedBefore?.toISOString(), + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.hris.EmployeePayrollRunsListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.hris.EmployeePayrollRunsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + payroll_run_id: payrollRunId, + remote_id: remoteId, + started_after: startedAfter?.toISOString(), + started_before: startedBefore?.toISOString(), + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "hris/v1/employee-payroll-runs", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.hris.PaginatedEmployeePayrollRunList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/hris/v1/employee-payroll-runs", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "hris/v1/employee-payroll-runs", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.hris.PaginatedEmployeePayrollRunList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/hris/v1/employee-payroll-runs", - ); } /** @@ -165,7 +179,6 @@ export class EmployeePayrollRunsClient { * * @example * await client.hris.employeePayrollRuns.retrieve("id", { - * expand: "employee", * includeRemoteData: true, * includeShellData: true * }) @@ -185,12 +198,17 @@ export class EmployeePayrollRunsClient { ): Promise> { const { expand, includeRemoteData, includeShellData } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.hris.EmployeePayrollRunsRetrieveRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.hris.EmployeePayrollRunsRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.hris.EmployeePayrollRunsRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, }; diff --git a/src/api/resources/hris/resources/employeePayrollRuns/client/requests/EmployeePayrollRunsListRequest.ts b/src/api/resources/hris/resources/employeePayrollRuns/client/requests/EmployeePayrollRunsListRequest.ts index 5e890cb6b..b64122592 100644 --- a/src/api/resources/hris/resources/employeePayrollRuns/client/requests/EmployeePayrollRunsListRequest.ts +++ b/src/api/resources/hris/resources/employeePayrollRuns/client/requests/EmployeePayrollRunsListRequest.ts @@ -11,7 +11,6 @@ import type * as Merge from "../../../../../../index"; * employeeId: "employee_id", * endedAfter: new Date("2024-01-15T09:30:00.000Z"), * endedBefore: new Date("2024-01-15T09:30:00.000Z"), - * expand: "employee", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -38,7 +37,9 @@ export interface EmployeePayrollRunsListRequest { /** If provided, will only return employee payroll runs ended before this datetime. */ endedBefore?: Date; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.hris.EmployeePayrollRunsListRequestExpand; + expand?: + | Merge.hris.EmployeePayrollRunsListRequestExpandItem + | Merge.hris.EmployeePayrollRunsListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ diff --git a/src/api/resources/hris/resources/employeePayrollRuns/client/requests/EmployeePayrollRunsRetrieveRequest.ts b/src/api/resources/hris/resources/employeePayrollRuns/client/requests/EmployeePayrollRunsRetrieveRequest.ts index d20d82e13..04ef0857c 100644 --- a/src/api/resources/hris/resources/employeePayrollRuns/client/requests/EmployeePayrollRunsRetrieveRequest.ts +++ b/src/api/resources/hris/resources/employeePayrollRuns/client/requests/EmployeePayrollRunsRetrieveRequest.ts @@ -5,14 +5,15 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "employee", * includeRemoteData: true, * includeShellData: true * } */ export interface EmployeePayrollRunsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.hris.EmployeePayrollRunsRetrieveRequestExpand; + expand?: + | Merge.hris.EmployeePayrollRunsRetrieveRequestExpandItem + | Merge.hris.EmployeePayrollRunsRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/hris/resources/employeePayrollRuns/types/EmployeePayrollRunsListRequestExpand.ts b/src/api/resources/hris/resources/employeePayrollRuns/types/EmployeePayrollRunsListRequestExpand.ts deleted file mode 100644 index 8f0dbd079..000000000 --- a/src/api/resources/hris/resources/employeePayrollRuns/types/EmployeePayrollRunsListRequestExpand.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const EmployeePayrollRunsListRequestExpand = { - Employee: "employee", - EmployeePayrollRun: "employee,payroll_run", - PayrollRun: "payroll_run", -} as const; -export type EmployeePayrollRunsListRequestExpand = - (typeof EmployeePayrollRunsListRequestExpand)[keyof typeof EmployeePayrollRunsListRequestExpand]; diff --git a/src/api/resources/hris/resources/employeePayrollRuns/types/EmployeePayrollRunsListRequestExpandItem.ts b/src/api/resources/hris/resources/employeePayrollRuns/types/EmployeePayrollRunsListRequestExpandItem.ts new file mode 100644 index 000000000..7671ad842 --- /dev/null +++ b/src/api/resources/hris/resources/employeePayrollRuns/types/EmployeePayrollRunsListRequestExpandItem.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export const EmployeePayrollRunsListRequestExpandItem = { + Employee: "employee", + PayrollRun: "payroll_run", +} as const; +export type EmployeePayrollRunsListRequestExpandItem = + (typeof EmployeePayrollRunsListRequestExpandItem)[keyof typeof EmployeePayrollRunsListRequestExpandItem]; diff --git a/src/api/resources/hris/resources/employeePayrollRuns/types/EmployeePayrollRunsRetrieveRequestExpand.ts b/src/api/resources/hris/resources/employeePayrollRuns/types/EmployeePayrollRunsRetrieveRequestExpand.ts deleted file mode 100644 index 90e9a956b..000000000 --- a/src/api/resources/hris/resources/employeePayrollRuns/types/EmployeePayrollRunsRetrieveRequestExpand.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const EmployeePayrollRunsRetrieveRequestExpand = { - Employee: "employee", - EmployeePayrollRun: "employee,payroll_run", - PayrollRun: "payroll_run", -} as const; -export type EmployeePayrollRunsRetrieveRequestExpand = - (typeof EmployeePayrollRunsRetrieveRequestExpand)[keyof typeof EmployeePayrollRunsRetrieveRequestExpand]; diff --git a/src/api/resources/hris/resources/employeePayrollRuns/types/EmployeePayrollRunsRetrieveRequestExpandItem.ts b/src/api/resources/hris/resources/employeePayrollRuns/types/EmployeePayrollRunsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..da48dd560 --- /dev/null +++ b/src/api/resources/hris/resources/employeePayrollRuns/types/EmployeePayrollRunsRetrieveRequestExpandItem.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export const EmployeePayrollRunsRetrieveRequestExpandItem = { + Employee: "employee", + PayrollRun: "payroll_run", +} as const; +export type EmployeePayrollRunsRetrieveRequestExpandItem = + (typeof EmployeePayrollRunsRetrieveRequestExpandItem)[keyof typeof EmployeePayrollRunsRetrieveRequestExpandItem]; diff --git a/src/api/resources/hris/resources/employeePayrollRuns/types/index.ts b/src/api/resources/hris/resources/employeePayrollRuns/types/index.ts index 7adf16728..adee6252a 100644 --- a/src/api/resources/hris/resources/employeePayrollRuns/types/index.ts +++ b/src/api/resources/hris/resources/employeePayrollRuns/types/index.ts @@ -1,2 +1,2 @@ -export * from "./EmployeePayrollRunsListRequestExpand"; -export * from "./EmployeePayrollRunsRetrieveRequestExpand"; +export * from "./EmployeePayrollRunsListRequestExpandItem"; +export * from "./EmployeePayrollRunsRetrieveRequestExpandItem"; diff --git a/src/api/resources/hris/resources/employees/client/Client.ts b/src/api/resources/hris/resources/employees/client/Client.ts index 6cabbf055..1ef63f8e2 100644 --- a/src/api/resources/hris/resources/employees/client/Client.ts +++ b/src/api/resources/hris/resources/employees/client/Client.ts @@ -39,7 +39,6 @@ export class EmployeesClient { * employeeNumber: "employee_number", * employmentStatus: "ACTIVE", * employmentType: "employment_type", - * expand: "company", * firstName: "first_name", * groups: "groups", * homeLocationId: "home_location_id", @@ -67,154 +66,169 @@ export class EmployeesClient { * workLocationId: "work_location_id" * }) */ - public list( + public async list( request: Merge.hris.EmployeesListRequest = {}, requestOptions?: EmployeesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.hris.EmployeesListRequest = {}, - requestOptions?: EmployeesClient.RequestOptions, - ): Promise> { - const { - companyId, - createdAfter, - createdBefore, - cursor, - displayFullName, - employeeNumber, - employmentStatus, - employmentType, - expand, - firstName, - groups, - homeLocationId, - includeDeletedData, - includeRemoteData, - includeSensitiveFields, - includeShellData, - jobTitle, - lastName, - managerId, - modifiedAfter, - modifiedBefore, - pageSize, - payGroupId, - personalEmail, - remoteFields, - remoteId, - showEnumOrigins, - startedAfter, - startedBefore, - teamId, - terminatedAfter, - terminatedBefore, - workEmail, - workLocationId, - } = request; - const _queryParams: Record = { - company_id: companyId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - display_full_name: displayFullName, - employee_number: employeeNumber, - employment_status: - employmentStatus != null - ? serializers.hris.EmployeesListRequestEmploymentStatus.jsonOrThrow(employmentStatus, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - employment_type: employmentType, - expand: - expand != null - ? serializers.hris.EmployeesListRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - first_name: firstName, - groups, - home_location_id: homeLocationId, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_sensitive_fields: includeSensitiveFields, - include_shell_data: includeShellData, - job_title: jobTitle, - last_name: lastName, - manager_id: managerId, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - pay_group_id: payGroupId, - personal_email: personalEmail, - remote_fields: - remoteFields != null - ? serializers.hris.EmployeesListRequestRemoteFields.jsonOrThrow(remoteFields, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - remote_id: remoteId, - show_enum_origins: - showEnumOrigins != null - ? serializers.hris.EmployeesListRequestShowEnumOrigins.jsonOrThrow(showEnumOrigins, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - started_after: startedAfter?.toISOString(), - started_before: startedBefore?.toISOString(), - team_id: teamId, - terminated_after: terminatedAfter?.toISOString(), - terminated_before: terminatedBefore?.toISOString(), - work_email: workEmail, - work_location_id: workLocationId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.hris.EmployeesListRequest, + ): Promise> => { + const { + companyId, + createdAfter, + createdBefore, + cursor, + displayFullName, + employeeNumber, + employmentStatus, + employmentType, + expand, + firstName, + groups, + homeLocationId, + includeDeletedData, + includeRemoteData, + includeSensitiveFields, + includeShellData, + jobTitle, + lastName, + managerId, + modifiedAfter, + modifiedBefore, + pageSize, + payGroupId, + personalEmail, + remoteFields, + remoteId, + showEnumOrigins, + startedAfter, + startedBefore, + teamId, + terminatedAfter, + terminatedBefore, + workEmail, + workLocationId, + } = request; + const _queryParams: Record = { + company_id: companyId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + display_full_name: displayFullName, + employee_number: employeeNumber, + employment_status: + employmentStatus != null + ? serializers.hris.EmployeesListRequestEmploymentStatus.jsonOrThrow(employmentStatus, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + employment_type: employmentType, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.hris.EmployeesListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.hris.EmployeesListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + first_name: firstName, + groups, + home_location_id: homeLocationId, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_sensitive_fields: includeSensitiveFields, + include_shell_data: includeShellData, + job_title: jobTitle, + last_name: lastName, + manager_id: managerId, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + pay_group_id: payGroupId, + personal_email: personalEmail, + remote_fields: + remoteFields != null + ? serializers.hris.EmployeesListRequestRemoteFields.jsonOrThrow(remoteFields, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + remote_id: remoteId, + show_enum_origins: + showEnumOrigins != null + ? serializers.hris.EmployeesListRequestShowEnumOrigins.jsonOrThrow(showEnumOrigins, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + started_after: startedAfter?.toISOString(), + started_before: startedBefore?.toISOString(), + team_id: teamId, + terminated_after: terminatedAfter?.toISOString(), + terminated_before: terminatedBefore?.toISOString(), + work_email: workEmail, + work_location_id: workLocationId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "hris/v1/employees", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.hris.PaginatedEmployeeList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/employees"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "hris/v1/employees", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.hris.PaginatedEmployeeList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/employees"); } /** @@ -305,7 +319,6 @@ export class EmployeesClient { * * @example * await client.hris.employees.retrieve("id", { - * expand: "company", * includeRemoteData: true, * includeSensitiveFields: true, * includeShellData: true, @@ -329,12 +342,17 @@ export class EmployeesClient { const { expand, includeRemoteData, includeSensitiveFields, includeShellData, remoteFields, showEnumOrigins } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.hris.EmployeesRetrieveRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.hris.EmployeesRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.hris.EmployeesRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_sensitive_fields: includeSensitiveFields, include_shell_data: includeShellData, diff --git a/src/api/resources/hris/resources/employees/client/requests/EmployeesListRequest.ts b/src/api/resources/hris/resources/employees/client/requests/EmployeesListRequest.ts index 3d2ca2708..0b96368d2 100644 --- a/src/api/resources/hris/resources/employees/client/requests/EmployeesListRequest.ts +++ b/src/api/resources/hris/resources/employees/client/requests/EmployeesListRequest.ts @@ -13,7 +13,6 @@ import type * as Merge from "../../../../../../index"; * employeeNumber: "employee_number", * employmentStatus: "ACTIVE", * employmentType: "employment_type", - * expand: "company", * firstName: "first_name", * groups: "groups", * homeLocationId: "home_location_id", @@ -65,7 +64,7 @@ export interface EmployeesListRequest { /** If provided, will only return employees that have an employment of the specified employment type. */ employmentType?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.hris.EmployeesListRequestExpand; + expand?: Merge.hris.EmployeesListRequestExpandItem | Merge.hris.EmployeesListRequestExpandItem[]; /** If provided, will only return employees with this first name. */ firstName?: string; /** If provided, will only return employees matching the group ids; multiple groups can be separated by commas. */ @@ -90,7 +89,7 @@ export interface EmployeesListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** If provided, will only return employees for this pay group */ payGroupId?: string; diff --git a/src/api/resources/hris/resources/employees/client/requests/EmployeesRetrieveRequest.ts b/src/api/resources/hris/resources/employees/client/requests/EmployeesRetrieveRequest.ts index e5c82e932..5aa05000a 100644 --- a/src/api/resources/hris/resources/employees/client/requests/EmployeesRetrieveRequest.ts +++ b/src/api/resources/hris/resources/employees/client/requests/EmployeesRetrieveRequest.ts @@ -5,7 +5,6 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "company", * includeRemoteData: true, * includeSensitiveFields: true, * includeShellData: true, @@ -15,7 +14,7 @@ import type * as Merge from "../../../../../../index"; */ export interface EmployeesRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.hris.EmployeesRetrieveRequestExpand; + expand?: Merge.hris.EmployeesRetrieveRequestExpandItem | Merge.hris.EmployeesRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include sensitive fields (such as social security numbers) in the response. */ diff --git a/src/api/resources/hris/resources/employees/client/requests/IgnoreCommonModelRequest.ts b/src/api/resources/hris/resources/employees/client/requests/IgnoreCommonModelRequest.ts deleted file mode 100644 index e39d178bb..000000000 --- a/src/api/resources/hris/resources/employees/client/requests/IgnoreCommonModelRequest.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../index"; - -/** - * @example - * { - * reason: "GENERAL_CUSTOMER_REQUEST" - * } - */ -export interface IgnoreCommonModelRequest { - reason: Merge.hris.IgnoreCommonModelRequestReason; - message?: string; -} diff --git a/src/api/resources/hris/resources/employees/client/requests/index.ts b/src/api/resources/hris/resources/employees/client/requests/index.ts index 0cb7a6252..b76e2e807 100644 --- a/src/api/resources/hris/resources/employees/client/requests/index.ts +++ b/src/api/resources/hris/resources/employees/client/requests/index.ts @@ -1,4 +1,3 @@ export type { EmployeeEndpointRequest } from "./EmployeeEndpointRequest"; export type { EmployeesListRequest } from "./EmployeesListRequest"; export type { EmployeesRetrieveRequest } from "./EmployeesRetrieveRequest"; -export type { IgnoreCommonModelRequest } from "./IgnoreCommonModelRequest"; diff --git a/src/api/resources/hris/resources/employees/types/EmployeesListRequestExpand.ts b/src/api/resources/hris/resources/employees/types/EmployeesListRequestExpand.ts deleted file mode 100644 index 1452f74cf..000000000 --- a/src/api/resources/hris/resources/employees/types/EmployeesListRequestExpand.ts +++ /dev/null @@ -1,278 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const EmployeesListRequestExpand = { - Company: "company", - CompanyPayGroup: "company,pay_group", - Employments: "employments", - EmploymentsCompany: "employments,company", - EmploymentsCompanyPayGroup: "employments,company,pay_group", - EmploymentsGroups: "employments,groups", - EmploymentsGroupsCompany: "employments,groups,company", - EmploymentsGroupsCompanyPayGroup: "employments,groups,company,pay_group", - EmploymentsGroupsHomeLocation: "employments,groups,home_location", - EmploymentsGroupsHomeLocationCompany: "employments,groups,home_location,company", - EmploymentsGroupsHomeLocationCompanyPayGroup: "employments,groups,home_location,company,pay_group", - EmploymentsGroupsHomeLocationManager: "employments,groups,home_location,manager", - EmploymentsGroupsHomeLocationManagerCompany: "employments,groups,home_location,manager,company", - EmploymentsGroupsHomeLocationManagerCompanyPayGroup: "employments,groups,home_location,manager,company,pay_group", - EmploymentsGroupsHomeLocationManagerPayGroup: "employments,groups,home_location,manager,pay_group", - EmploymentsGroupsHomeLocationManagerTeam: "employments,groups,home_location,manager,team", - EmploymentsGroupsHomeLocationManagerTeamCompany: "employments,groups,home_location,manager,team,company", - EmploymentsGroupsHomeLocationManagerTeamCompanyPayGroup: - "employments,groups,home_location,manager,team,company,pay_group", - EmploymentsGroupsHomeLocationManagerTeamPayGroup: "employments,groups,home_location,manager,team,pay_group", - EmploymentsGroupsHomeLocationPayGroup: "employments,groups,home_location,pay_group", - EmploymentsGroupsHomeLocationTeam: "employments,groups,home_location,team", - EmploymentsGroupsHomeLocationTeamCompany: "employments,groups,home_location,team,company", - EmploymentsGroupsHomeLocationTeamCompanyPayGroup: "employments,groups,home_location,team,company,pay_group", - EmploymentsGroupsHomeLocationTeamPayGroup: "employments,groups,home_location,team,pay_group", - EmploymentsGroupsHomeLocationWorkLocation: "employments,groups,home_location,work_location", - EmploymentsGroupsHomeLocationWorkLocationCompany: "employments,groups,home_location,work_location,company", - EmploymentsGroupsHomeLocationWorkLocationCompanyPayGroup: - "employments,groups,home_location,work_location,company,pay_group", - EmploymentsGroupsHomeLocationWorkLocationManager: "employments,groups,home_location,work_location,manager", - EmploymentsGroupsHomeLocationWorkLocationManagerCompany: - "employments,groups,home_location,work_location,manager,company", - EmploymentsGroupsHomeLocationWorkLocationManagerCompanyPayGroup: - "employments,groups,home_location,work_location,manager,company,pay_group", - EmploymentsGroupsHomeLocationWorkLocationManagerPayGroup: - "employments,groups,home_location,work_location,manager,pay_group", - EmploymentsGroupsHomeLocationWorkLocationManagerTeam: "employments,groups,home_location,work_location,manager,team", - EmploymentsGroupsHomeLocationWorkLocationManagerTeamCompany: - "employments,groups,home_location,work_location,manager,team,company", - EmploymentsGroupsHomeLocationWorkLocationManagerTeamCompanyPayGroup: - "employments,groups,home_location,work_location,manager,team,company,pay_group", - EmploymentsGroupsHomeLocationWorkLocationManagerTeamPayGroup: - "employments,groups,home_location,work_location,manager,team,pay_group", - EmploymentsGroupsHomeLocationWorkLocationPayGroup: "employments,groups,home_location,work_location,pay_group", - EmploymentsGroupsHomeLocationWorkLocationTeam: "employments,groups,home_location,work_location,team", - EmploymentsGroupsHomeLocationWorkLocationTeamCompany: "employments,groups,home_location,work_location,team,company", - EmploymentsGroupsHomeLocationWorkLocationTeamCompanyPayGroup: - "employments,groups,home_location,work_location,team,company,pay_group", - EmploymentsGroupsHomeLocationWorkLocationTeamPayGroup: - "employments,groups,home_location,work_location,team,pay_group", - EmploymentsGroupsManager: "employments,groups,manager", - EmploymentsGroupsManagerCompany: "employments,groups,manager,company", - EmploymentsGroupsManagerCompanyPayGroup: "employments,groups,manager,company,pay_group", - EmploymentsGroupsManagerPayGroup: "employments,groups,manager,pay_group", - EmploymentsGroupsManagerTeam: "employments,groups,manager,team", - EmploymentsGroupsManagerTeamCompany: "employments,groups,manager,team,company", - EmploymentsGroupsManagerTeamCompanyPayGroup: "employments,groups,manager,team,company,pay_group", - EmploymentsGroupsManagerTeamPayGroup: "employments,groups,manager,team,pay_group", - EmploymentsGroupsPayGroup: "employments,groups,pay_group", - EmploymentsGroupsTeam: "employments,groups,team", - EmploymentsGroupsTeamCompany: "employments,groups,team,company", - EmploymentsGroupsTeamCompanyPayGroup: "employments,groups,team,company,pay_group", - EmploymentsGroupsTeamPayGroup: "employments,groups,team,pay_group", - EmploymentsGroupsWorkLocation: "employments,groups,work_location", - EmploymentsGroupsWorkLocationCompany: "employments,groups,work_location,company", - EmploymentsGroupsWorkLocationCompanyPayGroup: "employments,groups,work_location,company,pay_group", - EmploymentsGroupsWorkLocationManager: "employments,groups,work_location,manager", - EmploymentsGroupsWorkLocationManagerCompany: "employments,groups,work_location,manager,company", - EmploymentsGroupsWorkLocationManagerCompanyPayGroup: "employments,groups,work_location,manager,company,pay_group", - EmploymentsGroupsWorkLocationManagerPayGroup: "employments,groups,work_location,manager,pay_group", - EmploymentsGroupsWorkLocationManagerTeam: "employments,groups,work_location,manager,team", - EmploymentsGroupsWorkLocationManagerTeamCompany: "employments,groups,work_location,manager,team,company", - EmploymentsGroupsWorkLocationManagerTeamCompanyPayGroup: - "employments,groups,work_location,manager,team,company,pay_group", - EmploymentsGroupsWorkLocationManagerTeamPayGroup: "employments,groups,work_location,manager,team,pay_group", - EmploymentsGroupsWorkLocationPayGroup: "employments,groups,work_location,pay_group", - EmploymentsGroupsWorkLocationTeam: "employments,groups,work_location,team", - EmploymentsGroupsWorkLocationTeamCompany: "employments,groups,work_location,team,company", - EmploymentsGroupsWorkLocationTeamCompanyPayGroup: "employments,groups,work_location,team,company,pay_group", - EmploymentsGroupsWorkLocationTeamPayGroup: "employments,groups,work_location,team,pay_group", - EmploymentsHomeLocation: "employments,home_location", - EmploymentsHomeLocationCompany: "employments,home_location,company", - EmploymentsHomeLocationCompanyPayGroup: "employments,home_location,company,pay_group", - EmploymentsHomeLocationManager: "employments,home_location,manager", - EmploymentsHomeLocationManagerCompany: "employments,home_location,manager,company", - EmploymentsHomeLocationManagerCompanyPayGroup: "employments,home_location,manager,company,pay_group", - EmploymentsHomeLocationManagerPayGroup: "employments,home_location,manager,pay_group", - EmploymentsHomeLocationManagerTeam: "employments,home_location,manager,team", - EmploymentsHomeLocationManagerTeamCompany: "employments,home_location,manager,team,company", - EmploymentsHomeLocationManagerTeamCompanyPayGroup: "employments,home_location,manager,team,company,pay_group", - EmploymentsHomeLocationManagerTeamPayGroup: "employments,home_location,manager,team,pay_group", - EmploymentsHomeLocationPayGroup: "employments,home_location,pay_group", - EmploymentsHomeLocationTeam: "employments,home_location,team", - EmploymentsHomeLocationTeamCompany: "employments,home_location,team,company", - EmploymentsHomeLocationTeamCompanyPayGroup: "employments,home_location,team,company,pay_group", - EmploymentsHomeLocationTeamPayGroup: "employments,home_location,team,pay_group", - EmploymentsHomeLocationWorkLocation: "employments,home_location,work_location", - EmploymentsHomeLocationWorkLocationCompany: "employments,home_location,work_location,company", - EmploymentsHomeLocationWorkLocationCompanyPayGroup: "employments,home_location,work_location,company,pay_group", - EmploymentsHomeLocationWorkLocationManager: "employments,home_location,work_location,manager", - EmploymentsHomeLocationWorkLocationManagerCompany: "employments,home_location,work_location,manager,company", - EmploymentsHomeLocationWorkLocationManagerCompanyPayGroup: - "employments,home_location,work_location,manager,company,pay_group", - EmploymentsHomeLocationWorkLocationManagerPayGroup: "employments,home_location,work_location,manager,pay_group", - EmploymentsHomeLocationWorkLocationManagerTeam: "employments,home_location,work_location,manager,team", - EmploymentsHomeLocationWorkLocationManagerTeamCompany: - "employments,home_location,work_location,manager,team,company", - EmploymentsHomeLocationWorkLocationManagerTeamCompanyPayGroup: - "employments,home_location,work_location,manager,team,company,pay_group", - EmploymentsHomeLocationWorkLocationManagerTeamPayGroup: - "employments,home_location,work_location,manager,team,pay_group", - EmploymentsHomeLocationWorkLocationPayGroup: "employments,home_location,work_location,pay_group", - EmploymentsHomeLocationWorkLocationTeam: "employments,home_location,work_location,team", - EmploymentsHomeLocationWorkLocationTeamCompany: "employments,home_location,work_location,team,company", - EmploymentsHomeLocationWorkLocationTeamCompanyPayGroup: - "employments,home_location,work_location,team,company,pay_group", - EmploymentsHomeLocationWorkLocationTeamPayGroup: "employments,home_location,work_location,team,pay_group", - EmploymentsManager: "employments,manager", - EmploymentsManagerCompany: "employments,manager,company", - EmploymentsManagerCompanyPayGroup: "employments,manager,company,pay_group", - EmploymentsManagerPayGroup: "employments,manager,pay_group", - EmploymentsManagerTeam: "employments,manager,team", - EmploymentsManagerTeamCompany: "employments,manager,team,company", - EmploymentsManagerTeamCompanyPayGroup: "employments,manager,team,company,pay_group", - EmploymentsManagerTeamPayGroup: "employments,manager,team,pay_group", - EmploymentsPayGroup: "employments,pay_group", - EmploymentsTeam: "employments,team", - EmploymentsTeamCompany: "employments,team,company", - EmploymentsTeamCompanyPayGroup: "employments,team,company,pay_group", - EmploymentsTeamPayGroup: "employments,team,pay_group", - EmploymentsWorkLocation: "employments,work_location", - EmploymentsWorkLocationCompany: "employments,work_location,company", - EmploymentsWorkLocationCompanyPayGroup: "employments,work_location,company,pay_group", - EmploymentsWorkLocationManager: "employments,work_location,manager", - EmploymentsWorkLocationManagerCompany: "employments,work_location,manager,company", - EmploymentsWorkLocationManagerCompanyPayGroup: "employments,work_location,manager,company,pay_group", - EmploymentsWorkLocationManagerPayGroup: "employments,work_location,manager,pay_group", - EmploymentsWorkLocationManagerTeam: "employments,work_location,manager,team", - EmploymentsWorkLocationManagerTeamCompany: "employments,work_location,manager,team,company", - EmploymentsWorkLocationManagerTeamCompanyPayGroup: "employments,work_location,manager,team,company,pay_group", - EmploymentsWorkLocationManagerTeamPayGroup: "employments,work_location,manager,team,pay_group", - EmploymentsWorkLocationPayGroup: "employments,work_location,pay_group", - EmploymentsWorkLocationTeam: "employments,work_location,team", - EmploymentsWorkLocationTeamCompany: "employments,work_location,team,company", - EmploymentsWorkLocationTeamCompanyPayGroup: "employments,work_location,team,company,pay_group", - EmploymentsWorkLocationTeamPayGroup: "employments,work_location,team,pay_group", - Groups: "groups", - GroupsCompany: "groups,company", - GroupsCompanyPayGroup: "groups,company,pay_group", - GroupsHomeLocation: "groups,home_location", - GroupsHomeLocationCompany: "groups,home_location,company", - GroupsHomeLocationCompanyPayGroup: "groups,home_location,company,pay_group", - GroupsHomeLocationManager: "groups,home_location,manager", - GroupsHomeLocationManagerCompany: "groups,home_location,manager,company", - GroupsHomeLocationManagerCompanyPayGroup: "groups,home_location,manager,company,pay_group", - GroupsHomeLocationManagerPayGroup: "groups,home_location,manager,pay_group", - GroupsHomeLocationManagerTeam: "groups,home_location,manager,team", - GroupsHomeLocationManagerTeamCompany: "groups,home_location,manager,team,company", - GroupsHomeLocationManagerTeamCompanyPayGroup: "groups,home_location,manager,team,company,pay_group", - GroupsHomeLocationManagerTeamPayGroup: "groups,home_location,manager,team,pay_group", - GroupsHomeLocationPayGroup: "groups,home_location,pay_group", - GroupsHomeLocationTeam: "groups,home_location,team", - GroupsHomeLocationTeamCompany: "groups,home_location,team,company", - GroupsHomeLocationTeamCompanyPayGroup: "groups,home_location,team,company,pay_group", - GroupsHomeLocationTeamPayGroup: "groups,home_location,team,pay_group", - GroupsHomeLocationWorkLocation: "groups,home_location,work_location", - GroupsHomeLocationWorkLocationCompany: "groups,home_location,work_location,company", - GroupsHomeLocationWorkLocationCompanyPayGroup: "groups,home_location,work_location,company,pay_group", - GroupsHomeLocationWorkLocationManager: "groups,home_location,work_location,manager", - GroupsHomeLocationWorkLocationManagerCompany: "groups,home_location,work_location,manager,company", - GroupsHomeLocationWorkLocationManagerCompanyPayGroup: - "groups,home_location,work_location,manager,company,pay_group", - GroupsHomeLocationWorkLocationManagerPayGroup: "groups,home_location,work_location,manager,pay_group", - GroupsHomeLocationWorkLocationManagerTeam: "groups,home_location,work_location,manager,team", - GroupsHomeLocationWorkLocationManagerTeamCompany: "groups,home_location,work_location,manager,team,company", - GroupsHomeLocationWorkLocationManagerTeamCompanyPayGroup: - "groups,home_location,work_location,manager,team,company,pay_group", - GroupsHomeLocationWorkLocationManagerTeamPayGroup: "groups,home_location,work_location,manager,team,pay_group", - GroupsHomeLocationWorkLocationPayGroup: "groups,home_location,work_location,pay_group", - GroupsHomeLocationWorkLocationTeam: "groups,home_location,work_location,team", - GroupsHomeLocationWorkLocationTeamCompany: "groups,home_location,work_location,team,company", - GroupsHomeLocationWorkLocationTeamCompanyPayGroup: "groups,home_location,work_location,team,company,pay_group", - GroupsHomeLocationWorkLocationTeamPayGroup: "groups,home_location,work_location,team,pay_group", - GroupsManager: "groups,manager", - GroupsManagerCompany: "groups,manager,company", - GroupsManagerCompanyPayGroup: "groups,manager,company,pay_group", - GroupsManagerPayGroup: "groups,manager,pay_group", - GroupsManagerTeam: "groups,manager,team", - GroupsManagerTeamCompany: "groups,manager,team,company", - GroupsManagerTeamCompanyPayGroup: "groups,manager,team,company,pay_group", - GroupsManagerTeamPayGroup: "groups,manager,team,pay_group", - GroupsPayGroup: "groups,pay_group", - GroupsTeam: "groups,team", - GroupsTeamCompany: "groups,team,company", - GroupsTeamCompanyPayGroup: "groups,team,company,pay_group", - GroupsTeamPayGroup: "groups,team,pay_group", - GroupsWorkLocation: "groups,work_location", - GroupsWorkLocationCompany: "groups,work_location,company", - GroupsWorkLocationCompanyPayGroup: "groups,work_location,company,pay_group", - GroupsWorkLocationManager: "groups,work_location,manager", - GroupsWorkLocationManagerCompany: "groups,work_location,manager,company", - GroupsWorkLocationManagerCompanyPayGroup: "groups,work_location,manager,company,pay_group", - GroupsWorkLocationManagerPayGroup: "groups,work_location,manager,pay_group", - GroupsWorkLocationManagerTeam: "groups,work_location,manager,team", - GroupsWorkLocationManagerTeamCompany: "groups,work_location,manager,team,company", - GroupsWorkLocationManagerTeamCompanyPayGroup: "groups,work_location,manager,team,company,pay_group", - GroupsWorkLocationManagerTeamPayGroup: "groups,work_location,manager,team,pay_group", - GroupsWorkLocationPayGroup: "groups,work_location,pay_group", - GroupsWorkLocationTeam: "groups,work_location,team", - GroupsWorkLocationTeamCompany: "groups,work_location,team,company", - GroupsWorkLocationTeamCompanyPayGroup: "groups,work_location,team,company,pay_group", - GroupsWorkLocationTeamPayGroup: "groups,work_location,team,pay_group", - HomeLocation: "home_location", - HomeLocationCompany: "home_location,company", - HomeLocationCompanyPayGroup: "home_location,company,pay_group", - HomeLocationManager: "home_location,manager", - HomeLocationManagerCompany: "home_location,manager,company", - HomeLocationManagerCompanyPayGroup: "home_location,manager,company,pay_group", - HomeLocationManagerPayGroup: "home_location,manager,pay_group", - HomeLocationManagerTeam: "home_location,manager,team", - HomeLocationManagerTeamCompany: "home_location,manager,team,company", - HomeLocationManagerTeamCompanyPayGroup: "home_location,manager,team,company,pay_group", - HomeLocationManagerTeamPayGroup: "home_location,manager,team,pay_group", - HomeLocationPayGroup: "home_location,pay_group", - HomeLocationTeam: "home_location,team", - HomeLocationTeamCompany: "home_location,team,company", - HomeLocationTeamCompanyPayGroup: "home_location,team,company,pay_group", - HomeLocationTeamPayGroup: "home_location,team,pay_group", - HomeLocationWorkLocation: "home_location,work_location", - HomeLocationWorkLocationCompany: "home_location,work_location,company", - HomeLocationWorkLocationCompanyPayGroup: "home_location,work_location,company,pay_group", - HomeLocationWorkLocationManager: "home_location,work_location,manager", - HomeLocationWorkLocationManagerCompany: "home_location,work_location,manager,company", - HomeLocationWorkLocationManagerCompanyPayGroup: "home_location,work_location,manager,company,pay_group", - HomeLocationWorkLocationManagerPayGroup: "home_location,work_location,manager,pay_group", - HomeLocationWorkLocationManagerTeam: "home_location,work_location,manager,team", - HomeLocationWorkLocationManagerTeamCompany: "home_location,work_location,manager,team,company", - HomeLocationWorkLocationManagerTeamCompanyPayGroup: "home_location,work_location,manager,team,company,pay_group", - HomeLocationWorkLocationManagerTeamPayGroup: "home_location,work_location,manager,team,pay_group", - HomeLocationWorkLocationPayGroup: "home_location,work_location,pay_group", - HomeLocationWorkLocationTeam: "home_location,work_location,team", - HomeLocationWorkLocationTeamCompany: "home_location,work_location,team,company", - HomeLocationWorkLocationTeamCompanyPayGroup: "home_location,work_location,team,company,pay_group", - HomeLocationWorkLocationTeamPayGroup: "home_location,work_location,team,pay_group", - Manager: "manager", - ManagerCompany: "manager,company", - ManagerCompanyPayGroup: "manager,company,pay_group", - ManagerPayGroup: "manager,pay_group", - ManagerTeam: "manager,team", - ManagerTeamCompany: "manager,team,company", - ManagerTeamCompanyPayGroup: "manager,team,company,pay_group", - ManagerTeamPayGroup: "manager,team,pay_group", - PayGroup: "pay_group", - Team: "team", - TeamCompany: "team,company", - TeamCompanyPayGroup: "team,company,pay_group", - TeamPayGroup: "team,pay_group", - WorkLocation: "work_location", - WorkLocationCompany: "work_location,company", - WorkLocationCompanyPayGroup: "work_location,company,pay_group", - WorkLocationManager: "work_location,manager", - WorkLocationManagerCompany: "work_location,manager,company", - WorkLocationManagerCompanyPayGroup: "work_location,manager,company,pay_group", - WorkLocationManagerPayGroup: "work_location,manager,pay_group", - WorkLocationManagerTeam: "work_location,manager,team", - WorkLocationManagerTeamCompany: "work_location,manager,team,company", - WorkLocationManagerTeamCompanyPayGroup: "work_location,manager,team,company,pay_group", - WorkLocationManagerTeamPayGroup: "work_location,manager,team,pay_group", - WorkLocationPayGroup: "work_location,pay_group", - WorkLocationTeam: "work_location,team", - WorkLocationTeamCompany: "work_location,team,company", - WorkLocationTeamCompanyPayGroup: "work_location,team,company,pay_group", - WorkLocationTeamPayGroup: "work_location,team,pay_group", -} as const; -export type EmployeesListRequestExpand = (typeof EmployeesListRequestExpand)[keyof typeof EmployeesListRequestExpand]; diff --git a/src/api/resources/hris/resources/employees/types/EmployeesListRequestExpandItem.ts b/src/api/resources/hris/resources/employees/types/EmployeesListRequestExpandItem.ts new file mode 100644 index 000000000..b70177e5f --- /dev/null +++ b/src/api/resources/hris/resources/employees/types/EmployeesListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +export const EmployeesListRequestExpandItem = { + Company: "company", + Employments: "employments", + Groups: "groups", + HomeLocation: "home_location", + Manager: "manager", + PayGroup: "pay_group", + Team: "team", + WorkLocation: "work_location", +} as const; +export type EmployeesListRequestExpandItem = + (typeof EmployeesListRequestExpandItem)[keyof typeof EmployeesListRequestExpandItem]; diff --git a/src/api/resources/hris/resources/employees/types/EmployeesRetrieveRequestExpand.ts b/src/api/resources/hris/resources/employees/types/EmployeesRetrieveRequestExpand.ts deleted file mode 100644 index 6ab66b7b1..000000000 --- a/src/api/resources/hris/resources/employees/types/EmployeesRetrieveRequestExpand.ts +++ /dev/null @@ -1,279 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const EmployeesRetrieveRequestExpand = { - Company: "company", - CompanyPayGroup: "company,pay_group", - Employments: "employments", - EmploymentsCompany: "employments,company", - EmploymentsCompanyPayGroup: "employments,company,pay_group", - EmploymentsGroups: "employments,groups", - EmploymentsGroupsCompany: "employments,groups,company", - EmploymentsGroupsCompanyPayGroup: "employments,groups,company,pay_group", - EmploymentsGroupsHomeLocation: "employments,groups,home_location", - EmploymentsGroupsHomeLocationCompany: "employments,groups,home_location,company", - EmploymentsGroupsHomeLocationCompanyPayGroup: "employments,groups,home_location,company,pay_group", - EmploymentsGroupsHomeLocationManager: "employments,groups,home_location,manager", - EmploymentsGroupsHomeLocationManagerCompany: "employments,groups,home_location,manager,company", - EmploymentsGroupsHomeLocationManagerCompanyPayGroup: "employments,groups,home_location,manager,company,pay_group", - EmploymentsGroupsHomeLocationManagerPayGroup: "employments,groups,home_location,manager,pay_group", - EmploymentsGroupsHomeLocationManagerTeam: "employments,groups,home_location,manager,team", - EmploymentsGroupsHomeLocationManagerTeamCompany: "employments,groups,home_location,manager,team,company", - EmploymentsGroupsHomeLocationManagerTeamCompanyPayGroup: - "employments,groups,home_location,manager,team,company,pay_group", - EmploymentsGroupsHomeLocationManagerTeamPayGroup: "employments,groups,home_location,manager,team,pay_group", - EmploymentsGroupsHomeLocationPayGroup: "employments,groups,home_location,pay_group", - EmploymentsGroupsHomeLocationTeam: "employments,groups,home_location,team", - EmploymentsGroupsHomeLocationTeamCompany: "employments,groups,home_location,team,company", - EmploymentsGroupsHomeLocationTeamCompanyPayGroup: "employments,groups,home_location,team,company,pay_group", - EmploymentsGroupsHomeLocationTeamPayGroup: "employments,groups,home_location,team,pay_group", - EmploymentsGroupsHomeLocationWorkLocation: "employments,groups,home_location,work_location", - EmploymentsGroupsHomeLocationWorkLocationCompany: "employments,groups,home_location,work_location,company", - EmploymentsGroupsHomeLocationWorkLocationCompanyPayGroup: - "employments,groups,home_location,work_location,company,pay_group", - EmploymentsGroupsHomeLocationWorkLocationManager: "employments,groups,home_location,work_location,manager", - EmploymentsGroupsHomeLocationWorkLocationManagerCompany: - "employments,groups,home_location,work_location,manager,company", - EmploymentsGroupsHomeLocationWorkLocationManagerCompanyPayGroup: - "employments,groups,home_location,work_location,manager,company,pay_group", - EmploymentsGroupsHomeLocationWorkLocationManagerPayGroup: - "employments,groups,home_location,work_location,manager,pay_group", - EmploymentsGroupsHomeLocationWorkLocationManagerTeam: "employments,groups,home_location,work_location,manager,team", - EmploymentsGroupsHomeLocationWorkLocationManagerTeamCompany: - "employments,groups,home_location,work_location,manager,team,company", - EmploymentsGroupsHomeLocationWorkLocationManagerTeamCompanyPayGroup: - "employments,groups,home_location,work_location,manager,team,company,pay_group", - EmploymentsGroupsHomeLocationWorkLocationManagerTeamPayGroup: - "employments,groups,home_location,work_location,manager,team,pay_group", - EmploymentsGroupsHomeLocationWorkLocationPayGroup: "employments,groups,home_location,work_location,pay_group", - EmploymentsGroupsHomeLocationWorkLocationTeam: "employments,groups,home_location,work_location,team", - EmploymentsGroupsHomeLocationWorkLocationTeamCompany: "employments,groups,home_location,work_location,team,company", - EmploymentsGroupsHomeLocationWorkLocationTeamCompanyPayGroup: - "employments,groups,home_location,work_location,team,company,pay_group", - EmploymentsGroupsHomeLocationWorkLocationTeamPayGroup: - "employments,groups,home_location,work_location,team,pay_group", - EmploymentsGroupsManager: "employments,groups,manager", - EmploymentsGroupsManagerCompany: "employments,groups,manager,company", - EmploymentsGroupsManagerCompanyPayGroup: "employments,groups,manager,company,pay_group", - EmploymentsGroupsManagerPayGroup: "employments,groups,manager,pay_group", - EmploymentsGroupsManagerTeam: "employments,groups,manager,team", - EmploymentsGroupsManagerTeamCompany: "employments,groups,manager,team,company", - EmploymentsGroupsManagerTeamCompanyPayGroup: "employments,groups,manager,team,company,pay_group", - EmploymentsGroupsManagerTeamPayGroup: "employments,groups,manager,team,pay_group", - EmploymentsGroupsPayGroup: "employments,groups,pay_group", - EmploymentsGroupsTeam: "employments,groups,team", - EmploymentsGroupsTeamCompany: "employments,groups,team,company", - EmploymentsGroupsTeamCompanyPayGroup: "employments,groups,team,company,pay_group", - EmploymentsGroupsTeamPayGroup: "employments,groups,team,pay_group", - EmploymentsGroupsWorkLocation: "employments,groups,work_location", - EmploymentsGroupsWorkLocationCompany: "employments,groups,work_location,company", - EmploymentsGroupsWorkLocationCompanyPayGroup: "employments,groups,work_location,company,pay_group", - EmploymentsGroupsWorkLocationManager: "employments,groups,work_location,manager", - EmploymentsGroupsWorkLocationManagerCompany: "employments,groups,work_location,manager,company", - EmploymentsGroupsWorkLocationManagerCompanyPayGroup: "employments,groups,work_location,manager,company,pay_group", - EmploymentsGroupsWorkLocationManagerPayGroup: "employments,groups,work_location,manager,pay_group", - EmploymentsGroupsWorkLocationManagerTeam: "employments,groups,work_location,manager,team", - EmploymentsGroupsWorkLocationManagerTeamCompany: "employments,groups,work_location,manager,team,company", - EmploymentsGroupsWorkLocationManagerTeamCompanyPayGroup: - "employments,groups,work_location,manager,team,company,pay_group", - EmploymentsGroupsWorkLocationManagerTeamPayGroup: "employments,groups,work_location,manager,team,pay_group", - EmploymentsGroupsWorkLocationPayGroup: "employments,groups,work_location,pay_group", - EmploymentsGroupsWorkLocationTeam: "employments,groups,work_location,team", - EmploymentsGroupsWorkLocationTeamCompany: "employments,groups,work_location,team,company", - EmploymentsGroupsWorkLocationTeamCompanyPayGroup: "employments,groups,work_location,team,company,pay_group", - EmploymentsGroupsWorkLocationTeamPayGroup: "employments,groups,work_location,team,pay_group", - EmploymentsHomeLocation: "employments,home_location", - EmploymentsHomeLocationCompany: "employments,home_location,company", - EmploymentsHomeLocationCompanyPayGroup: "employments,home_location,company,pay_group", - EmploymentsHomeLocationManager: "employments,home_location,manager", - EmploymentsHomeLocationManagerCompany: "employments,home_location,manager,company", - EmploymentsHomeLocationManagerCompanyPayGroup: "employments,home_location,manager,company,pay_group", - EmploymentsHomeLocationManagerPayGroup: "employments,home_location,manager,pay_group", - EmploymentsHomeLocationManagerTeam: "employments,home_location,manager,team", - EmploymentsHomeLocationManagerTeamCompany: "employments,home_location,manager,team,company", - EmploymentsHomeLocationManagerTeamCompanyPayGroup: "employments,home_location,manager,team,company,pay_group", - EmploymentsHomeLocationManagerTeamPayGroup: "employments,home_location,manager,team,pay_group", - EmploymentsHomeLocationPayGroup: "employments,home_location,pay_group", - EmploymentsHomeLocationTeam: "employments,home_location,team", - EmploymentsHomeLocationTeamCompany: "employments,home_location,team,company", - EmploymentsHomeLocationTeamCompanyPayGroup: "employments,home_location,team,company,pay_group", - EmploymentsHomeLocationTeamPayGroup: "employments,home_location,team,pay_group", - EmploymentsHomeLocationWorkLocation: "employments,home_location,work_location", - EmploymentsHomeLocationWorkLocationCompany: "employments,home_location,work_location,company", - EmploymentsHomeLocationWorkLocationCompanyPayGroup: "employments,home_location,work_location,company,pay_group", - EmploymentsHomeLocationWorkLocationManager: "employments,home_location,work_location,manager", - EmploymentsHomeLocationWorkLocationManagerCompany: "employments,home_location,work_location,manager,company", - EmploymentsHomeLocationWorkLocationManagerCompanyPayGroup: - "employments,home_location,work_location,manager,company,pay_group", - EmploymentsHomeLocationWorkLocationManagerPayGroup: "employments,home_location,work_location,manager,pay_group", - EmploymentsHomeLocationWorkLocationManagerTeam: "employments,home_location,work_location,manager,team", - EmploymentsHomeLocationWorkLocationManagerTeamCompany: - "employments,home_location,work_location,manager,team,company", - EmploymentsHomeLocationWorkLocationManagerTeamCompanyPayGroup: - "employments,home_location,work_location,manager,team,company,pay_group", - EmploymentsHomeLocationWorkLocationManagerTeamPayGroup: - "employments,home_location,work_location,manager,team,pay_group", - EmploymentsHomeLocationWorkLocationPayGroup: "employments,home_location,work_location,pay_group", - EmploymentsHomeLocationWorkLocationTeam: "employments,home_location,work_location,team", - EmploymentsHomeLocationWorkLocationTeamCompany: "employments,home_location,work_location,team,company", - EmploymentsHomeLocationWorkLocationTeamCompanyPayGroup: - "employments,home_location,work_location,team,company,pay_group", - EmploymentsHomeLocationWorkLocationTeamPayGroup: "employments,home_location,work_location,team,pay_group", - EmploymentsManager: "employments,manager", - EmploymentsManagerCompany: "employments,manager,company", - EmploymentsManagerCompanyPayGroup: "employments,manager,company,pay_group", - EmploymentsManagerPayGroup: "employments,manager,pay_group", - EmploymentsManagerTeam: "employments,manager,team", - EmploymentsManagerTeamCompany: "employments,manager,team,company", - EmploymentsManagerTeamCompanyPayGroup: "employments,manager,team,company,pay_group", - EmploymentsManagerTeamPayGroup: "employments,manager,team,pay_group", - EmploymentsPayGroup: "employments,pay_group", - EmploymentsTeam: "employments,team", - EmploymentsTeamCompany: "employments,team,company", - EmploymentsTeamCompanyPayGroup: "employments,team,company,pay_group", - EmploymentsTeamPayGroup: "employments,team,pay_group", - EmploymentsWorkLocation: "employments,work_location", - EmploymentsWorkLocationCompany: "employments,work_location,company", - EmploymentsWorkLocationCompanyPayGroup: "employments,work_location,company,pay_group", - EmploymentsWorkLocationManager: "employments,work_location,manager", - EmploymentsWorkLocationManagerCompany: "employments,work_location,manager,company", - EmploymentsWorkLocationManagerCompanyPayGroup: "employments,work_location,manager,company,pay_group", - EmploymentsWorkLocationManagerPayGroup: "employments,work_location,manager,pay_group", - EmploymentsWorkLocationManagerTeam: "employments,work_location,manager,team", - EmploymentsWorkLocationManagerTeamCompany: "employments,work_location,manager,team,company", - EmploymentsWorkLocationManagerTeamCompanyPayGroup: "employments,work_location,manager,team,company,pay_group", - EmploymentsWorkLocationManagerTeamPayGroup: "employments,work_location,manager,team,pay_group", - EmploymentsWorkLocationPayGroup: "employments,work_location,pay_group", - EmploymentsWorkLocationTeam: "employments,work_location,team", - EmploymentsWorkLocationTeamCompany: "employments,work_location,team,company", - EmploymentsWorkLocationTeamCompanyPayGroup: "employments,work_location,team,company,pay_group", - EmploymentsWorkLocationTeamPayGroup: "employments,work_location,team,pay_group", - Groups: "groups", - GroupsCompany: "groups,company", - GroupsCompanyPayGroup: "groups,company,pay_group", - GroupsHomeLocation: "groups,home_location", - GroupsHomeLocationCompany: "groups,home_location,company", - GroupsHomeLocationCompanyPayGroup: "groups,home_location,company,pay_group", - GroupsHomeLocationManager: "groups,home_location,manager", - GroupsHomeLocationManagerCompany: "groups,home_location,manager,company", - GroupsHomeLocationManagerCompanyPayGroup: "groups,home_location,manager,company,pay_group", - GroupsHomeLocationManagerPayGroup: "groups,home_location,manager,pay_group", - GroupsHomeLocationManagerTeam: "groups,home_location,manager,team", - GroupsHomeLocationManagerTeamCompany: "groups,home_location,manager,team,company", - GroupsHomeLocationManagerTeamCompanyPayGroup: "groups,home_location,manager,team,company,pay_group", - GroupsHomeLocationManagerTeamPayGroup: "groups,home_location,manager,team,pay_group", - GroupsHomeLocationPayGroup: "groups,home_location,pay_group", - GroupsHomeLocationTeam: "groups,home_location,team", - GroupsHomeLocationTeamCompany: "groups,home_location,team,company", - GroupsHomeLocationTeamCompanyPayGroup: "groups,home_location,team,company,pay_group", - GroupsHomeLocationTeamPayGroup: "groups,home_location,team,pay_group", - GroupsHomeLocationWorkLocation: "groups,home_location,work_location", - GroupsHomeLocationWorkLocationCompany: "groups,home_location,work_location,company", - GroupsHomeLocationWorkLocationCompanyPayGroup: "groups,home_location,work_location,company,pay_group", - GroupsHomeLocationWorkLocationManager: "groups,home_location,work_location,manager", - GroupsHomeLocationWorkLocationManagerCompany: "groups,home_location,work_location,manager,company", - GroupsHomeLocationWorkLocationManagerCompanyPayGroup: - "groups,home_location,work_location,manager,company,pay_group", - GroupsHomeLocationWorkLocationManagerPayGroup: "groups,home_location,work_location,manager,pay_group", - GroupsHomeLocationWorkLocationManagerTeam: "groups,home_location,work_location,manager,team", - GroupsHomeLocationWorkLocationManagerTeamCompany: "groups,home_location,work_location,manager,team,company", - GroupsHomeLocationWorkLocationManagerTeamCompanyPayGroup: - "groups,home_location,work_location,manager,team,company,pay_group", - GroupsHomeLocationWorkLocationManagerTeamPayGroup: "groups,home_location,work_location,manager,team,pay_group", - GroupsHomeLocationWorkLocationPayGroup: "groups,home_location,work_location,pay_group", - GroupsHomeLocationWorkLocationTeam: "groups,home_location,work_location,team", - GroupsHomeLocationWorkLocationTeamCompany: "groups,home_location,work_location,team,company", - GroupsHomeLocationWorkLocationTeamCompanyPayGroup: "groups,home_location,work_location,team,company,pay_group", - GroupsHomeLocationWorkLocationTeamPayGroup: "groups,home_location,work_location,team,pay_group", - GroupsManager: "groups,manager", - GroupsManagerCompany: "groups,manager,company", - GroupsManagerCompanyPayGroup: "groups,manager,company,pay_group", - GroupsManagerPayGroup: "groups,manager,pay_group", - GroupsManagerTeam: "groups,manager,team", - GroupsManagerTeamCompany: "groups,manager,team,company", - GroupsManagerTeamCompanyPayGroup: "groups,manager,team,company,pay_group", - GroupsManagerTeamPayGroup: "groups,manager,team,pay_group", - GroupsPayGroup: "groups,pay_group", - GroupsTeam: "groups,team", - GroupsTeamCompany: "groups,team,company", - GroupsTeamCompanyPayGroup: "groups,team,company,pay_group", - GroupsTeamPayGroup: "groups,team,pay_group", - GroupsWorkLocation: "groups,work_location", - GroupsWorkLocationCompany: "groups,work_location,company", - GroupsWorkLocationCompanyPayGroup: "groups,work_location,company,pay_group", - GroupsWorkLocationManager: "groups,work_location,manager", - GroupsWorkLocationManagerCompany: "groups,work_location,manager,company", - GroupsWorkLocationManagerCompanyPayGroup: "groups,work_location,manager,company,pay_group", - GroupsWorkLocationManagerPayGroup: "groups,work_location,manager,pay_group", - GroupsWorkLocationManagerTeam: "groups,work_location,manager,team", - GroupsWorkLocationManagerTeamCompany: "groups,work_location,manager,team,company", - GroupsWorkLocationManagerTeamCompanyPayGroup: "groups,work_location,manager,team,company,pay_group", - GroupsWorkLocationManagerTeamPayGroup: "groups,work_location,manager,team,pay_group", - GroupsWorkLocationPayGroup: "groups,work_location,pay_group", - GroupsWorkLocationTeam: "groups,work_location,team", - GroupsWorkLocationTeamCompany: "groups,work_location,team,company", - GroupsWorkLocationTeamCompanyPayGroup: "groups,work_location,team,company,pay_group", - GroupsWorkLocationTeamPayGroup: "groups,work_location,team,pay_group", - HomeLocation: "home_location", - HomeLocationCompany: "home_location,company", - HomeLocationCompanyPayGroup: "home_location,company,pay_group", - HomeLocationManager: "home_location,manager", - HomeLocationManagerCompany: "home_location,manager,company", - HomeLocationManagerCompanyPayGroup: "home_location,manager,company,pay_group", - HomeLocationManagerPayGroup: "home_location,manager,pay_group", - HomeLocationManagerTeam: "home_location,manager,team", - HomeLocationManagerTeamCompany: "home_location,manager,team,company", - HomeLocationManagerTeamCompanyPayGroup: "home_location,manager,team,company,pay_group", - HomeLocationManagerTeamPayGroup: "home_location,manager,team,pay_group", - HomeLocationPayGroup: "home_location,pay_group", - HomeLocationTeam: "home_location,team", - HomeLocationTeamCompany: "home_location,team,company", - HomeLocationTeamCompanyPayGroup: "home_location,team,company,pay_group", - HomeLocationTeamPayGroup: "home_location,team,pay_group", - HomeLocationWorkLocation: "home_location,work_location", - HomeLocationWorkLocationCompany: "home_location,work_location,company", - HomeLocationWorkLocationCompanyPayGroup: "home_location,work_location,company,pay_group", - HomeLocationWorkLocationManager: "home_location,work_location,manager", - HomeLocationWorkLocationManagerCompany: "home_location,work_location,manager,company", - HomeLocationWorkLocationManagerCompanyPayGroup: "home_location,work_location,manager,company,pay_group", - HomeLocationWorkLocationManagerPayGroup: "home_location,work_location,manager,pay_group", - HomeLocationWorkLocationManagerTeam: "home_location,work_location,manager,team", - HomeLocationWorkLocationManagerTeamCompany: "home_location,work_location,manager,team,company", - HomeLocationWorkLocationManagerTeamCompanyPayGroup: "home_location,work_location,manager,team,company,pay_group", - HomeLocationWorkLocationManagerTeamPayGroup: "home_location,work_location,manager,team,pay_group", - HomeLocationWorkLocationPayGroup: "home_location,work_location,pay_group", - HomeLocationWorkLocationTeam: "home_location,work_location,team", - HomeLocationWorkLocationTeamCompany: "home_location,work_location,team,company", - HomeLocationWorkLocationTeamCompanyPayGroup: "home_location,work_location,team,company,pay_group", - HomeLocationWorkLocationTeamPayGroup: "home_location,work_location,team,pay_group", - Manager: "manager", - ManagerCompany: "manager,company", - ManagerCompanyPayGroup: "manager,company,pay_group", - ManagerPayGroup: "manager,pay_group", - ManagerTeam: "manager,team", - ManagerTeamCompany: "manager,team,company", - ManagerTeamCompanyPayGroup: "manager,team,company,pay_group", - ManagerTeamPayGroup: "manager,team,pay_group", - PayGroup: "pay_group", - Team: "team", - TeamCompany: "team,company", - TeamCompanyPayGroup: "team,company,pay_group", - TeamPayGroup: "team,pay_group", - WorkLocation: "work_location", - WorkLocationCompany: "work_location,company", - WorkLocationCompanyPayGroup: "work_location,company,pay_group", - WorkLocationManager: "work_location,manager", - WorkLocationManagerCompany: "work_location,manager,company", - WorkLocationManagerCompanyPayGroup: "work_location,manager,company,pay_group", - WorkLocationManagerPayGroup: "work_location,manager,pay_group", - WorkLocationManagerTeam: "work_location,manager,team", - WorkLocationManagerTeamCompany: "work_location,manager,team,company", - WorkLocationManagerTeamCompanyPayGroup: "work_location,manager,team,company,pay_group", - WorkLocationManagerTeamPayGroup: "work_location,manager,team,pay_group", - WorkLocationPayGroup: "work_location,pay_group", - WorkLocationTeam: "work_location,team", - WorkLocationTeamCompany: "work_location,team,company", - WorkLocationTeamCompanyPayGroup: "work_location,team,company,pay_group", - WorkLocationTeamPayGroup: "work_location,team,pay_group", -} as const; -export type EmployeesRetrieveRequestExpand = - (typeof EmployeesRetrieveRequestExpand)[keyof typeof EmployeesRetrieveRequestExpand]; diff --git a/src/api/resources/hris/resources/employees/types/EmployeesRetrieveRequestExpandItem.ts b/src/api/resources/hris/resources/employees/types/EmployeesRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..3b00dbd85 --- /dev/null +++ b/src/api/resources/hris/resources/employees/types/EmployeesRetrieveRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +export const EmployeesRetrieveRequestExpandItem = { + Company: "company", + Employments: "employments", + Groups: "groups", + HomeLocation: "home_location", + Manager: "manager", + PayGroup: "pay_group", + Team: "team", + WorkLocation: "work_location", +} as const; +export type EmployeesRetrieveRequestExpandItem = + (typeof EmployeesRetrieveRequestExpandItem)[keyof typeof EmployeesRetrieveRequestExpandItem]; diff --git a/src/api/resources/hris/resources/employees/types/IgnoreCommonModelRequestReason.ts b/src/api/resources/hris/resources/employees/types/IgnoreCommonModelRequestReason.ts deleted file mode 100644 index 5dd850bd3..000000000 --- a/src/api/resources/hris/resources/employees/types/IgnoreCommonModelRequestReason.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../index"; - -export type IgnoreCommonModelRequestReason = Merge.hris.ReasonEnum | string; diff --git a/src/api/resources/hris/resources/employees/types/index.ts b/src/api/resources/hris/resources/employees/types/index.ts index 86b6c6805..23a52c088 100644 --- a/src/api/resources/hris/resources/employees/types/index.ts +++ b/src/api/resources/hris/resources/employees/types/index.ts @@ -1,8 +1,7 @@ export * from "./EmployeesListRequestEmploymentStatus"; -export * from "./EmployeesListRequestExpand"; +export * from "./EmployeesListRequestExpandItem"; export * from "./EmployeesListRequestRemoteFields"; export * from "./EmployeesListRequestShowEnumOrigins"; -export * from "./EmployeesRetrieveRequestExpand"; +export * from "./EmployeesRetrieveRequestExpandItem"; export * from "./EmployeesRetrieveRequestRemoteFields"; export * from "./EmployeesRetrieveRequestShowEnumOrigins"; -export * from "./IgnoreCommonModelRequestReason"; diff --git a/src/api/resources/hris/resources/employerBenefits/client/Client.ts b/src/api/resources/hris/resources/employerBenefits/client/Client.ts index a25d5c458..15766714e 100644 --- a/src/api/resources/hris/resources/employerBenefits/client/Client.ts +++ b/src/api/resources/hris/resources/employerBenefits/client/Client.ts @@ -43,86 +43,101 @@ export class EmployerBenefitsClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.hris.EmployerBenefitsListRequest = {}, requestOptions?: EmployerBenefitsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.hris.EmployerBenefitsListRequest = {}, - requestOptions?: EmployerBenefitsClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.hris.EmployerBenefitsListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "hris/v1/employer-benefits", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.hris.PaginatedEmployerBenefitList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/hris/v1/employer-benefits", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "hris/v1/employer-benefits", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.hris.PaginatedEmployerBenefitList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/employer-benefits"); } /** diff --git a/src/api/resources/hris/resources/employments/client/Client.ts b/src/api/resources/hris/resources/employments/client/Client.ts index 18961e7e4..78f1a74a0 100644 --- a/src/api/resources/hris/resources/employments/client/Client.ts +++ b/src/api/resources/hris/resources/employments/client/Client.ts @@ -35,7 +35,6 @@ export class EmploymentsClient { * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * employeeId: "employee_id", - * expand: "employee", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -48,116 +47,131 @@ export class EmploymentsClient { * showEnumOrigins: "employment_type" * }) */ - public list( + public async list( request: Merge.hris.EmploymentsListRequest = {}, requestOptions?: EmploymentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.hris.EmploymentsListRequest = {}, - requestOptions?: EmploymentsClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - employeeId, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - orderBy, - pageSize, - remoteFields, - remoteId, - showEnumOrigins, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - employee_id: employeeId, - expand: - expand != null - ? serializers.hris.EmploymentsListRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - order_by: - orderBy != null - ? serializers.hris.EmploymentsListRequestOrderBy.jsonOrThrow(orderBy, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - page_size: pageSize, - remote_fields: - remoteFields != null - ? serializers.hris.EmploymentsListRequestRemoteFields.jsonOrThrow(remoteFields, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - remote_id: remoteId, - show_enum_origins: - showEnumOrigins != null - ? serializers.hris.EmploymentsListRequestShowEnumOrigins.jsonOrThrow(showEnumOrigins, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.hris.EmploymentsListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + employeeId, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + orderBy, + pageSize, + remoteFields, + remoteId, + showEnumOrigins, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + employee_id: employeeId, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.hris.EmploymentsListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.hris.EmploymentsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + order_by: + orderBy != null + ? serializers.hris.EmploymentsListRequestOrderBy.jsonOrThrow(orderBy, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + page_size: pageSize, + remote_fields: + remoteFields != null + ? serializers.hris.EmploymentsListRequestRemoteFields.jsonOrThrow(remoteFields, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + remote_id: remoteId, + show_enum_origins: + showEnumOrigins != null + ? serializers.hris.EmploymentsListRequestShowEnumOrigins.jsonOrThrow(showEnumOrigins, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "hris/v1/employments", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.hris.PaginatedEmploymentList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/employments"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "hris/v1/employments", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.hris.PaginatedEmploymentList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/employments"); } /** @@ -169,7 +183,6 @@ export class EmploymentsClient { * * @example * await client.hris.employments.retrieve("id", { - * expand: "employee", * includeRemoteData: true, * includeShellData: true, * remoteFields: "employment_type", @@ -191,12 +204,17 @@ export class EmploymentsClient { ): Promise> { const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.hris.EmploymentsRetrieveRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.hris.EmploymentsRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.hris.EmploymentsRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, remote_fields: diff --git a/src/api/resources/hris/resources/employments/client/requests/EmploymentsListRequest.ts b/src/api/resources/hris/resources/employments/client/requests/EmploymentsListRequest.ts index e94ef2352..0be3b18e1 100644 --- a/src/api/resources/hris/resources/employments/client/requests/EmploymentsListRequest.ts +++ b/src/api/resources/hris/resources/employments/client/requests/EmploymentsListRequest.ts @@ -9,7 +9,6 @@ import type * as Merge from "../../../../../../index"; * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * employeeId: "employee_id", - * expand: "employee", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -32,7 +31,7 @@ export interface EmploymentsListRequest { /** If provided, will only return employments for this employee. */ employeeId?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.hris.EmploymentsListRequestExpand; + expand?: Merge.hris.EmploymentsListRequestExpandItem | Merge.hris.EmploymentsListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ diff --git a/src/api/resources/hris/resources/employments/client/requests/EmploymentsRetrieveRequest.ts b/src/api/resources/hris/resources/employments/client/requests/EmploymentsRetrieveRequest.ts index 866db5bbe..21d266c3e 100644 --- a/src/api/resources/hris/resources/employments/client/requests/EmploymentsRetrieveRequest.ts +++ b/src/api/resources/hris/resources/employments/client/requests/EmploymentsRetrieveRequest.ts @@ -5,7 +5,6 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "employee", * includeRemoteData: true, * includeShellData: true, * remoteFields: "employment_type", @@ -14,7 +13,7 @@ import type * as Merge from "../../../../../../index"; */ export interface EmploymentsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.hris.EmploymentsRetrieveRequestExpand; + expand?: Merge.hris.EmploymentsRetrieveRequestExpandItem | Merge.hris.EmploymentsRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/hris/resources/employments/types/EmploymentsListRequestExpand.ts b/src/api/resources/hris/resources/employments/types/EmploymentsListRequestExpand.ts deleted file mode 100644 index c37d90b8e..000000000 --- a/src/api/resources/hris/resources/employments/types/EmploymentsListRequestExpand.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const EmploymentsListRequestExpand = { - Employee: "employee", - EmployeePayGroup: "employee,pay_group", - PayGroup: "pay_group", -} as const; -export type EmploymentsListRequestExpand = - (typeof EmploymentsListRequestExpand)[keyof typeof EmploymentsListRequestExpand]; diff --git a/src/api/resources/hris/resources/employments/types/EmploymentsListRequestExpandItem.ts b/src/api/resources/hris/resources/employments/types/EmploymentsListRequestExpandItem.ts new file mode 100644 index 000000000..979fe5d90 --- /dev/null +++ b/src/api/resources/hris/resources/employments/types/EmploymentsListRequestExpandItem.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export const EmploymentsListRequestExpandItem = { + Employee: "employee", + PayGroup: "pay_group", +} as const; +export type EmploymentsListRequestExpandItem = + (typeof EmploymentsListRequestExpandItem)[keyof typeof EmploymentsListRequestExpandItem]; diff --git a/src/api/resources/hris/resources/employments/types/EmploymentsRetrieveRequestExpand.ts b/src/api/resources/hris/resources/employments/types/EmploymentsRetrieveRequestExpand.ts deleted file mode 100644 index 653f869aa..000000000 --- a/src/api/resources/hris/resources/employments/types/EmploymentsRetrieveRequestExpand.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const EmploymentsRetrieveRequestExpand = { - Employee: "employee", - EmployeePayGroup: "employee,pay_group", - PayGroup: "pay_group", -} as const; -export type EmploymentsRetrieveRequestExpand = - (typeof EmploymentsRetrieveRequestExpand)[keyof typeof EmploymentsRetrieveRequestExpand]; diff --git a/src/api/resources/hris/resources/employments/types/EmploymentsRetrieveRequestExpandItem.ts b/src/api/resources/hris/resources/employments/types/EmploymentsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..36e0c0269 --- /dev/null +++ b/src/api/resources/hris/resources/employments/types/EmploymentsRetrieveRequestExpandItem.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export const EmploymentsRetrieveRequestExpandItem = { + Employee: "employee", + PayGroup: "pay_group", +} as const; +export type EmploymentsRetrieveRequestExpandItem = + (typeof EmploymentsRetrieveRequestExpandItem)[keyof typeof EmploymentsRetrieveRequestExpandItem]; diff --git a/src/api/resources/hris/resources/employments/types/index.ts b/src/api/resources/hris/resources/employments/types/index.ts index 4d767a4f5..b37f6e136 100644 --- a/src/api/resources/hris/resources/employments/types/index.ts +++ b/src/api/resources/hris/resources/employments/types/index.ts @@ -1,7 +1,7 @@ -export * from "./EmploymentsListRequestExpand"; +export * from "./EmploymentsListRequestExpandItem"; export * from "./EmploymentsListRequestOrderBy"; export * from "./EmploymentsListRequestRemoteFields"; export * from "./EmploymentsListRequestShowEnumOrigins"; -export * from "./EmploymentsRetrieveRequestExpand"; +export * from "./EmploymentsRetrieveRequestExpandItem"; export * from "./EmploymentsRetrieveRequestRemoteFields"; export * from "./EmploymentsRetrieveRequestShowEnumOrigins"; diff --git a/src/api/resources/hris/resources/fieldMapping/client/Client.ts b/src/api/resources/hris/resources/fieldMapping/client/Client.ts index 1b688b541..bba0a15ba 100644 --- a/src/api/resources/hris/resources/fieldMapping/client/Client.ts +++ b/src/api/resources/hris/resources/fieldMapping/client/Client.ts @@ -258,7 +258,9 @@ export class FieldMappingClient { * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.hris.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id") + * await client.hris.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { + * remoteDataIterationCount: 1 + * }) */ public fieldMappingsPartialUpdate( field_mapping_id: string, @@ -275,6 +277,10 @@ export class FieldMappingClient { request: Merge.hris.PatchedEditFieldMappingRequest = {}, requestOptions?: FieldMappingClient.RequestOptions, ): Promise> { + const { remoteDataIterationCount, ..._body } = request; + const _queryParams: Record = { + remote_data_iteration_count: remoteDataIterationCount, + }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, @@ -292,9 +298,9 @@ export class FieldMappingClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, requestType: "json", - body: serializers.hris.PatchedEditFieldMappingRequest.jsonOrThrow(request, { + body: serializers.hris.PatchedEditFieldMappingRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip", }), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, 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 5ca4a0560..3c388858f 100644 --- a/src/api/resources/hris/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts +++ b/src/api/resources/hris/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts @@ -2,9 +2,13 @@ /** * @example - * {} + * { + * remoteDataIterationCount: 1 + * } */ export interface PatchedEditFieldMappingRequest { + /** Number of common model instances to iterate through when fetching remote data for field mappings. Defaults to 250 if not provided. */ + remoteDataIterationCount?: number; /** The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. */ remoteFieldTraversalPath?: unknown[]; /** The method of the remote endpoint where the remote field is coming from. */ diff --git a/src/api/resources/hris/resources/groups/client/Client.ts b/src/api/resources/hris/resources/groups/client/Client.ts index 7e0e0d717..67dc36b12 100644 --- a/src/api/resources/hris/resources/groups/client/Client.ts +++ b/src/api/resources/hris/resources/groups/client/Client.ts @@ -48,50 +48,142 @@ export class GroupsClient { * types: "types" * }) */ - public list( + public async list( request: Merge.hris.GroupsListRequest = {}, requestOptions?: GroupsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.hris.GroupsListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + isCommonlyUsedAsTeam, + modifiedAfter, + modifiedBefore, + names, + pageSize, + remoteFields, + remoteId, + showEnumOrigins, + types, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + is_commonly_used_as_team: isCommonlyUsedAsTeam, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + names, + page_size: pageSize, + remote_fields: remoteFields != null ? remoteFields : undefined, + remote_id: remoteId, + show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, + types, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "hris/v1/groups", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.hris.PaginatedGroupList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/groups"); + }, + ); + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, + }); } - private async __list( - request: Merge.hris.GroupsListRequest = {}, + /** + * Returns a `Group` object with the given `id`. + * + * @param {string} id + * @param {Merge.hris.GroupsRetrieveRequest} request + * @param {GroupsClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.hris.groups.retrieve("id", { + * includeRemoteData: true, + * includeShellData: true, + * remoteFields: "type", + * showEnumOrigins: "type" + * }) + */ + public retrieve( + id: string, + request: Merge.hris.GroupsRetrieveRequest = {}, requestOptions?: GroupsClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - includeDeletedData, - includeRemoteData, - includeShellData, - isCommonlyUsedAsTeam, - modifiedAfter, - modifiedBefore, - names, - pageSize, - remoteFields, - remoteId, - showEnumOrigins, - types, - } = request; + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); + } + + private async __retrieve( + id: string, + request: Merge.hris.GroupsRetrieveRequest = {}, + requestOptions?: GroupsClient.RequestOptions, + ): Promise> { + const { includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - include_deleted_data: includeDeletedData, include_remote_data: includeRemoteData, include_shell_data: includeShellData, - is_commonly_used_as_team: isCommonlyUsedAsTeam, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - names, - page_size: pageSize, remote_fields: remoteFields != null ? remoteFields : undefined, - remote_id: remoteId, show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, - types, }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( @@ -105,7 +197,7 @@ export class GroupsClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "hris/v1/groups", + `hris/v1/groups/${core.url.encodePathParam(id)}`, ), method: "GET", headers: _headers, @@ -118,7 +210,7 @@ export class GroupsClient { }); if (_response.ok) { return { - data: serializers.hris.PaginatedGroupList.parseOrThrow(_response.body, { + data: serializers.hris.Group.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -137,43 +229,36 @@ export class GroupsClient { }); } - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/groups"); + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/groups/{id}"); } /** - * Returns a `Group` object with the given `id`. + * Returns a list of distinct group type values from the Groups common model. * - * @param {string} id - * @param {Merge.hris.GroupsRetrieveRequest} request + * @param {Merge.hris.GroupsTypesListRequest} request * @param {GroupsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.hris.groups.retrieve("id", { - * includeRemoteData: true, - * includeShellData: true, - * remoteFields: "type", - * showEnumOrigins: "type" + * await client.hris.groups.typesList({ + * includeDeletedData: true, + * showEnumOrigins: "show_enum_origins" * }) */ - public retrieve( - id: string, - request: Merge.hris.GroupsRetrieveRequest = {}, + public typesList( + request: Merge.hris.GroupsTypesListRequest = {}, requestOptions?: GroupsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__retrieve(id, request, requestOptions)); + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__typesList(request, requestOptions)); } - private async __retrieve( - id: string, - request: Merge.hris.GroupsRetrieveRequest = {}, + private async __typesList( + request: Merge.hris.GroupsTypesListRequest = {}, requestOptions?: GroupsClient.RequestOptions, - ): Promise> { - const { includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; + ): Promise> { + const { includeDeletedData, showEnumOrigins } = request; const _queryParams: Record = { - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - remote_fields: remoteFields != null ? remoteFields : undefined, - show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, + include_deleted_data: includeDeletedData, + show_enum_origins: showEnumOrigins, }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( @@ -187,7 +272,7 @@ export class GroupsClient { (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - `hris/v1/groups/${core.url.encodePathParam(id)}`, + "hris/v1/groups/types", ), method: "GET", headers: _headers, @@ -200,7 +285,7 @@ export class GroupsClient { }); if (_response.ok) { return { - data: serializers.hris.Group.parseOrThrow(_response.body, { + data: serializers.hris.GroupsTypesListResponse.parseOrThrow(_response.body, { unrecognizedObjectKeys: "passthrough", allowUnrecognizedUnionMembers: true, allowUnrecognizedEnumValues: true, @@ -219,6 +304,6 @@ export class GroupsClient { }); } - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/groups/{id}"); + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/groups/types"); } } diff --git a/src/api/resources/hris/resources/groups/client/requests/GroupsTypesListRequest.ts b/src/api/resources/hris/resources/groups/client/requests/GroupsTypesListRequest.ts new file mode 100644 index 000000000..9da21c0c1 --- /dev/null +++ b/src/api/resources/hris/resources/groups/client/requests/GroupsTypesListRequest.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * @example + * { + * includeDeletedData: true, + * showEnumOrigins: "show_enum_origins" + * } + */ +export interface GroupsTypesListRequest { + /** Whether to include data that was marked as deleted by third party webhooks. */ + includeDeletedData?: boolean; + /** A comma separated list of enum field names for which you'd like the original values instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins) */ + showEnumOrigins?: string; +} diff --git a/src/api/resources/hris/resources/groups/client/requests/index.ts b/src/api/resources/hris/resources/groups/client/requests/index.ts index 6ec9cc32a..5cbb7d71f 100644 --- a/src/api/resources/hris/resources/groups/client/requests/index.ts +++ b/src/api/resources/hris/resources/groups/client/requests/index.ts @@ -1,2 +1,3 @@ export type { GroupsListRequest } from "./GroupsListRequest"; export type { GroupsRetrieveRequest } from "./GroupsRetrieveRequest"; +export type { GroupsTypesListRequest } from "./GroupsTypesListRequest"; diff --git a/src/api/resources/hris/resources/groups/index.ts b/src/api/resources/hris/resources/groups/index.ts index 5ec76921e..d2ec2302c 100644 --- a/src/api/resources/hris/resources/groups/index.ts +++ b/src/api/resources/hris/resources/groups/index.ts @@ -1 +1,2 @@ export * from "./client"; +export * from "./types"; diff --git a/src/api/resources/hris/resources/groups/types/GroupsTypesListResponse.ts b/src/api/resources/hris/resources/groups/types/GroupsTypesListResponse.ts new file mode 100644 index 000000000..ad3db3e97 --- /dev/null +++ b/src/api/resources/hris/resources/groups/types/GroupsTypesListResponse.ts @@ -0,0 +1,6 @@ +// This file was auto-generated by Fern from our API Definition. + +export interface GroupsTypesListResponse { + /** List of distinct group types */ + types?: string[]; +} diff --git a/src/api/resources/hris/resources/groups/types/index.ts b/src/api/resources/hris/resources/groups/types/index.ts new file mode 100644 index 000000000..0b6db0278 --- /dev/null +++ b/src/api/resources/hris/resources/groups/types/index.ts @@ -0,0 +1 @@ +export * from "./GroupsTypesListResponse"; diff --git a/src/api/resources/hris/resources/index.ts b/src/api/resources/hris/resources/index.ts index ff854aafa..a8e24392d 100644 --- a/src/api/resources/hris/resources/index.ts +++ b/src/api/resources/hris/resources/index.ts @@ -33,6 +33,7 @@ export * as generateKey from "./generateKey"; export * from "./generateKey/client/requests"; export * as groups from "./groups"; export * from "./groups/client/requests"; +export * from "./groups/types"; export * as issues from "./issues"; export * from "./issues/client/requests"; export * from "./issues/types"; diff --git a/src/api/resources/hris/resources/issues/client/Client.ts b/src/api/resources/hris/resources/issues/client/Client.ts index 1d7a8a2f0..0c36d8931 100644 --- a/src/api/resources/hris/resources/issues/client/Client.ts +++ b/src/api/resources/hris/resources/issues/client/Client.ts @@ -47,97 +47,109 @@ export class IssuesClient { * status: "ONGOING" * }) */ - public list( + public async list( request: Merge.hris.IssuesListRequest = {}, requestOptions?: IssuesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.hris.IssuesListRequest = {}, - requestOptions?: IssuesClient.RequestOptions, - ): Promise> { - const { - accountToken, - cursor, - endDate, - endUserOrganizationName, - firstIncidentTimeAfter, - firstIncidentTimeBefore, - includeMuted, - integrationName, - lastIncidentTimeAfter, - lastIncidentTimeBefore, - linkedAccountId, - pageSize, - startDate, - status, - } = request; - const _queryParams: Record = { - account_token: accountToken, - cursor, - end_date: endDate, - end_user_organization_name: endUserOrganizationName, - first_incident_time_after: firstIncidentTimeAfter?.toISOString(), - first_incident_time_before: firstIncidentTimeBefore?.toISOString(), - include_muted: includeMuted, - integration_name: integrationName, - last_incident_time_after: lastIncidentTimeAfter?.toISOString(), - last_incident_time_before: lastIncidentTimeBefore?.toISOString(), - linked_account_id: linkedAccountId, - page_size: pageSize, - start_date: startDate, - status: - status != null - ? serializers.hris.IssuesListRequestStatus.jsonOrThrow(status, { unrecognizedObjectKeys: "strip" }) - : undefined, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.hris.IssuesListRequest, + ): Promise> => { + const { + accountToken, + cursor, + endDate, + endUserOrganizationName, + firstIncidentTimeAfter, + firstIncidentTimeBefore, + includeMuted, + integrationName, + lastIncidentTimeAfter, + lastIncidentTimeBefore, + linkedAccountId, + pageSize, + startDate, + status, + } = request; + const _queryParams: Record = { + account_token: accountToken, + cursor, + end_date: endDate, + end_user_organization_name: endUserOrganizationName, + first_incident_time_after: firstIncidentTimeAfter?.toISOString(), + first_incident_time_before: firstIncidentTimeBefore?.toISOString(), + include_muted: includeMuted, + integration_name: integrationName, + last_incident_time_after: lastIncidentTimeAfter?.toISOString(), + last_incident_time_before: lastIncidentTimeBefore?.toISOString(), + linked_account_id: linkedAccountId, + page_size: pageSize, + start_date: startDate, + status: + status != null + ? serializers.hris.IssuesListRequestStatus.jsonOrThrow(status, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "hris/v1/issues", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.hris.PaginatedIssueList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/issues"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "hris/v1/issues", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.hris.PaginatedIssueList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/issues"); } /** diff --git a/src/api/resources/hris/resources/linkToken/client/Client.ts b/src/api/resources/hris/resources/linkToken/client/Client.ts index af8f45e7c..a5753bb68 100644 --- a/src/api/resources/hris/resources/linkToken/client/Client.ts +++ b/src/api/resources/hris/resources/linkToken/client/Client.ts @@ -24,7 +24,7 @@ export class LinkTokenClient { } /** - * Creates a link token to be used when linking a new end user. + * Creates a link token to be used when linking a new end user. The link token expires after single use. * * @param {Merge.hris.EndUserDetailsRequest} request * @param {LinkTokenClient.RequestOptions} requestOptions - Request-specific configuration. 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 7ca286e3e..20a7d9e84 100644 --- a/src/api/resources/hris/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ b/src/api/resources/hris/resources/linkToken/client/requests/EndUserDetailsRequest.ts @@ -43,10 +43,4 @@ export interface EndUserDetailsRequest { areSyncsDisabled?: boolean; /** A JSON object containing integration-specific configuration options. */ integrationSpecificConfig?: Record; - /** - * When creating a Link token, you can specifiy the initial screen of Linking Flow for a completed Linked Account. - * - * * `SELECTIVE_SYNC` - SELECTIVE_SYNC - */ - completedAccountInitialScreen?: Merge.hris.EndUserDetailsRequestCompletedAccountInitialScreen; } diff --git a/src/api/resources/hris/resources/linkToken/types/EndUserDetailsRequestCompletedAccountInitialScreen.ts b/src/api/resources/hris/resources/linkToken/types/EndUserDetailsRequestCompletedAccountInitialScreen.ts deleted file mode 100644 index ee4be3374..000000000 --- a/src/api/resources/hris/resources/linkToken/types/EndUserDetailsRequestCompletedAccountInitialScreen.ts +++ /dev/null @@ -1,10 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../index"; - -/** - * When creating a Link token, you can specifiy the initial screen of Linking Flow for a completed Linked Account. - * - * * `SELECTIVE_SYNC` - SELECTIVE_SYNC - */ -export type EndUserDetailsRequestCompletedAccountInitialScreen = Merge.hris.CompletedAccountInitialScreenEnum | string; diff --git a/src/api/resources/hris/resources/linkToken/types/index.ts b/src/api/resources/hris/resources/linkToken/types/index.ts index 7aed25cb1..c90e13c37 100644 --- a/src/api/resources/hris/resources/linkToken/types/index.ts +++ b/src/api/resources/hris/resources/linkToken/types/index.ts @@ -1,2 +1 @@ -export * from "./EndUserDetailsRequestCompletedAccountInitialScreen"; export * from "./EndUserDetailsRequestLanguage"; diff --git a/src/api/resources/hris/resources/linkedAccounts/client/Client.ts b/src/api/resources/hris/resources/linkedAccounts/client/Client.ts index 0aedfaf79..fa5853b34 100644 --- a/src/api/resources/hris/resources/linkedAccounts/client/Client.ts +++ b/src/api/resources/hris/resources/linkedAccounts/client/Client.ts @@ -46,96 +46,111 @@ export class LinkedAccountsClient { * status: "status" * }) */ - public list( + public async list( request: Merge.hris.LinkedAccountsListRequest = {}, requestOptions?: LinkedAccountsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.hris.LinkedAccountsListRequest = {}, - requestOptions?: LinkedAccountsClient.RequestOptions, - ): Promise> { - const { - category, - cursor, - endUserEmailAddress, - endUserOrganizationName, - endUserOriginId, - endUserOriginIds, - id, - ids, - includeDuplicates, - integrationName, - isTestAccount, - pageSize, - status, - } = request; - const _queryParams: Record = { - category: - category != null - ? serializers.hris.LinkedAccountsListRequestCategory.jsonOrThrow(category, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - cursor, - end_user_email_address: endUserEmailAddress, - end_user_organization_name: endUserOrganizationName, - end_user_origin_id: endUserOriginId, - end_user_origin_ids: endUserOriginIds, - id, - ids, - include_duplicates: includeDuplicates, - integration_name: integrationName, - is_test_account: isTestAccount, - page_size: pageSize, - status, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.hris.LinkedAccountsListRequest, + ): Promise> => { + const { + category, + cursor, + endUserEmailAddress, + endUserOrganizationName, + endUserOriginId, + endUserOriginIds, + id, + ids, + includeDuplicates, + integrationName, + isTestAccount, + pageSize, + status, + } = request; + const _queryParams: Record = { + category: + category != null + ? serializers.hris.LinkedAccountsListRequestCategory.jsonOrThrow(category, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + cursor, + end_user_email_address: endUserEmailAddress, + end_user_organization_name: endUserOrganizationName, + end_user_origin_id: endUserOriginId, + end_user_origin_ids: endUserOriginIds, + id, + ids, + include_duplicates: includeDuplicates, + integration_name: integrationName, + is_test_account: isTestAccount, + page_size: pageSize, + status, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "hris/v1/linked-accounts", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.hris.PaginatedAccountDetailsAndActionsList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/hris/v1/linked-accounts", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "hris/v1/linked-accounts", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.hris.PaginatedAccountDetailsAndActionsList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/linked-accounts"); } } diff --git a/src/api/resources/hris/resources/locations/client/Client.ts b/src/api/resources/hris/resources/locations/client/Client.ts index b6065d159..5c318c7ad 100644 --- a/src/api/resources/hris/resources/locations/client/Client.ts +++ b/src/api/resources/hris/resources/locations/client/Client.ts @@ -46,107 +46,117 @@ export class LocationsClient { * showEnumOrigins: "country" * }) */ - public list( + public async list( request: Merge.hris.LocationsListRequest = {}, requestOptions?: LocationsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.hris.LocationsListRequest = {}, - requestOptions?: LocationsClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - includeDeletedData, - includeRemoteData, - includeShellData, - locationType, - modifiedAfter, - modifiedBefore, - pageSize, - remoteFields, - remoteId, - showEnumOrigins, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - location_type: - locationType != null - ? serializers.hris.LocationsListRequestLocationType.jsonOrThrow(locationType, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_fields: - remoteFields != null - ? serializers.hris.LocationsListRequestRemoteFields.jsonOrThrow(remoteFields, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - remote_id: remoteId, - show_enum_origins: - showEnumOrigins != null - ? serializers.hris.LocationsListRequestShowEnumOrigins.jsonOrThrow(showEnumOrigins, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.hris.LocationsListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + locationType, + modifiedAfter, + modifiedBefore, + pageSize, + remoteFields, + remoteId, + showEnumOrigins, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + location_type: + locationType != null + ? serializers.hris.LocationsListRequestLocationType.jsonOrThrow(locationType, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_fields: + remoteFields != null + ? serializers.hris.LocationsListRequestRemoteFields.jsonOrThrow(remoteFields, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + remote_id: remoteId, + show_enum_origins: + showEnumOrigins != null + ? serializers.hris.LocationsListRequestShowEnumOrigins.jsonOrThrow(showEnumOrigins, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "hris/v1/locations", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.hris.PaginatedLocationList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/locations"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "hris/v1/locations", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.hris.PaginatedLocationList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/locations"); } /** diff --git a/src/api/resources/hris/resources/payGroups/client/Client.ts b/src/api/resources/hris/resources/payGroups/client/Client.ts index d6ad54fc0..39d93d089 100644 --- a/src/api/resources/hris/resources/payGroups/client/Client.ts +++ b/src/api/resources/hris/resources/payGroups/client/Client.ts @@ -43,86 +43,96 @@ export class PayGroupsClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.hris.PayGroupsListRequest = {}, requestOptions?: PayGroupsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.hris.PayGroupsListRequest = {}, - requestOptions?: PayGroupsClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.hris.PayGroupsListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "hris/v1/pay-groups", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.hris.PaginatedPayGroupList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/pay-groups"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "hris/v1/pay-groups", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.hris.PaginatedPayGroupList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/pay-groups"); } /** diff --git a/src/api/resources/hris/resources/payrollRuns/client/Client.ts b/src/api/resources/hris/resources/payrollRuns/client/Client.ts index acbcf36c3..60e78b728 100644 --- a/src/api/resources/hris/resources/payrollRuns/client/Client.ts +++ b/src/api/resources/hris/resources/payrollRuns/client/Client.ts @@ -50,115 +50,125 @@ export class PayrollRunsClient { * startedBefore: new Date("2024-01-15T09:30:00.000Z") * }) */ - public list( + public async list( request: Merge.hris.PayrollRunsListRequest = {}, requestOptions?: PayrollRunsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.hris.PayrollRunsListRequest = {}, - requestOptions?: PayrollRunsClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - endedAfter, - endedBefore, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteFields, - remoteId, - runType, - showEnumOrigins, - startedAfter, - startedBefore, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - ended_after: endedAfter?.toISOString(), - ended_before: endedBefore?.toISOString(), - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_fields: - remoteFields != null - ? serializers.hris.PayrollRunsListRequestRemoteFields.jsonOrThrow(remoteFields, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - remote_id: remoteId, - run_type: - runType != null - ? serializers.hris.PayrollRunsListRequestRunType.jsonOrThrow(runType, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - show_enum_origins: - showEnumOrigins != null - ? serializers.hris.PayrollRunsListRequestShowEnumOrigins.jsonOrThrow(showEnumOrigins, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - started_after: startedAfter?.toISOString(), - started_before: startedBefore?.toISOString(), - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.hris.PayrollRunsListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + endedAfter, + endedBefore, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteFields, + remoteId, + runType, + showEnumOrigins, + startedAfter, + startedBefore, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + ended_after: endedAfter?.toISOString(), + ended_before: endedBefore?.toISOString(), + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_fields: + remoteFields != null + ? serializers.hris.PayrollRunsListRequestRemoteFields.jsonOrThrow(remoteFields, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + remote_id: remoteId, + run_type: + runType != null + ? serializers.hris.PayrollRunsListRequestRunType.jsonOrThrow(runType, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + show_enum_origins: + showEnumOrigins != null + ? serializers.hris.PayrollRunsListRequestShowEnumOrigins.jsonOrThrow(showEnumOrigins, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + started_after: startedAfter?.toISOString(), + started_before: startedBefore?.toISOString(), + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "hris/v1/payroll-runs", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.hris.PaginatedPayrollRunList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/payroll-runs"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "hris/v1/payroll-runs", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.hris.PaginatedPayrollRunList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/payroll-runs"); } /** diff --git a/src/api/resources/hris/resources/syncStatus/client/Client.ts b/src/api/resources/hris/resources/syncStatus/client/Client.ts index 9b19d8ce4..e2c2c577b 100644 --- a/src/api/resources/hris/resources/syncStatus/client/Client.ts +++ b/src/api/resources/hris/resources/syncStatus/client/Client.ts @@ -35,66 +35,76 @@ export class SyncStatusClient { * pageSize: 1 * }) */ - public list( + public async list( request: Merge.hris.SyncStatusListRequest = {}, requestOptions?: SyncStatusClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.hris.SyncStatusListRequest = {}, - requestOptions?: SyncStatusClient.RequestOptions, - ): Promise> { - const { cursor, pageSize } = request; - const _queryParams: Record = { - cursor, - page_size: pageSize, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.hris.SyncStatusListRequest, + ): Promise> => { + const { cursor, pageSize } = request; + const _queryParams: Record = { + cursor, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "hris/v1/sync-status", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.hris.PaginatedSyncStatusList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/sync-status"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "hris/v1/sync-status", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.hris.PaginatedSyncStatusList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/sync-status"); } } diff --git a/src/api/resources/hris/resources/teams/client/Client.ts b/src/api/resources/hris/resources/teams/client/Client.ts index e6f160c0b..2fb4373e7 100644 --- a/src/api/resources/hris/resources/teams/client/Client.ts +++ b/src/api/resources/hris/resources/teams/client/Client.ts @@ -34,7 +34,6 @@ export class TeamsClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "parent_team", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -45,90 +44,100 @@ export class TeamsClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.hris.TeamsListRequest = {}, requestOptions?: TeamsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.hris.TeamsListRequest = {}, - requestOptions?: TeamsClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - parentTeamId, - remoteId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: expand != null ? expand : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - parent_team_id: parentTeamId, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.hris.TeamsListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + parentTeamId, + remoteId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + parent_team_id: parentTeamId, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "hris/v1/teams", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.hris.PaginatedTeamList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/teams"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "hris/v1/teams", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.hris.PaginatedTeamList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/teams"); } /** @@ -140,7 +149,6 @@ export class TeamsClient { * * @example * await client.hris.teams.retrieve("id", { - * expand: "parent_team", * includeRemoteData: true, * includeShellData: true * }) @@ -160,7 +168,7 @@ export class TeamsClient { ): Promise> { const { expand, includeRemoteData, includeShellData } = request; const _queryParams: Record = { - expand: expand != null ? expand : undefined, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, }; diff --git a/src/api/resources/hris/resources/teams/client/requests/TeamsListRequest.ts b/src/api/resources/hris/resources/teams/client/requests/TeamsListRequest.ts index 5bcaf83a9..6ffc5ca9b 100644 --- a/src/api/resources/hris/resources/teams/client/requests/TeamsListRequest.ts +++ b/src/api/resources/hris/resources/teams/client/requests/TeamsListRequest.ts @@ -6,7 +6,6 @@ * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "parent_team", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -25,7 +24,7 @@ export interface TeamsListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "parent_team"; + expand?: "parent_team" | "parent_team"[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ diff --git a/src/api/resources/hris/resources/teams/client/requests/TeamsRetrieveRequest.ts b/src/api/resources/hris/resources/teams/client/requests/TeamsRetrieveRequest.ts index 0ce33d724..f60dace65 100644 --- a/src/api/resources/hris/resources/teams/client/requests/TeamsRetrieveRequest.ts +++ b/src/api/resources/hris/resources/teams/client/requests/TeamsRetrieveRequest.ts @@ -3,14 +3,13 @@ /** * @example * { - * expand: "parent_team", * includeRemoteData: true, * includeShellData: true * } */ export interface TeamsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "parent_team"; + expand?: "parent_team" | "parent_team"[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/hris/resources/timeOff/client/Client.ts b/src/api/resources/hris/resources/timeOff/client/Client.ts index c8244b1e8..b4991c772 100644 --- a/src/api/resources/hris/resources/timeOff/client/Client.ts +++ b/src/api/resources/hris/resources/timeOff/client/Client.ts @@ -38,7 +38,6 @@ export class TimeOffClient { * employeeId: "employee_id", * endedAfter: new Date("2024-01-15T09:30:00.000Z"), * endedBefore: new Date("2024-01-15T09:30:00.000Z"), - * expand: "approver", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -54,129 +53,148 @@ export class TimeOffClient { * status: "APPROVED" * }) */ - public list( + public async list( request: Merge.hris.TimeOffListRequest = {}, requestOptions?: TimeOffClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.hris.TimeOffListRequest = {}, - requestOptions?: TimeOffClient.RequestOptions, - ): Promise> { - const { - approverId, - createdAfter, - createdBefore, - cursor, - employeeId, - endedAfter, - endedBefore, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteFields, - remoteId, - requestType, - showEnumOrigins, - startedAfter, - startedBefore, - status, - } = request; - const _queryParams: Record = { - approver_id: approverId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - employee_id: employeeId, - ended_after: endedAfter?.toISOString(), - ended_before: endedBefore?.toISOString(), - expand: - expand != null - ? serializers.hris.TimeOffListRequestExpand.jsonOrThrow(expand, { unrecognizedObjectKeys: "strip" }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_fields: - remoteFields != null - ? serializers.hris.TimeOffListRequestRemoteFields.jsonOrThrow(remoteFields, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - remote_id: remoteId, - request_type: - requestType != null - ? serializers.hris.TimeOffListRequestRequestType.jsonOrThrow(requestType, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - show_enum_origins: - showEnumOrigins != null - ? serializers.hris.TimeOffListRequestShowEnumOrigins.jsonOrThrow(showEnumOrigins, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - started_after: startedAfter?.toISOString(), - started_before: startedBefore?.toISOString(), - status: - status != null - ? serializers.hris.TimeOffListRequestStatus.jsonOrThrow(status, { unrecognizedObjectKeys: "strip" }) - : undefined, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.hris.TimeOffListRequest, + ): Promise> => { + const { + approverId, + createdAfter, + createdBefore, + cursor, + employeeId, + endedAfter, + endedBefore, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteFields, + remoteId, + requestType, + showEnumOrigins, + startedAfter, + startedBefore, + status, + } = request; + const _queryParams: Record = { + approver_id: approverId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + employee_id: employeeId, + ended_after: endedAfter?.toISOString(), + ended_before: endedBefore?.toISOString(), + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.hris.TimeOffListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.hris.TimeOffListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_fields: + remoteFields != null + ? serializers.hris.TimeOffListRequestRemoteFields.jsonOrThrow(remoteFields, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + remote_id: remoteId, + request_type: + requestType != null + ? serializers.hris.TimeOffListRequestRequestType.jsonOrThrow(requestType, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + show_enum_origins: + showEnumOrigins != null + ? serializers.hris.TimeOffListRequestShowEnumOrigins.jsonOrThrow(showEnumOrigins, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + started_after: startedAfter?.toISOString(), + started_before: startedBefore?.toISOString(), + status: + status != null + ? serializers.hris.TimeOffListRequestStatus.jsonOrThrow(status, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "hris/v1/time-off", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.hris.PaginatedTimeOffList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/time-off"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "hris/v1/time-off", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.hris.PaginatedTimeOffList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/time-off"); } /** @@ -267,7 +285,6 @@ export class TimeOffClient { * * @example * await client.hris.timeOff.retrieve("id", { - * expand: "approver", * includeRemoteData: true, * includeShellData: true, * remoteFields: "request_type", @@ -289,12 +306,17 @@ export class TimeOffClient { ): Promise> { const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.hris.TimeOffRetrieveRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.hris.TimeOffRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.hris.TimeOffRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, remote_fields: diff --git a/src/api/resources/hris/resources/timeOff/client/requests/TimeOffListRequest.ts b/src/api/resources/hris/resources/timeOff/client/requests/TimeOffListRequest.ts index bd8bbe246..f461d8aa4 100644 --- a/src/api/resources/hris/resources/timeOff/client/requests/TimeOffListRequest.ts +++ b/src/api/resources/hris/resources/timeOff/client/requests/TimeOffListRequest.ts @@ -12,7 +12,6 @@ import type * as Merge from "../../../../../../index"; * employeeId: "employee_id", * endedAfter: new Date("2024-01-15T09:30:00.000Z"), * endedBefore: new Date("2024-01-15T09:30:00.000Z"), - * expand: "approver", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -44,7 +43,7 @@ export interface TimeOffListRequest { /** If provided, will only return time-offs that ended before this datetime. */ endedBefore?: Date; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.hris.TimeOffListRequestExpand; + expand?: Merge.hris.TimeOffListRequestExpandItem | Merge.hris.TimeOffListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -55,7 +54,7 @@ export interface TimeOffListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. The maximum limit is 100. */ + /** Number of results to return per page. */ pageSize?: number; /** Deprecated. Use show_enum_origins. */ remoteFields?: Merge.hris.TimeOffListRequestRemoteFields; diff --git a/src/api/resources/hris/resources/timeOff/client/requests/TimeOffRetrieveRequest.ts b/src/api/resources/hris/resources/timeOff/client/requests/TimeOffRetrieveRequest.ts index 57fccef06..5bbc87178 100644 --- a/src/api/resources/hris/resources/timeOff/client/requests/TimeOffRetrieveRequest.ts +++ b/src/api/resources/hris/resources/timeOff/client/requests/TimeOffRetrieveRequest.ts @@ -5,7 +5,6 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "approver", * includeRemoteData: true, * includeShellData: true, * remoteFields: "request_type", @@ -14,7 +13,7 @@ import type * as Merge from "../../../../../../index"; */ export interface TimeOffRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.hris.TimeOffRetrieveRequestExpand; + expand?: Merge.hris.TimeOffRetrieveRequestExpandItem | Merge.hris.TimeOffRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/hris/resources/timeOff/types/TimeOffListRequestExpand.ts b/src/api/resources/hris/resources/timeOff/types/TimeOffListRequestExpand.ts deleted file mode 100644 index 397870e19..000000000 --- a/src/api/resources/hris/resources/timeOff/types/TimeOffListRequestExpand.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const TimeOffListRequestExpand = { - Approver: "approver", - Employee: "employee", - EmployeeApprover: "employee,approver", -} as const; -export type TimeOffListRequestExpand = (typeof TimeOffListRequestExpand)[keyof typeof TimeOffListRequestExpand]; diff --git a/src/api/resources/hris/resources/timeOff/types/TimeOffListRequestExpandItem.ts b/src/api/resources/hris/resources/timeOff/types/TimeOffListRequestExpandItem.ts new file mode 100644 index 000000000..7a71d9dac --- /dev/null +++ b/src/api/resources/hris/resources/timeOff/types/TimeOffListRequestExpandItem.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export const TimeOffListRequestExpandItem = { + Approver: "approver", + Employee: "employee", +} as const; +export type TimeOffListRequestExpandItem = + (typeof TimeOffListRequestExpandItem)[keyof typeof TimeOffListRequestExpandItem]; diff --git a/src/api/resources/hris/resources/timeOff/types/TimeOffRetrieveRequestExpand.ts b/src/api/resources/hris/resources/timeOff/types/TimeOffRetrieveRequestExpand.ts deleted file mode 100644 index 288c5188b..000000000 --- a/src/api/resources/hris/resources/timeOff/types/TimeOffRetrieveRequestExpand.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const TimeOffRetrieveRequestExpand = { - Approver: "approver", - Employee: "employee", - EmployeeApprover: "employee,approver", -} as const; -export type TimeOffRetrieveRequestExpand = - (typeof TimeOffRetrieveRequestExpand)[keyof typeof TimeOffRetrieveRequestExpand]; diff --git a/src/api/resources/hris/resources/timeOff/types/TimeOffRetrieveRequestExpandItem.ts b/src/api/resources/hris/resources/timeOff/types/TimeOffRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..7bf878380 --- /dev/null +++ b/src/api/resources/hris/resources/timeOff/types/TimeOffRetrieveRequestExpandItem.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export const TimeOffRetrieveRequestExpandItem = { + Approver: "approver", + Employee: "employee", +} as const; +export type TimeOffRetrieveRequestExpandItem = + (typeof TimeOffRetrieveRequestExpandItem)[keyof typeof TimeOffRetrieveRequestExpandItem]; diff --git a/src/api/resources/hris/resources/timeOff/types/index.ts b/src/api/resources/hris/resources/timeOff/types/index.ts index da891165f..5ccb53437 100644 --- a/src/api/resources/hris/resources/timeOff/types/index.ts +++ b/src/api/resources/hris/resources/timeOff/types/index.ts @@ -1,8 +1,8 @@ -export * from "./TimeOffListRequestExpand"; +export * from "./TimeOffListRequestExpandItem"; export * from "./TimeOffListRequestRemoteFields"; export * from "./TimeOffListRequestRequestType"; export * from "./TimeOffListRequestShowEnumOrigins"; export * from "./TimeOffListRequestStatus"; -export * from "./TimeOffRetrieveRequestExpand"; +export * from "./TimeOffRetrieveRequestExpandItem"; export * from "./TimeOffRetrieveRequestRemoteFields"; export * from "./TimeOffRetrieveRequestShowEnumOrigins"; diff --git a/src/api/resources/hris/resources/timeOffBalances/client/Client.ts b/src/api/resources/hris/resources/timeOffBalances/client/Client.ts index 6f1b60938..06bdc427f 100644 --- a/src/api/resources/hris/resources/timeOffBalances/client/Client.ts +++ b/src/api/resources/hris/resources/timeOffBalances/client/Client.ts @@ -35,7 +35,6 @@ export class TimeOffBalancesClient { * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * employeeId: "employee_id", - * expand: "employee", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -48,101 +47,116 @@ export class TimeOffBalancesClient { * showEnumOrigins: "policy_type" * }) */ - public list( + public async list( request: Merge.hris.TimeOffBalancesListRequest = {}, requestOptions?: TimeOffBalancesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.hris.TimeOffBalancesListRequest = {}, - requestOptions?: TimeOffBalancesClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - employeeId, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - policyType, - remoteFields, - remoteId, - showEnumOrigins, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - employee_id: employeeId, - expand: expand != null ? expand : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - policy_type: - policyType != null - ? serializers.hris.TimeOffBalancesListRequestPolicyType.jsonOrThrow(policyType, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - remote_fields: remoteFields != null ? remoteFields : undefined, - remote_id: remoteId, - show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.hris.TimeOffBalancesListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + employeeId, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + policyType, + remoteFields, + remoteId, + showEnumOrigins, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + employee_id: employeeId, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + policy_type: + policyType != null + ? serializers.hris.TimeOffBalancesListRequestPolicyType.jsonOrThrow(policyType, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + remote_fields: remoteFields != null ? remoteFields : undefined, + remote_id: remoteId, + show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "hris/v1/time-off-balances", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.hris.PaginatedTimeOffBalanceList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/hris/v1/time-off-balances", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "hris/v1/time-off-balances", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.hris.PaginatedTimeOffBalanceList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/time-off-balances"); } /** @@ -154,7 +168,6 @@ export class TimeOffBalancesClient { * * @example * await client.hris.timeOffBalances.retrieve("id", { - * expand: "employee", * includeRemoteData: true, * includeShellData: true, * remoteFields: "policy_type", @@ -176,7 +189,7 @@ export class TimeOffBalancesClient { ): Promise> { const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; const _queryParams: Record = { - expand: expand != null ? expand : undefined, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, remote_fields: remoteFields != null ? remoteFields : undefined, diff --git a/src/api/resources/hris/resources/timeOffBalances/client/requests/TimeOffBalancesListRequest.ts b/src/api/resources/hris/resources/timeOffBalances/client/requests/TimeOffBalancesListRequest.ts index 7cddca79b..3261f917e 100644 --- a/src/api/resources/hris/resources/timeOffBalances/client/requests/TimeOffBalancesListRequest.ts +++ b/src/api/resources/hris/resources/timeOffBalances/client/requests/TimeOffBalancesListRequest.ts @@ -9,7 +9,6 @@ import type * as Merge from "../../../../../../index"; * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * employeeId: "employee_id", - * expand: "employee", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -32,7 +31,7 @@ export interface TimeOffBalancesListRequest { /** If provided, will only return time off balances for this employee. */ employeeId?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "employee"; + expand?: "employee" | "employee"[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -43,7 +42,7 @@ export interface TimeOffBalancesListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. The maximum limit is 100. */ + /** Number of results to return per page. */ pageSize?: number; /** * If provided, will only return TimeOffBalance with this policy type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT') diff --git a/src/api/resources/hris/resources/timeOffBalances/client/requests/TimeOffBalancesRetrieveRequest.ts b/src/api/resources/hris/resources/timeOffBalances/client/requests/TimeOffBalancesRetrieveRequest.ts index c2a71146f..1f7469239 100644 --- a/src/api/resources/hris/resources/timeOffBalances/client/requests/TimeOffBalancesRetrieveRequest.ts +++ b/src/api/resources/hris/resources/timeOffBalances/client/requests/TimeOffBalancesRetrieveRequest.ts @@ -3,7 +3,6 @@ /** * @example * { - * expand: "employee", * includeRemoteData: true, * includeShellData: true, * remoteFields: "policy_type", @@ -12,7 +11,7 @@ */ export interface TimeOffBalancesRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "employee"; + expand?: "employee" | "employee"[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/hris/resources/timesheetEntries/client/Client.ts b/src/api/resources/hris/resources/timesheetEntries/client/Client.ts index f70b5334c..6534bf01f 100644 --- a/src/api/resources/hris/resources/timesheetEntries/client/Client.ts +++ b/src/api/resources/hris/resources/timesheetEntries/client/Client.ts @@ -37,7 +37,6 @@ export class TimesheetEntriesClient { * employeeId: "employee_id", * endedAfter: new Date("2024-01-15T09:30:00.000Z"), * endedBefore: new Date("2024-01-15T09:30:00.000Z"), - * expand: "employee", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -50,105 +49,120 @@ export class TimesheetEntriesClient { * startedBefore: new Date("2024-01-15T09:30:00.000Z") * }) */ - public list( + public async list( request: Merge.hris.TimesheetEntriesListRequest = {}, requestOptions?: TimesheetEntriesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.hris.TimesheetEntriesListRequest = {}, - requestOptions?: TimesheetEntriesClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - employeeId, - endedAfter, - endedBefore, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - orderBy, - pageSize, - remoteId, - startedAfter, - startedBefore, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - employee_id: employeeId, - ended_after: endedAfter?.toISOString(), - ended_before: endedBefore?.toISOString(), - expand: expand != null ? expand : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - order_by: - orderBy != null - ? serializers.hris.TimesheetEntriesListRequestOrderBy.jsonOrThrow(orderBy, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - page_size: pageSize, - remote_id: remoteId, - started_after: startedAfter?.toISOString(), - started_before: startedBefore?.toISOString(), - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.hris.TimesheetEntriesListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + employeeId, + endedAfter, + endedBefore, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + orderBy, + pageSize, + remoteId, + startedAfter, + startedBefore, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + employee_id: employeeId, + ended_after: endedAfter?.toISOString(), + ended_before: endedBefore?.toISOString(), + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + order_by: + orderBy != null + ? serializers.hris.TimesheetEntriesListRequestOrderBy.jsonOrThrow(orderBy, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + page_size: pageSize, + remote_id: remoteId, + started_after: startedAfter?.toISOString(), + started_before: startedBefore?.toISOString(), + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "hris/v1/timesheet-entries", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.hris.PaginatedTimesheetEntryList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/hris/v1/timesheet-entries", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "hris/v1/timesheet-entries", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.hris.PaginatedTimesheetEntryList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/hris/v1/timesheet-entries"); } /** @@ -241,7 +255,6 @@ export class TimesheetEntriesClient { * * @example * await client.hris.timesheetEntries.retrieve("id", { - * expand: "employee", * includeRemoteData: true, * includeShellData: true * }) @@ -261,7 +274,7 @@ export class TimesheetEntriesClient { ): Promise> { const { expand, includeRemoteData, includeShellData } = request; const _queryParams: Record = { - expand: expand != null ? expand : undefined, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, }; diff --git a/src/api/resources/hris/resources/timesheetEntries/client/requests/TimesheetEntriesListRequest.ts b/src/api/resources/hris/resources/timesheetEntries/client/requests/TimesheetEntriesListRequest.ts index 56efd5fd7..503219b3e 100644 --- a/src/api/resources/hris/resources/timesheetEntries/client/requests/TimesheetEntriesListRequest.ts +++ b/src/api/resources/hris/resources/timesheetEntries/client/requests/TimesheetEntriesListRequest.ts @@ -11,7 +11,6 @@ import type * as Merge from "../../../../../../index"; * employeeId: "employee_id", * endedAfter: new Date("2024-01-15T09:30:00.000Z"), * endedBefore: new Date("2024-01-15T09:30:00.000Z"), - * expand: "employee", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -38,7 +37,7 @@ export interface TimesheetEntriesListRequest { /** If provided, will only return timesheet entries ended before this datetime. */ endedBefore?: Date; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "employee"; + expand?: "employee" | "employee"[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ diff --git a/src/api/resources/hris/resources/timesheetEntries/client/requests/TimesheetEntriesRetrieveRequest.ts b/src/api/resources/hris/resources/timesheetEntries/client/requests/TimesheetEntriesRetrieveRequest.ts index af7403b4c..9a91583dc 100644 --- a/src/api/resources/hris/resources/timesheetEntries/client/requests/TimesheetEntriesRetrieveRequest.ts +++ b/src/api/resources/hris/resources/timesheetEntries/client/requests/TimesheetEntriesRetrieveRequest.ts @@ -3,14 +3,13 @@ /** * @example * { - * expand: "employee", * includeRemoteData: true, * includeShellData: true * } */ export interface TimesheetEntriesRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "employee"; + expand?: "employee" | "employee"[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/hris/types/AuditLogEvent.ts b/src/api/resources/hris/types/AuditLogEvent.ts index abdb3af08..0b2e638d8 100644 --- a/src/api/resources/hris/types/AuditLogEvent.ts +++ b/src/api/resources/hris/types/AuditLogEvent.ts @@ -17,6 +17,7 @@ export interface AuditLogEvent { * * `API` - API * * `SYSTEM` - SYSTEM * * `MERGE_TEAM` - MERGE_TEAM + * * `SUPPORT` - SUPPORT */ role: Merge.hris.AuditLogEventRole; ipAddress: string; diff --git a/src/api/resources/hris/types/AuditLogEventRole.ts b/src/api/resources/hris/types/AuditLogEventRole.ts index da873b28d..353fc7e93 100644 --- a/src/api/resources/hris/types/AuditLogEventRole.ts +++ b/src/api/resources/hris/types/AuditLogEventRole.ts @@ -11,5 +11,6 @@ import type * as Merge from "../../../index"; * * `API` - API * * `SYSTEM` - SYSTEM * * `MERGE_TEAM` - MERGE_TEAM + * * `SUPPORT` - SUPPORT */ export type AuditLogEventRole = Merge.hris.RoleEnum | string; diff --git a/src/api/resources/hris/types/CompletedAccountInitialScreenEnum.ts b/src/api/resources/hris/types/CompletedAccountInitialScreenEnum.ts deleted file mode 100644 index cfe34d1e7..000000000 --- a/src/api/resources/hris/types/CompletedAccountInitialScreenEnum.ts +++ /dev/null @@ -1,6 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `SELECTIVE_SYNC` - SELECTIVE_SYNC - */ -export type CompletedAccountInitialScreenEnum = "SELECTIVE_SYNC"; diff --git a/src/api/resources/hris/types/IgnoreCommonModelRequest.ts b/src/api/resources/hris/types/IgnoreCommonModelRequest.ts new file mode 100644 index 000000000..87a9c6069 --- /dev/null +++ b/src/api/resources/hris/types/IgnoreCommonModelRequest.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export interface IgnoreCommonModelRequest { + reason: Merge.hris.IgnoreCommonModelRequestReason; + message?: string; +} diff --git a/src/api/resources/hris/types/IgnoreCommonModelRequestReason.ts b/src/api/resources/hris/types/IgnoreCommonModelRequestReason.ts new file mode 100644 index 000000000..8c2f367a1 --- /dev/null +++ b/src/api/resources/hris/types/IgnoreCommonModelRequestReason.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type IgnoreCommonModelRequestReason = Merge.hris.ReasonEnum | string; diff --git a/src/api/resources/hris/types/MetaResponse.ts b/src/api/resources/hris/types/MetaResponse.ts index 8c6c6005d..fccd4bb24 100644 --- a/src/api/resources/hris/types/MetaResponse.ts +++ b/src/api/resources/hris/types/MetaResponse.ts @@ -8,4 +8,6 @@ export interface MetaResponse { status?: Merge.hris.LinkedAccountStatus; hasConditionalParams: boolean; hasRequiredLinkedAccountParams: boolean; + /** Remote field values to populate */ + remoteFields?: string[]; } diff --git a/src/api/resources/hris/types/MultipartFormFieldRequest.ts b/src/api/resources/hris/types/MultipartFormFieldRequest.ts index 6e4dc5330..8db4f9d2b 100644 --- a/src/api/resources/hris/types/MultipartFormFieldRequest.ts +++ b/src/api/resources/hris/types/MultipartFormFieldRequest.ts @@ -22,7 +22,7 @@ export interface MultipartFormFieldRequest { * * `BASE64` - BASE64 * * `GZIP_BASE64` - GZIP_BASE64 */ - encoding?: Merge.hris.MultipartFormFieldRequestEncoding; + encoding?: Merge.hris.EncodingEnum; /** The file name of the form field, if the field is for a file. */ fileName?: string; /** The MIME type of the file, if the field is for a file. */ diff --git a/src/api/resources/hris/types/MultipartFormFieldRequestEncoding.ts b/src/api/resources/hris/types/MultipartFormFieldRequestEncoding.ts deleted file mode 100644 index 626389b9d..000000000 --- a/src/api/resources/hris/types/MultipartFormFieldRequestEncoding.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The encoding of the value of `data`. Defaults to `RAW` if not defined. - * - * * `RAW` - RAW - * * `BASE64` - BASE64 - * * `GZIP_BASE64` - GZIP_BASE64 - */ -export type MultipartFormFieldRequestEncoding = Merge.hris.EncodingEnum | string; diff --git a/src/api/resources/hris/types/RegenerateAccountToken.ts b/src/api/resources/hris/types/RegenerateAccountToken.ts new file mode 100644 index 000000000..2cd31ce05 --- /dev/null +++ b/src/api/resources/hris/types/RegenerateAccountToken.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * # The RegenerateAccountToken Object + * ### Description + * The `RegenerateAccountToken` object is used to exchange an old account token for a new one. + * + * ### Usage Example + * Post to receive a new `RegenerateAccountToken`. + */ +export interface RegenerateAccountToken { + linkedAccountId: string; + accountToken: string; +} diff --git a/src/api/resources/hris/types/RoleEnum.ts b/src/api/resources/hris/types/RoleEnum.ts index 524088eb7..584dbc84e 100644 --- a/src/api/resources/hris/types/RoleEnum.ts +++ b/src/api/resources/hris/types/RoleEnum.ts @@ -7,6 +7,7 @@ * * `API` - API * * `SYSTEM` - SYSTEM * * `MERGE_TEAM` - MERGE_TEAM + * * `SUPPORT` - SUPPORT */ export const RoleEnum = { Admin: "ADMIN", @@ -15,5 +16,6 @@ export const RoleEnum = { Api: "API", System: "SYSTEM", MergeTeam: "MERGE_TEAM", + Support: "SUPPORT", } as const; export type RoleEnum = (typeof RoleEnum)[keyof typeof RoleEnum]; diff --git a/src/api/resources/hris/types/SyncStatus.ts b/src/api/resources/hris/types/SyncStatus.ts index a77c829b4..9b29e9417 100644 --- a/src/api/resources/hris/types/SyncStatus.ts +++ b/src/api/resources/hris/types/SyncStatus.ts @@ -17,7 +17,7 @@ export interface SyncStatus { nextSyncStart?: Date; lastSyncResult?: Merge.hris.SyncStatusLastSyncResult; lastSyncFinished?: Date; - status: Merge.hris.StatusFd5Enum; + status: Merge.hris.SyncStatusStatus; isInitialSync: boolean; selectiveSyncConfigurationsUsage?: Merge.hris.SelectiveSyncConfigurationsUsageEnum; } diff --git a/src/api/resources/hris/types/SyncStatusStatus.ts b/src/api/resources/hris/types/SyncStatusStatus.ts new file mode 100644 index 000000000..d0f18b534 --- /dev/null +++ b/src/api/resources/hris/types/SyncStatusStatus.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type SyncStatusStatus = Merge.hris.StatusFd5Enum | string; diff --git a/src/api/resources/hris/types/index.ts b/src/api/resources/hris/types/index.ts index 92f0860a7..3b7b2de66 100644 --- a/src/api/resources/hris/types/index.ts +++ b/src/api/resources/hris/types/index.ts @@ -25,7 +25,6 @@ export * from "./CategoryEnum"; export * from "./CommonModelScopeApi"; export * from "./CommonModelScopesBodyRequest"; export * from "./Company"; -export * from "./CompletedAccountInitialScreenEnum"; export * from "./CountryEnum"; export * from "./DataPassthroughRequest"; export * from "./DebugModeLog"; @@ -99,6 +98,8 @@ export * from "./GenderEnum"; export * from "./Group"; export * from "./GroupType"; export * from "./GroupTypeEnum"; +export * from "./IgnoreCommonModelRequest"; +export * from "./IgnoreCommonModelRequestReason"; export * from "./IndividualCommonModelScopeDeserializer"; export * from "./IndividualCommonModelScopeDeserializerRequest"; export * from "./Issue"; @@ -119,7 +120,6 @@ export * from "./ModelOperation"; export * from "./ModelPermissionDeserializer"; export * from "./ModelPermissionDeserializerRequest"; export * from "./MultipartFormFieldRequest"; -export * from "./MultipartFormFieldRequestEncoding"; export * from "./PaginatedAccountDetailsAndActionsList"; export * from "./PaginatedAuditLogEventList"; export * from "./PaginatedBankInfoList"; @@ -149,6 +149,7 @@ export * from "./PayrollRunRunState"; export * from "./PayrollRunRunType"; export * from "./PolicyTypeEnum"; export * from "./ReasonEnum"; +export * from "./RegenerateAccountToken"; export * from "./RelationshipEnum"; export * from "./RemoteData"; export * from "./RemoteEndpointInfo"; @@ -168,6 +169,7 @@ export * from "./SelectiveSyncConfigurationsUsageEnum"; export * from "./StatusFd5Enum"; export * from "./SyncStatus"; export * from "./SyncStatusLastSyncResult"; +export * from "./SyncStatusStatus"; export * from "./Tax"; export * from "./Team"; export * from "./TeamParentTeam"; diff --git a/src/api/resources/ticketing/resources/accountToken/client/Client.ts b/src/api/resources/ticketing/resources/accountToken/client/Client.ts index 57cc0ec12..4fca323e6 100644 --- a/src/api/resources/ticketing/resources/accountToken/client/Client.ts +++ b/src/api/resources/ticketing/resources/accountToken/client/Client.ts @@ -94,4 +94,73 @@ export class AccountTokenClient { "/ticketing/v1/account-token/{public_token}", ); } + + /** + * Exchange Linked Account account tokens. + * + * @param {AccountTokenClient.RequestOptions} requestOptions - Request-specific configuration. + * + * @example + * await client.ticketing.accountToken.regenerateCreate() + */ + public regenerateCreate( + requestOptions?: AccountTokenClient.RequestOptions, + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__regenerateCreate(requestOptions)); + } + + private async __regenerateCreate( + requestOptions?: AccountTokenClient.RequestOptions, + ): Promise> { + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ticketing/v1/account-token/regenerate", + ), + method: "POST", + headers: _headers, + queryParameters: requestOptions?.queryParams, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ticketing.RegenerateAccountToken.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "POST", + "/ticketing/v1/account-token/regenerate", + ); + } } diff --git a/src/api/resources/ticketing/resources/accounts/client/Client.ts b/src/api/resources/ticketing/resources/accounts/client/Client.ts index 59d5c3274..ba0733da4 100644 --- a/src/api/resources/ticketing/resources/accounts/client/Client.ts +++ b/src/api/resources/ticketing/resources/accounts/client/Client.ts @@ -43,86 +43,101 @@ export class AccountsClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.ticketing.AccountsListRequest = {}, requestOptions?: AccountsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ticketing.AccountsListRequest = {}, - requestOptions?: AccountsClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ticketing.AccountsListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ticketing/v1/accounts", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ticketing.PaginatedAccountList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/ticketing/v1/accounts", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ticketing/v1/accounts", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ticketing.PaginatedAccountList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ticketing/v1/accounts"); } /** diff --git a/src/api/resources/ticketing/resources/accounts/client/requests/AccountsListRequest.ts b/src/api/resources/ticketing/resources/accounts/client/requests/AccountsListRequest.ts index 54ddb4b84..7988bdddb 100644 --- a/src/api/resources/ticketing/resources/accounts/client/requests/AccountsListRequest.ts +++ b/src/api/resources/ticketing/resources/accounts/client/requests/AccountsListRequest.ts @@ -32,7 +32,7 @@ export interface AccountsListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; diff --git a/src/api/resources/ticketing/resources/attachments/client/Client.ts b/src/api/resources/ticketing/resources/attachments/client/Client.ts index fc52722ca..d066c8124 100644 --- a/src/api/resources/ticketing/resources/attachments/client/Client.ts +++ b/src/api/resources/ticketing/resources/attachments/client/Client.ts @@ -35,7 +35,6 @@ export class AttachmentsClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "ticket", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -47,92 +46,107 @@ export class AttachmentsClient { * ticketId: "ticket_id" * }) */ - public list( + public async list( request: Merge.ticketing.AttachmentsListRequest = {}, requestOptions?: AttachmentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ticketing.AttachmentsListRequest = {}, - requestOptions?: AttachmentsClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteCreatedAfter, - remoteId, - ticketId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: expand != null ? expand : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_created_after: remoteCreatedAfter?.toISOString(), - remote_id: remoteId, - ticket_id: ticketId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ticketing.AttachmentsListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteCreatedAfter, + remoteId, + ticketId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_created_after: remoteCreatedAfter?.toISOString(), + remote_id: remoteId, + ticket_id: ticketId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ticketing/v1/attachments", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ticketing.PaginatedAttachmentList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/ticketing/v1/attachments", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ticketing/v1/attachments", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ticketing.PaginatedAttachmentList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ticketing/v1/attachments"); } /** @@ -225,7 +239,6 @@ export class AttachmentsClient { * * @example * await client.ticketing.attachments.retrieve("id", { - * expand: "ticket", * includeRemoteData: true, * includeShellData: true * }) @@ -245,7 +258,7 @@ export class AttachmentsClient { ): Promise> { const { expand, includeRemoteData, includeShellData } = request; const _queryParams: Record = { - expand: expand != null ? expand : undefined, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, }; diff --git a/src/api/resources/ticketing/resources/attachments/client/requests/AttachmentsListRequest.ts b/src/api/resources/ticketing/resources/attachments/client/requests/AttachmentsListRequest.ts index 40f1d8b71..1a75a2a82 100644 --- a/src/api/resources/ticketing/resources/attachments/client/requests/AttachmentsListRequest.ts +++ b/src/api/resources/ticketing/resources/attachments/client/requests/AttachmentsListRequest.ts @@ -6,7 +6,6 @@ * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "ticket", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -26,7 +25,7 @@ export interface AttachmentsListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "ticket"; + expand?: "ticket" | "ticket"[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -37,7 +36,7 @@ export interface AttachmentsListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. The maximum limit is 100. */ + /** Number of results to return per page. */ pageSize?: number; /** If provided, will only return attachments created in the third party platform after this datetime. */ remoteCreatedAfter?: Date; diff --git a/src/api/resources/ticketing/resources/attachments/client/requests/AttachmentsRetrieveRequest.ts b/src/api/resources/ticketing/resources/attachments/client/requests/AttachmentsRetrieveRequest.ts index 889e4d930..dd576d168 100644 --- a/src/api/resources/ticketing/resources/attachments/client/requests/AttachmentsRetrieveRequest.ts +++ b/src/api/resources/ticketing/resources/attachments/client/requests/AttachmentsRetrieveRequest.ts @@ -3,14 +3,13 @@ /** * @example * { - * expand: "ticket", * includeRemoteData: true, * includeShellData: true * } */ export interface AttachmentsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "ticket"; + expand?: "ticket" | "ticket"[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/ticketing/resources/auditTrail/client/Client.ts b/src/api/resources/ticketing/resources/auditTrail/client/Client.ts index a23d1bd09..607b41ff5 100644 --- a/src/api/resources/ticketing/resources/auditTrail/client/Client.ts +++ b/src/api/resources/ticketing/resources/auditTrail/client/Client.ts @@ -39,70 +39,85 @@ export class AuditTrailClient { * userEmail: "user_email" * }) */ - public list( + public async list( request: Merge.ticketing.AuditTrailListRequest = {}, requestOptions?: AuditTrailClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ticketing.AuditTrailListRequest = {}, - requestOptions?: AuditTrailClient.RequestOptions, - ): Promise> { - const { cursor, endDate, eventType, pageSize, startDate, userEmail } = request; - const _queryParams: Record = { - cursor, - end_date: endDate, - event_type: eventType, - page_size: pageSize, - start_date: startDate, - user_email: userEmail, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ticketing.AuditTrailListRequest, + ): Promise> => { + const { cursor, endDate, eventType, pageSize, startDate, userEmail } = request; + const _queryParams: Record = { + cursor, + end_date: endDate, + event_type: eventType, + page_size: pageSize, + start_date: startDate, + user_email: userEmail, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ticketing/v1/audit-trail", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ticketing.PaginatedAuditLogEventList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/ticketing/v1/audit-trail", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ticketing/v1/audit-trail", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ticketing.PaginatedAuditLogEventList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ticketing/v1/audit-trail"); } } diff --git a/src/api/resources/ticketing/resources/collections/client/Client.ts b/src/api/resources/ticketing/resources/collections/client/Client.ts index fd6d247b9..ef851fbce 100644 --- a/src/api/resources/ticketing/resources/collections/client/Client.ts +++ b/src/api/resources/ticketing/resources/collections/client/Client.ts @@ -35,7 +35,6 @@ export class CollectionsClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "parent_collection", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -49,103 +48,128 @@ export class CollectionsClient { * showEnumOrigins: "collection_type" * }) */ - public list( + public async list( request: Merge.ticketing.CollectionsListRequest = {}, requestOptions?: CollectionsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ticketing.CollectionsListRequest = {}, - requestOptions?: CollectionsClient.RequestOptions, - ): Promise> { - const { - collectionType, - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - name, - pageSize, - parentCollectionId, - remoteFields, - remoteId, - showEnumOrigins, - } = request; - const _queryParams: Record = { - collection_type: - collectionType != null - ? serializers.ticketing.CollectionsListRequestCollectionType.jsonOrThrow(collectionType, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: expand != null ? expand : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - name, - page_size: pageSize, - parent_collection_id: parentCollectionId, - remote_fields: remoteFields != null ? remoteFields : undefined, - remote_id: remoteId, - show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ticketing.CollectionsListRequest, + ): Promise> => { + const { + collectionType, + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + name, + pageSize, + parentCollectionId, + remoteFields, + remoteId, + showEnumOrigins, + } = request; + const _queryParams: Record = { + collection_type: + collectionType != null + ? serializers.ticketing.CollectionsListRequestCollectionType.jsonOrThrow(collectionType, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.ticketing.CollectionsListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.ticketing.CollectionsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + name, + page_size: pageSize, + parent_collection_id: parentCollectionId, + remote_fields: remoteFields != null ? remoteFields : undefined, + remote_id: remoteId, + show_enum_origins: showEnumOrigins != null ? showEnumOrigins : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ticketing/v1/collections", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ticketing.PaginatedCollectionList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/ticketing/v1/collections", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ticketing/v1/collections", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ticketing.PaginatedCollectionList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ticketing/v1/collections"); } /** @@ -158,90 +182,103 @@ export class CollectionsClient { * @example * await client.ticketing.collections.viewersList("collection_id", { * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "team", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, * pageSize: 1 * }) */ - public viewersList( + public async viewersList( collection_id: string, request: Merge.ticketing.CollectionsViewersListRequest = {}, requestOptions?: CollectionsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__viewersList(collection_id, request, requestOptions)); - } - - private async __viewersList( - collection_id: string, - request: Merge.ticketing.CollectionsViewersListRequest = {}, - requestOptions?: CollectionsClient.RequestOptions, - ): Promise> { - const { cursor, expand, includeDeletedData, includeRemoteData, includeShellData, pageSize } = request; - const _queryParams: Record = { - cursor, - expand: - expand != null - ? serializers.ticketing.CollectionsViewersListRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - page_size: pageSize, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ticketing.CollectionsViewersListRequest, + ): Promise> => { + const { cursor, expand, includeDeletedData, includeRemoteData, includeShellData, pageSize } = request; + const _queryParams: Record = { + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.ticketing.CollectionsViewersListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.ticketing.CollectionsViewersListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + `ticketing/v1/collections/${core.url.encodePathParam(collection_id)}/viewers`, + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ticketing.PaginatedViewerList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/ticketing/v1/collections/{collection_id}/viewers", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `ticketing/v1/collections/${core.url.encodePathParam(collection_id)}/viewers`, - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ticketing.PaginatedViewerList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/ticketing/v1/collections/{collection_id}/viewers", - ); } /** @@ -253,7 +290,6 @@ export class CollectionsClient { * * @example * await client.ticketing.collections.retrieve("id", { - * expand: "parent_collection", * includeRemoteData: true, * includeShellData: true, * remoteFields: "collection_type", @@ -275,7 +311,17 @@ export class CollectionsClient { ): Promise> { const { expand, includeRemoteData, includeShellData, remoteFields, showEnumOrigins } = request; const _queryParams: Record = { - expand: expand != null ? expand : undefined, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.ticketing.CollectionsRetrieveRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.ticketing.CollectionsRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, remote_fields: remoteFields != null ? remoteFields : undefined, diff --git a/src/api/resources/ticketing/resources/collections/client/requests/CollectionsListRequest.ts b/src/api/resources/ticketing/resources/collections/client/requests/CollectionsListRequest.ts index 7f11cd592..80549986b 100644 --- a/src/api/resources/ticketing/resources/collections/client/requests/CollectionsListRequest.ts +++ b/src/api/resources/ticketing/resources/collections/client/requests/CollectionsListRequest.ts @@ -9,7 +9,6 @@ import type * as Merge from "../../../../../../index"; * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "parent_collection", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -33,7 +32,7 @@ export interface CollectionsListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "parent_collection"; + expand?: Merge.ticketing.CollectionsListRequestExpandItem | Merge.ticketing.CollectionsListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ diff --git a/src/api/resources/ticketing/resources/collections/client/requests/CollectionsRetrieveRequest.ts b/src/api/resources/ticketing/resources/collections/client/requests/CollectionsRetrieveRequest.ts index 9cb9ed8f3..ba9d7d1af 100644 --- a/src/api/resources/ticketing/resources/collections/client/requests/CollectionsRetrieveRequest.ts +++ b/src/api/resources/ticketing/resources/collections/client/requests/CollectionsRetrieveRequest.ts @@ -1,9 +1,10 @@ // This file was auto-generated by Fern from our API Definition. +import type * as Merge from "../../../../../../index"; + /** * @example * { - * expand: "parent_collection", * includeRemoteData: true, * includeShellData: true, * remoteFields: "collection_type", @@ -12,7 +13,9 @@ */ export interface CollectionsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "parent_collection"; + expand?: + | Merge.ticketing.CollectionsRetrieveRequestExpandItem + | Merge.ticketing.CollectionsRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/ticketing/resources/collections/client/requests/CollectionsViewersListRequest.ts b/src/api/resources/ticketing/resources/collections/client/requests/CollectionsViewersListRequest.ts index ce3eea657..0fa2c5805 100644 --- a/src/api/resources/ticketing/resources/collections/client/requests/CollectionsViewersListRequest.ts +++ b/src/api/resources/ticketing/resources/collections/client/requests/CollectionsViewersListRequest.ts @@ -6,7 +6,6 @@ import type * as Merge from "../../../../../../index"; * @example * { * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "team", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -17,13 +16,15 @@ export interface CollectionsViewersListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.ticketing.CollectionsViewersListRequestExpand; + expand?: + | Merge.ticketing.CollectionsViewersListRequestExpandItem + | Merge.ticketing.CollectionsViewersListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ includeShellData?: boolean; - /** Number of results to return per page. */ + /** Number of results to return per page. The maximum limit is 100. */ pageSize?: number; } diff --git a/src/api/resources/ticketing/resources/collections/types/CollectionsListRequestExpandItem.ts b/src/api/resources/ticketing/resources/collections/types/CollectionsListRequestExpandItem.ts new file mode 100644 index 000000000..1ff297ff3 --- /dev/null +++ b/src/api/resources/ticketing/resources/collections/types/CollectionsListRequestExpandItem.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export const CollectionsListRequestExpandItem = { + ParentCollection: "parent_collection", + Permissions: "permissions", +} as const; +export type CollectionsListRequestExpandItem = + (typeof CollectionsListRequestExpandItem)[keyof typeof CollectionsListRequestExpandItem]; diff --git a/src/api/resources/ticketing/resources/collections/types/CollectionsRetrieveRequestExpandItem.ts b/src/api/resources/ticketing/resources/collections/types/CollectionsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..a3ad9ca14 --- /dev/null +++ b/src/api/resources/ticketing/resources/collections/types/CollectionsRetrieveRequestExpandItem.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export const CollectionsRetrieveRequestExpandItem = { + ParentCollection: "parent_collection", + Permissions: "permissions", +} as const; +export type CollectionsRetrieveRequestExpandItem = + (typeof CollectionsRetrieveRequestExpandItem)[keyof typeof CollectionsRetrieveRequestExpandItem]; diff --git a/src/api/resources/ticketing/resources/collections/types/CollectionsViewersListRequestExpand.ts b/src/api/resources/ticketing/resources/collections/types/CollectionsViewersListRequestExpand.ts deleted file mode 100644 index 9fb5535b0..000000000 --- a/src/api/resources/ticketing/resources/collections/types/CollectionsViewersListRequestExpand.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const CollectionsViewersListRequestExpand = { - Team: "team", - User: "user", - UserTeam: "user,team", -} as const; -export type CollectionsViewersListRequestExpand = - (typeof CollectionsViewersListRequestExpand)[keyof typeof CollectionsViewersListRequestExpand]; diff --git a/src/api/resources/ticketing/resources/collections/types/CollectionsViewersListRequestExpandItem.ts b/src/api/resources/ticketing/resources/collections/types/CollectionsViewersListRequestExpandItem.ts new file mode 100644 index 000000000..92523f6e3 --- /dev/null +++ b/src/api/resources/ticketing/resources/collections/types/CollectionsViewersListRequestExpandItem.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export const CollectionsViewersListRequestExpandItem = { + Team: "team", + User: "user", +} as const; +export type CollectionsViewersListRequestExpandItem = + (typeof CollectionsViewersListRequestExpandItem)[keyof typeof CollectionsViewersListRequestExpandItem]; diff --git a/src/api/resources/ticketing/resources/collections/types/index.ts b/src/api/resources/ticketing/resources/collections/types/index.ts index fa9590b69..e4481ec32 100644 --- a/src/api/resources/ticketing/resources/collections/types/index.ts +++ b/src/api/resources/ticketing/resources/collections/types/index.ts @@ -1,2 +1,4 @@ export * from "./CollectionsListRequestCollectionType"; -export * from "./CollectionsViewersListRequestExpand"; +export * from "./CollectionsListRequestExpandItem"; +export * from "./CollectionsRetrieveRequestExpandItem"; +export * from "./CollectionsViewersListRequestExpandItem"; diff --git a/src/api/resources/ticketing/resources/comments/client/Client.ts b/src/api/resources/ticketing/resources/comments/client/Client.ts index 358270d10..3444cd202 100644 --- a/src/api/resources/ticketing/resources/comments/client/Client.ts +++ b/src/api/resources/ticketing/resources/comments/client/Client.ts @@ -34,7 +34,6 @@ export class CommentsClient { * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "contact", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -46,97 +45,117 @@ export class CommentsClient { * ticketId: "ticket_id" * }) */ - public list( + public async list( request: Merge.ticketing.CommentsListRequest = {}, requestOptions?: CommentsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ticketing.CommentsListRequest = {}, - requestOptions?: CommentsClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteCreatedAfter, - remoteId, - ticketId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - expand: - expand != null - ? serializers.ticketing.CommentsListRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_created_after: remoteCreatedAfter?.toISOString(), - remote_id: remoteId, - ticket_id: ticketId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ticketing.CommentsListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteCreatedAfter, + remoteId, + ticketId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.ticketing.CommentsListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.ticketing.CommentsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_created_after: remoteCreatedAfter?.toISOString(), + remote_id: remoteId, + ticket_id: ticketId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ticketing/v1/comments", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ticketing.PaginatedCommentList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/ticketing/v1/comments", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ticketing/v1/comments", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ticketing.PaginatedCommentList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ticketing/v1/comments"); } /** @@ -227,7 +246,6 @@ export class CommentsClient { * * @example * await client.ticketing.comments.retrieve("id", { - * expand: "contact", * includeRemoteData: true, * includeShellData: true * }) @@ -247,12 +265,17 @@ export class CommentsClient { ): Promise> { const { expand, includeRemoteData, includeShellData } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.ticketing.CommentsRetrieveRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.ticketing.CommentsRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.ticketing.CommentsRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, }; diff --git a/src/api/resources/ticketing/resources/comments/client/requests/CommentsListRequest.ts b/src/api/resources/ticketing/resources/comments/client/requests/CommentsListRequest.ts index 3a0acee64..714c652fd 100644 --- a/src/api/resources/ticketing/resources/comments/client/requests/CommentsListRequest.ts +++ b/src/api/resources/ticketing/resources/comments/client/requests/CommentsListRequest.ts @@ -8,7 +8,6 @@ import type * as Merge from "../../../../../../index"; * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "contact", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -28,7 +27,7 @@ export interface CommentsListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.ticketing.CommentsListRequestExpand; + expand?: Merge.ticketing.CommentsListRequestExpandItem | Merge.ticketing.CommentsListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ diff --git a/src/api/resources/ticketing/resources/comments/client/requests/CommentsRetrieveRequest.ts b/src/api/resources/ticketing/resources/comments/client/requests/CommentsRetrieveRequest.ts index 7ca458c61..e504e1fb6 100644 --- a/src/api/resources/ticketing/resources/comments/client/requests/CommentsRetrieveRequest.ts +++ b/src/api/resources/ticketing/resources/comments/client/requests/CommentsRetrieveRequest.ts @@ -5,14 +5,13 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "contact", * includeRemoteData: true, * includeShellData: true * } */ export interface CommentsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.ticketing.CommentsRetrieveRequestExpand; + expand?: Merge.ticketing.CommentsRetrieveRequestExpandItem | Merge.ticketing.CommentsRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/ticketing/resources/comments/types/CommentsListRequestExpand.ts b/src/api/resources/ticketing/resources/comments/types/CommentsListRequestExpand.ts deleted file mode 100644 index 0332c5eeb..000000000 --- a/src/api/resources/ticketing/resources/comments/types/CommentsListRequestExpand.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const CommentsListRequestExpand = { - Contact: "contact", - ContactTicket: "contact,ticket", - Ticket: "ticket", - User: "user", - UserContact: "user,contact", - UserContactTicket: "user,contact,ticket", - UserTicket: "user,ticket", -} as const; -export type CommentsListRequestExpand = (typeof CommentsListRequestExpand)[keyof typeof CommentsListRequestExpand]; diff --git a/src/api/resources/ticketing/resources/comments/types/CommentsListRequestExpandItem.ts b/src/api/resources/ticketing/resources/comments/types/CommentsListRequestExpandItem.ts new file mode 100644 index 000000000..ea3ffac30 --- /dev/null +++ b/src/api/resources/ticketing/resources/comments/types/CommentsListRequestExpandItem.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +export const CommentsListRequestExpandItem = { + Contact: "contact", + Ticket: "ticket", + User: "user", +} as const; +export type CommentsListRequestExpandItem = + (typeof CommentsListRequestExpandItem)[keyof typeof CommentsListRequestExpandItem]; diff --git a/src/api/resources/ticketing/resources/comments/types/CommentsRetrieveRequestExpand.ts b/src/api/resources/ticketing/resources/comments/types/CommentsRetrieveRequestExpand.ts deleted file mode 100644 index 2b188fef4..000000000 --- a/src/api/resources/ticketing/resources/comments/types/CommentsRetrieveRequestExpand.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const CommentsRetrieveRequestExpand = { - Contact: "contact", - ContactTicket: "contact,ticket", - Ticket: "ticket", - User: "user", - UserContact: "user,contact", - UserContactTicket: "user,contact,ticket", - UserTicket: "user,ticket", -} as const; -export type CommentsRetrieveRequestExpand = - (typeof CommentsRetrieveRequestExpand)[keyof typeof CommentsRetrieveRequestExpand]; diff --git a/src/api/resources/ticketing/resources/comments/types/CommentsRetrieveRequestExpandItem.ts b/src/api/resources/ticketing/resources/comments/types/CommentsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..e9f3e31ca --- /dev/null +++ b/src/api/resources/ticketing/resources/comments/types/CommentsRetrieveRequestExpandItem.ts @@ -0,0 +1,9 @@ +// This file was auto-generated by Fern from our API Definition. + +export const CommentsRetrieveRequestExpandItem = { + Contact: "contact", + Ticket: "ticket", + User: "user", +} as const; +export type CommentsRetrieveRequestExpandItem = + (typeof CommentsRetrieveRequestExpandItem)[keyof typeof CommentsRetrieveRequestExpandItem]; diff --git a/src/api/resources/ticketing/resources/comments/types/index.ts b/src/api/resources/ticketing/resources/comments/types/index.ts index cbff3a9fc..9df4e0118 100644 --- a/src/api/resources/ticketing/resources/comments/types/index.ts +++ b/src/api/resources/ticketing/resources/comments/types/index.ts @@ -1,2 +1,2 @@ -export * from "./CommentsListRequestExpand"; -export * from "./CommentsRetrieveRequestExpand"; +export * from "./CommentsListRequestExpandItem"; +export * from "./CommentsRetrieveRequestExpandItem"; diff --git a/src/api/resources/ticketing/resources/contacts/client/Client.ts b/src/api/resources/ticketing/resources/contacts/client/Client.ts index 8b9db9987..e4b76e571 100644 --- a/src/api/resources/ticketing/resources/contacts/client/Client.ts +++ b/src/api/resources/ticketing/resources/contacts/client/Client.ts @@ -35,7 +35,6 @@ export class ContactsClient { * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * emailAddress: "email_address", - * expand: "account", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -45,90 +44,105 @@ export class ContactsClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.ticketing.ContactsListRequest = {}, requestOptions?: ContactsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ticketing.ContactsListRequest = {}, - requestOptions?: ContactsClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - emailAddress, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - email_address: emailAddress, - expand: expand != null ? expand : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ticketing.ContactsListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + emailAddress, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + email_address: emailAddress, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ticketing/v1/contacts", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ticketing.PaginatedContactList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/ticketing/v1/contacts", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ticketing/v1/contacts", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ticketing.PaginatedContactList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ticketing/v1/contacts"); } /** @@ -221,7 +235,6 @@ export class ContactsClient { * * @example * await client.ticketing.contacts.retrieve("id", { - * expand: "account", * includeRemoteData: true, * includeShellData: true * }) @@ -241,7 +254,7 @@ export class ContactsClient { ): Promise> { const { expand, includeRemoteData, includeShellData } = request; const _queryParams: Record = { - expand: expand != null ? expand : undefined, + expand: Array.isArray(expand) ? expand.map((item) => item) : expand != null ? expand : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, }; diff --git a/src/api/resources/ticketing/resources/contacts/client/requests/ContactsListRequest.ts b/src/api/resources/ticketing/resources/contacts/client/requests/ContactsListRequest.ts index eb9e96bf6..9e893bc52 100644 --- a/src/api/resources/ticketing/resources/contacts/client/requests/ContactsListRequest.ts +++ b/src/api/resources/ticketing/resources/contacts/client/requests/ContactsListRequest.ts @@ -7,7 +7,6 @@ * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * emailAddress: "email_address", - * expand: "account", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -27,7 +26,7 @@ export interface ContactsListRequest { /** If provided, will only return Contacts that match this email. */ emailAddress?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "account"; + expand?: "account" | "account"[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ diff --git a/src/api/resources/ticketing/resources/contacts/client/requests/ContactsRetrieveRequest.ts b/src/api/resources/ticketing/resources/contacts/client/requests/ContactsRetrieveRequest.ts index 6cf7be736..7196e0f97 100644 --- a/src/api/resources/ticketing/resources/contacts/client/requests/ContactsRetrieveRequest.ts +++ b/src/api/resources/ticketing/resources/contacts/client/requests/ContactsRetrieveRequest.ts @@ -3,14 +3,13 @@ /** * @example * { - * expand: "account", * includeRemoteData: true, * includeShellData: true * } */ export interface ContactsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: "account"; + expand?: "account" | "account"[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/ticketing/resources/fieldMapping/client/Client.ts b/src/api/resources/ticketing/resources/fieldMapping/client/Client.ts index dd490353d..2b830da85 100644 --- a/src/api/resources/ticketing/resources/fieldMapping/client/Client.ts +++ b/src/api/resources/ticketing/resources/fieldMapping/client/Client.ts @@ -105,6 +105,7 @@ export class FieldMappingClient { * @example * await client.ticketing.fieldMapping.fieldMappingsCreate({ * excludeRemoteFieldMetadata: true, + * remoteDataIterationCount: 1, * targetFieldName: "example_target_field_name", * targetFieldDescription: "this is a example description of the target field", * remoteFieldTraversalPath: ["example_remote_field"], @@ -124,9 +125,10 @@ export class FieldMappingClient { request: Merge.ticketing.CreateFieldMappingRequest, requestOptions?: FieldMappingClient.RequestOptions, ): Promise> { - const { excludeRemoteFieldMetadata, ..._body } = request; + const { excludeRemoteFieldMetadata, remoteDataIterationCount, ..._body } = request; const _queryParams: Record = { exclude_remote_field_metadata: excludeRemoteFieldMetadata, + remote_data_iteration_count: remoteDataIterationCount, }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( @@ -260,7 +262,9 @@ export class FieldMappingClient { * @param {FieldMappingClient.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.ticketing.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id") + * await client.ticketing.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { + * remoteDataIterationCount: 1 + * }) */ public fieldMappingsPartialUpdate( field_mapping_id: string, @@ -277,6 +281,10 @@ export class FieldMappingClient { request: Merge.ticketing.PatchedEditFieldMappingRequest = {}, requestOptions?: FieldMappingClient.RequestOptions, ): Promise> { + const { remoteDataIterationCount, ..._body } = request; + const _queryParams: Record = { + remote_data_iteration_count: remoteDataIterationCount, + }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( _authRequest.headers, @@ -294,9 +302,9 @@ export class FieldMappingClient { method: "PATCH", headers: _headers, contentType: "application/json", - queryParameters: requestOptions?.queryParams, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, requestType: "json", - body: serializers.ticketing.PatchedEditFieldMappingRequest.jsonOrThrow(request, { + body: serializers.ticketing.PatchedEditFieldMappingRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip", }), timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, diff --git a/src/api/resources/ticketing/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts b/src/api/resources/ticketing/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts index 64683cd2f..118f1512d 100644 --- a/src/api/resources/ticketing/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts +++ b/src/api/resources/ticketing/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts @@ -4,6 +4,7 @@ * @example * { * excludeRemoteFieldMetadata: true, + * remoteDataIterationCount: 1, * targetFieldName: "example_target_field_name", * targetFieldDescription: "this is a example description of the target field", * remoteFieldTraversalPath: ["example_remote_field"], @@ -15,6 +16,8 @@ export interface CreateFieldMappingRequest { /** If `true`, remote fields metadata is excluded from each field mapping instance (i.e. `remote_fields.remote_key_name` and `remote_fields.schema` will be null). This will increase the speed of the request since these fields require some calculations. */ excludeRemoteFieldMetadata?: boolean; + /** Number of common model instances to iterate through when fetching remote data for field mappings. Defaults to 250 if not provided. */ + remoteDataIterationCount?: number; /** The name of the target field you want this remote field to map to. */ targetFieldName: string; /** The description of the target field you want this remote field to map to. */ 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 5ca4a0560..3c388858f 100644 --- a/src/api/resources/ticketing/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts +++ b/src/api/resources/ticketing/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts @@ -2,9 +2,13 @@ /** * @example - * {} + * { + * remoteDataIterationCount: 1 + * } */ export interface PatchedEditFieldMappingRequest { + /** Number of common model instances to iterate through when fetching remote data for field mappings. Defaults to 250 if not provided. */ + remoteDataIterationCount?: number; /** The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. */ remoteFieldTraversalPath?: unknown[]; /** The method of the remote endpoint where the remote field is coming from. */ diff --git a/src/api/resources/ticketing/resources/issues/client/Client.ts b/src/api/resources/ticketing/resources/issues/client/Client.ts index dd254c7d9..75ede4c12 100644 --- a/src/api/resources/ticketing/resources/issues/client/Client.ts +++ b/src/api/resources/ticketing/resources/issues/client/Client.ts @@ -47,99 +47,109 @@ export class IssuesClient { * status: "ONGOING" * }) */ - public list( + public async list( request: Merge.ticketing.IssuesListRequest = {}, requestOptions?: IssuesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ticketing.IssuesListRequest = {}, - requestOptions?: IssuesClient.RequestOptions, - ): Promise> { - const { - accountToken, - cursor, - endDate, - endUserOrganizationName, - firstIncidentTimeAfter, - firstIncidentTimeBefore, - includeMuted, - integrationName, - lastIncidentTimeAfter, - lastIncidentTimeBefore, - linkedAccountId, - pageSize, - startDate, - status, - } = request; - const _queryParams: Record = { - account_token: accountToken, - cursor, - end_date: endDate, - end_user_organization_name: endUserOrganizationName, - first_incident_time_after: firstIncidentTimeAfter?.toISOString(), - first_incident_time_before: firstIncidentTimeBefore?.toISOString(), - include_muted: includeMuted, - integration_name: integrationName, - last_incident_time_after: lastIncidentTimeAfter?.toISOString(), - last_incident_time_before: lastIncidentTimeBefore?.toISOString(), - linked_account_id: linkedAccountId, - page_size: pageSize, - start_date: startDate, - status: - status != null - ? serializers.ticketing.IssuesListRequestStatus.jsonOrThrow(status, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ticketing.IssuesListRequest, + ): Promise> => { + const { + accountToken, + cursor, + endDate, + endUserOrganizationName, + firstIncidentTimeAfter, + firstIncidentTimeBefore, + includeMuted, + integrationName, + lastIncidentTimeAfter, + lastIncidentTimeBefore, + linkedAccountId, + pageSize, + startDate, + status, + } = request; + const _queryParams: Record = { + account_token: accountToken, + cursor, + end_date: endDate, + end_user_organization_name: endUserOrganizationName, + first_incident_time_after: firstIncidentTimeAfter?.toISOString(), + first_incident_time_before: firstIncidentTimeBefore?.toISOString(), + include_muted: includeMuted, + integration_name: integrationName, + last_incident_time_after: lastIncidentTimeAfter?.toISOString(), + last_incident_time_before: lastIncidentTimeBefore?.toISOString(), + linked_account_id: linkedAccountId, + page_size: pageSize, + start_date: startDate, + status: + status != null + ? serializers.ticketing.IssuesListRequestStatus.jsonOrThrow(status, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ticketing/v1/issues", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ticketing.PaginatedIssueList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ticketing/v1/issues"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ticketing/v1/issues", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ticketing.PaginatedIssueList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ticketing/v1/issues"); } /** diff --git a/src/api/resources/ticketing/resources/linkToken/client/Client.ts b/src/api/resources/ticketing/resources/linkToken/client/Client.ts index 60d2aadbf..bb53bf292 100644 --- a/src/api/resources/ticketing/resources/linkToken/client/Client.ts +++ b/src/api/resources/ticketing/resources/linkToken/client/Client.ts @@ -24,7 +24,7 @@ export class LinkTokenClient { } /** - * Creates a link token to be used when linking a new end user. + * Creates a link token to be used when linking a new end user. The link token expires after single use. * * @param {Merge.ticketing.EndUserDetailsRequest} request * @param {LinkTokenClient.RequestOptions} requestOptions - Request-specific configuration. 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 3d3f8d253..96646e6b3 100644 --- a/src/api/resources/ticketing/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ b/src/api/resources/ticketing/resources/linkToken/client/requests/EndUserDetailsRequest.ts @@ -46,10 +46,4 @@ export interface EndUserDetailsRequest { areSyncsDisabled?: boolean; /** A JSON object containing integration-specific configuration options. */ integrationSpecificConfig?: Record; - /** - * When creating a Link token, you can specifiy the initial screen of Linking Flow for a completed Linked Account. - * - * * `SELECTIVE_SYNC` - SELECTIVE_SYNC - */ - completedAccountInitialScreen?: Merge.ticketing.EndUserDetailsRequestCompletedAccountInitialScreen; } diff --git a/src/api/resources/ticketing/resources/linkToken/types/EndUserDetailsRequestCompletedAccountInitialScreen.ts b/src/api/resources/ticketing/resources/linkToken/types/EndUserDetailsRequestCompletedAccountInitialScreen.ts deleted file mode 100644 index e2f489eac..000000000 --- a/src/api/resources/ticketing/resources/linkToken/types/EndUserDetailsRequestCompletedAccountInitialScreen.ts +++ /dev/null @@ -1,12 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../index"; - -/** - * When creating a Link token, you can specifiy the initial screen of Linking Flow for a completed Linked Account. - * - * * `SELECTIVE_SYNC` - SELECTIVE_SYNC - */ -export type EndUserDetailsRequestCompletedAccountInitialScreen = - | Merge.ticketing.CompletedAccountInitialScreenEnum - | string; diff --git a/src/api/resources/ticketing/resources/linkToken/types/index.ts b/src/api/resources/ticketing/resources/linkToken/types/index.ts index 7aed25cb1..c90e13c37 100644 --- a/src/api/resources/ticketing/resources/linkToken/types/index.ts +++ b/src/api/resources/ticketing/resources/linkToken/types/index.ts @@ -1,2 +1 @@ -export * from "./EndUserDetailsRequestCompletedAccountInitialScreen"; export * from "./EndUserDetailsRequestLanguage"; diff --git a/src/api/resources/ticketing/resources/linkedAccounts/client/Client.ts b/src/api/resources/ticketing/resources/linkedAccounts/client/Client.ts index e77195b07..95d7e65e2 100644 --- a/src/api/resources/ticketing/resources/linkedAccounts/client/Client.ts +++ b/src/api/resources/ticketing/resources/linkedAccounts/client/Client.ts @@ -46,96 +46,116 @@ export class LinkedAccountsClient { * status: "status" * }) */ - public list( + public async list( request: Merge.ticketing.LinkedAccountsListRequest = {}, requestOptions?: LinkedAccountsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ticketing.LinkedAccountsListRequest = {}, - requestOptions?: LinkedAccountsClient.RequestOptions, - ): Promise> { - const { - category, - cursor, - endUserEmailAddress, - endUserOrganizationName, - endUserOriginId, - endUserOriginIds, - id, - ids, - includeDuplicates, - integrationName, - isTestAccount, - pageSize, - status, - } = request; - const _queryParams: Record = { - category: - category != null - ? serializers.ticketing.LinkedAccountsListRequestCategory.jsonOrThrow(category, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - cursor, - end_user_email_address: endUserEmailAddress, - end_user_organization_name: endUserOrganizationName, - end_user_origin_id: endUserOriginId, - end_user_origin_ids: endUserOriginIds, - id, - ids, - include_duplicates: includeDuplicates, - integration_name: integrationName, - is_test_account: isTestAccount, - page_size: pageSize, - status, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise< + core.Page + > { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ticketing.LinkedAccountsListRequest, + ): Promise> => { + const { + category, + cursor, + endUserEmailAddress, + endUserOrganizationName, + endUserOriginId, + endUserOriginIds, + id, + ids, + includeDuplicates, + integrationName, + isTestAccount, + pageSize, + status, + } = request; + const _queryParams: Record = { + category: + category != null + ? serializers.ticketing.LinkedAccountsListRequestCategory.jsonOrThrow(category, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + cursor, + end_user_email_address: endUserEmailAddress, + end_user_organization_name: endUserOrganizationName, + end_user_origin_id: endUserOriginId, + end_user_origin_ids: endUserOriginIds, + id, + ids, + include_duplicates: includeDuplicates, + integration_name: integrationName, + is_test_account: isTestAccount, + page_size: pageSize, + status, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ticketing/v1/linked-accounts", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ticketing.PaginatedAccountDetailsAndActionsList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/ticketing/v1/linked-accounts", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ticketing/v1/linked-accounts", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page< + Merge.ticketing.AccountDetailsAndActions, + Merge.ticketing.PaginatedAccountDetailsAndActionsList + >({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ticketing.PaginatedAccountDetailsAndActionsList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ticketing/v1/linked-accounts"); } } diff --git a/src/api/resources/ticketing/resources/projects/client/Client.ts b/src/api/resources/ticketing/resources/projects/client/Client.ts index 378f77cc6..928270bab 100644 --- a/src/api/resources/ticketing/resources/projects/client/Client.ts +++ b/src/api/resources/ticketing/resources/projects/client/Client.ts @@ -43,86 +43,101 @@ export class ProjectsClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.ticketing.ProjectsListRequest = {}, requestOptions?: ProjectsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ticketing.ProjectsListRequest = {}, - requestOptions?: ProjectsClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ticketing.ProjectsListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ticketing/v1/projects", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ticketing.PaginatedProjectList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/ticketing/v1/projects", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ticketing/v1/projects", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ticketing.PaginatedProjectList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ticketing/v1/projects"); } /** @@ -213,89 +228,102 @@ export class ProjectsClient { * @example * await client.ticketing.projects.usersList("parent_id", { * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "roles", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, * pageSize: 1 * }) */ - public usersList( - parent_id: string, - request: Merge.ticketing.ProjectsUsersListRequest = {}, - requestOptions?: ProjectsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__usersList(parent_id, request, requestOptions)); - } - - private async __usersList( + public async usersList( parent_id: string, request: Merge.ticketing.ProjectsUsersListRequest = {}, requestOptions?: ProjectsClient.RequestOptions, - ): Promise> { - const { cursor, expand, includeDeletedData, includeRemoteData, includeShellData, pageSize } = request; - const _queryParams: Record = { - cursor, - expand: - expand != null - ? serializers.ticketing.ProjectsUsersListRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - page_size: pageSize, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ticketing.ProjectsUsersListRequest, + ): Promise> => { + const { cursor, expand, includeDeletedData, includeRemoteData, includeShellData, pageSize } = request; + const _queryParams: Record = { + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.ticketing.ProjectsUsersListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.ticketing.ProjectsUsersListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + `ticketing/v1/projects/${core.url.encodePathParam(parent_id)}/users`, + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ticketing.PaginatedUserList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/ticketing/v1/projects/{parent_id}/users", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - `ticketing/v1/projects/${core.url.encodePathParam(parent_id)}/users`, - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ticketing.PaginatedUserList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/ticketing/v1/projects/{parent_id}/users", - ); } } diff --git a/src/api/resources/ticketing/resources/projects/client/requests/ProjectsListRequest.ts b/src/api/resources/ticketing/resources/projects/client/requests/ProjectsListRequest.ts index 6675807e5..d8d176191 100644 --- a/src/api/resources/ticketing/resources/projects/client/requests/ProjectsListRequest.ts +++ b/src/api/resources/ticketing/resources/projects/client/requests/ProjectsListRequest.ts @@ -32,7 +32,7 @@ export interface ProjectsListRequest { modifiedAfter?: Date; /** If provided, only objects synced by Merge before this date time will be returned. */ modifiedBefore?: Date; - /** Number of results to return per page. The maximum limit is 100. */ + /** Number of results to return per page. */ pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; diff --git a/src/api/resources/ticketing/resources/projects/client/requests/ProjectsUsersListRequest.ts b/src/api/resources/ticketing/resources/projects/client/requests/ProjectsUsersListRequest.ts index fa4313fad..754b5a724 100644 --- a/src/api/resources/ticketing/resources/projects/client/requests/ProjectsUsersListRequest.ts +++ b/src/api/resources/ticketing/resources/projects/client/requests/ProjectsUsersListRequest.ts @@ -6,7 +6,6 @@ import type * as Merge from "../../../../../../index"; * @example * { * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "roles", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -17,7 +16,7 @@ export interface ProjectsUsersListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.ticketing.ProjectsUsersListRequestExpand; + expand?: Merge.ticketing.ProjectsUsersListRequestExpandItem | Merge.ticketing.ProjectsUsersListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ diff --git a/src/api/resources/ticketing/resources/projects/types/ProjectsUsersListRequestExpand.ts b/src/api/resources/ticketing/resources/projects/types/ProjectsUsersListRequestExpand.ts deleted file mode 100644 index 0be9def8c..000000000 --- a/src/api/resources/ticketing/resources/projects/types/ProjectsUsersListRequestExpand.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const ProjectsUsersListRequestExpand = { - Roles: "roles", - Teams: "teams", - TeamsRoles: "teams,roles", -} as const; -export type ProjectsUsersListRequestExpand = - (typeof ProjectsUsersListRequestExpand)[keyof typeof ProjectsUsersListRequestExpand]; diff --git a/src/api/resources/ticketing/resources/projects/types/ProjectsUsersListRequestExpandItem.ts b/src/api/resources/ticketing/resources/projects/types/ProjectsUsersListRequestExpandItem.ts new file mode 100644 index 000000000..dd125c722 --- /dev/null +++ b/src/api/resources/ticketing/resources/projects/types/ProjectsUsersListRequestExpandItem.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export const ProjectsUsersListRequestExpandItem = { + Roles: "roles", + Teams: "teams", +} as const; +export type ProjectsUsersListRequestExpandItem = + (typeof ProjectsUsersListRequestExpandItem)[keyof typeof ProjectsUsersListRequestExpandItem]; diff --git a/src/api/resources/ticketing/resources/projects/types/index.ts b/src/api/resources/ticketing/resources/projects/types/index.ts index d28a1cea3..db2e2aa6b 100644 --- a/src/api/resources/ticketing/resources/projects/types/index.ts +++ b/src/api/resources/ticketing/resources/projects/types/index.ts @@ -1 +1 @@ -export * from "./ProjectsUsersListRequestExpand"; +export * from "./ProjectsUsersListRequestExpandItem"; diff --git a/src/api/resources/ticketing/resources/roles/client/Client.ts b/src/api/resources/ticketing/resources/roles/client/Client.ts index acf7ba487..e43f7aa58 100644 --- a/src/api/resources/ticketing/resources/roles/client/Client.ts +++ b/src/api/resources/ticketing/resources/roles/client/Client.ts @@ -43,86 +43,96 @@ export class RolesClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.ticketing.RolesListRequest = {}, requestOptions?: RolesClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ticketing.RolesListRequest = {}, - requestOptions?: RolesClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ticketing.RolesListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ticketing/v1/roles", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ticketing.PaginatedRoleList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ticketing/v1/roles"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ticketing/v1/roles", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ticketing.PaginatedRoleList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ticketing/v1/roles"); } /** diff --git a/src/api/resources/ticketing/resources/syncStatus/client/Client.ts b/src/api/resources/ticketing/resources/syncStatus/client/Client.ts index 314a8472c..89d6ea154 100644 --- a/src/api/resources/ticketing/resources/syncStatus/client/Client.ts +++ b/src/api/resources/ticketing/resources/syncStatus/client/Client.ts @@ -35,66 +35,81 @@ export class SyncStatusClient { * pageSize: 1 * }) */ - public list( + public async list( request: Merge.ticketing.SyncStatusListRequest = {}, requestOptions?: SyncStatusClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ticketing.SyncStatusListRequest = {}, - requestOptions?: SyncStatusClient.RequestOptions, - ): Promise> { - const { cursor, pageSize } = request; - const _queryParams: Record = { - cursor, - page_size: pageSize, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ticketing.SyncStatusListRequest, + ): Promise> => { + const { cursor, pageSize } = request; + const _queryParams: Record = { + cursor, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ticketing/v1/sync-status", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ticketing.PaginatedSyncStatusList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/ticketing/v1/sync-status", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ticketing/v1/sync-status", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ticketing.PaginatedSyncStatusList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ticketing/v1/sync-status"); } } diff --git a/src/api/resources/ticketing/resources/tags/client/Client.ts b/src/api/resources/ticketing/resources/tags/client/Client.ts index bb1faf047..284ab1436 100644 --- a/src/api/resources/ticketing/resources/tags/client/Client.ts +++ b/src/api/resources/ticketing/resources/tags/client/Client.ts @@ -43,86 +43,96 @@ export class TagsClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.ticketing.TagsListRequest = {}, requestOptions?: TagsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ticketing.TagsListRequest = {}, - requestOptions?: TagsClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ticketing.TagsListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ticketing/v1/tags", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ticketing.PaginatedTagList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ticketing/v1/tags"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ticketing/v1/tags", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ticketing.PaginatedTagList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ticketing/v1/tags"); } /** diff --git a/src/api/resources/ticketing/resources/teams/client/Client.ts b/src/api/resources/ticketing/resources/teams/client/Client.ts index 7cfa4e6ce..1ea1730d3 100644 --- a/src/api/resources/ticketing/resources/teams/client/Client.ts +++ b/src/api/resources/ticketing/resources/teams/client/Client.ts @@ -43,86 +43,96 @@ export class TeamsClient { * remoteId: "remote_id" * }) */ - public list( + public async list( request: Merge.ticketing.TeamsListRequest = {}, requestOptions?: TeamsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ticketing.TeamsListRequest = {}, - requestOptions?: TeamsClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ticketing.TeamsListRequest, + ): Promise> => { + const { + createdAfter, + createdBefore, + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + } = request; + const _queryParams: Record = { + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ticketing/v1/teams", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ticketing.PaginatedTeamList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ticketing/v1/teams"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ticketing/v1/teams", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ticketing.PaginatedTeamList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ticketing/v1/teams"); } /** diff --git a/src/api/resources/ticketing/resources/tickets/client/Client.ts b/src/api/resources/ticketing/resources/tickets/client/Client.ts index c4fe18f60..c4f84f388 100644 --- a/src/api/resources/ticketing/resources/tickets/client/Client.ts +++ b/src/api/resources/ticketing/resources/tickets/client/Client.ts @@ -1,5 +1,6 @@ // This file was auto-generated by Fern from our API Definition. +import type * as stream from "stream"; import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient"; import { type NormalizedClientOptionsWithAuth, normalizeClientOptionsWithAuth } from "../../../../../../BaseClient"; import * as core from "../../../../../../core"; @@ -44,7 +45,6 @@ export class TicketsClient { * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * dueAfter: new Date("2024-01-15T09:30:00.000Z"), * dueBefore: new Date("2024-01-15T09:30:00.000Z"), - * expand: "account", * includeDeletedData: true, * includeRemoteData: true, * includeRemoteFields: true, @@ -59,6 +59,7 @@ export class TicketsClient { * remoteCreatedBefore: new Date("2024-01-15T09:30:00.000Z"), * remoteFields: "priority", * remoteId: "remote_id", + * remoteIds: "remote_ids", * remoteUpdatedAfter: new Date("2024-01-15T09:30:00.000Z"), * remoteUpdatedBefore: new Date("2024-01-15T09:30:00.000Z"), * showEnumOrigins: "priority", @@ -68,161 +69,178 @@ export class TicketsClient { * ticketUrl: "ticket_url" * }) */ - public list( + public async list( request: Merge.ticketing.TicketsListRequest = {}, requestOptions?: TicketsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ticketing.TicketsListRequest = {}, - requestOptions?: TicketsClient.RequestOptions, - ): Promise> { - const { - accountId, - assigneeIds, - collectionIds, - completedAfter, - completedBefore, - contactId, - createdAfter, - createdBefore, - creatorId, - creatorIds, - cursor, - dueAfter, - dueBefore, - expand, - includeDeletedData, - includeRemoteData, - includeRemoteFields, - includeShellData, - modifiedAfter, - modifiedBefore, - name, - pageSize, - parentTicketId, - priority, - remoteCreatedAfter, - remoteCreatedBefore, - remoteFields, - remoteId, - remoteUpdatedAfter, - remoteUpdatedBefore, - showEnumOrigins, - status, - tags, - ticketType, - ticketUrl, - } = request; - const _queryParams: Record = { - account_id: accountId, - assignee_ids: assigneeIds, - collection_ids: collectionIds, - completed_after: completedAfter?.toISOString(), - completed_before: completedBefore?.toISOString(), - contact_id: contactId, - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - creator_id: creatorId, - creator_ids: creatorIds, - cursor, - due_after: dueAfter?.toISOString(), - due_before: dueBefore?.toISOString(), - expand: - expand != null - ? serializers.ticketing.TicketsListRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_remote_fields: includeRemoteFields, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - name, - page_size: pageSize, - parent_ticket_id: parentTicketId, - priority: - priority != null - ? serializers.ticketing.TicketsListRequestPriority.jsonOrThrow(priority, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - remote_created_after: remoteCreatedAfter?.toISOString(), - remote_created_before: remoteCreatedBefore?.toISOString(), - remote_fields: - remoteFields != null - ? serializers.ticketing.TicketsListRequestRemoteFields.jsonOrThrow(remoteFields, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - remote_id: remoteId, - remote_updated_after: remoteUpdatedAfter?.toISOString(), - remote_updated_before: remoteUpdatedBefore?.toISOString(), - show_enum_origins: - showEnumOrigins != null - ? serializers.ticketing.TicketsListRequestShowEnumOrigins.jsonOrThrow(showEnumOrigins, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - status: - status != null - ? serializers.ticketing.TicketsListRequestStatus.jsonOrThrow(status, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - tags, - ticket_type: ticketType, - ticket_url: ticketUrl, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ticketing.TicketsListRequest, + ): Promise> => { + const { + accountId, + assigneeIds, + collectionIds, + completedAfter, + completedBefore, + contactId, + createdAfter, + createdBefore, + creatorId, + creatorIds, + cursor, + dueAfter, + dueBefore, + expand, + includeDeletedData, + includeRemoteData, + includeRemoteFields, + includeShellData, + modifiedAfter, + modifiedBefore, + name, + pageSize, + parentTicketId, + priority, + remoteCreatedAfter, + remoteCreatedBefore, + remoteFields, + remoteId, + remoteIds, + remoteUpdatedAfter, + remoteUpdatedBefore, + showEnumOrigins, + status, + tags, + ticketType, + ticketUrl, + } = request; + const _queryParams: Record = { + account_id: accountId, + assignee_ids: assigneeIds, + collection_ids: collectionIds, + completed_after: completedAfter?.toISOString(), + completed_before: completedBefore?.toISOString(), + contact_id: contactId, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + creator_id: creatorId, + creator_ids: creatorIds, + cursor, + due_after: dueAfter?.toISOString(), + due_before: dueBefore?.toISOString(), + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.ticketing.TicketsListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.ticketing.TicketsListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + name, + page_size: pageSize, + parent_ticket_id: parentTicketId, + priority: + priority != null + ? serializers.ticketing.TicketsListRequestPriority.jsonOrThrow(priority, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + remote_created_after: remoteCreatedAfter?.toISOString(), + remote_created_before: remoteCreatedBefore?.toISOString(), + remote_fields: + remoteFields != null + ? serializers.ticketing.TicketsListRequestRemoteFields.jsonOrThrow(remoteFields, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + remote_id: remoteId, + remote_ids: remoteIds, + remote_updated_after: remoteUpdatedAfter?.toISOString(), + remote_updated_before: remoteUpdatedBefore?.toISOString(), + show_enum_origins: + showEnumOrigins != null + ? serializers.ticketing.TicketsListRequestShowEnumOrigins.jsonOrThrow(showEnumOrigins, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + status: + status != null + ? serializers.ticketing.TicketsListRequestStatus.jsonOrThrow(status, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + tags, + ticket_type: ticketType, + ticket_url: ticketUrl, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ticketing/v1/tickets", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ticketing.PaginatedTicketList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ticketing/v1/tickets"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ticketing/v1/tickets", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ticketing.PaginatedTicketList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ticketing/v1/tickets"); } /** @@ -313,7 +331,6 @@ export class TicketsClient { * * @example * await client.ticketing.tickets.retrieve("id", { - * expand: "account", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true, @@ -337,12 +354,17 @@ export class TicketsClient { const { expand, includeRemoteData, includeRemoteFields, includeShellData, remoteFields, showEnumOrigins } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.ticketing.TicketsRetrieveRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.ticketing.TicketsRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.ticketing.TicketsRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_remote_fields: includeRemoteFields, include_shell_data: includeShellData, @@ -500,39 +522,159 @@ export class TicketsClient { * @example * await client.ticketing.tickets.viewersList("ticket_id", { * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "team", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, * pageSize: 1 * }) */ - public viewersList( + public async viewersList( ticket_id: string, request: Merge.ticketing.TicketsViewersListRequest = {}, requestOptions?: TicketsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__viewersList(ticket_id, request, requestOptions)); + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ticketing.TicketsViewersListRequest, + ): Promise> => { + const { cursor, expand, includeDeletedData, includeRemoteData, includeShellData, pageSize } = request; + const _queryParams: Record = { + cursor, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.ticketing.TicketsViewersListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.ticketing.TicketsViewersListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + `ticketing/v1/tickets/${core.url.encodePathParam(ticket_id)}/viewers`, + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ticketing.PaginatedViewerList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/ticketing/v1/tickets/{ticket_id}/viewers", + ); + }, + ); + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, + }); } - private async __viewersList( - ticket_id: string, - request: Merge.ticketing.TicketsViewersListRequest = {}, + /** + * Returns a list of `Ticket` objects. + */ + public liveSearchRetrieve( + request: Merge.ticketing.TicketsLiveSearchRetrieveRequest = {}, requestOptions?: TicketsClient.RequestOptions, - ): Promise> { - const { cursor, expand, includeDeletedData, includeRemoteData, includeShellData, pageSize } = request; + ): core.HttpResponsePromise { + return core.HttpResponsePromise.fromPromise(this.__liveSearchRetrieve(request, requestOptions)); + } + + private async __liveSearchRetrieve( + request: Merge.ticketing.TicketsLiveSearchRetrieveRequest = {}, + requestOptions?: TicketsClient.RequestOptions, + ): Promise> { + const { + assigneeIds, + assignees, + collectionIds, + collections, + includeDeletedData, + includeRemoteFields, + includeShellData, + name, + remoteCursor, + remoteFields, + showEnumOrigins, + status, + ticketUrl, + } = request; const _queryParams: Record = { - cursor, - expand: - expand != null - ? serializers.ticketing.TicketsViewersListRequestExpand.jsonOrThrow(expand, { + assignee_ids: assigneeIds, + assignees, + collection_ids: collectionIds, + collections, + include_deleted_data: includeDeletedData, + include_remote_fields: includeRemoteFields, + include_shell_data: includeShellData, + name, + remote_cursor: remoteCursor, + remote_fields: + remoteFields != null + ? serializers.ticketing.TicketsLiveSearchRetrieveRequestRemoteFields.jsonOrThrow(remoteFields, { unrecognizedObjectKeys: "strip", }) : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - page_size: pageSize, + show_enum_origins: + showEnumOrigins != null + ? serializers.ticketing.TicketsLiveSearchRetrieveRequestShowEnumOrigins.jsonOrThrow( + showEnumOrigins, + { unrecognizedObjectKeys: "strip" }, + ) + : undefined, + status, + ticket_url: ticketUrl, }; const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); const _headers: core.Fetcher.Args["headers"] = mergeHeaders( @@ -541,16 +683,17 @@ export class TicketsClient { mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), requestOptions?.headers, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ + const _response = await (this._options.fetcher ?? core.fetcher)({ url: core.url.join( (await core.Supplier.get(this._options.baseUrl)) ?? (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - `ticketing/v1/tickets/${core.url.encodePathParam(ticket_id)}/viewers`, + "ticketing/v1/tickets/live-search", ), method: "GET", headers: _headers, queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + responseType: "streaming", timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -558,16 +701,7 @@ export class TicketsClient { logging: this._options.logging, }); if (_response.ok) { - return { - data: serializers.ticketing.PaginatedViewerList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; + return { data: _response.body, rawResponse: _response.rawResponse }; } if (_response.error.reason === "status-code") { @@ -582,7 +716,7 @@ export class TicketsClient { _response.error, _response.rawResponse, "GET", - "/ticketing/v1/tickets/{ticket_id}/viewers", + "/ticketing/v1/tickets/live-search", ); } @@ -756,86 +890,96 @@ export class TicketsClient { * pageSize: 1 * }) */ - public remoteFieldClassesList( - request: Merge.ticketing.TicketsRemoteFieldClassesListRequest = {}, - requestOptions?: TicketsClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__remoteFieldClassesList(request, requestOptions)); - } - - private async __remoteFieldClassesList( + public async remoteFieldClassesList( request: Merge.ticketing.TicketsRemoteFieldClassesListRequest = {}, requestOptions?: TicketsClient.RequestOptions, - ): Promise> { - const { - cursor, - ids, - includeDeletedData, - includeRemoteData, - includeShellData, - isCommonModelField, - isCustom, - pageSize, - } = request; - const _queryParams: Record = { - cursor, - ids, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - is_common_model_field: isCommonModelField, - is_custom: isCustom, - page_size: pageSize, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ticketing.TicketsRemoteFieldClassesListRequest, + ): Promise> => { + const { + cursor, + ids, + includeDeletedData, + includeRemoteData, + includeShellData, + isCommonModelField, + isCustom, + pageSize, + } = request; + const _queryParams: Record = { + cursor, + ids, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + is_common_model_field: isCommonModelField, + is_custom: isCustom, + page_size: pageSize, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ticketing/v1/tickets/remote-field-classes", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ticketing.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError( + _response.error, + _response.rawResponse, + "GET", + "/ticketing/v1/tickets/remote-field-classes", + ); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ticketing/v1/tickets/remote-field-classes", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ticketing.PaginatedRemoteFieldClassList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError( - _response.error, - _response.rawResponse, - "GET", - "/ticketing/v1/tickets/remote-field-classes", - ); } } diff --git a/src/api/resources/ticketing/resources/tickets/client/requests/TicketsListRequest.ts b/src/api/resources/ticketing/resources/tickets/client/requests/TicketsListRequest.ts index a6c5b191e..6955b850b 100644 --- a/src/api/resources/ticketing/resources/tickets/client/requests/TicketsListRequest.ts +++ b/src/api/resources/ticketing/resources/tickets/client/requests/TicketsListRequest.ts @@ -18,7 +18,6 @@ import type * as Merge from "../../../../../../index"; * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * dueAfter: new Date("2024-01-15T09:30:00.000Z"), * dueBefore: new Date("2024-01-15T09:30:00.000Z"), - * expand: "account", * includeDeletedData: true, * includeRemoteData: true, * includeRemoteFields: true, @@ -33,6 +32,7 @@ import type * as Merge from "../../../../../../index"; * remoteCreatedBefore: new Date("2024-01-15T09:30:00.000Z"), * remoteFields: "priority", * remoteId: "remote_id", + * remoteIds: "remote_ids", * remoteUpdatedAfter: new Date("2024-01-15T09:30:00.000Z"), * remoteUpdatedBefore: new Date("2024-01-15T09:30:00.000Z"), * showEnumOrigins: "priority", @@ -70,7 +70,7 @@ export interface TicketsListRequest { /** If provided, will only return tickets due before this datetime. */ dueBefore?: Date; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.ticketing.TicketsListRequestExpand; + expand?: Merge.ticketing.TicketsListRequestExpandItem | Merge.ticketing.TicketsListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -106,6 +106,8 @@ export interface TicketsListRequest { remoteFields?: Merge.ticketing.TicketsListRequestRemoteFields; /** The API provider's ID for the given object. */ remoteId?: string; + /** If provided, will only return tickets with these remote IDs (comma-separated). */ + remoteIds?: string; /** If provided, will only return tickets updated in the third party platform after this datetime. */ remoteUpdatedAfter?: Date; /** If provided, will only return tickets updated in the third party platform before this datetime. */ diff --git a/src/api/resources/ticketing/resources/tickets/client/requests/TicketsLiveSearchRetrieveRequest.ts b/src/api/resources/ticketing/resources/tickets/client/requests/TicketsLiveSearchRetrieveRequest.ts new file mode 100644 index 000000000..9c476340d --- /dev/null +++ b/src/api/resources/ticketing/resources/tickets/client/requests/TicketsLiveSearchRetrieveRequest.ts @@ -0,0 +1,32 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../index"; + +export interface TicketsLiveSearchRetrieveRequest { + /** Filter tickets by assignee IDs (comma-separated) */ + assigneeIds?: string; + /** Filter tickets by assignee names (comma-separated) */ + assignees?: string; + /** Filter tickets by collection IDs (comma-separated) */ + collectionIds?: string; + /** Filter tickets by collection names (comma-separated) */ + collections?: string; + /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ + includeDeletedData?: boolean; + /** Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. */ + includeRemoteFields?: boolean; + /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ + includeShellData?: boolean; + /** Filter tickets by name/title */ + name?: string; + /** Pagination cursor for remote data */ + remoteCursor?: string; + /** Deprecated. Use show_enum_origins. */ + remoteFields?: Merge.ticketing.TicketsLiveSearchRetrieveRequestRemoteFields; + /** A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter) */ + showEnumOrigins?: Merge.ticketing.TicketsLiveSearchRetrieveRequestShowEnumOrigins; + /** Filter tickets by status */ + status?: string; + /** Filter tickets by URL */ + ticketUrl?: string; +} diff --git a/src/api/resources/ticketing/resources/tickets/client/requests/TicketsRetrieveRequest.ts b/src/api/resources/ticketing/resources/tickets/client/requests/TicketsRetrieveRequest.ts index db5816ce1..8f0b498b5 100644 --- a/src/api/resources/ticketing/resources/tickets/client/requests/TicketsRetrieveRequest.ts +++ b/src/api/resources/ticketing/resources/tickets/client/requests/TicketsRetrieveRequest.ts @@ -5,7 +5,6 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "account", * includeRemoteData: true, * includeRemoteFields: true, * includeShellData: true, @@ -15,7 +14,7 @@ import type * as Merge from "../../../../../../index"; */ export interface TicketsRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.ticketing.TicketsRetrieveRequestExpand; + expand?: Merge.ticketing.TicketsRetrieveRequestExpandItem | Merge.ticketing.TicketsRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format. */ diff --git a/src/api/resources/ticketing/resources/tickets/client/requests/TicketsViewersListRequest.ts b/src/api/resources/ticketing/resources/tickets/client/requests/TicketsViewersListRequest.ts index edf20328f..a3cd06d99 100644 --- a/src/api/resources/ticketing/resources/tickets/client/requests/TicketsViewersListRequest.ts +++ b/src/api/resources/ticketing/resources/tickets/client/requests/TicketsViewersListRequest.ts @@ -6,7 +6,6 @@ import type * as Merge from "../../../../../../index"; * @example * { * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - * expand: "team", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -17,7 +16,9 @@ export interface TicketsViewersListRequest { /** The pagination cursor value. */ cursor?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.ticketing.TicketsViewersListRequestExpand; + expand?: + | Merge.ticketing.TicketsViewersListRequestExpandItem + | Merge.ticketing.TicketsViewersListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ diff --git a/src/api/resources/ticketing/resources/tickets/client/requests/index.ts b/src/api/resources/ticketing/resources/tickets/client/requests/index.ts index f9ea12a9e..ac83a90aa 100644 --- a/src/api/resources/ticketing/resources/tickets/client/requests/index.ts +++ b/src/api/resources/ticketing/resources/tickets/client/requests/index.ts @@ -1,6 +1,7 @@ export type { PatchedTicketEndpointRequest } from "./PatchedTicketEndpointRequest"; export type { TicketEndpointRequest } from "./TicketEndpointRequest"; export type { TicketsListRequest } from "./TicketsListRequest"; +export type { TicketsLiveSearchRetrieveRequest } from "./TicketsLiveSearchRetrieveRequest"; export type { TicketsMetaPostRetrieveRequest } from "./TicketsMetaPostRetrieveRequest"; export type { TicketsRemoteFieldClassesListRequest } from "./TicketsRemoteFieldClassesListRequest"; export type { TicketsRetrieveRequest } from "./TicketsRetrieveRequest"; diff --git a/src/api/resources/ticketing/resources/tickets/types/TicketsListRequestExpand.ts b/src/api/resources/ticketing/resources/tickets/types/TicketsListRequestExpand.ts deleted file mode 100644 index 8be58af79..000000000 --- a/src/api/resources/ticketing/resources/tickets/types/TicketsListRequestExpand.ts +++ /dev/null @@ -1,300 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const TicketsListRequestExpand = { - Account: "account", - AccountContact: "account,contact", - AccountContactCreator: "account,contact,creator", - AccountContactCreatorParentTicket: "account,contact,creator,parent_ticket", - AccountContactParentTicket: "account,contact,parent_ticket", - AccountCreator: "account,creator", - AccountCreatorParentTicket: "account,creator,parent_ticket", - AccountParentTicket: "account,parent_ticket", - AssignedTeams: "assigned_teams", - AssignedTeamsAccount: "assigned_teams,account", - AssignedTeamsAccountContact: "assigned_teams,account,contact", - AssignedTeamsAccountContactCreator: "assigned_teams,account,contact,creator", - AssignedTeamsAccountContactCreatorParentTicket: "assigned_teams,account,contact,creator,parent_ticket", - AssignedTeamsAccountContactParentTicket: "assigned_teams,account,contact,parent_ticket", - AssignedTeamsAccountCreator: "assigned_teams,account,creator", - AssignedTeamsAccountCreatorParentTicket: "assigned_teams,account,creator,parent_ticket", - AssignedTeamsAccountParentTicket: "assigned_teams,account,parent_ticket", - AssignedTeamsContact: "assigned_teams,contact", - AssignedTeamsContactCreator: "assigned_teams,contact,creator", - AssignedTeamsContactCreatorParentTicket: "assigned_teams,contact,creator,parent_ticket", - AssignedTeamsContactParentTicket: "assigned_teams,contact,parent_ticket", - AssignedTeamsCreator: "assigned_teams,creator", - AssignedTeamsCreatorParentTicket: "assigned_teams,creator,parent_ticket", - AssignedTeamsParentTicket: "assigned_teams,parent_ticket", - Assignees: "assignees", - AssigneesAccount: "assignees,account", - AssigneesAccountContact: "assignees,account,contact", - AssigneesAccountContactCreator: "assignees,account,contact,creator", - AssigneesAccountContactCreatorParentTicket: "assignees,account,contact,creator,parent_ticket", - AssigneesAccountContactParentTicket: "assignees,account,contact,parent_ticket", - AssigneesAccountCreator: "assignees,account,creator", - AssigneesAccountCreatorParentTicket: "assignees,account,creator,parent_ticket", - AssigneesAccountParentTicket: "assignees,account,parent_ticket", - AssigneesAssignedTeams: "assignees,assigned_teams", - AssigneesAssignedTeamsAccount: "assignees,assigned_teams,account", - AssigneesAssignedTeamsAccountContact: "assignees,assigned_teams,account,contact", - AssigneesAssignedTeamsAccountContactCreator: "assignees,assigned_teams,account,contact,creator", - AssigneesAssignedTeamsAccountContactCreatorParentTicket: - "assignees,assigned_teams,account,contact,creator,parent_ticket", - AssigneesAssignedTeamsAccountContactParentTicket: "assignees,assigned_teams,account,contact,parent_ticket", - AssigneesAssignedTeamsAccountCreator: "assignees,assigned_teams,account,creator", - AssigneesAssignedTeamsAccountCreatorParentTicket: "assignees,assigned_teams,account,creator,parent_ticket", - AssigneesAssignedTeamsAccountParentTicket: "assignees,assigned_teams,account,parent_ticket", - AssigneesAssignedTeamsContact: "assignees,assigned_teams,contact", - AssigneesAssignedTeamsContactCreator: "assignees,assigned_teams,contact,creator", - AssigneesAssignedTeamsContactCreatorParentTicket: "assignees,assigned_teams,contact,creator,parent_ticket", - AssigneesAssignedTeamsContactParentTicket: "assignees,assigned_teams,contact,parent_ticket", - AssigneesAssignedTeamsCreator: "assignees,assigned_teams,creator", - AssigneesAssignedTeamsCreatorParentTicket: "assignees,assigned_teams,creator,parent_ticket", - AssigneesAssignedTeamsParentTicket: "assignees,assigned_teams,parent_ticket", - AssigneesCollections: "assignees,collections", - AssigneesCollectionsAccount: "assignees,collections,account", - AssigneesCollectionsAccountContact: "assignees,collections,account,contact", - AssigneesCollectionsAccountContactCreator: "assignees,collections,account,contact,creator", - AssigneesCollectionsAccountContactCreatorParentTicket: - "assignees,collections,account,contact,creator,parent_ticket", - AssigneesCollectionsAccountContactParentTicket: "assignees,collections,account,contact,parent_ticket", - AssigneesCollectionsAccountCreator: "assignees,collections,account,creator", - AssigneesCollectionsAccountCreatorParentTicket: "assignees,collections,account,creator,parent_ticket", - AssigneesCollectionsAccountParentTicket: "assignees,collections,account,parent_ticket", - AssigneesCollectionsAssignedTeams: "assignees,collections,assigned_teams", - AssigneesCollectionsAssignedTeamsAccount: "assignees,collections,assigned_teams,account", - AssigneesCollectionsAssignedTeamsAccountContact: "assignees,collections,assigned_teams,account,contact", - AssigneesCollectionsAssignedTeamsAccountContactCreator: - "assignees,collections,assigned_teams,account,contact,creator", - AssigneesCollectionsAssignedTeamsAccountContactCreatorParentTicket: - "assignees,collections,assigned_teams,account,contact,creator,parent_ticket", - AssigneesCollectionsAssignedTeamsAccountContactParentTicket: - "assignees,collections,assigned_teams,account,contact,parent_ticket", - AssigneesCollectionsAssignedTeamsAccountCreator: "assignees,collections,assigned_teams,account,creator", - AssigneesCollectionsAssignedTeamsAccountCreatorParentTicket: - "assignees,collections,assigned_teams,account,creator,parent_ticket", - AssigneesCollectionsAssignedTeamsAccountParentTicket: "assignees,collections,assigned_teams,account,parent_ticket", - AssigneesCollectionsAssignedTeamsContact: "assignees,collections,assigned_teams,contact", - AssigneesCollectionsAssignedTeamsContactCreator: "assignees,collections,assigned_teams,contact,creator", - AssigneesCollectionsAssignedTeamsContactCreatorParentTicket: - "assignees,collections,assigned_teams,contact,creator,parent_ticket", - AssigneesCollectionsAssignedTeamsContactParentTicket: "assignees,collections,assigned_teams,contact,parent_ticket", - AssigneesCollectionsAssignedTeamsCreator: "assignees,collections,assigned_teams,creator", - AssigneesCollectionsAssignedTeamsCreatorParentTicket: "assignees,collections,assigned_teams,creator,parent_ticket", - AssigneesCollectionsAssignedTeamsParentTicket: "assignees,collections,assigned_teams,parent_ticket", - AssigneesCollectionsContact: "assignees,collections,contact", - AssigneesCollectionsContactCreator: "assignees,collections,contact,creator", - AssigneesCollectionsContactCreatorParentTicket: "assignees,collections,contact,creator,parent_ticket", - AssigneesCollectionsContactParentTicket: "assignees,collections,contact,parent_ticket", - AssigneesCollectionsCreator: "assignees,collections,creator", - AssigneesCollectionsCreatorParentTicket: "assignees,collections,creator,parent_ticket", - AssigneesCollectionsParentTicket: "assignees,collections,parent_ticket", - AssigneesContact: "assignees,contact", - AssigneesContactCreator: "assignees,contact,creator", - AssigneesContactCreatorParentTicket: "assignees,contact,creator,parent_ticket", - AssigneesContactParentTicket: "assignees,contact,parent_ticket", - AssigneesCreator: "assignees,creator", - AssigneesCreatorParentTicket: "assignees,creator,parent_ticket", - AssigneesParentTicket: "assignees,parent_ticket", - Attachments: "attachments", - AttachmentsAccount: "attachments,account", - AttachmentsAccountContact: "attachments,account,contact", - AttachmentsAccountContactCreator: "attachments,account,contact,creator", - AttachmentsAccountContactCreatorParentTicket: "attachments,account,contact,creator,parent_ticket", - AttachmentsAccountContactParentTicket: "attachments,account,contact,parent_ticket", - AttachmentsAccountCreator: "attachments,account,creator", - AttachmentsAccountCreatorParentTicket: "attachments,account,creator,parent_ticket", - AttachmentsAccountParentTicket: "attachments,account,parent_ticket", - AttachmentsAssignedTeams: "attachments,assigned_teams", - AttachmentsAssignedTeamsAccount: "attachments,assigned_teams,account", - AttachmentsAssignedTeamsAccountContact: "attachments,assigned_teams,account,contact", - AttachmentsAssignedTeamsAccountContactCreator: "attachments,assigned_teams,account,contact,creator", - AttachmentsAssignedTeamsAccountContactCreatorParentTicket: - "attachments,assigned_teams,account,contact,creator,parent_ticket", - AttachmentsAssignedTeamsAccountContactParentTicket: "attachments,assigned_teams,account,contact,parent_ticket", - AttachmentsAssignedTeamsAccountCreator: "attachments,assigned_teams,account,creator", - AttachmentsAssignedTeamsAccountCreatorParentTicket: "attachments,assigned_teams,account,creator,parent_ticket", - AttachmentsAssignedTeamsAccountParentTicket: "attachments,assigned_teams,account,parent_ticket", - AttachmentsAssignedTeamsContact: "attachments,assigned_teams,contact", - AttachmentsAssignedTeamsContactCreator: "attachments,assigned_teams,contact,creator", - AttachmentsAssignedTeamsContactCreatorParentTicket: "attachments,assigned_teams,contact,creator,parent_ticket", - AttachmentsAssignedTeamsContactParentTicket: "attachments,assigned_teams,contact,parent_ticket", - AttachmentsAssignedTeamsCreator: "attachments,assigned_teams,creator", - AttachmentsAssignedTeamsCreatorParentTicket: "attachments,assigned_teams,creator,parent_ticket", - AttachmentsAssignedTeamsParentTicket: "attachments,assigned_teams,parent_ticket", - AttachmentsAssignees: "attachments,assignees", - AttachmentsAssigneesAccount: "attachments,assignees,account", - AttachmentsAssigneesAccountContact: "attachments,assignees,account,contact", - AttachmentsAssigneesAccountContactCreator: "attachments,assignees,account,contact,creator", - AttachmentsAssigneesAccountContactCreatorParentTicket: - "attachments,assignees,account,contact,creator,parent_ticket", - AttachmentsAssigneesAccountContactParentTicket: "attachments,assignees,account,contact,parent_ticket", - AttachmentsAssigneesAccountCreator: "attachments,assignees,account,creator", - AttachmentsAssigneesAccountCreatorParentTicket: "attachments,assignees,account,creator,parent_ticket", - AttachmentsAssigneesAccountParentTicket: "attachments,assignees,account,parent_ticket", - AttachmentsAssigneesAssignedTeams: "attachments,assignees,assigned_teams", - AttachmentsAssigneesAssignedTeamsAccount: "attachments,assignees,assigned_teams,account", - AttachmentsAssigneesAssignedTeamsAccountContact: "attachments,assignees,assigned_teams,account,contact", - AttachmentsAssigneesAssignedTeamsAccountContactCreator: - "attachments,assignees,assigned_teams,account,contact,creator", - AttachmentsAssigneesAssignedTeamsAccountContactCreatorParentTicket: - "attachments,assignees,assigned_teams,account,contact,creator,parent_ticket", - AttachmentsAssigneesAssignedTeamsAccountContactParentTicket: - "attachments,assignees,assigned_teams,account,contact,parent_ticket", - AttachmentsAssigneesAssignedTeamsAccountCreator: "attachments,assignees,assigned_teams,account,creator", - AttachmentsAssigneesAssignedTeamsAccountCreatorParentTicket: - "attachments,assignees,assigned_teams,account,creator,parent_ticket", - AttachmentsAssigneesAssignedTeamsAccountParentTicket: "attachments,assignees,assigned_teams,account,parent_ticket", - AttachmentsAssigneesAssignedTeamsContact: "attachments,assignees,assigned_teams,contact", - AttachmentsAssigneesAssignedTeamsContactCreator: "attachments,assignees,assigned_teams,contact,creator", - AttachmentsAssigneesAssignedTeamsContactCreatorParentTicket: - "attachments,assignees,assigned_teams,contact,creator,parent_ticket", - AttachmentsAssigneesAssignedTeamsContactParentTicket: "attachments,assignees,assigned_teams,contact,parent_ticket", - AttachmentsAssigneesAssignedTeamsCreator: "attachments,assignees,assigned_teams,creator", - AttachmentsAssigneesAssignedTeamsCreatorParentTicket: "attachments,assignees,assigned_teams,creator,parent_ticket", - AttachmentsAssigneesAssignedTeamsParentTicket: "attachments,assignees,assigned_teams,parent_ticket", - AttachmentsAssigneesCollections: "attachments,assignees,collections", - AttachmentsAssigneesCollectionsAccount: "attachments,assignees,collections,account", - AttachmentsAssigneesCollectionsAccountContact: "attachments,assignees,collections,account,contact", - AttachmentsAssigneesCollectionsAccountContactCreator: "attachments,assignees,collections,account,contact,creator", - AttachmentsAssigneesCollectionsAccountContactCreatorParentTicket: - "attachments,assignees,collections,account,contact,creator,parent_ticket", - AttachmentsAssigneesCollectionsAccountContactParentTicket: - "attachments,assignees,collections,account,contact,parent_ticket", - AttachmentsAssigneesCollectionsAccountCreator: "attachments,assignees,collections,account,creator", - AttachmentsAssigneesCollectionsAccountCreatorParentTicket: - "attachments,assignees,collections,account,creator,parent_ticket", - AttachmentsAssigneesCollectionsAccountParentTicket: "attachments,assignees,collections,account,parent_ticket", - AttachmentsAssigneesCollectionsAssignedTeams: "attachments,assignees,collections,assigned_teams", - AttachmentsAssigneesCollectionsAssignedTeamsAccount: "attachments,assignees,collections,assigned_teams,account", - AttachmentsAssigneesCollectionsAssignedTeamsAccountContact: - "attachments,assignees,collections,assigned_teams,account,contact", - AttachmentsAssigneesCollectionsAssignedTeamsAccountContactCreator: - "attachments,assignees,collections,assigned_teams,account,contact,creator", - AttachmentsAssigneesCollectionsAssignedTeamsAccountContactCreatorParentTicket: - "attachments,assignees,collections,assigned_teams,account,contact,creator,parent_ticket", - AttachmentsAssigneesCollectionsAssignedTeamsAccountContactParentTicket: - "attachments,assignees,collections,assigned_teams,account,contact,parent_ticket", - AttachmentsAssigneesCollectionsAssignedTeamsAccountCreator: - "attachments,assignees,collections,assigned_teams,account,creator", - AttachmentsAssigneesCollectionsAssignedTeamsAccountCreatorParentTicket: - "attachments,assignees,collections,assigned_teams,account,creator,parent_ticket", - AttachmentsAssigneesCollectionsAssignedTeamsAccountParentTicket: - "attachments,assignees,collections,assigned_teams,account,parent_ticket", - AttachmentsAssigneesCollectionsAssignedTeamsContact: "attachments,assignees,collections,assigned_teams,contact", - AttachmentsAssigneesCollectionsAssignedTeamsContactCreator: - "attachments,assignees,collections,assigned_teams,contact,creator", - AttachmentsAssigneesCollectionsAssignedTeamsContactCreatorParentTicket: - "attachments,assignees,collections,assigned_teams,contact,creator,parent_ticket", - AttachmentsAssigneesCollectionsAssignedTeamsContactParentTicket: - "attachments,assignees,collections,assigned_teams,contact,parent_ticket", - AttachmentsAssigneesCollectionsAssignedTeamsCreator: "attachments,assignees,collections,assigned_teams,creator", - AttachmentsAssigneesCollectionsAssignedTeamsCreatorParentTicket: - "attachments,assignees,collections,assigned_teams,creator,parent_ticket", - AttachmentsAssigneesCollectionsAssignedTeamsParentTicket: - "attachments,assignees,collections,assigned_teams,parent_ticket", - AttachmentsAssigneesCollectionsContact: "attachments,assignees,collections,contact", - AttachmentsAssigneesCollectionsContactCreator: "attachments,assignees,collections,contact,creator", - AttachmentsAssigneesCollectionsContactCreatorParentTicket: - "attachments,assignees,collections,contact,creator,parent_ticket", - AttachmentsAssigneesCollectionsContactParentTicket: "attachments,assignees,collections,contact,parent_ticket", - AttachmentsAssigneesCollectionsCreator: "attachments,assignees,collections,creator", - AttachmentsAssigneesCollectionsCreatorParentTicket: "attachments,assignees,collections,creator,parent_ticket", - AttachmentsAssigneesCollectionsParentTicket: "attachments,assignees,collections,parent_ticket", - AttachmentsAssigneesContact: "attachments,assignees,contact", - AttachmentsAssigneesContactCreator: "attachments,assignees,contact,creator", - AttachmentsAssigneesContactCreatorParentTicket: "attachments,assignees,contact,creator,parent_ticket", - AttachmentsAssigneesContactParentTicket: "attachments,assignees,contact,parent_ticket", - AttachmentsAssigneesCreator: "attachments,assignees,creator", - AttachmentsAssigneesCreatorParentTicket: "attachments,assignees,creator,parent_ticket", - AttachmentsAssigneesParentTicket: "attachments,assignees,parent_ticket", - AttachmentsCollections: "attachments,collections", - AttachmentsCollectionsAccount: "attachments,collections,account", - AttachmentsCollectionsAccountContact: "attachments,collections,account,contact", - AttachmentsCollectionsAccountContactCreator: "attachments,collections,account,contact,creator", - AttachmentsCollectionsAccountContactCreatorParentTicket: - "attachments,collections,account,contact,creator,parent_ticket", - AttachmentsCollectionsAccountContactParentTicket: "attachments,collections,account,contact,parent_ticket", - AttachmentsCollectionsAccountCreator: "attachments,collections,account,creator", - AttachmentsCollectionsAccountCreatorParentTicket: "attachments,collections,account,creator,parent_ticket", - AttachmentsCollectionsAccountParentTicket: "attachments,collections,account,parent_ticket", - AttachmentsCollectionsAssignedTeams: "attachments,collections,assigned_teams", - AttachmentsCollectionsAssignedTeamsAccount: "attachments,collections,assigned_teams,account", - AttachmentsCollectionsAssignedTeamsAccountContact: "attachments,collections,assigned_teams,account,contact", - AttachmentsCollectionsAssignedTeamsAccountContactCreator: - "attachments,collections,assigned_teams,account,contact,creator", - AttachmentsCollectionsAssignedTeamsAccountContactCreatorParentTicket: - "attachments,collections,assigned_teams,account,contact,creator,parent_ticket", - AttachmentsCollectionsAssignedTeamsAccountContactParentTicket: - "attachments,collections,assigned_teams,account,contact,parent_ticket", - AttachmentsCollectionsAssignedTeamsAccountCreator: "attachments,collections,assigned_teams,account,creator", - AttachmentsCollectionsAssignedTeamsAccountCreatorParentTicket: - "attachments,collections,assigned_teams,account,creator,parent_ticket", - AttachmentsCollectionsAssignedTeamsAccountParentTicket: - "attachments,collections,assigned_teams,account,parent_ticket", - AttachmentsCollectionsAssignedTeamsContact: "attachments,collections,assigned_teams,contact", - AttachmentsCollectionsAssignedTeamsContactCreator: "attachments,collections,assigned_teams,contact,creator", - AttachmentsCollectionsAssignedTeamsContactCreatorParentTicket: - "attachments,collections,assigned_teams,contact,creator,parent_ticket", - AttachmentsCollectionsAssignedTeamsContactParentTicket: - "attachments,collections,assigned_teams,contact,parent_ticket", - AttachmentsCollectionsAssignedTeamsCreator: "attachments,collections,assigned_teams,creator", - AttachmentsCollectionsAssignedTeamsCreatorParentTicket: - "attachments,collections,assigned_teams,creator,parent_ticket", - AttachmentsCollectionsAssignedTeamsParentTicket: "attachments,collections,assigned_teams,parent_ticket", - AttachmentsCollectionsContact: "attachments,collections,contact", - AttachmentsCollectionsContactCreator: "attachments,collections,contact,creator", - AttachmentsCollectionsContactCreatorParentTicket: "attachments,collections,contact,creator,parent_ticket", - AttachmentsCollectionsContactParentTicket: "attachments,collections,contact,parent_ticket", - AttachmentsCollectionsCreator: "attachments,collections,creator", - AttachmentsCollectionsCreatorParentTicket: "attachments,collections,creator,parent_ticket", - AttachmentsCollectionsParentTicket: "attachments,collections,parent_ticket", - AttachmentsContact: "attachments,contact", - AttachmentsContactCreator: "attachments,contact,creator", - AttachmentsContactCreatorParentTicket: "attachments,contact,creator,parent_ticket", - AttachmentsContactParentTicket: "attachments,contact,parent_ticket", - AttachmentsCreator: "attachments,creator", - AttachmentsCreatorParentTicket: "attachments,creator,parent_ticket", - AttachmentsParentTicket: "attachments,parent_ticket", - Collections: "collections", - CollectionsAccount: "collections,account", - CollectionsAccountContact: "collections,account,contact", - CollectionsAccountContactCreator: "collections,account,contact,creator", - CollectionsAccountContactCreatorParentTicket: "collections,account,contact,creator,parent_ticket", - CollectionsAccountContactParentTicket: "collections,account,contact,parent_ticket", - CollectionsAccountCreator: "collections,account,creator", - CollectionsAccountCreatorParentTicket: "collections,account,creator,parent_ticket", - CollectionsAccountParentTicket: "collections,account,parent_ticket", - CollectionsAssignedTeams: "collections,assigned_teams", - CollectionsAssignedTeamsAccount: "collections,assigned_teams,account", - CollectionsAssignedTeamsAccountContact: "collections,assigned_teams,account,contact", - CollectionsAssignedTeamsAccountContactCreator: "collections,assigned_teams,account,contact,creator", - CollectionsAssignedTeamsAccountContactCreatorParentTicket: - "collections,assigned_teams,account,contact,creator,parent_ticket", - CollectionsAssignedTeamsAccountContactParentTicket: "collections,assigned_teams,account,contact,parent_ticket", - CollectionsAssignedTeamsAccountCreator: "collections,assigned_teams,account,creator", - CollectionsAssignedTeamsAccountCreatorParentTicket: "collections,assigned_teams,account,creator,parent_ticket", - CollectionsAssignedTeamsAccountParentTicket: "collections,assigned_teams,account,parent_ticket", - CollectionsAssignedTeamsContact: "collections,assigned_teams,contact", - CollectionsAssignedTeamsContactCreator: "collections,assigned_teams,contact,creator", - CollectionsAssignedTeamsContactCreatorParentTicket: "collections,assigned_teams,contact,creator,parent_ticket", - CollectionsAssignedTeamsContactParentTicket: "collections,assigned_teams,contact,parent_ticket", - CollectionsAssignedTeamsCreator: "collections,assigned_teams,creator", - CollectionsAssignedTeamsCreatorParentTicket: "collections,assigned_teams,creator,parent_ticket", - CollectionsAssignedTeamsParentTicket: "collections,assigned_teams,parent_ticket", - CollectionsContact: "collections,contact", - CollectionsContactCreator: "collections,contact,creator", - CollectionsContactCreatorParentTicket: "collections,contact,creator,parent_ticket", - CollectionsContactParentTicket: "collections,contact,parent_ticket", - CollectionsCreator: "collections,creator", - CollectionsCreatorParentTicket: "collections,creator,parent_ticket", - CollectionsParentTicket: "collections,parent_ticket", - Contact: "contact", - ContactCreator: "contact,creator", - ContactCreatorParentTicket: "contact,creator,parent_ticket", - ContactParentTicket: "contact,parent_ticket", - Creator: "creator", - CreatorParentTicket: "creator,parent_ticket", - ParentTicket: "parent_ticket", -} as const; -export type TicketsListRequestExpand = (typeof TicketsListRequestExpand)[keyof typeof TicketsListRequestExpand]; diff --git a/src/api/resources/ticketing/resources/tickets/types/TicketsListRequestExpandItem.ts b/src/api/resources/ticketing/resources/tickets/types/TicketsListRequestExpandItem.ts new file mode 100644 index 000000000..1e750e2ce --- /dev/null +++ b/src/api/resources/ticketing/resources/tickets/types/TicketsListRequestExpandItem.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +export const TicketsListRequestExpandItem = { + Account: "account", + AssignedTeams: "assigned_teams", + Assignees: "assignees", + Attachments: "attachments", + Collections: "collections", + Contact: "contact", + Creator: "creator", + ParentTicket: "parent_ticket", + Permissions: "permissions", +} as const; +export type TicketsListRequestExpandItem = + (typeof TicketsListRequestExpandItem)[keyof typeof TicketsListRequestExpandItem]; diff --git a/src/api/resources/ticketing/resources/tickets/types/TicketsLiveSearchRetrieveRequestRemoteFields.ts b/src/api/resources/ticketing/resources/tickets/types/TicketsLiveSearchRetrieveRequestRemoteFields.ts new file mode 100644 index 000000000..35c6550d7 --- /dev/null +++ b/src/api/resources/ticketing/resources/tickets/types/TicketsLiveSearchRetrieveRequestRemoteFields.ts @@ -0,0 +1,13 @@ +// This file was auto-generated by Fern from our API Definition. + +export const TicketsLiveSearchRetrieveRequestRemoteFields = { + Priority: "priority", + PriorityStatus: "priority,status", + PriorityStatusTicketType: "priority,status,ticket_type", + PriorityTicketType: "priority,ticket_type", + Status: "status", + StatusTicketType: "status,ticket_type", + TicketType: "ticket_type", +} as const; +export type TicketsLiveSearchRetrieveRequestRemoteFields = + (typeof TicketsLiveSearchRetrieveRequestRemoteFields)[keyof typeof TicketsLiveSearchRetrieveRequestRemoteFields]; diff --git a/src/api/resources/ticketing/resources/tickets/types/TicketsLiveSearchRetrieveRequestShowEnumOrigins.ts b/src/api/resources/ticketing/resources/tickets/types/TicketsLiveSearchRetrieveRequestShowEnumOrigins.ts new file mode 100644 index 000000000..7cb46a2b2 --- /dev/null +++ b/src/api/resources/ticketing/resources/tickets/types/TicketsLiveSearchRetrieveRequestShowEnumOrigins.ts @@ -0,0 +1,13 @@ +// This file was auto-generated by Fern from our API Definition. + +export const TicketsLiveSearchRetrieveRequestShowEnumOrigins = { + Priority: "priority", + PriorityStatus: "priority,status", + PriorityStatusTicketType: "priority,status,ticket_type", + PriorityTicketType: "priority,ticket_type", + Status: "status", + StatusTicketType: "status,ticket_type", + TicketType: "ticket_type", +} as const; +export type TicketsLiveSearchRetrieveRequestShowEnumOrigins = + (typeof TicketsLiveSearchRetrieveRequestShowEnumOrigins)[keyof typeof TicketsLiveSearchRetrieveRequestShowEnumOrigins]; diff --git a/src/api/resources/ticketing/resources/tickets/types/TicketsRetrieveRequestExpand.ts b/src/api/resources/ticketing/resources/tickets/types/TicketsRetrieveRequestExpand.ts deleted file mode 100644 index a0a560ab6..000000000 --- a/src/api/resources/ticketing/resources/tickets/types/TicketsRetrieveRequestExpand.ts +++ /dev/null @@ -1,301 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const TicketsRetrieveRequestExpand = { - Account: "account", - AccountContact: "account,contact", - AccountContactCreator: "account,contact,creator", - AccountContactCreatorParentTicket: "account,contact,creator,parent_ticket", - AccountContactParentTicket: "account,contact,parent_ticket", - AccountCreator: "account,creator", - AccountCreatorParentTicket: "account,creator,parent_ticket", - AccountParentTicket: "account,parent_ticket", - AssignedTeams: "assigned_teams", - AssignedTeamsAccount: "assigned_teams,account", - AssignedTeamsAccountContact: "assigned_teams,account,contact", - AssignedTeamsAccountContactCreator: "assigned_teams,account,contact,creator", - AssignedTeamsAccountContactCreatorParentTicket: "assigned_teams,account,contact,creator,parent_ticket", - AssignedTeamsAccountContactParentTicket: "assigned_teams,account,contact,parent_ticket", - AssignedTeamsAccountCreator: "assigned_teams,account,creator", - AssignedTeamsAccountCreatorParentTicket: "assigned_teams,account,creator,parent_ticket", - AssignedTeamsAccountParentTicket: "assigned_teams,account,parent_ticket", - AssignedTeamsContact: "assigned_teams,contact", - AssignedTeamsContactCreator: "assigned_teams,contact,creator", - AssignedTeamsContactCreatorParentTicket: "assigned_teams,contact,creator,parent_ticket", - AssignedTeamsContactParentTicket: "assigned_teams,contact,parent_ticket", - AssignedTeamsCreator: "assigned_teams,creator", - AssignedTeamsCreatorParentTicket: "assigned_teams,creator,parent_ticket", - AssignedTeamsParentTicket: "assigned_teams,parent_ticket", - Assignees: "assignees", - AssigneesAccount: "assignees,account", - AssigneesAccountContact: "assignees,account,contact", - AssigneesAccountContactCreator: "assignees,account,contact,creator", - AssigneesAccountContactCreatorParentTicket: "assignees,account,contact,creator,parent_ticket", - AssigneesAccountContactParentTicket: "assignees,account,contact,parent_ticket", - AssigneesAccountCreator: "assignees,account,creator", - AssigneesAccountCreatorParentTicket: "assignees,account,creator,parent_ticket", - AssigneesAccountParentTicket: "assignees,account,parent_ticket", - AssigneesAssignedTeams: "assignees,assigned_teams", - AssigneesAssignedTeamsAccount: "assignees,assigned_teams,account", - AssigneesAssignedTeamsAccountContact: "assignees,assigned_teams,account,contact", - AssigneesAssignedTeamsAccountContactCreator: "assignees,assigned_teams,account,contact,creator", - AssigneesAssignedTeamsAccountContactCreatorParentTicket: - "assignees,assigned_teams,account,contact,creator,parent_ticket", - AssigneesAssignedTeamsAccountContactParentTicket: "assignees,assigned_teams,account,contact,parent_ticket", - AssigneesAssignedTeamsAccountCreator: "assignees,assigned_teams,account,creator", - AssigneesAssignedTeamsAccountCreatorParentTicket: "assignees,assigned_teams,account,creator,parent_ticket", - AssigneesAssignedTeamsAccountParentTicket: "assignees,assigned_teams,account,parent_ticket", - AssigneesAssignedTeamsContact: "assignees,assigned_teams,contact", - AssigneesAssignedTeamsContactCreator: "assignees,assigned_teams,contact,creator", - AssigneesAssignedTeamsContactCreatorParentTicket: "assignees,assigned_teams,contact,creator,parent_ticket", - AssigneesAssignedTeamsContactParentTicket: "assignees,assigned_teams,contact,parent_ticket", - AssigneesAssignedTeamsCreator: "assignees,assigned_teams,creator", - AssigneesAssignedTeamsCreatorParentTicket: "assignees,assigned_teams,creator,parent_ticket", - AssigneesAssignedTeamsParentTicket: "assignees,assigned_teams,parent_ticket", - AssigneesCollections: "assignees,collections", - AssigneesCollectionsAccount: "assignees,collections,account", - AssigneesCollectionsAccountContact: "assignees,collections,account,contact", - AssigneesCollectionsAccountContactCreator: "assignees,collections,account,contact,creator", - AssigneesCollectionsAccountContactCreatorParentTicket: - "assignees,collections,account,contact,creator,parent_ticket", - AssigneesCollectionsAccountContactParentTicket: "assignees,collections,account,contact,parent_ticket", - AssigneesCollectionsAccountCreator: "assignees,collections,account,creator", - AssigneesCollectionsAccountCreatorParentTicket: "assignees,collections,account,creator,parent_ticket", - AssigneesCollectionsAccountParentTicket: "assignees,collections,account,parent_ticket", - AssigneesCollectionsAssignedTeams: "assignees,collections,assigned_teams", - AssigneesCollectionsAssignedTeamsAccount: "assignees,collections,assigned_teams,account", - AssigneesCollectionsAssignedTeamsAccountContact: "assignees,collections,assigned_teams,account,contact", - AssigneesCollectionsAssignedTeamsAccountContactCreator: - "assignees,collections,assigned_teams,account,contact,creator", - AssigneesCollectionsAssignedTeamsAccountContactCreatorParentTicket: - "assignees,collections,assigned_teams,account,contact,creator,parent_ticket", - AssigneesCollectionsAssignedTeamsAccountContactParentTicket: - "assignees,collections,assigned_teams,account,contact,parent_ticket", - AssigneesCollectionsAssignedTeamsAccountCreator: "assignees,collections,assigned_teams,account,creator", - AssigneesCollectionsAssignedTeamsAccountCreatorParentTicket: - "assignees,collections,assigned_teams,account,creator,parent_ticket", - AssigneesCollectionsAssignedTeamsAccountParentTicket: "assignees,collections,assigned_teams,account,parent_ticket", - AssigneesCollectionsAssignedTeamsContact: "assignees,collections,assigned_teams,contact", - AssigneesCollectionsAssignedTeamsContactCreator: "assignees,collections,assigned_teams,contact,creator", - AssigneesCollectionsAssignedTeamsContactCreatorParentTicket: - "assignees,collections,assigned_teams,contact,creator,parent_ticket", - AssigneesCollectionsAssignedTeamsContactParentTicket: "assignees,collections,assigned_teams,contact,parent_ticket", - AssigneesCollectionsAssignedTeamsCreator: "assignees,collections,assigned_teams,creator", - AssigneesCollectionsAssignedTeamsCreatorParentTicket: "assignees,collections,assigned_teams,creator,parent_ticket", - AssigneesCollectionsAssignedTeamsParentTicket: "assignees,collections,assigned_teams,parent_ticket", - AssigneesCollectionsContact: "assignees,collections,contact", - AssigneesCollectionsContactCreator: "assignees,collections,contact,creator", - AssigneesCollectionsContactCreatorParentTicket: "assignees,collections,contact,creator,parent_ticket", - AssigneesCollectionsContactParentTicket: "assignees,collections,contact,parent_ticket", - AssigneesCollectionsCreator: "assignees,collections,creator", - AssigneesCollectionsCreatorParentTicket: "assignees,collections,creator,parent_ticket", - AssigneesCollectionsParentTicket: "assignees,collections,parent_ticket", - AssigneesContact: "assignees,contact", - AssigneesContactCreator: "assignees,contact,creator", - AssigneesContactCreatorParentTicket: "assignees,contact,creator,parent_ticket", - AssigneesContactParentTicket: "assignees,contact,parent_ticket", - AssigneesCreator: "assignees,creator", - AssigneesCreatorParentTicket: "assignees,creator,parent_ticket", - AssigneesParentTicket: "assignees,parent_ticket", - Attachments: "attachments", - AttachmentsAccount: "attachments,account", - AttachmentsAccountContact: "attachments,account,contact", - AttachmentsAccountContactCreator: "attachments,account,contact,creator", - AttachmentsAccountContactCreatorParentTicket: "attachments,account,contact,creator,parent_ticket", - AttachmentsAccountContactParentTicket: "attachments,account,contact,parent_ticket", - AttachmentsAccountCreator: "attachments,account,creator", - AttachmentsAccountCreatorParentTicket: "attachments,account,creator,parent_ticket", - AttachmentsAccountParentTicket: "attachments,account,parent_ticket", - AttachmentsAssignedTeams: "attachments,assigned_teams", - AttachmentsAssignedTeamsAccount: "attachments,assigned_teams,account", - AttachmentsAssignedTeamsAccountContact: "attachments,assigned_teams,account,contact", - AttachmentsAssignedTeamsAccountContactCreator: "attachments,assigned_teams,account,contact,creator", - AttachmentsAssignedTeamsAccountContactCreatorParentTicket: - "attachments,assigned_teams,account,contact,creator,parent_ticket", - AttachmentsAssignedTeamsAccountContactParentTicket: "attachments,assigned_teams,account,contact,parent_ticket", - AttachmentsAssignedTeamsAccountCreator: "attachments,assigned_teams,account,creator", - AttachmentsAssignedTeamsAccountCreatorParentTicket: "attachments,assigned_teams,account,creator,parent_ticket", - AttachmentsAssignedTeamsAccountParentTicket: "attachments,assigned_teams,account,parent_ticket", - AttachmentsAssignedTeamsContact: "attachments,assigned_teams,contact", - AttachmentsAssignedTeamsContactCreator: "attachments,assigned_teams,contact,creator", - AttachmentsAssignedTeamsContactCreatorParentTicket: "attachments,assigned_teams,contact,creator,parent_ticket", - AttachmentsAssignedTeamsContactParentTicket: "attachments,assigned_teams,contact,parent_ticket", - AttachmentsAssignedTeamsCreator: "attachments,assigned_teams,creator", - AttachmentsAssignedTeamsCreatorParentTicket: "attachments,assigned_teams,creator,parent_ticket", - AttachmentsAssignedTeamsParentTicket: "attachments,assigned_teams,parent_ticket", - AttachmentsAssignees: "attachments,assignees", - AttachmentsAssigneesAccount: "attachments,assignees,account", - AttachmentsAssigneesAccountContact: "attachments,assignees,account,contact", - AttachmentsAssigneesAccountContactCreator: "attachments,assignees,account,contact,creator", - AttachmentsAssigneesAccountContactCreatorParentTicket: - "attachments,assignees,account,contact,creator,parent_ticket", - AttachmentsAssigneesAccountContactParentTicket: "attachments,assignees,account,contact,parent_ticket", - AttachmentsAssigneesAccountCreator: "attachments,assignees,account,creator", - AttachmentsAssigneesAccountCreatorParentTicket: "attachments,assignees,account,creator,parent_ticket", - AttachmentsAssigneesAccountParentTicket: "attachments,assignees,account,parent_ticket", - AttachmentsAssigneesAssignedTeams: "attachments,assignees,assigned_teams", - AttachmentsAssigneesAssignedTeamsAccount: "attachments,assignees,assigned_teams,account", - AttachmentsAssigneesAssignedTeamsAccountContact: "attachments,assignees,assigned_teams,account,contact", - AttachmentsAssigneesAssignedTeamsAccountContactCreator: - "attachments,assignees,assigned_teams,account,contact,creator", - AttachmentsAssigneesAssignedTeamsAccountContactCreatorParentTicket: - "attachments,assignees,assigned_teams,account,contact,creator,parent_ticket", - AttachmentsAssigneesAssignedTeamsAccountContactParentTicket: - "attachments,assignees,assigned_teams,account,contact,parent_ticket", - AttachmentsAssigneesAssignedTeamsAccountCreator: "attachments,assignees,assigned_teams,account,creator", - AttachmentsAssigneesAssignedTeamsAccountCreatorParentTicket: - "attachments,assignees,assigned_teams,account,creator,parent_ticket", - AttachmentsAssigneesAssignedTeamsAccountParentTicket: "attachments,assignees,assigned_teams,account,parent_ticket", - AttachmentsAssigneesAssignedTeamsContact: "attachments,assignees,assigned_teams,contact", - AttachmentsAssigneesAssignedTeamsContactCreator: "attachments,assignees,assigned_teams,contact,creator", - AttachmentsAssigneesAssignedTeamsContactCreatorParentTicket: - "attachments,assignees,assigned_teams,contact,creator,parent_ticket", - AttachmentsAssigneesAssignedTeamsContactParentTicket: "attachments,assignees,assigned_teams,contact,parent_ticket", - AttachmentsAssigneesAssignedTeamsCreator: "attachments,assignees,assigned_teams,creator", - AttachmentsAssigneesAssignedTeamsCreatorParentTicket: "attachments,assignees,assigned_teams,creator,parent_ticket", - AttachmentsAssigneesAssignedTeamsParentTicket: "attachments,assignees,assigned_teams,parent_ticket", - AttachmentsAssigneesCollections: "attachments,assignees,collections", - AttachmentsAssigneesCollectionsAccount: "attachments,assignees,collections,account", - AttachmentsAssigneesCollectionsAccountContact: "attachments,assignees,collections,account,contact", - AttachmentsAssigneesCollectionsAccountContactCreator: "attachments,assignees,collections,account,contact,creator", - AttachmentsAssigneesCollectionsAccountContactCreatorParentTicket: - "attachments,assignees,collections,account,contact,creator,parent_ticket", - AttachmentsAssigneesCollectionsAccountContactParentTicket: - "attachments,assignees,collections,account,contact,parent_ticket", - AttachmentsAssigneesCollectionsAccountCreator: "attachments,assignees,collections,account,creator", - AttachmentsAssigneesCollectionsAccountCreatorParentTicket: - "attachments,assignees,collections,account,creator,parent_ticket", - AttachmentsAssigneesCollectionsAccountParentTicket: "attachments,assignees,collections,account,parent_ticket", - AttachmentsAssigneesCollectionsAssignedTeams: "attachments,assignees,collections,assigned_teams", - AttachmentsAssigneesCollectionsAssignedTeamsAccount: "attachments,assignees,collections,assigned_teams,account", - AttachmentsAssigneesCollectionsAssignedTeamsAccountContact: - "attachments,assignees,collections,assigned_teams,account,contact", - AttachmentsAssigneesCollectionsAssignedTeamsAccountContactCreator: - "attachments,assignees,collections,assigned_teams,account,contact,creator", - AttachmentsAssigneesCollectionsAssignedTeamsAccountContactCreatorParentTicket: - "attachments,assignees,collections,assigned_teams,account,contact,creator,parent_ticket", - AttachmentsAssigneesCollectionsAssignedTeamsAccountContactParentTicket: - "attachments,assignees,collections,assigned_teams,account,contact,parent_ticket", - AttachmentsAssigneesCollectionsAssignedTeamsAccountCreator: - "attachments,assignees,collections,assigned_teams,account,creator", - AttachmentsAssigneesCollectionsAssignedTeamsAccountCreatorParentTicket: - "attachments,assignees,collections,assigned_teams,account,creator,parent_ticket", - AttachmentsAssigneesCollectionsAssignedTeamsAccountParentTicket: - "attachments,assignees,collections,assigned_teams,account,parent_ticket", - AttachmentsAssigneesCollectionsAssignedTeamsContact: "attachments,assignees,collections,assigned_teams,contact", - AttachmentsAssigneesCollectionsAssignedTeamsContactCreator: - "attachments,assignees,collections,assigned_teams,contact,creator", - AttachmentsAssigneesCollectionsAssignedTeamsContactCreatorParentTicket: - "attachments,assignees,collections,assigned_teams,contact,creator,parent_ticket", - AttachmentsAssigneesCollectionsAssignedTeamsContactParentTicket: - "attachments,assignees,collections,assigned_teams,contact,parent_ticket", - AttachmentsAssigneesCollectionsAssignedTeamsCreator: "attachments,assignees,collections,assigned_teams,creator", - AttachmentsAssigneesCollectionsAssignedTeamsCreatorParentTicket: - "attachments,assignees,collections,assigned_teams,creator,parent_ticket", - AttachmentsAssigneesCollectionsAssignedTeamsParentTicket: - "attachments,assignees,collections,assigned_teams,parent_ticket", - AttachmentsAssigneesCollectionsContact: "attachments,assignees,collections,contact", - AttachmentsAssigneesCollectionsContactCreator: "attachments,assignees,collections,contact,creator", - AttachmentsAssigneesCollectionsContactCreatorParentTicket: - "attachments,assignees,collections,contact,creator,parent_ticket", - AttachmentsAssigneesCollectionsContactParentTicket: "attachments,assignees,collections,contact,parent_ticket", - AttachmentsAssigneesCollectionsCreator: "attachments,assignees,collections,creator", - AttachmentsAssigneesCollectionsCreatorParentTicket: "attachments,assignees,collections,creator,parent_ticket", - AttachmentsAssigneesCollectionsParentTicket: "attachments,assignees,collections,parent_ticket", - AttachmentsAssigneesContact: "attachments,assignees,contact", - AttachmentsAssigneesContactCreator: "attachments,assignees,contact,creator", - AttachmentsAssigneesContactCreatorParentTicket: "attachments,assignees,contact,creator,parent_ticket", - AttachmentsAssigneesContactParentTicket: "attachments,assignees,contact,parent_ticket", - AttachmentsAssigneesCreator: "attachments,assignees,creator", - AttachmentsAssigneesCreatorParentTicket: "attachments,assignees,creator,parent_ticket", - AttachmentsAssigneesParentTicket: "attachments,assignees,parent_ticket", - AttachmentsCollections: "attachments,collections", - AttachmentsCollectionsAccount: "attachments,collections,account", - AttachmentsCollectionsAccountContact: "attachments,collections,account,contact", - AttachmentsCollectionsAccountContactCreator: "attachments,collections,account,contact,creator", - AttachmentsCollectionsAccountContactCreatorParentTicket: - "attachments,collections,account,contact,creator,parent_ticket", - AttachmentsCollectionsAccountContactParentTicket: "attachments,collections,account,contact,parent_ticket", - AttachmentsCollectionsAccountCreator: "attachments,collections,account,creator", - AttachmentsCollectionsAccountCreatorParentTicket: "attachments,collections,account,creator,parent_ticket", - AttachmentsCollectionsAccountParentTicket: "attachments,collections,account,parent_ticket", - AttachmentsCollectionsAssignedTeams: "attachments,collections,assigned_teams", - AttachmentsCollectionsAssignedTeamsAccount: "attachments,collections,assigned_teams,account", - AttachmentsCollectionsAssignedTeamsAccountContact: "attachments,collections,assigned_teams,account,contact", - AttachmentsCollectionsAssignedTeamsAccountContactCreator: - "attachments,collections,assigned_teams,account,contact,creator", - AttachmentsCollectionsAssignedTeamsAccountContactCreatorParentTicket: - "attachments,collections,assigned_teams,account,contact,creator,parent_ticket", - AttachmentsCollectionsAssignedTeamsAccountContactParentTicket: - "attachments,collections,assigned_teams,account,contact,parent_ticket", - AttachmentsCollectionsAssignedTeamsAccountCreator: "attachments,collections,assigned_teams,account,creator", - AttachmentsCollectionsAssignedTeamsAccountCreatorParentTicket: - "attachments,collections,assigned_teams,account,creator,parent_ticket", - AttachmentsCollectionsAssignedTeamsAccountParentTicket: - "attachments,collections,assigned_teams,account,parent_ticket", - AttachmentsCollectionsAssignedTeamsContact: "attachments,collections,assigned_teams,contact", - AttachmentsCollectionsAssignedTeamsContactCreator: "attachments,collections,assigned_teams,contact,creator", - AttachmentsCollectionsAssignedTeamsContactCreatorParentTicket: - "attachments,collections,assigned_teams,contact,creator,parent_ticket", - AttachmentsCollectionsAssignedTeamsContactParentTicket: - "attachments,collections,assigned_teams,contact,parent_ticket", - AttachmentsCollectionsAssignedTeamsCreator: "attachments,collections,assigned_teams,creator", - AttachmentsCollectionsAssignedTeamsCreatorParentTicket: - "attachments,collections,assigned_teams,creator,parent_ticket", - AttachmentsCollectionsAssignedTeamsParentTicket: "attachments,collections,assigned_teams,parent_ticket", - AttachmentsCollectionsContact: "attachments,collections,contact", - AttachmentsCollectionsContactCreator: "attachments,collections,contact,creator", - AttachmentsCollectionsContactCreatorParentTicket: "attachments,collections,contact,creator,parent_ticket", - AttachmentsCollectionsContactParentTicket: "attachments,collections,contact,parent_ticket", - AttachmentsCollectionsCreator: "attachments,collections,creator", - AttachmentsCollectionsCreatorParentTicket: "attachments,collections,creator,parent_ticket", - AttachmentsCollectionsParentTicket: "attachments,collections,parent_ticket", - AttachmentsContact: "attachments,contact", - AttachmentsContactCreator: "attachments,contact,creator", - AttachmentsContactCreatorParentTicket: "attachments,contact,creator,parent_ticket", - AttachmentsContactParentTicket: "attachments,contact,parent_ticket", - AttachmentsCreator: "attachments,creator", - AttachmentsCreatorParentTicket: "attachments,creator,parent_ticket", - AttachmentsParentTicket: "attachments,parent_ticket", - Collections: "collections", - CollectionsAccount: "collections,account", - CollectionsAccountContact: "collections,account,contact", - CollectionsAccountContactCreator: "collections,account,contact,creator", - CollectionsAccountContactCreatorParentTicket: "collections,account,contact,creator,parent_ticket", - CollectionsAccountContactParentTicket: "collections,account,contact,parent_ticket", - CollectionsAccountCreator: "collections,account,creator", - CollectionsAccountCreatorParentTicket: "collections,account,creator,parent_ticket", - CollectionsAccountParentTicket: "collections,account,parent_ticket", - CollectionsAssignedTeams: "collections,assigned_teams", - CollectionsAssignedTeamsAccount: "collections,assigned_teams,account", - CollectionsAssignedTeamsAccountContact: "collections,assigned_teams,account,contact", - CollectionsAssignedTeamsAccountContactCreator: "collections,assigned_teams,account,contact,creator", - CollectionsAssignedTeamsAccountContactCreatorParentTicket: - "collections,assigned_teams,account,contact,creator,parent_ticket", - CollectionsAssignedTeamsAccountContactParentTicket: "collections,assigned_teams,account,contact,parent_ticket", - CollectionsAssignedTeamsAccountCreator: "collections,assigned_teams,account,creator", - CollectionsAssignedTeamsAccountCreatorParentTicket: "collections,assigned_teams,account,creator,parent_ticket", - CollectionsAssignedTeamsAccountParentTicket: "collections,assigned_teams,account,parent_ticket", - CollectionsAssignedTeamsContact: "collections,assigned_teams,contact", - CollectionsAssignedTeamsContactCreator: "collections,assigned_teams,contact,creator", - CollectionsAssignedTeamsContactCreatorParentTicket: "collections,assigned_teams,contact,creator,parent_ticket", - CollectionsAssignedTeamsContactParentTicket: "collections,assigned_teams,contact,parent_ticket", - CollectionsAssignedTeamsCreator: "collections,assigned_teams,creator", - CollectionsAssignedTeamsCreatorParentTicket: "collections,assigned_teams,creator,parent_ticket", - CollectionsAssignedTeamsParentTicket: "collections,assigned_teams,parent_ticket", - CollectionsContact: "collections,contact", - CollectionsContactCreator: "collections,contact,creator", - CollectionsContactCreatorParentTicket: "collections,contact,creator,parent_ticket", - CollectionsContactParentTicket: "collections,contact,parent_ticket", - CollectionsCreator: "collections,creator", - CollectionsCreatorParentTicket: "collections,creator,parent_ticket", - CollectionsParentTicket: "collections,parent_ticket", - Contact: "contact", - ContactCreator: "contact,creator", - ContactCreatorParentTicket: "contact,creator,parent_ticket", - ContactParentTicket: "contact,parent_ticket", - Creator: "creator", - CreatorParentTicket: "creator,parent_ticket", - ParentTicket: "parent_ticket", -} as const; -export type TicketsRetrieveRequestExpand = - (typeof TicketsRetrieveRequestExpand)[keyof typeof TicketsRetrieveRequestExpand]; diff --git a/src/api/resources/ticketing/resources/tickets/types/TicketsRetrieveRequestExpandItem.ts b/src/api/resources/ticketing/resources/tickets/types/TicketsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..fa7414f44 --- /dev/null +++ b/src/api/resources/ticketing/resources/tickets/types/TicketsRetrieveRequestExpandItem.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +export const TicketsRetrieveRequestExpandItem = { + Account: "account", + AssignedTeams: "assigned_teams", + Assignees: "assignees", + Attachments: "attachments", + Collections: "collections", + Contact: "contact", + Creator: "creator", + ParentTicket: "parent_ticket", + Permissions: "permissions", +} as const; +export type TicketsRetrieveRequestExpandItem = + (typeof TicketsRetrieveRequestExpandItem)[keyof typeof TicketsRetrieveRequestExpandItem]; diff --git a/src/api/resources/ticketing/resources/tickets/types/TicketsViewersListRequestExpand.ts b/src/api/resources/ticketing/resources/tickets/types/TicketsViewersListRequestExpand.ts deleted file mode 100644 index 50ffd5b1c..000000000 --- a/src/api/resources/ticketing/resources/tickets/types/TicketsViewersListRequestExpand.ts +++ /dev/null @@ -1,9 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const TicketsViewersListRequestExpand = { - Team: "team", - User: "user", - UserTeam: "user,team", -} as const; -export type TicketsViewersListRequestExpand = - (typeof TicketsViewersListRequestExpand)[keyof typeof TicketsViewersListRequestExpand]; diff --git a/src/api/resources/ticketing/resources/tickets/types/TicketsViewersListRequestExpandItem.ts b/src/api/resources/ticketing/resources/tickets/types/TicketsViewersListRequestExpandItem.ts new file mode 100644 index 000000000..6e55703b5 --- /dev/null +++ b/src/api/resources/ticketing/resources/tickets/types/TicketsViewersListRequestExpandItem.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export const TicketsViewersListRequestExpandItem = { + Team: "team", + User: "user", +} as const; +export type TicketsViewersListRequestExpandItem = + (typeof TicketsViewersListRequestExpandItem)[keyof typeof TicketsViewersListRequestExpandItem]; diff --git a/src/api/resources/ticketing/resources/tickets/types/index.ts b/src/api/resources/ticketing/resources/tickets/types/index.ts index 2f77f6366..e34bc6ea6 100644 --- a/src/api/resources/ticketing/resources/tickets/types/index.ts +++ b/src/api/resources/ticketing/resources/tickets/types/index.ts @@ -1,9 +1,11 @@ -export * from "./TicketsListRequestExpand"; +export * from "./TicketsListRequestExpandItem"; export * from "./TicketsListRequestPriority"; export * from "./TicketsListRequestRemoteFields"; export * from "./TicketsListRequestShowEnumOrigins"; export * from "./TicketsListRequestStatus"; -export * from "./TicketsRetrieveRequestExpand"; +export * from "./TicketsLiveSearchRetrieveRequestRemoteFields"; +export * from "./TicketsLiveSearchRetrieveRequestShowEnumOrigins"; +export * from "./TicketsRetrieveRequestExpandItem"; export * from "./TicketsRetrieveRequestRemoteFields"; export * from "./TicketsRetrieveRequestShowEnumOrigins"; -export * from "./TicketsViewersListRequestExpand"; +export * from "./TicketsViewersListRequestExpandItem"; diff --git a/src/api/resources/ticketing/resources/users/client/Client.ts b/src/api/resources/ticketing/resources/users/client/Client.ts index e38cbb1cc..7531e570e 100644 --- a/src/api/resources/ticketing/resources/users/client/Client.ts +++ b/src/api/resources/ticketing/resources/users/client/Client.ts @@ -31,11 +31,11 @@ export class UsersClient { * * @example * await client.ticketing.users.list({ + * collections: "collections", * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * emailAddress: "email_address", - * expand: "roles", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -43,100 +43,123 @@ export class UsersClient { * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), * pageSize: 1, * remoteId: "remote_id", - * team: "team" + * roles: "roles", + * team: "team", + * teams: "teams" * }) */ - public list( + public async list( request: Merge.ticketing.UsersListRequest = {}, requestOptions?: UsersClient.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions)); - } - - private async __list( - request: Merge.ticketing.UsersListRequest = {}, - requestOptions?: UsersClient.RequestOptions, - ): Promise> { - const { - createdAfter, - createdBefore, - cursor, - emailAddress, - expand, - includeDeletedData, - includeRemoteData, - includeShellData, - modifiedAfter, - modifiedBefore, - pageSize, - remoteId, - team, - } = request; - const _queryParams: Record = { - created_after: createdAfter?.toISOString(), - created_before: createdBefore?.toISOString(), - cursor, - email_address: emailAddress, - expand: - expand != null - ? serializers.ticketing.UsersListRequestExpand.jsonOrThrow(expand, { - unrecognizedObjectKeys: "strip", - }) - : undefined, - include_deleted_data: includeDeletedData, - include_remote_data: includeRemoteData, - include_shell_data: includeShellData, - modified_after: modifiedAfter?.toISOString(), - modified_before: modifiedBefore?.toISOString(), - page_size: pageSize, - remote_id: remoteId, - team, - }; - const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); - const _headers: core.Fetcher.Args["headers"] = mergeHeaders( - _authRequest.headers, - this._options?.headers, - mergeOnlyDefinedHeaders({ "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken }), - requestOptions?.headers, + ): Promise> { + const list = core.HttpResponsePromise.interceptFunction( + async ( + request: Merge.ticketing.UsersListRequest, + ): Promise> => { + const { + collections, + createdAfter, + createdBefore, + cursor, + emailAddress, + expand, + includeDeletedData, + includeRemoteData, + includeShellData, + modifiedAfter, + modifiedBefore, + pageSize, + remoteId, + roles, + team, + teams, + } = request; + const _queryParams: Record = { + collections, + created_after: createdAfter?.toISOString(), + created_before: createdBefore?.toISOString(), + cursor, + email_address: emailAddress, + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.ticketing.UsersListRequestExpandItem.jsonOrThrow(item, { + unrecognizedObjectKeys: "strip", + }), + ) + : expand != null + ? serializers.ticketing.UsersListRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, + include_deleted_data: includeDeletedData, + include_remote_data: includeRemoteData, + include_shell_data: includeShellData, + modified_after: modifiedAfter?.toISOString(), + modified_before: modifiedBefore?.toISOString(), + page_size: pageSize, + remote_id: remoteId, + roles, + team, + teams, + }; + const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest(); + const _headers: core.Fetcher.Args["headers"] = mergeHeaders( + _authRequest.headers, + this._options?.headers, + mergeOnlyDefinedHeaders({ + "X-Account-Token": requestOptions?.accountToken ?? this._options?.accountToken, + }), + requestOptions?.headers, + ); + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: core.url.join( + (await core.Supplier.get(this._options.baseUrl)) ?? + (await core.Supplier.get(this._options.environment)) ?? + environments.MergeEnvironment.Production, + "ticketing/v1/users", + ), + method: "GET", + headers: _headers, + queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, + timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, + maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, + abortSignal: requestOptions?.abortSignal, + fetchFn: this._options?.fetch, + logging: this._options.logging, + }); + if (_response.ok) { + return { + data: serializers.ticketing.PaginatedUserList.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }), + rawResponse: _response.rawResponse, + }; + } + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + rawResponse: _response.rawResponse, + }); + } + return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ticketing/v1/users"); + }, ); - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: core.url.join( - (await core.Supplier.get(this._options.baseUrl)) ?? - (await core.Supplier.get(this._options.environment)) ?? - environments.MergeEnvironment.Production, - "ticketing/v1/users", - ), - method: "GET", - headers: _headers, - queryParameters: { ..._queryParams, ...requestOptions?.queryParams }, - timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000, - maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries, - abortSignal: requestOptions?.abortSignal, - fetchFn: this._options?.fetch, - logging: this._options.logging, + const dataWithRawResponse = await list(request).withRawResponse(); + return new core.Page({ + response: dataWithRawResponse.data, + rawResponse: dataWithRawResponse.rawResponse, + hasNextPage: (response) => + response?.next != null && !(typeof response?.next === "string" && response?.next === ""), + getItems: (response) => response?.results ?? [], + loadPage: (response) => { + return list(core.setObjectProperty(request, "cursor", response?.next)); + }, }); - if (_response.ok) { - return { - data: serializers.ticketing.PaginatedUserList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - - return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/ticketing/v1/users"); } /** @@ -148,7 +171,6 @@ export class UsersClient { * * @example * await client.ticketing.users.retrieve("id", { - * expand: "roles", * includeRemoteData: true, * includeShellData: true * }) @@ -168,12 +190,17 @@ export class UsersClient { ): Promise> { const { expand, includeRemoteData, includeShellData } = request; const _queryParams: Record = { - expand: - expand != null - ? serializers.ticketing.UsersRetrieveRequestExpand.jsonOrThrow(expand, { + expand: Array.isArray(expand) + ? expand.map((item) => + serializers.ticketing.UsersRetrieveRequestExpandItem.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", - }) - : undefined, + }), + ) + : expand != null + ? serializers.ticketing.UsersRetrieveRequestExpandItem.jsonOrThrow(expand, { + unrecognizedObjectKeys: "strip", + }) + : undefined, include_remote_data: includeRemoteData, include_shell_data: includeShellData, }; diff --git a/src/api/resources/ticketing/resources/users/client/requests/UsersListRequest.ts b/src/api/resources/ticketing/resources/users/client/requests/UsersListRequest.ts index 97b9283e4..6a0569a03 100644 --- a/src/api/resources/ticketing/resources/users/client/requests/UsersListRequest.ts +++ b/src/api/resources/ticketing/resources/users/client/requests/UsersListRequest.ts @@ -5,11 +5,11 @@ import type * as Merge from "../../../../../../index"; /** * @example * { + * collections: "collections", * createdAfter: new Date("2024-01-15T09:30:00.000Z"), * createdBefore: new Date("2024-01-15T09:30:00.000Z"), * cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", * emailAddress: "email_address", - * expand: "roles", * includeDeletedData: true, * includeRemoteData: true, * includeShellData: true, @@ -17,10 +17,14 @@ import type * as Merge from "../../../../../../index"; * modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), * pageSize: 1, * remoteId: "remote_id", - * team: "team" + * roles: "roles", + * team: "team", + * teams: "teams" * } */ export interface UsersListRequest { + /** If provided, will only return users involved with at least one of these collections. */ + collections?: string; /** If provided, will only return objects created after this datetime. */ createdAfter?: Date; /** If provided, will only return objects created before this datetime. */ @@ -30,7 +34,7 @@ export interface UsersListRequest { /** If provided, will only return users with emails equal to this value (case insensitive). */ emailAddress?: string; /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.ticketing.UsersListRequestExpand; + expand?: Merge.ticketing.UsersListRequestExpandItem | Merge.ticketing.UsersListRequestExpandItem[]; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ includeDeletedData?: boolean; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ @@ -45,6 +49,10 @@ export interface UsersListRequest { pageSize?: number; /** The API provider's ID for the given object. */ remoteId?: string; + /** If provided, will only return users with at least one of these roles. */ + roles?: string; /** If provided, will only return users matching in this team. */ team?: string; + /** If provided, will only return users with at least one of these teams. */ + teams?: string; } diff --git a/src/api/resources/ticketing/resources/users/client/requests/UsersRetrieveRequest.ts b/src/api/resources/ticketing/resources/users/client/requests/UsersRetrieveRequest.ts index 4fef54eb4..03e0abc24 100644 --- a/src/api/resources/ticketing/resources/users/client/requests/UsersRetrieveRequest.ts +++ b/src/api/resources/ticketing/resources/users/client/requests/UsersRetrieveRequest.ts @@ -5,14 +5,13 @@ import type * as Merge from "../../../../../../index"; /** * @example * { - * expand: "roles", * includeRemoteData: true, * includeShellData: true * } */ export interface UsersRetrieveRequest { /** Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. */ - expand?: Merge.ticketing.UsersRetrieveRequestExpand; + expand?: Merge.ticketing.UsersRetrieveRequestExpandItem | Merge.ticketing.UsersRetrieveRequestExpandItem[]; /** Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; /** Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). */ diff --git a/src/api/resources/ticketing/resources/users/types/UsersListRequestExpand.ts b/src/api/resources/ticketing/resources/users/types/UsersListRequestExpand.ts deleted file mode 100644 index 31d5a13ce..000000000 --- a/src/api/resources/ticketing/resources/users/types/UsersListRequestExpand.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const UsersListRequestExpand = { - Roles: "roles", - Teams: "teams", - TeamsRoles: "teams,roles", -} as const; -export type UsersListRequestExpand = (typeof UsersListRequestExpand)[keyof typeof UsersListRequestExpand]; diff --git a/src/api/resources/ticketing/resources/users/types/UsersListRequestExpandItem.ts b/src/api/resources/ticketing/resources/users/types/UsersListRequestExpandItem.ts new file mode 100644 index 000000000..47b4bdff6 --- /dev/null +++ b/src/api/resources/ticketing/resources/users/types/UsersListRequestExpandItem.ts @@ -0,0 +1,7 @@ +// This file was auto-generated by Fern from our API Definition. + +export const UsersListRequestExpandItem = { + Roles: "roles", + Teams: "teams", +} as const; +export type UsersListRequestExpandItem = (typeof UsersListRequestExpandItem)[keyof typeof UsersListRequestExpandItem]; diff --git a/src/api/resources/ticketing/resources/users/types/UsersRetrieveRequestExpand.ts b/src/api/resources/ticketing/resources/users/types/UsersRetrieveRequestExpand.ts deleted file mode 100644 index 8753c0169..000000000 --- a/src/api/resources/ticketing/resources/users/types/UsersRetrieveRequestExpand.ts +++ /dev/null @@ -1,8 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -export const UsersRetrieveRequestExpand = { - Roles: "roles", - Teams: "teams", - TeamsRoles: "teams,roles", -} as const; -export type UsersRetrieveRequestExpand = (typeof UsersRetrieveRequestExpand)[keyof typeof UsersRetrieveRequestExpand]; diff --git a/src/api/resources/ticketing/resources/users/types/UsersRetrieveRequestExpandItem.ts b/src/api/resources/ticketing/resources/users/types/UsersRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..b98eabc32 --- /dev/null +++ b/src/api/resources/ticketing/resources/users/types/UsersRetrieveRequestExpandItem.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export const UsersRetrieveRequestExpandItem = { + Roles: "roles", + Teams: "teams", +} as const; +export type UsersRetrieveRequestExpandItem = + (typeof UsersRetrieveRequestExpandItem)[keyof typeof UsersRetrieveRequestExpandItem]; diff --git a/src/api/resources/ticketing/resources/users/types/index.ts b/src/api/resources/ticketing/resources/users/types/index.ts index e07d9f0f0..6b3250680 100644 --- a/src/api/resources/ticketing/resources/users/types/index.ts +++ b/src/api/resources/ticketing/resources/users/types/index.ts @@ -1,2 +1,2 @@ -export * from "./UsersListRequestExpand"; -export * from "./UsersRetrieveRequestExpand"; +export * from "./UsersListRequestExpandItem"; +export * from "./UsersRetrieveRequestExpandItem"; diff --git a/src/api/resources/ticketing/types/ActionsEnum.ts b/src/api/resources/ticketing/types/ActionsEnum.ts new file mode 100644 index 000000000..63fc2a51b --- /dev/null +++ b/src/api/resources/ticketing/types/ActionsEnum.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * * `VIEW` - VIEW + * * `CREATE` - CREATE + * * `EDIT` - EDIT + * * `DELETE` - DELETE + */ +export const ActionsEnum = { + View: "VIEW", + Create: "CREATE", + Edit: "EDIT", + Delete: "DELETE", +} as const; +export type ActionsEnum = (typeof ActionsEnum)[keyof typeof ActionsEnum]; diff --git a/src/api/resources/ticketing/types/AuditLogEvent.ts b/src/api/resources/ticketing/types/AuditLogEvent.ts index 2dcd9f104..e061c7376 100644 --- a/src/api/resources/ticketing/types/AuditLogEvent.ts +++ b/src/api/resources/ticketing/types/AuditLogEvent.ts @@ -17,6 +17,7 @@ export interface AuditLogEvent { * * `API` - API * * `SYSTEM` - SYSTEM * * `MERGE_TEAM` - MERGE_TEAM + * * `SUPPORT` - SUPPORT */ role: Merge.ticketing.AuditLogEventRole; ipAddress: string; diff --git a/src/api/resources/ticketing/types/AuditLogEventRole.ts b/src/api/resources/ticketing/types/AuditLogEventRole.ts index 71c27e3c5..3da91634a 100644 --- a/src/api/resources/ticketing/types/AuditLogEventRole.ts +++ b/src/api/resources/ticketing/types/AuditLogEventRole.ts @@ -11,5 +11,6 @@ import type * as Merge from "../../../index"; * * `API` - API * * `SYSTEM` - SYSTEM * * `MERGE_TEAM` - MERGE_TEAM + * * `SUPPORT` - SUPPORT */ export type AuditLogEventRole = Merge.ticketing.RoleEnum | string; diff --git a/src/api/resources/ticketing/types/CategoriesEnum.ts b/src/api/resources/ticketing/types/CategoriesEnum.ts index f442eef79..fadfd2764 100644 --- a/src/api/resources/ticketing/types/CategoriesEnum.ts +++ b/src/api/resources/ticketing/types/CategoriesEnum.ts @@ -8,7 +8,6 @@ * * `crm` - crm * * `mktg` - mktg * * `filestorage` - filestorage - * * `knowledgebase` - knowledgebase */ export const CategoriesEnum = { Hris: "hris", @@ -18,6 +17,5 @@ export const CategoriesEnum = { Crm: "crm", Mktg: "mktg", Filestorage: "filestorage", - Knowledgebase: "knowledgebase", } as const; export type CategoriesEnum = (typeof CategoriesEnum)[keyof typeof CategoriesEnum]; diff --git a/src/api/resources/ticketing/types/CategoryEnum.ts b/src/api/resources/ticketing/types/CategoryEnum.ts index 02badbab2..f2cd1da08 100644 --- a/src/api/resources/ticketing/types/CategoryEnum.ts +++ b/src/api/resources/ticketing/types/CategoryEnum.ts @@ -8,7 +8,6 @@ * * `crm` - crm * * `mktg` - mktg * * `filestorage` - filestorage - * * `knowledgebase` - knowledgebase */ export const CategoryEnum = { Hris: "hris", @@ -18,6 +17,5 @@ export const CategoryEnum = { Crm: "crm", Mktg: "mktg", Filestorage: "filestorage", - Knowledgebase: "knowledgebase", } as const; export type CategoryEnum = (typeof CategoryEnum)[keyof typeof CategoryEnum]; diff --git a/src/api/resources/ticketing/types/Collection.ts b/src/api/resources/ticketing/types/Collection.ts index e1ebe92dd..c2901965b 100644 --- a/src/api/resources/ticketing/types/Collection.ts +++ b/src/api/resources/ticketing/types/Collection.ts @@ -37,9 +37,10 @@ export interface Collection { * * `LIST` - LIST * * `PROJECT` - PROJECT */ - collectionType?: Merge.ticketing.CollectionCollectionType; + collectionType?: Merge.ticketing.CollectionTypeEnum; /** The parent collection for this collection. */ parentCollection?: Merge.ticketing.CollectionParentCollection; + permissions?: Merge.ticketing.CollectionPermissionsItem[]; /** The 3rd party url of the Collection. */ collectionUrl?: string; /** When the third party's collection was created. */ diff --git a/src/api/resources/ticketing/types/CollectionCollectionType.ts b/src/api/resources/ticketing/types/CollectionCollectionType.ts deleted file mode 100644 index 734e1f1f3..000000000 --- a/src/api/resources/ticketing/types/CollectionCollectionType.ts +++ /dev/null @@ -1,11 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The collection's type. - * - * * `LIST` - LIST - * * `PROJECT` - PROJECT - */ -export type CollectionCollectionType = Merge.ticketing.CollectionTypeEnum | string; diff --git a/src/api/resources/ticketing/types/CollectionPermissionsItem.ts b/src/api/resources/ticketing/types/CollectionPermissionsItem.ts new file mode 100644 index 000000000..9a8465d6d --- /dev/null +++ b/src/api/resources/ticketing/types/CollectionPermissionsItem.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type CollectionPermissionsItem = string | Merge.ticketing.Permission; diff --git a/src/api/resources/ticketing/types/CompletedAccountInitialScreenEnum.ts b/src/api/resources/ticketing/types/CompletedAccountInitialScreenEnum.ts deleted file mode 100644 index cfe34d1e7..000000000 --- a/src/api/resources/ticketing/types/CompletedAccountInitialScreenEnum.ts +++ /dev/null @@ -1,6 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -/** - * * `SELECTIVE_SYNC` - SELECTIVE_SYNC - */ -export type CompletedAccountInitialScreenEnum = "SELECTIVE_SYNC"; diff --git a/src/api/resources/ticketing/types/EffectEnum.ts b/src/api/resources/ticketing/types/EffectEnum.ts new file mode 100644 index 000000000..20e4c4df0 --- /dev/null +++ b/src/api/resources/ticketing/types/EffectEnum.ts @@ -0,0 +1,13 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * * `ALLOWED` - ALLOWED + * * `DENIED` - DENIED + * * `INHERITED` - INHERITED + */ +export const EffectEnum = { + Allowed: "ALLOWED", + Denied: "DENIED", + Inherited: "INHERITED", +} as const; +export type EffectEnum = (typeof EffectEnum)[keyof typeof EffectEnum]; diff --git a/src/api/resources/ticketing/types/PatchedTicketRequest.ts b/src/api/resources/ticketing/types/PatchedTicketRequest.ts index 1ac786db2..40b7f4079 100644 --- a/src/api/resources/ticketing/types/PatchedTicketRequest.ts +++ b/src/api/resources/ticketing/types/PatchedTicketRequest.ts @@ -52,6 +52,8 @@ export interface PatchedTicketRequest { accessLevel?: Merge.ticketing.PatchedTicketRequestAccessLevel; tags?: (string | undefined)[]; roles?: (string | undefined)[]; + /** When the ticket was completed. */ + completedAt?: Date; /** The 3rd party url of the Ticket. */ ticketUrl?: string; /** @@ -62,9 +64,7 @@ export interface PatchedTicketRequest { * * `NORMAL` - NORMAL * * `LOW` - LOW */ - priority?: Merge.ticketing.PatchedTicketRequestPriority; - /** When the ticket was completed. */ - completedAt?: Date; + priority?: Merge.ticketing.PriorityEnum; integrationParams?: Record; linkedAccountParams?: Record; remoteFields?: Merge.ticketing.RemoteFieldRequest[]; diff --git a/src/api/resources/ticketing/types/PatchedTicketRequestPriority.ts b/src/api/resources/ticketing/types/PatchedTicketRequestPriority.ts deleted file mode 100644 index cc08bc67d..000000000 --- a/src/api/resources/ticketing/types/PatchedTicketRequestPriority.ts +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -/** - * The priority or urgency of the Ticket. - * - * * `URGENT` - URGENT - * * `HIGH` - HIGH - * * `NORMAL` - NORMAL - * * `LOW` - LOW - */ -export type PatchedTicketRequestPriority = Merge.ticketing.PriorityEnum | string; diff --git a/src/api/resources/ticketing/types/Permission.ts b/src/api/resources/ticketing/types/Permission.ts new file mode 100644 index 000000000..e79d4c386 --- /dev/null +++ b/src/api/resources/ticketing/types/Permission.ts @@ -0,0 +1,38 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * # The Permission Object + * ### Description + * The `Permission` object is used to represent permissions that can be applied to users, roles, teams, collections, and tickets. + * + * ### Usage Example + * TODO + */ +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; + /** The datetime that this object was modified by Merge. */ + modifiedAt?: Date; + /** + * Outcome of this permission rule for matching users. + * + * * `ALLOWED` - ALLOWED + * * `DENIED` - DENIED + * * `INHERITED` - INHERITED + */ + effect?: Merge.ticketing.PermissionEffect; + /** Operations that this permission applies to. If the entity inherits permission from a parent entity, then this should be an empty array. In that case, the entity would inherit the parent entity’s actions. */ + actions?: (Merge.ticketing.ActionsEnum | undefined)[]; + appliedToUsers?: (string | undefined)[]; + appliedToRoles?: (string | undefined)[]; + appliedToTeams?: (string | undefined)[]; + appliedToCollections?: (string | undefined)[]; + /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ + remoteWasDeleted?: boolean; + fieldMappings?: Record; +} diff --git a/src/api/resources/ticketing/types/PermissionEffect.ts b/src/api/resources/ticketing/types/PermissionEffect.ts new file mode 100644 index 000000000..91f60d7fe --- /dev/null +++ b/src/api/resources/ticketing/types/PermissionEffect.ts @@ -0,0 +1,12 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * Outcome of this permission rule for matching users. + * + * * `ALLOWED` - ALLOWED + * * `DENIED` - DENIED + * * `INHERITED` - INHERITED + */ +export type PermissionEffect = Merge.ticketing.EffectEnum | string; diff --git a/src/api/resources/ticketing/types/PermissionRequest.ts b/src/api/resources/ticketing/types/PermissionRequest.ts new file mode 100644 index 000000000..c90cc6fe3 --- /dev/null +++ b/src/api/resources/ticketing/types/PermissionRequest.ts @@ -0,0 +1,32 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * # The Permission Object + * ### Description + * The `Permission` object is used to represent permissions that can be applied to users, roles, teams, collections, and tickets. + * + * ### Usage Example + * TODO + */ +export interface PermissionRequest { + /** The third-party API ID of the matching object. */ + remoteId?: string; + /** + * Outcome of this permission rule for matching users. + * + * * `ALLOWED` - ALLOWED + * * `DENIED` - DENIED + * * `INHERITED` - INHERITED + */ + effect?: Merge.ticketing.PermissionRequestEffect; + /** Operations that this permission applies to. If the entity inherits permission from a parent entity, then this should be an empty array. In that case, the entity would inherit the parent entity’s actions. */ + actions?: (Merge.ticketing.ActionsEnum | undefined)[]; + appliedToUsers?: (string | undefined)[]; + appliedToRoles?: (string | undefined)[]; + appliedToTeams?: (string | undefined)[]; + appliedToCollections?: (string | undefined)[]; + integrationParams?: Record; + linkedAccountParams?: Record; +} diff --git a/src/api/resources/ticketing/types/PermissionRequestEffect.ts b/src/api/resources/ticketing/types/PermissionRequestEffect.ts new file mode 100644 index 000000000..fb9830ecc --- /dev/null +++ b/src/api/resources/ticketing/types/PermissionRequestEffect.ts @@ -0,0 +1,12 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +/** + * Outcome of this permission rule for matching users. + * + * * `ALLOWED` - ALLOWED + * * `DENIED` - DENIED + * * `INHERITED` - INHERITED + */ +export type PermissionRequestEffect = Merge.ticketing.EffectEnum | string; diff --git a/src/api/resources/ticketing/types/RegenerateAccountToken.ts b/src/api/resources/ticketing/types/RegenerateAccountToken.ts new file mode 100644 index 000000000..2cd31ce05 --- /dev/null +++ b/src/api/resources/ticketing/types/RegenerateAccountToken.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +/** + * # The RegenerateAccountToken Object + * ### Description + * The `RegenerateAccountToken` object is used to exchange an old account token for a new one. + * + * ### Usage Example + * Post to receive a new `RegenerateAccountToken`. + */ +export interface RegenerateAccountToken { + linkedAccountId: string; + accountToken: string; +} diff --git a/src/api/resources/ticketing/types/RemoteFieldClass.ts b/src/api/resources/ticketing/types/RemoteFieldClass.ts index a4d6d5723..bf0ae801f 100644 --- a/src/api/resources/ticketing/types/RemoteFieldClass.ts +++ b/src/api/resources/ticketing/types/RemoteFieldClass.ts @@ -10,8 +10,8 @@ export interface RemoteFieldClass { isCustom?: boolean; isCommonModelField?: boolean; isRequired?: boolean; - fieldType?: Merge.ticketing.RemoteFieldClassFieldType; - fieldFormat?: Merge.ticketing.RemoteFieldClassFieldFormat; + fieldType?: Merge.ticketing.FieldTypeEnum; + fieldFormat?: Merge.ticketing.FieldFormatEnum; fieldChoices?: Merge.ticketing.RemoteFieldClassFieldChoicesItem[]; itemSchema?: Merge.ticketing.ItemSchema; } diff --git a/src/api/resources/ticketing/types/RemoteFieldClassFieldFormat.ts b/src/api/resources/ticketing/types/RemoteFieldClassFieldFormat.ts deleted file mode 100644 index 0780ee5bb..000000000 --- a/src/api/resources/ticketing/types/RemoteFieldClassFieldFormat.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export type RemoteFieldClassFieldFormat = string | Merge.ticketing.FieldFormatEnum; diff --git a/src/api/resources/ticketing/types/RemoteFieldClassFieldType.ts b/src/api/resources/ticketing/types/RemoteFieldClassFieldType.ts deleted file mode 100644 index 583add1ed..000000000 --- a/src/api/resources/ticketing/types/RemoteFieldClassFieldType.ts +++ /dev/null @@ -1,5 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../index"; - -export type RemoteFieldClassFieldType = string | Merge.ticketing.FieldTypeEnum; diff --git a/src/api/resources/ticketing/types/RemoteResponse.ts b/src/api/resources/ticketing/types/RemoteResponse.ts index 711189e7f..240ba4b68 100644 --- a/src/api/resources/ticketing/types/RemoteResponse.ts +++ b/src/api/resources/ticketing/types/RemoteResponse.ts @@ -16,6 +16,6 @@ export interface RemoteResponse { status: number; response?: unknown; responseHeaders?: Record; - responseType?: Merge.ticketing.ResponseTypeEnum; + responseType?: Merge.ticketing.RemoteResponseResponseType; headers?: Record; } diff --git a/src/api/resources/ticketing/types/RemoteResponseResponseType.ts b/src/api/resources/ticketing/types/RemoteResponseResponseType.ts new file mode 100644 index 000000000..4976a6923 --- /dev/null +++ b/src/api/resources/ticketing/types/RemoteResponseResponseType.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type RemoteResponseResponseType = Merge.ticketing.ResponseTypeEnum | string; diff --git a/src/api/resources/ticketing/types/RoleEnum.ts b/src/api/resources/ticketing/types/RoleEnum.ts index 524088eb7..584dbc84e 100644 --- a/src/api/resources/ticketing/types/RoleEnum.ts +++ b/src/api/resources/ticketing/types/RoleEnum.ts @@ -7,6 +7,7 @@ * * `API` - API * * `SYSTEM` - SYSTEM * * `MERGE_TEAM` - MERGE_TEAM + * * `SUPPORT` - SUPPORT */ export const RoleEnum = { Admin: "ADMIN", @@ -15,5 +16,6 @@ export const RoleEnum = { Api: "API", System: "SYSTEM", MergeTeam: "MERGE_TEAM", + Support: "SUPPORT", } as const; export type RoleEnum = (typeof RoleEnum)[keyof typeof RoleEnum]; diff --git a/src/api/resources/ticketing/types/RoleTicketAccess.ts b/src/api/resources/ticketing/types/RoleTicketAccess.ts index a60f8f868..a169af400 100644 --- a/src/api/resources/ticketing/types/RoleTicketAccess.ts +++ b/src/api/resources/ticketing/types/RoleTicketAccess.ts @@ -9,4 +9,4 @@ import type * as Merge from "../../../index"; * * `ASSIGNED_ONLY` - ASSIGNED_ONLY * * `TEAM_ONLY` - TEAM_ONLY */ -export type RoleTicketAccess = string | Merge.ticketing.TicketAccessEnum; +export type RoleTicketAccess = Merge.ticketing.TicketAccessEnum | string; diff --git a/src/api/resources/ticketing/types/RoleTicketActionsItem.ts b/src/api/resources/ticketing/types/RoleTicketActionsItem.ts index 77341cdbc..49809c539 100644 --- a/src/api/resources/ticketing/types/RoleTicketActionsItem.ts +++ b/src/api/resources/ticketing/types/RoleTicketActionsItem.ts @@ -2,4 +2,4 @@ import type * as Merge from "../../../index"; -export type RoleTicketActionsItem = string | Merge.ticketing.TicketActionsEnum; +export type RoleTicketActionsItem = Merge.ticketing.TicketActionsEnum | string; diff --git a/src/api/resources/ticketing/types/SyncStatus.ts b/src/api/resources/ticketing/types/SyncStatus.ts index 14c44cac6..4cd982bda 100644 --- a/src/api/resources/ticketing/types/SyncStatus.ts +++ b/src/api/resources/ticketing/types/SyncStatus.ts @@ -17,7 +17,7 @@ export interface SyncStatus { nextSyncStart?: Date; lastSyncResult?: Merge.ticketing.SyncStatusLastSyncResult; lastSyncFinished?: Date; - status: Merge.ticketing.StatusFd5Enum; + status: Merge.ticketing.SyncStatusStatus; isInitialSync: boolean; selectiveSyncConfigurationsUsage?: Merge.ticketing.SelectiveSyncConfigurationsUsageEnum; } diff --git a/src/api/resources/ticketing/types/SyncStatusStatus.ts b/src/api/resources/ticketing/types/SyncStatusStatus.ts new file mode 100644 index 000000000..156c2b8db --- /dev/null +++ b/src/api/resources/ticketing/types/SyncStatusStatus.ts @@ -0,0 +1,5 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../index"; + +export type SyncStatusStatus = Merge.ticketing.StatusFd5Enum | string; diff --git a/src/api/resources/ticketing/types/Ticket.ts b/src/api/resources/ticketing/types/Ticket.ts index 26a49a00c..7d7f32324 100644 --- a/src/api/resources/ticketing/types/Ticket.ts +++ b/src/api/resources/ticketing/types/Ticket.ts @@ -58,16 +58,9 @@ export interface Ticket { * * `COLLECTION` - COLLECTION */ accessLevel?: Merge.ticketing.TicketAccessLevel; + permissions?: Merge.ticketing.Permission[]; tags?: (string | undefined)[]; roles?: (string | undefined)[]; - /** When the third party's ticket was created. */ - remoteCreatedAt?: Date; - /** When the third party's ticket was updated. */ - remoteUpdatedAt?: Date; - /** When the ticket was completed. */ - completedAt?: Date; - /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ - remoteWasDeleted?: boolean; /** The 3rd party url of the Ticket. */ ticketUrl?: string; /** @@ -79,6 +72,14 @@ export interface Ticket { * * `LOW` - LOW */ priority?: Merge.ticketing.TicketPriority; + /** When the third party's ticket was created. */ + remoteCreatedAt?: Date; + /** When the third party's ticket was updated. */ + remoteUpdatedAt?: Date; + /** When the ticket was completed. */ + completedAt?: Date; + /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ + remoteWasDeleted?: boolean; fieldMappings?: Record; remoteData?: Merge.ticketing.RemoteData[]; remoteFields?: Merge.ticketing.RemoteField[]; diff --git a/src/api/resources/ticketing/types/index.ts b/src/api/resources/ticketing/types/index.ts index 66f871985..9d118e7d1 100644 --- a/src/api/resources/ticketing/types/index.ts +++ b/src/api/resources/ticketing/types/index.ts @@ -8,6 +8,7 @@ export * from "./AccountDetailsAndActionsStatusEnum"; export * from "./AccountDetailsCategory"; export * from "./AccountIntegration"; export * from "./AccountToken"; +export * from "./ActionsEnum"; export * from "./AdvancedMetadata"; export * from "./AsyncPassthroughReciept"; export * from "./Attachment"; @@ -23,8 +24,8 @@ export * from "./CategoryEnum"; export * from "./Collection"; export * from "./CollectionAccessLevel"; export * from "./CollectionAccessLevelEnum"; -export * from "./CollectionCollectionType"; export * from "./CollectionParentCollection"; +export * from "./CollectionPermissionsItem"; export * from "./CollectionTypeEnum"; export * from "./Comment"; export * from "./CommentContact"; @@ -37,7 +38,6 @@ export * from "./CommentTicket"; export * from "./CommentUser"; export * from "./CommonModelScopeApi"; export * from "./CommonModelScopesBodyRequest"; -export * from "./CompletedAccountInitialScreenEnum"; export * from "./Contact"; export * from "./ContactAccount"; export * from "./ContactRequest"; @@ -45,6 +45,7 @@ export * from "./ContactRequestAccount"; export * from "./DataPassthroughRequest"; export * from "./DebugModeLog"; export * from "./DebugModelLogSummary"; +export * from "./EffectEnum"; export * from "./EnabledActionsEnum"; export * from "./EncodingEnum"; export * from "./ErrorValidationProblem"; @@ -99,10 +100,14 @@ export * from "./PaginatedUserList"; export * from "./PaginatedViewerList"; export * from "./PatchedTicketRequest"; export * from "./PatchedTicketRequestAccessLevel"; -export * from "./PatchedTicketRequestPriority"; export * from "./PatchedTicketRequestStatus"; +export * from "./Permission"; +export * from "./PermissionEffect"; +export * from "./PermissionRequest"; +export * from "./PermissionRequestEffect"; export * from "./PriorityEnum"; export * from "./Project"; +export * from "./RegenerateAccountToken"; export * from "./RemoteData"; export * from "./RemoteEndpointInfo"; export * from "./RemoteField"; @@ -111,13 +116,12 @@ export * from "./RemoteFieldApiCoverage"; export * from "./RemoteFieldApiResponse"; export * from "./RemoteFieldClass"; export * from "./RemoteFieldClassFieldChoicesItem"; -export * from "./RemoteFieldClassFieldFormat"; -export * from "./RemoteFieldClassFieldType"; export * from "./RemoteFieldRemoteFieldClass"; export * from "./RemoteFieldRequest"; export * from "./RemoteFieldRequestRemoteFieldClass"; export * from "./RemoteKey"; export * from "./RemoteResponse"; +export * from "./RemoteResponseResponseType"; export * from "./RequestFormatEnum"; export * from "./ResponseTypeEnum"; export * from "./Role"; @@ -128,6 +132,7 @@ export * from "./SelectiveSyncConfigurationsUsageEnum"; export * from "./StatusFd5Enum"; export * from "./SyncStatus"; export * from "./SyncStatusLastSyncResult"; +export * from "./SyncStatusStatus"; export * from "./Tag"; export * from "./Team"; export * from "./Ticket"; diff --git a/src/auth/BearerAuthProvider.ts b/src/auth/BearerAuthProvider.ts index a272f9cff..5fd17c3b5 100644 --- a/src/auth/BearerAuthProvider.ts +++ b/src/auth/BearerAuthProvider.ts @@ -35,7 +35,7 @@ export class BearerAuthProvider implements core.AuthProvider { } export namespace BearerAuthProvider { - export const AUTH_SCHEME = "BearerAuthScheme" as const; + export const AUTH_SCHEME = "tokenAuth" as const; export const AUTH_CONFIG_ERROR_MESSAGE: string = `Please provide '${TOKEN_PARAM}' when initializing the client` as const; export type Options = AuthOptions; diff --git a/src/core/exports.ts b/src/core/exports.ts index 6306ac159..73006e3c5 100644 --- a/src/core/exports.ts +++ b/src/core/exports.ts @@ -1 +1,2 @@ export * from "./logging/exports"; +export * from "./pagination/exports"; diff --git a/src/core/index.ts b/src/core/index.ts index 9ebb5e39e..348fcd706 100644 --- a/src/core/index.ts +++ b/src/core/index.ts @@ -2,6 +2,8 @@ export * from "./auth"; export * from "./base64"; export * from "./fetcher"; export * as logging from "./logging"; +export * from "./pagination"; export * from "./runtime"; export * as serialization from "./schemas"; export * as url from "./url"; +export * from "./utils"; diff --git a/src/core/pagination/CustomPager.ts b/src/core/pagination/CustomPager.ts new file mode 100644 index 000000000..5476b0319 --- /dev/null +++ b/src/core/pagination/CustomPager.ts @@ -0,0 +1,194 @@ +import type { BaseRequestOptions, NormalizedClientOptions } from "../../BaseClient"; +import type { APIResponse } from "../fetcher/APIResponse"; +import type { Fetcher } from "../fetcher/Fetcher"; +import type { RawResponse } from "../fetcher/index"; + +/** + * + * @template TItem The type of the items in the page. + * @template TResponse The type of the API response. + */ +export class CustomPager implements AsyncIterable { + /** The items from the current page */ + public data: TItem[]; + /** The raw HTTP response */ + public rawResponse: RawResponse; + /** The parsed response object */ + public response: TResponse; + + private sendRequest: (request: Fetcher.Args) => Promise>; + private nextRequest?: Fetcher.Args; + private previousRequest?: Fetcher.Args; + private _hasNextPage: boolean; + private _hasPreviousPage: boolean; + + constructor(args: { + response: TResponse; + rawResponse: RawResponse; + items: TItem[]; + hasNextPage: boolean; + hasPreviousPage: boolean; + nextRequest?: Fetcher.Args; + previousRequest?: Fetcher.Args; + sendRequest: (request: Fetcher.Args) => Promise>; + }) { + this.response = args.response; + this.rawResponse = args.rawResponse; + this.data = args.items; + this._hasNextPage = args.hasNextPage; + this._hasPreviousPage = args.hasPreviousPage; + this.nextRequest = args.nextRequest; + this.previousRequest = args.previousRequest; + this.sendRequest = args.sendRequest; + } + + /** + * @returns whether there is a next page to load + */ + public hasNextPage(): boolean { + return this._hasNextPage; + } + + /** + * @returns whether there is a previous page to load + */ + public hasPreviousPage(): boolean { + return this._hasPreviousPage; + } + + /** + * Returns the current page data. + * This is an alias for the `data` property for consistency with other pagination APIs. + * + * @returns the items from the current page + */ + public getCurrentPage(): TItem[] { + return this.data; + } + + /** + * Retrieves the next page of results. + * @returns this pager with updated data + * @throws Error if there is no next page + */ + public async getNextPage(): Promise { + if (!this._hasNextPage || !this.nextRequest) { + throw new Error("No next page available"); + } + const response = await this.sendRequest(this.nextRequest); + if (!response.ok) { + const reason = + response.error.reason === "status-code" ? `HTTP ${response.error.statusCode}` : response.error.reason; + throw new Error(`Failed to fetch next page: ${reason}`); + } + const data = response.body; + const rawResponse = response.rawResponse; + const parsed = await parse({ request: this.nextRequest, data, rawResponse }); + this.response = data; + this.rawResponse = rawResponse; + this.data = parsed.items; + this._hasNextPage = parsed.hasNextPage; + this._hasPreviousPage = parsed.hasPreviousPage; + this.nextRequest = parsed.nextRequest; + this.previousRequest = parsed.previousRequest; + return this; + } + + /** + * Retrieves the previous page of results. + * @returns this pager with updated data + * @throws Error if there is no previous page + */ + public async getPreviousPage(): Promise { + if (!this._hasPreviousPage || !this.previousRequest) { + throw new Error("No previous page available"); + } + const response = await this.sendRequest(this.previousRequest); + if (!response.ok) { + const reason = + response.error.reason === "status-code" ? `HTTP ${response.error.statusCode}` : response.error.reason; + throw new Error(`Failed to fetch previous page: ${reason}`); + } + const data = response.body; + const rawResponse = response.rawResponse; + const parsed = await parse({ request: this.previousRequest, data, rawResponse }); + this.response = data; + this.rawResponse = rawResponse; + this.data = parsed.items; + this._hasNextPage = parsed.hasNextPage; + this._hasPreviousPage = parsed.hasPreviousPage; + this.nextRequest = parsed.nextRequest; + this.previousRequest = parsed.previousRequest; + return this; + } + + private async *iterMessages(): AsyncGenerator { + for (const item of this.data) { + yield item; + } + + while (this.hasNextPage()) { + await this.getNextPage(); + for (const item of this.data) { + yield item; + } + } + } + + async *[Symbol.asyncIterator](): AsyncIterator { + for await (const message of this.iterMessages()) { + yield message; + } + } +} + +export async function createCustomPager({ + sendRequest, + initialHttpRequest, + clientOptions, +}: { + sendRequest: (request: Fetcher.Args) => Promise>; + initialHttpRequest: Fetcher.Args; + clientOptions: NormalizedClientOptions; + requestOptions?: BaseRequestOptions; +}): Promise> { + const response = await sendRequest(initialHttpRequest); + if (!response.ok) { + const reason = + response.error.reason === "status-code" ? `HTTP ${response.error.statusCode}` : response.error.reason; + throw new Error(`Failed to fetch initial page: ${reason}`); + } + const data = response.body; + const rawResponse = response.rawResponse; + const parsed = await parse({ request: initialHttpRequest, data, rawResponse }); + return new CustomPager({ + response: data, + rawResponse, + items: parsed.items, + hasNextPage: parsed.hasNextPage, + hasPreviousPage: parsed.hasPreviousPage, + nextRequest: parsed.nextRequest, + previousRequest: parsed.previousRequest, + sendRequest: sendRequest, + }); +} + +async function parse(_args: { + request: Fetcher.Args; + data: TResponse; + rawResponse: RawResponse; +}): Promise<{ + nextRequest?: Fetcher.Args; + hasNextPage: boolean; + previousRequest?: Fetcher.Args; + hasPreviousPage: boolean; + items: TItem[]; +}> { + // Placeholder implementation. + // TODO: Replace this with actual parsing logic. + return { + items: [], + hasNextPage: false, + hasPreviousPage: false, + }; +} diff --git a/src/core/pagination/Page.ts b/src/core/pagination/Page.ts new file mode 100644 index 000000000..6e884eccb --- /dev/null +++ b/src/core/pagination/Page.ts @@ -0,0 +1,76 @@ +import type { HttpResponsePromise, RawResponse } from "../fetcher/index"; + +/** + * A page of results from a paginated API. + * + * @template T The type of the items in the page. + * @template R The type of the API response. + */ +export class Page implements AsyncIterable { + public data: T[]; + public rawResponse: RawResponse; + public response: R; + + private _hasNextPage: (response: R) => boolean; + private getItems: (response: R) => T[]; + private loadNextPage: (response: R) => HttpResponsePromise; + + constructor({ + response, + rawResponse, + hasNextPage, + getItems, + loadPage, + }: { + response: R; + rawResponse: RawResponse; + hasNextPage: (response: R) => boolean; + getItems: (response: R) => T[]; + loadPage: (response: R) => HttpResponsePromise; + }) { + this.response = response; + this.rawResponse = rawResponse; + this.data = getItems(response); + this._hasNextPage = hasNextPage; + this.getItems = getItems; + this.loadNextPage = loadPage; + } + + /** + * Retrieves the next page + * @returns this + */ + public async getNextPage(): Promise { + const { data, rawResponse } = await this.loadNextPage(this.response).withRawResponse(); + this.response = data; + this.rawResponse = rawResponse; + this.data = this.getItems(this.response); + return this; + } + + /** + * @returns whether there is a next page to load + */ + public hasNextPage(): boolean { + return this._hasNextPage(this.response); + } + + private async *iterMessages(): AsyncGenerator { + for (const item of this.data) { + yield item; + } + + while (this.hasNextPage()) { + await this.getNextPage(); + for (const item of this.data) { + yield item; + } + } + } + + async *[Symbol.asyncIterator](): AsyncIterator { + for await (const message of this.iterMessages()) { + yield message; + } + } +} diff --git a/src/core/pagination/exports.ts b/src/core/pagination/exports.ts new file mode 100644 index 000000000..8a1c4b3bd --- /dev/null +++ b/src/core/pagination/exports.ts @@ -0,0 +1 @@ +export type { Page } from "./Page"; diff --git a/src/core/pagination/index.ts b/src/core/pagination/index.ts new file mode 100644 index 000000000..489f59cf6 --- /dev/null +++ b/src/core/pagination/index.ts @@ -0,0 +1,2 @@ +export { CustomPager, createCustomPager } from "./CustomPager"; +export { Page } from "./Page"; diff --git a/src/core/utils/index.ts b/src/core/utils/index.ts new file mode 100644 index 000000000..b168f599a --- /dev/null +++ b/src/core/utils/index.ts @@ -0,0 +1 @@ +export { setObjectProperty } from "./setObjectProperty"; diff --git a/src/core/utils/setObjectProperty.ts b/src/core/utils/setObjectProperty.ts new file mode 100644 index 000000000..5528af248 --- /dev/null +++ b/src/core/utils/setObjectProperty.ts @@ -0,0 +1,43 @@ +/** + * Sets the value at path of object. If a portion of path doesn’t exist it’s created. This is + * inspired by Lodash's set function, but is simplified to accommodate our use case. + * For more details, see https://lodash.com/docs/4.17.15#set. + * + * @param object The object to modify. + * @param path The path of the property to set. + * @param value The value to set. + * @return Returns object. + */ +export function setObjectProperty(object: T, path: string, value: any): T { + if (object == null) { + return object; + } + + const keys: string[] = path.split("."); + if (keys.length === 0) { + // Invalid path; do nothing. + return object; + } + + let current: Record = object; + for (let i = 0; i < keys.length - 1; i++) { + const key = keys[i]; + if (key == null) { + // Unreachable. + continue; + } + if (!current[key] || typeof current[key] !== "object") { + current[key] = {}; + } + current = current[key] as Record; + } + + const lastKey = keys[keys.length - 1]; + if (lastKey == null) { + // Unreachable. + return object; + } + + current[lastKey] = value; + return object; +} diff --git a/src/environments.ts b/src/environments.ts index 6b9c1588e..28ebe45f4 100644 --- a/src/environments.ts +++ b/src/environments.ts @@ -2,11 +2,11 @@ export const MergeEnvironment = { Production: "https://api.merge.dev/api", - Sandbox: "https://api-sandbox.merge.dev/api", ProductionEu: "https://api-eu.merge.dev/api", + Sandbox: "https://api-sandbox.merge.dev/api", } as const; export type MergeEnvironment = | typeof MergeEnvironment.Production - | typeof MergeEnvironment.Sandbox - | typeof MergeEnvironment.ProductionEu; + | typeof MergeEnvironment.ProductionEu + | typeof MergeEnvironment.Sandbox; diff --git a/src/serialization/resources/accounting/resources/accounts/client/requests/AccountBulkRequest.ts b/src/serialization/resources/accounting/resources/accounts/client/requests/AccountBulkRequest.ts new file mode 100644 index 000000000..163c4e398 --- /dev/null +++ b/src/serialization/resources/accounting/resources/accounts/client/requests/AccountBulkRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../../api/index"; +import * as core from "../../../../../../../core"; +import type * as serializers from "../../../../../../index"; +import { AccountBatchItemRequest } from "../../../../types/AccountBatchItemRequest"; + +export const AccountBulkRequest: core.serialization.Schema< + serializers.accounting.AccountBulkRequest.Raw, + Omit +> = core.serialization.object({ + batchItems: core.serialization.property("batch_items", core.serialization.list(AccountBatchItemRequest)), +}); + +export declare namespace AccountBulkRequest { + export interface Raw { + batch_items: AccountBatchItemRequest.Raw[]; + } +} diff --git a/src/serialization/resources/accounting/resources/accounts/client/requests/AccountEndpointRequest.ts b/src/serialization/resources/accounting/resources/accounts/client/requests/AccountEndpointRequest.ts deleted file mode 100644 index c933d7956..000000000 --- a/src/serialization/resources/accounting/resources/accounts/client/requests/AccountEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { AccountRequest } from "../../../../types/AccountRequest"; - -export const AccountEndpointRequest: core.serialization.Schema< - serializers.accounting.AccountEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: AccountRequest, -}); - -export declare namespace AccountEndpointRequest { - export interface Raw { - model: AccountRequest.Raw; - } -} diff --git a/src/serialization/resources/accounting/resources/accounts/client/requests/index.ts b/src/serialization/resources/accounting/resources/accounts/client/requests/index.ts index 9d9d5d6fe..28813abef 100644 --- a/src/serialization/resources/accounting/resources/accounts/client/requests/index.ts +++ b/src/serialization/resources/accounting/resources/accounts/client/requests/index.ts @@ -1 +1 @@ -export { AccountEndpointRequest } from "./AccountEndpointRequest"; +export { AccountBulkRequest } from "./AccountBulkRequest"; diff --git a/src/serialization/resources/accounting/resources/accounts/types/AccountsBatchObjectsListRequestClassification.ts b/src/serialization/resources/accounting/resources/accounts/types/AccountsBatchObjectsListRequestClassification.ts new file mode 100644 index 000000000..30ef75f1e --- /dev/null +++ b/src/serialization/resources/accounting/resources/accounts/types/AccountsBatchObjectsListRequestClassification.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const AccountsBatchObjectsListRequestClassification: core.serialization.Schema< + serializers.accounting.AccountsBatchObjectsListRequestClassification.Raw, + Merge.accounting.AccountsBatchObjectsListRequestClassification +> = core.serialization.enum_(["", "ASSET", "EQUITY", "EXPENSE", "LIABILITY", "REVENUE"]); + +export declare namespace AccountsBatchObjectsListRequestClassification { + export type Raw = "" | "ASSET" | "EQUITY" | "EXPENSE" | "LIABILITY" | "REVENUE"; +} diff --git a/src/serialization/resources/accounting/resources/accounts/types/AccountsBatchObjectsListRequestRemoteFields.ts b/src/serialization/resources/accounting/resources/accounts/types/AccountsBatchObjectsListRequestRemoteFields.ts new file mode 100644 index 000000000..1e5371cca --- /dev/null +++ b/src/serialization/resources/accounting/resources/accounts/types/AccountsBatchObjectsListRequestRemoteFields.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const AccountsBatchObjectsListRequestRemoteFields: core.serialization.Schema< + serializers.accounting.AccountsBatchObjectsListRequestRemoteFields.Raw, + Merge.accounting.AccountsBatchObjectsListRequestRemoteFields +> = core.serialization.enum_(["classification", "classification,status", "status"]); + +export declare namespace AccountsBatchObjectsListRequestRemoteFields { + export type Raw = "classification" | "classification,status" | "status"; +} diff --git a/src/serialization/resources/accounting/resources/accounts/types/AccountsBatchObjectsListRequestShowEnumOrigins.ts b/src/serialization/resources/accounting/resources/accounts/types/AccountsBatchObjectsListRequestShowEnumOrigins.ts new file mode 100644 index 000000000..0f3bb350d --- /dev/null +++ b/src/serialization/resources/accounting/resources/accounts/types/AccountsBatchObjectsListRequestShowEnumOrigins.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const AccountsBatchObjectsListRequestShowEnumOrigins: core.serialization.Schema< + serializers.accounting.AccountsBatchObjectsListRequestShowEnumOrigins.Raw, + Merge.accounting.AccountsBatchObjectsListRequestShowEnumOrigins +> = core.serialization.enum_(["classification", "classification,status", "status"]); + +export declare namespace AccountsBatchObjectsListRequestShowEnumOrigins { + export type Raw = "classification" | "classification,status" | "status"; +} diff --git a/src/serialization/resources/accounting/resources/accounts/types/AccountsBatchObjectsListRequestStatus.ts b/src/serialization/resources/accounting/resources/accounts/types/AccountsBatchObjectsListRequestStatus.ts new file mode 100644 index 000000000..7384805a7 --- /dev/null +++ b/src/serialization/resources/accounting/resources/accounts/types/AccountsBatchObjectsListRequestStatus.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const AccountsBatchObjectsListRequestStatus: core.serialization.Schema< + serializers.accounting.AccountsBatchObjectsListRequestStatus.Raw, + Merge.accounting.AccountsBatchObjectsListRequestStatus +> = core.serialization.enum_(["", "ACTIVE", "INACTIVE", "PENDING"]); + +export declare namespace AccountsBatchObjectsListRequestStatus { + export type Raw = "" | "ACTIVE" | "INACTIVE" | "PENDING"; +} diff --git a/src/serialization/resources/accounting/resources/accounts/types/index.ts b/src/serialization/resources/accounting/resources/accounts/types/index.ts index 6e355c26c..cca98df43 100644 --- a/src/serialization/resources/accounting/resources/accounts/types/index.ts +++ b/src/serialization/resources/accounting/resources/accounts/types/index.ts @@ -1,3 +1,7 @@ +export * from "./AccountsBatchObjectsListRequestClassification"; +export * from "./AccountsBatchObjectsListRequestRemoteFields"; +export * from "./AccountsBatchObjectsListRequestShowEnumOrigins"; +export * from "./AccountsBatchObjectsListRequestStatus"; export * from "./AccountsListRequestClassification"; export * from "./AccountsListRequestRemoteFields"; export * from "./AccountsListRequestShowEnumOrigins"; diff --git a/src/serialization/resources/accounting/resources/attachments/client/requests/AccountingAttachmentBulkRequest.ts b/src/serialization/resources/accounting/resources/attachments/client/requests/AccountingAttachmentBulkRequest.ts new file mode 100644 index 000000000..646921514 --- /dev/null +++ b/src/serialization/resources/accounting/resources/attachments/client/requests/AccountingAttachmentBulkRequest.ts @@ -0,0 +1,22 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../../api/index"; +import * as core from "../../../../../../../core"; +import type * as serializers from "../../../../../../index"; +import { AccountingAttachmentBatchItemRequest } from "../../../../types/AccountingAttachmentBatchItemRequest"; + +export const AccountingAttachmentBulkRequest: core.serialization.Schema< + serializers.accounting.AccountingAttachmentBulkRequest.Raw, + Omit +> = core.serialization.object({ + batchItems: core.serialization.property( + "batch_items", + core.serialization.list(AccountingAttachmentBatchItemRequest), + ), +}); + +export declare namespace AccountingAttachmentBulkRequest { + export interface Raw { + batch_items: AccountingAttachmentBatchItemRequest.Raw[]; + } +} diff --git a/src/serialization/resources/accounting/resources/attachments/client/requests/AccountingAttachmentEndpointRequest.ts b/src/serialization/resources/accounting/resources/attachments/client/requests/AccountingAttachmentEndpointRequest.ts deleted file mode 100644 index 3aa8b9ab1..000000000 --- a/src/serialization/resources/accounting/resources/attachments/client/requests/AccountingAttachmentEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { AccountingAttachmentRequest } from "../../../../types/AccountingAttachmentRequest"; - -export const AccountingAttachmentEndpointRequest: core.serialization.Schema< - serializers.accounting.AccountingAttachmentEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: AccountingAttachmentRequest, -}); - -export declare namespace AccountingAttachmentEndpointRequest { - export interface Raw { - model: AccountingAttachmentRequest.Raw; - } -} diff --git a/src/serialization/resources/accounting/resources/attachments/client/requests/index.ts b/src/serialization/resources/accounting/resources/attachments/client/requests/index.ts index 6400efcff..82ccddcd0 100644 --- a/src/serialization/resources/accounting/resources/attachments/client/requests/index.ts +++ b/src/serialization/resources/accounting/resources/attachments/client/requests/index.ts @@ -1 +1 @@ -export { AccountingAttachmentEndpointRequest } from "./AccountingAttachmentEndpointRequest"; +export { AccountingAttachmentBulkRequest } from "./AccountingAttachmentBulkRequest"; diff --git a/src/serialization/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountBulkRequest.ts b/src/serialization/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountBulkRequest.ts new file mode 100644 index 000000000..b8564bc8d --- /dev/null +++ b/src/serialization/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountBulkRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../../api/index"; +import * as core from "../../../../../../../core"; +import type * as serializers from "../../../../../../index"; +import { BankFeedAccountBatchItemRequest } from "../../../../types/BankFeedAccountBatchItemRequest"; + +export const BankFeedAccountBulkRequest: core.serialization.Schema< + serializers.accounting.BankFeedAccountBulkRequest.Raw, + Omit +> = core.serialization.object({ + batchItems: core.serialization.property("batch_items", core.serialization.list(BankFeedAccountBatchItemRequest)), +}); + +export declare namespace BankFeedAccountBulkRequest { + export interface Raw { + batch_items: BankFeedAccountBatchItemRequest.Raw[]; + } +} diff --git a/src/serialization/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountEndpointRequest.ts b/src/serialization/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountEndpointRequest.ts deleted file mode 100644 index 67a0e1bd4..000000000 --- a/src/serialization/resources/accounting/resources/bankFeedAccounts/client/requests/BankFeedAccountEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { BankFeedAccountRequest } from "../../../../types/BankFeedAccountRequest"; - -export const BankFeedAccountEndpointRequest: core.serialization.Schema< - serializers.accounting.BankFeedAccountEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: BankFeedAccountRequest, -}); - -export declare namespace BankFeedAccountEndpointRequest { - export interface Raw { - model: BankFeedAccountRequest.Raw; - } -} diff --git a/src/serialization/resources/accounting/resources/bankFeedAccounts/client/requests/index.ts b/src/serialization/resources/accounting/resources/bankFeedAccounts/client/requests/index.ts index 72d1a9b7f..744949123 100644 --- a/src/serialization/resources/accounting/resources/bankFeedAccounts/client/requests/index.ts +++ b/src/serialization/resources/accounting/resources/bankFeedAccounts/client/requests/index.ts @@ -1 +1 @@ -export { BankFeedAccountEndpointRequest } from "./BankFeedAccountEndpointRequest"; +export { BankFeedAccountBulkRequest } from "./BankFeedAccountBulkRequest"; diff --git a/src/serialization/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionBulkRequest.ts b/src/serialization/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionBulkRequest.ts new file mode 100644 index 000000000..4bd348ea8 --- /dev/null +++ b/src/serialization/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionBulkRequest.ts @@ -0,0 +1,22 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../../api/index"; +import * as core from "../../../../../../../core"; +import type * as serializers from "../../../../../../index"; +import { BankFeedTransactionBatchItemRequest } from "../../../../types/BankFeedTransactionBatchItemRequest"; + +export const BankFeedTransactionBulkRequest: core.serialization.Schema< + serializers.accounting.BankFeedTransactionBulkRequest.Raw, + Omit +> = core.serialization.object({ + batchItems: core.serialization.property( + "batch_items", + core.serialization.list(BankFeedTransactionBatchItemRequest), + ), +}); + +export declare namespace BankFeedTransactionBulkRequest { + export interface Raw { + batch_items: BankFeedTransactionBatchItemRequest.Raw[]; + } +} diff --git a/src/serialization/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionEndpointRequest.ts b/src/serialization/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionEndpointRequest.ts deleted file mode 100644 index 320796165..000000000 --- a/src/serialization/resources/accounting/resources/bankFeedTransactions/client/requests/BankFeedTransactionEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { BankFeedTransactionRequestRequest } from "../../../../types/BankFeedTransactionRequestRequest"; - -export const BankFeedTransactionEndpointRequest: core.serialization.Schema< - serializers.accounting.BankFeedTransactionEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: BankFeedTransactionRequestRequest, -}); - -export declare namespace BankFeedTransactionEndpointRequest { - export interface Raw { - model: BankFeedTransactionRequestRequest.Raw; - } -} diff --git a/src/serialization/resources/accounting/resources/bankFeedTransactions/client/requests/index.ts b/src/serialization/resources/accounting/resources/bankFeedTransactions/client/requests/index.ts index 8e407151a..4f0286749 100644 --- a/src/serialization/resources/accounting/resources/bankFeedTransactions/client/requests/index.ts +++ b/src/serialization/resources/accounting/resources/bankFeedTransactions/client/requests/index.ts @@ -1 +1 @@ -export { BankFeedTransactionEndpointRequest } from "./BankFeedTransactionEndpointRequest"; +export { BankFeedTransactionBulkRequest } from "./BankFeedTransactionBulkRequest"; diff --git a/src/serialization/resources/accounting/resources/companyInfo/types/CompanyInfoListRequestExpand.ts b/src/serialization/resources/accounting/resources/companyInfo/types/CompanyInfoListRequestExpand.ts deleted file mode 100644 index 9ec1d1cc3..000000000 --- a/src/serialization/resources/accounting/resources/companyInfo/types/CompanyInfoListRequestExpand.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const CompanyInfoListRequestExpand: core.serialization.Schema< - serializers.accounting.CompanyInfoListRequestExpand.Raw, - Merge.accounting.CompanyInfoListRequestExpand -> = core.serialization.enum_(["addresses", "addresses,phone_numbers", "phone_numbers"]); - -export declare namespace CompanyInfoListRequestExpand { - export type Raw = "addresses" | "addresses,phone_numbers" | "phone_numbers"; -} diff --git a/src/serialization/resources/accounting/resources/companyInfo/types/CompanyInfoListRequestExpandItem.ts b/src/serialization/resources/accounting/resources/companyInfo/types/CompanyInfoListRequestExpandItem.ts new file mode 100644 index 000000000..c1bfb5a84 --- /dev/null +++ b/src/serialization/resources/accounting/resources/companyInfo/types/CompanyInfoListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const CompanyInfoListRequestExpandItem: core.serialization.Schema< + serializers.accounting.CompanyInfoListRequestExpandItem.Raw, + Merge.accounting.CompanyInfoListRequestExpandItem +> = core.serialization.enum_(["addresses", "phone_numbers"]); + +export declare namespace CompanyInfoListRequestExpandItem { + export type Raw = "addresses" | "phone_numbers"; +} diff --git a/src/serialization/resources/accounting/resources/companyInfo/types/CompanyInfoRetrieveRequestExpand.ts b/src/serialization/resources/accounting/resources/companyInfo/types/CompanyInfoRetrieveRequestExpand.ts deleted file mode 100644 index fd6d46784..000000000 --- a/src/serialization/resources/accounting/resources/companyInfo/types/CompanyInfoRetrieveRequestExpand.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const CompanyInfoRetrieveRequestExpand: core.serialization.Schema< - serializers.accounting.CompanyInfoRetrieveRequestExpand.Raw, - Merge.accounting.CompanyInfoRetrieveRequestExpand -> = core.serialization.enum_(["addresses", "addresses,phone_numbers", "phone_numbers"]); - -export declare namespace CompanyInfoRetrieveRequestExpand { - export type Raw = "addresses" | "addresses,phone_numbers" | "phone_numbers"; -} diff --git a/src/serialization/resources/accounting/resources/companyInfo/types/CompanyInfoRetrieveRequestExpandItem.ts b/src/serialization/resources/accounting/resources/companyInfo/types/CompanyInfoRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..ad4fba5ae --- /dev/null +++ b/src/serialization/resources/accounting/resources/companyInfo/types/CompanyInfoRetrieveRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const CompanyInfoRetrieveRequestExpandItem: core.serialization.Schema< + serializers.accounting.CompanyInfoRetrieveRequestExpandItem.Raw, + Merge.accounting.CompanyInfoRetrieveRequestExpandItem +> = core.serialization.enum_(["addresses", "phone_numbers"]); + +export declare namespace CompanyInfoRetrieveRequestExpandItem { + export type Raw = "addresses" | "phone_numbers"; +} diff --git a/src/serialization/resources/accounting/resources/companyInfo/types/index.ts b/src/serialization/resources/accounting/resources/companyInfo/types/index.ts index 8f0d30c91..68b77b77d 100644 --- a/src/serialization/resources/accounting/resources/companyInfo/types/index.ts +++ b/src/serialization/resources/accounting/resources/companyInfo/types/index.ts @@ -1,2 +1,2 @@ -export * from "./CompanyInfoListRequestExpand"; -export * from "./CompanyInfoRetrieveRequestExpand"; +export * from "./CompanyInfoListRequestExpandItem"; +export * from "./CompanyInfoRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/accounting/resources/contacts/client/requests/ContactBulkRequest.ts b/src/serialization/resources/accounting/resources/contacts/client/requests/ContactBulkRequest.ts new file mode 100644 index 000000000..3e046e914 --- /dev/null +++ b/src/serialization/resources/accounting/resources/contacts/client/requests/ContactBulkRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../../api/index"; +import * as core from "../../../../../../../core"; +import type * as serializers from "../../../../../../index"; +import { ContactBatchItemRequest } from "../../../../types/ContactBatchItemRequest"; + +export const ContactBulkRequest: core.serialization.Schema< + serializers.accounting.ContactBulkRequest.Raw, + Omit +> = core.serialization.object({ + batchItems: core.serialization.property("batch_items", core.serialization.list(ContactBatchItemRequest)), +}); + +export declare namespace ContactBulkRequest { + export interface Raw { + batch_items: ContactBatchItemRequest.Raw[]; + } +} diff --git a/src/serialization/resources/accounting/resources/contacts/client/requests/ContactEndpointRequest.ts b/src/serialization/resources/accounting/resources/contacts/client/requests/ContactEndpointRequest.ts deleted file mode 100644 index 76684b634..000000000 --- a/src/serialization/resources/accounting/resources/contacts/client/requests/ContactEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { ContactRequest } from "../../../../types/ContactRequest"; - -export const ContactEndpointRequest: core.serialization.Schema< - serializers.accounting.ContactEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: ContactRequest, -}); - -export declare namespace ContactEndpointRequest { - export interface Raw { - model: ContactRequest.Raw; - } -} diff --git a/src/serialization/resources/accounting/resources/contacts/client/requests/index.ts b/src/serialization/resources/accounting/resources/contacts/client/requests/index.ts index b5ae8a3b4..d73e23eb7 100644 --- a/src/serialization/resources/accounting/resources/contacts/client/requests/index.ts +++ b/src/serialization/resources/accounting/resources/contacts/client/requests/index.ts @@ -1,2 +1,2 @@ -export { ContactEndpointRequest } from "./ContactEndpointRequest"; +export { ContactBulkRequest } from "./ContactBulkRequest"; export { PatchedContactEndpointRequest } from "./PatchedContactEndpointRequest"; diff --git a/src/serialization/resources/accounting/resources/contacts/types/ContactsBatchObjectsListRequestExpandItem.ts b/src/serialization/resources/accounting/resources/contacts/types/ContactsBatchObjectsListRequestExpandItem.ts new file mode 100644 index 000000000..2c9e2c823 --- /dev/null +++ b/src/serialization/resources/accounting/resources/contacts/types/ContactsBatchObjectsListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const ContactsBatchObjectsListRequestExpandItem: core.serialization.Schema< + serializers.accounting.ContactsBatchObjectsListRequestExpandItem.Raw, + Merge.accounting.ContactsBatchObjectsListRequestExpandItem +> = core.serialization.enum_(["addresses", "company", "phone_numbers"]); + +export declare namespace ContactsBatchObjectsListRequestExpandItem { + export type Raw = "addresses" | "company" | "phone_numbers"; +} diff --git a/src/serialization/resources/accounting/resources/contacts/types/ContactsBatchObjectsListRequestStatus.ts b/src/serialization/resources/accounting/resources/contacts/types/ContactsBatchObjectsListRequestStatus.ts new file mode 100644 index 000000000..1f53c2527 --- /dev/null +++ b/src/serialization/resources/accounting/resources/contacts/types/ContactsBatchObjectsListRequestStatus.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const ContactsBatchObjectsListRequestStatus: core.serialization.Schema< + serializers.accounting.ContactsBatchObjectsListRequestStatus.Raw, + Merge.accounting.ContactsBatchObjectsListRequestStatus +> = core.serialization.enum_(["", "ACTIVE", "ARCHIVED"]); + +export declare namespace ContactsBatchObjectsListRequestStatus { + export type Raw = "" | "ACTIVE" | "ARCHIVED"; +} diff --git a/src/serialization/resources/accounting/resources/contacts/types/ContactsListRequestExpand.ts b/src/serialization/resources/accounting/resources/contacts/types/ContactsListRequestExpand.ts deleted file mode 100644 index 9bbc3d291..000000000 --- a/src/serialization/resources/accounting/resources/contacts/types/ContactsListRequestExpand.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const ContactsListRequestExpand: core.serialization.Schema< - serializers.accounting.ContactsListRequestExpand.Raw, - Merge.accounting.ContactsListRequestExpand -> = core.serialization.enum_([ - "addresses", - "addresses,company", - "addresses,phone_numbers", - "addresses,phone_numbers,company", - "company", - "phone_numbers", - "phone_numbers,company", -]); - -export declare namespace ContactsListRequestExpand { - export type Raw = - | "addresses" - | "addresses,company" - | "addresses,phone_numbers" - | "addresses,phone_numbers,company" - | "company" - | "phone_numbers" - | "phone_numbers,company"; -} diff --git a/src/serialization/resources/accounting/resources/contacts/types/ContactsListRequestExpandItem.ts b/src/serialization/resources/accounting/resources/contacts/types/ContactsListRequestExpandItem.ts new file mode 100644 index 000000000..3a57953c3 --- /dev/null +++ b/src/serialization/resources/accounting/resources/contacts/types/ContactsListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const ContactsListRequestExpandItem: core.serialization.Schema< + serializers.accounting.ContactsListRequestExpandItem.Raw, + Merge.accounting.ContactsListRequestExpandItem +> = core.serialization.enum_(["addresses", "company", "phone_numbers"]); + +export declare namespace ContactsListRequestExpandItem { + export type Raw = "addresses" | "company" | "phone_numbers"; +} diff --git a/src/serialization/resources/accounting/resources/contacts/types/ContactsRetrieveRequestExpand.ts b/src/serialization/resources/accounting/resources/contacts/types/ContactsRetrieveRequestExpand.ts deleted file mode 100644 index 5414c43f0..000000000 --- a/src/serialization/resources/accounting/resources/contacts/types/ContactsRetrieveRequestExpand.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const ContactsRetrieveRequestExpand: core.serialization.Schema< - serializers.accounting.ContactsRetrieveRequestExpand.Raw, - Merge.accounting.ContactsRetrieveRequestExpand -> = core.serialization.enum_([ - "addresses", - "addresses,company", - "addresses,phone_numbers", - "addresses,phone_numbers,company", - "company", - "phone_numbers", - "phone_numbers,company", -]); - -export declare namespace ContactsRetrieveRequestExpand { - export type Raw = - | "addresses" - | "addresses,company" - | "addresses,phone_numbers" - | "addresses,phone_numbers,company" - | "company" - | "phone_numbers" - | "phone_numbers,company"; -} diff --git a/src/serialization/resources/accounting/resources/contacts/types/ContactsRetrieveRequestExpandItem.ts b/src/serialization/resources/accounting/resources/contacts/types/ContactsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..a6cb52f93 --- /dev/null +++ b/src/serialization/resources/accounting/resources/contacts/types/ContactsRetrieveRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const ContactsRetrieveRequestExpandItem: core.serialization.Schema< + serializers.accounting.ContactsRetrieveRequestExpandItem.Raw, + Merge.accounting.ContactsRetrieveRequestExpandItem +> = core.serialization.enum_(["addresses", "company", "phone_numbers"]); + +export declare namespace ContactsRetrieveRequestExpandItem { + export type Raw = "addresses" | "company" | "phone_numbers"; +} diff --git a/src/serialization/resources/accounting/resources/contacts/types/index.ts b/src/serialization/resources/accounting/resources/contacts/types/index.ts index 97a5d68db..4f06e9632 100644 --- a/src/serialization/resources/accounting/resources/contacts/types/index.ts +++ b/src/serialization/resources/accounting/resources/contacts/types/index.ts @@ -1,3 +1,5 @@ -export * from "./ContactsListRequestExpand"; +export * from "./ContactsBatchObjectsListRequestExpandItem"; +export * from "./ContactsBatchObjectsListRequestStatus"; +export * from "./ContactsListRequestExpandItem"; export * from "./ContactsListRequestStatus"; -export * from "./ContactsRetrieveRequestExpand"; +export * from "./ContactsRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/accounting/resources/creditNotes/client/requests/ApplyCreditNoteRequest.ts b/src/serialization/resources/accounting/resources/creditNotes/client/requests/ApplyCreditNoteRequest.ts new file mode 100644 index 000000000..3ba7347fe --- /dev/null +++ b/src/serialization/resources/accounting/resources/creditNotes/client/requests/ApplyCreditNoteRequest.ts @@ -0,0 +1,22 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../../api/index"; +import * as core from "../../../../../../../core"; +import type * as serializers from "../../../../../../index"; + +export const ApplyCreditNoteRequest: core.serialization.Schema< + serializers.accounting.ApplyCreditNoteRequest.Raw, + Omit +> = core.serialization.object({ + invoice: core.serialization.string().optional(), + appliedDate: core.serialization.property("applied_date", core.serialization.date()), + appliedAmount: core.serialization.property("applied_amount", core.serialization.string()), +}); + +export declare namespace ApplyCreditNoteRequest { + export interface Raw { + invoice?: string | null; + applied_date: string; + applied_amount: string; + } +} diff --git a/src/serialization/resources/accounting/resources/creditNotes/client/requests/CreditNoteBulkRequest.ts b/src/serialization/resources/accounting/resources/creditNotes/client/requests/CreditNoteBulkRequest.ts new file mode 100644 index 000000000..d1295a417 --- /dev/null +++ b/src/serialization/resources/accounting/resources/creditNotes/client/requests/CreditNoteBulkRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../../api/index"; +import * as core from "../../../../../../../core"; +import type * as serializers from "../../../../../../index"; +import { CreditNoteBatchItemRequest } from "../../../../types/CreditNoteBatchItemRequest"; + +export const CreditNoteBulkRequest: core.serialization.Schema< + serializers.accounting.CreditNoteBulkRequest.Raw, + Omit +> = core.serialization.object({ + batchItems: core.serialization.property("batch_items", core.serialization.list(CreditNoteBatchItemRequest)), +}); + +export declare namespace CreditNoteBulkRequest { + export interface Raw { + batch_items: CreditNoteBatchItemRequest.Raw[]; + } +} diff --git a/src/serialization/resources/accounting/resources/creditNotes/client/requests/CreditNoteEndpointRequest.ts b/src/serialization/resources/accounting/resources/creditNotes/client/requests/CreditNoteEndpointRequest.ts deleted file mode 100644 index f46d90f49..000000000 --- a/src/serialization/resources/accounting/resources/creditNotes/client/requests/CreditNoteEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { CreditNoteRequest } from "../../../../types/CreditNoteRequest"; - -export const CreditNoteEndpointRequest: core.serialization.Schema< - serializers.accounting.CreditNoteEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: CreditNoteRequest, -}); - -export declare namespace CreditNoteEndpointRequest { - export interface Raw { - model: CreditNoteRequest.Raw; - } -} diff --git a/src/serialization/resources/accounting/resources/creditNotes/client/requests/PatchedCreditNoteEndpointRequest.ts b/src/serialization/resources/accounting/resources/creditNotes/client/requests/PatchedCreditNoteEndpointRequest.ts new file mode 100644 index 000000000..19193d9b1 --- /dev/null +++ b/src/serialization/resources/accounting/resources/creditNotes/client/requests/PatchedCreditNoteEndpointRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../../api/index"; +import * as core from "../../../../../../../core"; +import type * as serializers from "../../../../../../index"; +import { CreditNoteRequest } from "../../../../types/CreditNoteRequest"; + +export const PatchedCreditNoteEndpointRequest: core.serialization.Schema< + serializers.accounting.PatchedCreditNoteEndpointRequest.Raw, + Omit +> = core.serialization.object({ + model: CreditNoteRequest, +}); + +export declare namespace PatchedCreditNoteEndpointRequest { + export interface Raw { + model: CreditNoteRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/resources/creditNotes/client/requests/index.ts b/src/serialization/resources/accounting/resources/creditNotes/client/requests/index.ts index fa5837d6a..af7c2b0e9 100644 --- a/src/serialization/resources/accounting/resources/creditNotes/client/requests/index.ts +++ b/src/serialization/resources/accounting/resources/creditNotes/client/requests/index.ts @@ -1 +1,3 @@ -export { CreditNoteEndpointRequest } from "./CreditNoteEndpointRequest"; +export { ApplyCreditNoteRequest } from "./ApplyCreditNoteRequest"; +export { CreditNoteBulkRequest } from "./CreditNoteBulkRequest"; +export { PatchedCreditNoteEndpointRequest } from "./PatchedCreditNoteEndpointRequest"; diff --git a/src/serialization/resources/accounting/resources/creditNotes/types/CreditNotesBatchObjectsListRequestExpandItem.ts b/src/serialization/resources/accounting/resources/creditNotes/types/CreditNotesBatchObjectsListRequestExpandItem.ts new file mode 100644 index 000000000..b70b559c9 --- /dev/null +++ b/src/serialization/resources/accounting/resources/creditNotes/types/CreditNotesBatchObjectsListRequestExpandItem.ts @@ -0,0 +1,29 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const CreditNotesBatchObjectsListRequestExpandItem: core.serialization.Schema< + serializers.accounting.CreditNotesBatchObjectsListRequestExpandItem.Raw, + Merge.accounting.CreditNotesBatchObjectsListRequestExpandItem +> = core.serialization.enum_([ + "accounting_period", + "applied_payments", + "company", + "contact", + "line_items", + "payments", + "tracking_categories", +]); + +export declare namespace CreditNotesBatchObjectsListRequestExpandItem { + export type Raw = + | "accounting_period" + | "applied_payments" + | "company" + | "contact" + | "line_items" + | "payments" + | "tracking_categories"; +} diff --git a/src/serialization/resources/accounting/resources/creditNotes/types/CreditNotesBatchObjectsListRequestRemoteFields.ts b/src/serialization/resources/accounting/resources/creditNotes/types/CreditNotesBatchObjectsListRequestRemoteFields.ts new file mode 100644 index 000000000..2455f7047 --- /dev/null +++ b/src/serialization/resources/accounting/resources/creditNotes/types/CreditNotesBatchObjectsListRequestRemoteFields.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const CreditNotesBatchObjectsListRequestRemoteFields: core.serialization.Schema< + serializers.accounting.CreditNotesBatchObjectsListRequestRemoteFields.Raw, + Merge.accounting.CreditNotesBatchObjectsListRequestRemoteFields +> = core.serialization.enum_(["status", "status,type", "type"]); + +export declare namespace CreditNotesBatchObjectsListRequestRemoteFields { + export type Raw = "status" | "status,type" | "type"; +} diff --git a/src/serialization/resources/accounting/resources/creditNotes/types/CreditNotesBatchObjectsListRequestShowEnumOrigins.ts b/src/serialization/resources/accounting/resources/creditNotes/types/CreditNotesBatchObjectsListRequestShowEnumOrigins.ts new file mode 100644 index 000000000..206beabc0 --- /dev/null +++ b/src/serialization/resources/accounting/resources/creditNotes/types/CreditNotesBatchObjectsListRequestShowEnumOrigins.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const CreditNotesBatchObjectsListRequestShowEnumOrigins: core.serialization.Schema< + serializers.accounting.CreditNotesBatchObjectsListRequestShowEnumOrigins.Raw, + Merge.accounting.CreditNotesBatchObjectsListRequestShowEnumOrigins +> = core.serialization.enum_(["status", "status,type", "type"]); + +export declare namespace CreditNotesBatchObjectsListRequestShowEnumOrigins { + export type Raw = "status" | "status,type" | "type"; +} diff --git a/src/serialization/resources/accounting/resources/creditNotes/types/CreditNotesListRequestExpand.ts b/src/serialization/resources/accounting/resources/creditNotes/types/CreditNotesListRequestExpand.ts deleted file mode 100644 index 5b8302ddd..000000000 --- a/src/serialization/resources/accounting/resources/creditNotes/types/CreditNotesListRequestExpand.ts +++ /dev/null @@ -1,269 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const CreditNotesListRequestExpand: core.serialization.Schema< - serializers.accounting.CreditNotesListRequestExpand.Raw, - Merge.accounting.CreditNotesListRequestExpand -> = core.serialization.enum_([ - "accounting_period", - "applied_payments", - "applied_payments,accounting_period", - "applied_payments,company", - "applied_payments,company,accounting_period", - "applied_payments,contact", - "applied_payments,contact,accounting_period", - "applied_payments,contact,company", - "applied_payments,contact,company,accounting_period", - "applied_payments,line_items", - "applied_payments,line_items,accounting_period", - "applied_payments,line_items,company", - "applied_payments,line_items,company,accounting_period", - "applied_payments,line_items,contact", - "applied_payments,line_items,contact,accounting_period", - "applied_payments,line_items,contact,company", - "applied_payments,line_items,contact,company,accounting_period", - "applied_payments,line_items,tracking_categories", - "applied_payments,line_items,tracking_categories,accounting_period", - "applied_payments,line_items,tracking_categories,company", - "applied_payments,line_items,tracking_categories,company,accounting_period", - "applied_payments,line_items,tracking_categories,contact", - "applied_payments,line_items,tracking_categories,contact,accounting_period", - "applied_payments,line_items,tracking_categories,contact,company", - "applied_payments,line_items,tracking_categories,contact,company,accounting_period", - "applied_payments,tracking_categories", - "applied_payments,tracking_categories,accounting_period", - "applied_payments,tracking_categories,company", - "applied_payments,tracking_categories,company,accounting_period", - "applied_payments,tracking_categories,contact", - "applied_payments,tracking_categories,contact,accounting_period", - "applied_payments,tracking_categories,contact,company", - "applied_payments,tracking_categories,contact,company,accounting_period", - "company", - "company,accounting_period", - "contact", - "contact,accounting_period", - "contact,company", - "contact,company,accounting_period", - "line_items", - "line_items,accounting_period", - "line_items,company", - "line_items,company,accounting_period", - "line_items,contact", - "line_items,contact,accounting_period", - "line_items,contact,company", - "line_items,contact,company,accounting_period", - "line_items,tracking_categories", - "line_items,tracking_categories,accounting_period", - "line_items,tracking_categories,company", - "line_items,tracking_categories,company,accounting_period", - "line_items,tracking_categories,contact", - "line_items,tracking_categories,contact,accounting_period", - "line_items,tracking_categories,contact,company", - "line_items,tracking_categories,contact,company,accounting_period", - "payments", - "payments,accounting_period", - "payments,applied_payments", - "payments,applied_payments,accounting_period", - "payments,applied_payments,company", - "payments,applied_payments,company,accounting_period", - "payments,applied_payments,contact", - "payments,applied_payments,contact,accounting_period", - "payments,applied_payments,contact,company", - "payments,applied_payments,contact,company,accounting_period", - "payments,applied_payments,line_items", - "payments,applied_payments,line_items,accounting_period", - "payments,applied_payments,line_items,company", - "payments,applied_payments,line_items,company,accounting_period", - "payments,applied_payments,line_items,contact", - "payments,applied_payments,line_items,contact,accounting_period", - "payments,applied_payments,line_items,contact,company", - "payments,applied_payments,line_items,contact,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories", - "payments,applied_payments,line_items,tracking_categories,accounting_period", - "payments,applied_payments,line_items,tracking_categories,company", - "payments,applied_payments,line_items,tracking_categories,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,contact", - "payments,applied_payments,line_items,tracking_categories,contact,accounting_period", - "payments,applied_payments,line_items,tracking_categories,contact,company", - "payments,applied_payments,line_items,tracking_categories,contact,company,accounting_period", - "payments,applied_payments,tracking_categories", - "payments,applied_payments,tracking_categories,accounting_period", - "payments,applied_payments,tracking_categories,company", - "payments,applied_payments,tracking_categories,company,accounting_period", - "payments,applied_payments,tracking_categories,contact", - "payments,applied_payments,tracking_categories,contact,accounting_period", - "payments,applied_payments,tracking_categories,contact,company", - "payments,applied_payments,tracking_categories,contact,company,accounting_period", - "payments,company", - "payments,company,accounting_period", - "payments,contact", - "payments,contact,accounting_period", - "payments,contact,company", - "payments,contact,company,accounting_period", - "payments,line_items", - "payments,line_items,accounting_period", - "payments,line_items,company", - "payments,line_items,company,accounting_period", - "payments,line_items,contact", - "payments,line_items,contact,accounting_period", - "payments,line_items,contact,company", - "payments,line_items,contact,company,accounting_period", - "payments,line_items,tracking_categories", - "payments,line_items,tracking_categories,accounting_period", - "payments,line_items,tracking_categories,company", - "payments,line_items,tracking_categories,company,accounting_period", - "payments,line_items,tracking_categories,contact", - "payments,line_items,tracking_categories,contact,accounting_period", - "payments,line_items,tracking_categories,contact,company", - "payments,line_items,tracking_categories,contact,company,accounting_period", - "payments,tracking_categories", - "payments,tracking_categories,accounting_period", - "payments,tracking_categories,company", - "payments,tracking_categories,company,accounting_period", - "payments,tracking_categories,contact", - "payments,tracking_categories,contact,accounting_period", - "payments,tracking_categories,contact,company", - "payments,tracking_categories,contact,company,accounting_period", - "tracking_categories", - "tracking_categories,accounting_period", - "tracking_categories,company", - "tracking_categories,company,accounting_period", - "tracking_categories,contact", - "tracking_categories,contact,accounting_period", - "tracking_categories,contact,company", - "tracking_categories,contact,company,accounting_period", -]); - -export declare namespace CreditNotesListRequestExpand { - export type Raw = - | "accounting_period" - | "applied_payments" - | "applied_payments,accounting_period" - | "applied_payments,company" - | "applied_payments,company,accounting_period" - | "applied_payments,contact" - | "applied_payments,contact,accounting_period" - | "applied_payments,contact,company" - | "applied_payments,contact,company,accounting_period" - | "applied_payments,line_items" - | "applied_payments,line_items,accounting_period" - | "applied_payments,line_items,company" - | "applied_payments,line_items,company,accounting_period" - | "applied_payments,line_items,contact" - | "applied_payments,line_items,contact,accounting_period" - | "applied_payments,line_items,contact,company" - | "applied_payments,line_items,contact,company,accounting_period" - | "applied_payments,line_items,tracking_categories" - | "applied_payments,line_items,tracking_categories,accounting_period" - | "applied_payments,line_items,tracking_categories,company" - | "applied_payments,line_items,tracking_categories,company,accounting_period" - | "applied_payments,line_items,tracking_categories,contact" - | "applied_payments,line_items,tracking_categories,contact,accounting_period" - | "applied_payments,line_items,tracking_categories,contact,company" - | "applied_payments,line_items,tracking_categories,contact,company,accounting_period" - | "applied_payments,tracking_categories" - | "applied_payments,tracking_categories,accounting_period" - | "applied_payments,tracking_categories,company" - | "applied_payments,tracking_categories,company,accounting_period" - | "applied_payments,tracking_categories,contact" - | "applied_payments,tracking_categories,contact,accounting_period" - | "applied_payments,tracking_categories,contact,company" - | "applied_payments,tracking_categories,contact,company,accounting_period" - | "company" - | "company,accounting_period" - | "contact" - | "contact,accounting_period" - | "contact,company" - | "contact,company,accounting_period" - | "line_items" - | "line_items,accounting_period" - | "line_items,company" - | "line_items,company,accounting_period" - | "line_items,contact" - | "line_items,contact,accounting_period" - | "line_items,contact,company" - | "line_items,contact,company,accounting_period" - | "line_items,tracking_categories" - | "line_items,tracking_categories,accounting_period" - | "line_items,tracking_categories,company" - | "line_items,tracking_categories,company,accounting_period" - | "line_items,tracking_categories,contact" - | "line_items,tracking_categories,contact,accounting_period" - | "line_items,tracking_categories,contact,company" - | "line_items,tracking_categories,contact,company,accounting_period" - | "payments" - | "payments,accounting_period" - | "payments,applied_payments" - | "payments,applied_payments,accounting_period" - | "payments,applied_payments,company" - | "payments,applied_payments,company,accounting_period" - | "payments,applied_payments,contact" - | "payments,applied_payments,contact,accounting_period" - | "payments,applied_payments,contact,company" - | "payments,applied_payments,contact,company,accounting_period" - | "payments,applied_payments,line_items" - | "payments,applied_payments,line_items,accounting_period" - | "payments,applied_payments,line_items,company" - | "payments,applied_payments,line_items,company,accounting_period" - | "payments,applied_payments,line_items,contact" - | "payments,applied_payments,line_items,contact,accounting_period" - | "payments,applied_payments,line_items,contact,company" - | "payments,applied_payments,line_items,contact,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories" - | "payments,applied_payments,line_items,tracking_categories,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,company" - | "payments,applied_payments,line_items,tracking_categories,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,contact" - | "payments,applied_payments,line_items,tracking_categories,contact,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,contact,company" - | "payments,applied_payments,line_items,tracking_categories,contact,company,accounting_period" - | "payments,applied_payments,tracking_categories" - | "payments,applied_payments,tracking_categories,accounting_period" - | "payments,applied_payments,tracking_categories,company" - | "payments,applied_payments,tracking_categories,company,accounting_period" - | "payments,applied_payments,tracking_categories,contact" - | "payments,applied_payments,tracking_categories,contact,accounting_period" - | "payments,applied_payments,tracking_categories,contact,company" - | "payments,applied_payments,tracking_categories,contact,company,accounting_period" - | "payments,company" - | "payments,company,accounting_period" - | "payments,contact" - | "payments,contact,accounting_period" - | "payments,contact,company" - | "payments,contact,company,accounting_period" - | "payments,line_items" - | "payments,line_items,accounting_period" - | "payments,line_items,company" - | "payments,line_items,company,accounting_period" - | "payments,line_items,contact" - | "payments,line_items,contact,accounting_period" - | "payments,line_items,contact,company" - | "payments,line_items,contact,company,accounting_period" - | "payments,line_items,tracking_categories" - | "payments,line_items,tracking_categories,accounting_period" - | "payments,line_items,tracking_categories,company" - | "payments,line_items,tracking_categories,company,accounting_period" - | "payments,line_items,tracking_categories,contact" - | "payments,line_items,tracking_categories,contact,accounting_period" - | "payments,line_items,tracking_categories,contact,company" - | "payments,line_items,tracking_categories,contact,company,accounting_period" - | "payments,tracking_categories" - | "payments,tracking_categories,accounting_period" - | "payments,tracking_categories,company" - | "payments,tracking_categories,company,accounting_period" - | "payments,tracking_categories,contact" - | "payments,tracking_categories,contact,accounting_period" - | "payments,tracking_categories,contact,company" - | "payments,tracking_categories,contact,company,accounting_period" - | "tracking_categories" - | "tracking_categories,accounting_period" - | "tracking_categories,company" - | "tracking_categories,company,accounting_period" - | "tracking_categories,contact" - | "tracking_categories,contact,accounting_period" - | "tracking_categories,contact,company" - | "tracking_categories,contact,company,accounting_period"; -} diff --git a/src/serialization/resources/accounting/resources/creditNotes/types/CreditNotesListRequestExpandItem.ts b/src/serialization/resources/accounting/resources/creditNotes/types/CreditNotesListRequestExpandItem.ts new file mode 100644 index 000000000..76fffd4fa --- /dev/null +++ b/src/serialization/resources/accounting/resources/creditNotes/types/CreditNotesListRequestExpandItem.ts @@ -0,0 +1,29 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const CreditNotesListRequestExpandItem: core.serialization.Schema< + serializers.accounting.CreditNotesListRequestExpandItem.Raw, + Merge.accounting.CreditNotesListRequestExpandItem +> = core.serialization.enum_([ + "accounting_period", + "applied_payments", + "company", + "contact", + "line_items", + "payments", + "tracking_categories", +]); + +export declare namespace CreditNotesListRequestExpandItem { + export type Raw = + | "accounting_period" + | "applied_payments" + | "company" + | "contact" + | "line_items" + | "payments" + | "tracking_categories"; +} diff --git a/src/serialization/resources/accounting/resources/creditNotes/types/CreditNotesRetrieveRequestExpand.ts b/src/serialization/resources/accounting/resources/creditNotes/types/CreditNotesRetrieveRequestExpand.ts deleted file mode 100644 index 3b8343821..000000000 --- a/src/serialization/resources/accounting/resources/creditNotes/types/CreditNotesRetrieveRequestExpand.ts +++ /dev/null @@ -1,269 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const CreditNotesRetrieveRequestExpand: core.serialization.Schema< - serializers.accounting.CreditNotesRetrieveRequestExpand.Raw, - Merge.accounting.CreditNotesRetrieveRequestExpand -> = core.serialization.enum_([ - "accounting_period", - "applied_payments", - "applied_payments,accounting_period", - "applied_payments,company", - "applied_payments,company,accounting_period", - "applied_payments,contact", - "applied_payments,contact,accounting_period", - "applied_payments,contact,company", - "applied_payments,contact,company,accounting_period", - "applied_payments,line_items", - "applied_payments,line_items,accounting_period", - "applied_payments,line_items,company", - "applied_payments,line_items,company,accounting_period", - "applied_payments,line_items,contact", - "applied_payments,line_items,contact,accounting_period", - "applied_payments,line_items,contact,company", - "applied_payments,line_items,contact,company,accounting_period", - "applied_payments,line_items,tracking_categories", - "applied_payments,line_items,tracking_categories,accounting_period", - "applied_payments,line_items,tracking_categories,company", - "applied_payments,line_items,tracking_categories,company,accounting_period", - "applied_payments,line_items,tracking_categories,contact", - "applied_payments,line_items,tracking_categories,contact,accounting_period", - "applied_payments,line_items,tracking_categories,contact,company", - "applied_payments,line_items,tracking_categories,contact,company,accounting_period", - "applied_payments,tracking_categories", - "applied_payments,tracking_categories,accounting_period", - "applied_payments,tracking_categories,company", - "applied_payments,tracking_categories,company,accounting_period", - "applied_payments,tracking_categories,contact", - "applied_payments,tracking_categories,contact,accounting_period", - "applied_payments,tracking_categories,contact,company", - "applied_payments,tracking_categories,contact,company,accounting_period", - "company", - "company,accounting_period", - "contact", - "contact,accounting_period", - "contact,company", - "contact,company,accounting_period", - "line_items", - "line_items,accounting_period", - "line_items,company", - "line_items,company,accounting_period", - "line_items,contact", - "line_items,contact,accounting_period", - "line_items,contact,company", - "line_items,contact,company,accounting_period", - "line_items,tracking_categories", - "line_items,tracking_categories,accounting_period", - "line_items,tracking_categories,company", - "line_items,tracking_categories,company,accounting_period", - "line_items,tracking_categories,contact", - "line_items,tracking_categories,contact,accounting_period", - "line_items,tracking_categories,contact,company", - "line_items,tracking_categories,contact,company,accounting_period", - "payments", - "payments,accounting_period", - "payments,applied_payments", - "payments,applied_payments,accounting_period", - "payments,applied_payments,company", - "payments,applied_payments,company,accounting_period", - "payments,applied_payments,contact", - "payments,applied_payments,contact,accounting_period", - "payments,applied_payments,contact,company", - "payments,applied_payments,contact,company,accounting_period", - "payments,applied_payments,line_items", - "payments,applied_payments,line_items,accounting_period", - "payments,applied_payments,line_items,company", - "payments,applied_payments,line_items,company,accounting_period", - "payments,applied_payments,line_items,contact", - "payments,applied_payments,line_items,contact,accounting_period", - "payments,applied_payments,line_items,contact,company", - "payments,applied_payments,line_items,contact,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories", - "payments,applied_payments,line_items,tracking_categories,accounting_period", - "payments,applied_payments,line_items,tracking_categories,company", - "payments,applied_payments,line_items,tracking_categories,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,contact", - "payments,applied_payments,line_items,tracking_categories,contact,accounting_period", - "payments,applied_payments,line_items,tracking_categories,contact,company", - "payments,applied_payments,line_items,tracking_categories,contact,company,accounting_period", - "payments,applied_payments,tracking_categories", - "payments,applied_payments,tracking_categories,accounting_period", - "payments,applied_payments,tracking_categories,company", - "payments,applied_payments,tracking_categories,company,accounting_period", - "payments,applied_payments,tracking_categories,contact", - "payments,applied_payments,tracking_categories,contact,accounting_period", - "payments,applied_payments,tracking_categories,contact,company", - "payments,applied_payments,tracking_categories,contact,company,accounting_period", - "payments,company", - "payments,company,accounting_period", - "payments,contact", - "payments,contact,accounting_period", - "payments,contact,company", - "payments,contact,company,accounting_period", - "payments,line_items", - "payments,line_items,accounting_period", - "payments,line_items,company", - "payments,line_items,company,accounting_period", - "payments,line_items,contact", - "payments,line_items,contact,accounting_period", - "payments,line_items,contact,company", - "payments,line_items,contact,company,accounting_period", - "payments,line_items,tracking_categories", - "payments,line_items,tracking_categories,accounting_period", - "payments,line_items,tracking_categories,company", - "payments,line_items,tracking_categories,company,accounting_period", - "payments,line_items,tracking_categories,contact", - "payments,line_items,tracking_categories,contact,accounting_period", - "payments,line_items,tracking_categories,contact,company", - "payments,line_items,tracking_categories,contact,company,accounting_period", - "payments,tracking_categories", - "payments,tracking_categories,accounting_period", - "payments,tracking_categories,company", - "payments,tracking_categories,company,accounting_period", - "payments,tracking_categories,contact", - "payments,tracking_categories,contact,accounting_period", - "payments,tracking_categories,contact,company", - "payments,tracking_categories,contact,company,accounting_period", - "tracking_categories", - "tracking_categories,accounting_period", - "tracking_categories,company", - "tracking_categories,company,accounting_period", - "tracking_categories,contact", - "tracking_categories,contact,accounting_period", - "tracking_categories,contact,company", - "tracking_categories,contact,company,accounting_period", -]); - -export declare namespace CreditNotesRetrieveRequestExpand { - export type Raw = - | "accounting_period" - | "applied_payments" - | "applied_payments,accounting_period" - | "applied_payments,company" - | "applied_payments,company,accounting_period" - | "applied_payments,contact" - | "applied_payments,contact,accounting_period" - | "applied_payments,contact,company" - | "applied_payments,contact,company,accounting_period" - | "applied_payments,line_items" - | "applied_payments,line_items,accounting_period" - | "applied_payments,line_items,company" - | "applied_payments,line_items,company,accounting_period" - | "applied_payments,line_items,contact" - | "applied_payments,line_items,contact,accounting_period" - | "applied_payments,line_items,contact,company" - | "applied_payments,line_items,contact,company,accounting_period" - | "applied_payments,line_items,tracking_categories" - | "applied_payments,line_items,tracking_categories,accounting_period" - | "applied_payments,line_items,tracking_categories,company" - | "applied_payments,line_items,tracking_categories,company,accounting_period" - | "applied_payments,line_items,tracking_categories,contact" - | "applied_payments,line_items,tracking_categories,contact,accounting_period" - | "applied_payments,line_items,tracking_categories,contact,company" - | "applied_payments,line_items,tracking_categories,contact,company,accounting_period" - | "applied_payments,tracking_categories" - | "applied_payments,tracking_categories,accounting_period" - | "applied_payments,tracking_categories,company" - | "applied_payments,tracking_categories,company,accounting_period" - | "applied_payments,tracking_categories,contact" - | "applied_payments,tracking_categories,contact,accounting_period" - | "applied_payments,tracking_categories,contact,company" - | "applied_payments,tracking_categories,contact,company,accounting_period" - | "company" - | "company,accounting_period" - | "contact" - | "contact,accounting_period" - | "contact,company" - | "contact,company,accounting_period" - | "line_items" - | "line_items,accounting_period" - | "line_items,company" - | "line_items,company,accounting_period" - | "line_items,contact" - | "line_items,contact,accounting_period" - | "line_items,contact,company" - | "line_items,contact,company,accounting_period" - | "line_items,tracking_categories" - | "line_items,tracking_categories,accounting_period" - | "line_items,tracking_categories,company" - | "line_items,tracking_categories,company,accounting_period" - | "line_items,tracking_categories,contact" - | "line_items,tracking_categories,contact,accounting_period" - | "line_items,tracking_categories,contact,company" - | "line_items,tracking_categories,contact,company,accounting_period" - | "payments" - | "payments,accounting_period" - | "payments,applied_payments" - | "payments,applied_payments,accounting_period" - | "payments,applied_payments,company" - | "payments,applied_payments,company,accounting_period" - | "payments,applied_payments,contact" - | "payments,applied_payments,contact,accounting_period" - | "payments,applied_payments,contact,company" - | "payments,applied_payments,contact,company,accounting_period" - | "payments,applied_payments,line_items" - | "payments,applied_payments,line_items,accounting_period" - | "payments,applied_payments,line_items,company" - | "payments,applied_payments,line_items,company,accounting_period" - | "payments,applied_payments,line_items,contact" - | "payments,applied_payments,line_items,contact,accounting_period" - | "payments,applied_payments,line_items,contact,company" - | "payments,applied_payments,line_items,contact,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories" - | "payments,applied_payments,line_items,tracking_categories,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,company" - | "payments,applied_payments,line_items,tracking_categories,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,contact" - | "payments,applied_payments,line_items,tracking_categories,contact,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,contact,company" - | "payments,applied_payments,line_items,tracking_categories,contact,company,accounting_period" - | "payments,applied_payments,tracking_categories" - | "payments,applied_payments,tracking_categories,accounting_period" - | "payments,applied_payments,tracking_categories,company" - | "payments,applied_payments,tracking_categories,company,accounting_period" - | "payments,applied_payments,tracking_categories,contact" - | "payments,applied_payments,tracking_categories,contact,accounting_period" - | "payments,applied_payments,tracking_categories,contact,company" - | "payments,applied_payments,tracking_categories,contact,company,accounting_period" - | "payments,company" - | "payments,company,accounting_period" - | "payments,contact" - | "payments,contact,accounting_period" - | "payments,contact,company" - | "payments,contact,company,accounting_period" - | "payments,line_items" - | "payments,line_items,accounting_period" - | "payments,line_items,company" - | "payments,line_items,company,accounting_period" - | "payments,line_items,contact" - | "payments,line_items,contact,accounting_period" - | "payments,line_items,contact,company" - | "payments,line_items,contact,company,accounting_period" - | "payments,line_items,tracking_categories" - | "payments,line_items,tracking_categories,accounting_period" - | "payments,line_items,tracking_categories,company" - | "payments,line_items,tracking_categories,company,accounting_period" - | "payments,line_items,tracking_categories,contact" - | "payments,line_items,tracking_categories,contact,accounting_period" - | "payments,line_items,tracking_categories,contact,company" - | "payments,line_items,tracking_categories,contact,company,accounting_period" - | "payments,tracking_categories" - | "payments,tracking_categories,accounting_period" - | "payments,tracking_categories,company" - | "payments,tracking_categories,company,accounting_period" - | "payments,tracking_categories,contact" - | "payments,tracking_categories,contact,accounting_period" - | "payments,tracking_categories,contact,company" - | "payments,tracking_categories,contact,company,accounting_period" - | "tracking_categories" - | "tracking_categories,accounting_period" - | "tracking_categories,company" - | "tracking_categories,company,accounting_period" - | "tracking_categories,contact" - | "tracking_categories,contact,accounting_period" - | "tracking_categories,contact,company" - | "tracking_categories,contact,company,accounting_period"; -} diff --git a/src/serialization/resources/accounting/resources/creditNotes/types/CreditNotesRetrieveRequestExpandItem.ts b/src/serialization/resources/accounting/resources/creditNotes/types/CreditNotesRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..896b6d31f --- /dev/null +++ b/src/serialization/resources/accounting/resources/creditNotes/types/CreditNotesRetrieveRequestExpandItem.ts @@ -0,0 +1,29 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const CreditNotesRetrieveRequestExpandItem: core.serialization.Schema< + serializers.accounting.CreditNotesRetrieveRequestExpandItem.Raw, + Merge.accounting.CreditNotesRetrieveRequestExpandItem +> = core.serialization.enum_([ + "accounting_period", + "applied_payments", + "company", + "contact", + "line_items", + "payments", + "tracking_categories", +]); + +export declare namespace CreditNotesRetrieveRequestExpandItem { + export type Raw = + | "accounting_period" + | "applied_payments" + | "company" + | "contact" + | "line_items" + | "payments" + | "tracking_categories"; +} diff --git a/src/serialization/resources/accounting/resources/creditNotes/types/index.ts b/src/serialization/resources/accounting/resources/creditNotes/types/index.ts index 87be1efa5..554d9228a 100644 --- a/src/serialization/resources/accounting/resources/creditNotes/types/index.ts +++ b/src/serialization/resources/accounting/resources/creditNotes/types/index.ts @@ -1,6 +1,9 @@ -export * from "./CreditNotesListRequestExpand"; +export * from "./CreditNotesBatchObjectsListRequestExpandItem"; +export * from "./CreditNotesBatchObjectsListRequestRemoteFields"; +export * from "./CreditNotesBatchObjectsListRequestShowEnumOrigins"; +export * from "./CreditNotesListRequestExpandItem"; export * from "./CreditNotesListRequestRemoteFields"; export * from "./CreditNotesListRequestShowEnumOrigins"; -export * from "./CreditNotesRetrieveRequestExpand"; +export * from "./CreditNotesRetrieveRequestExpandItem"; export * from "./CreditNotesRetrieveRequestRemoteFields"; export * from "./CreditNotesRetrieveRequestShowEnumOrigins"; diff --git a/src/serialization/resources/accounting/resources/expenseReports/client/requests/ExpenseReportBulkRequest.ts b/src/serialization/resources/accounting/resources/expenseReports/client/requests/ExpenseReportBulkRequest.ts new file mode 100644 index 000000000..7adb80ca6 --- /dev/null +++ b/src/serialization/resources/accounting/resources/expenseReports/client/requests/ExpenseReportBulkRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../../api/index"; +import * as core from "../../../../../../../core"; +import type * as serializers from "../../../../../../index"; +import { ExpenseReportBatchItemRequest } from "../../../../types/ExpenseReportBatchItemRequest"; + +export const ExpenseReportBulkRequest: core.serialization.Schema< + serializers.accounting.ExpenseReportBulkRequest.Raw, + Omit +> = core.serialization.object({ + batchItems: core.serialization.property("batch_items", core.serialization.list(ExpenseReportBatchItemRequest)), +}); + +export declare namespace ExpenseReportBulkRequest { + export interface Raw { + batch_items: ExpenseReportBatchItemRequest.Raw[]; + } +} diff --git a/src/serialization/resources/accounting/resources/expenseReports/client/requests/ExpenseReportEndpointRequest.ts b/src/serialization/resources/accounting/resources/expenseReports/client/requests/ExpenseReportEndpointRequest.ts deleted file mode 100644 index faff0160f..000000000 --- a/src/serialization/resources/accounting/resources/expenseReports/client/requests/ExpenseReportEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { ExpenseReportRequest } from "../../../../types/ExpenseReportRequest"; - -export const ExpenseReportEndpointRequest: core.serialization.Schema< - serializers.accounting.ExpenseReportEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: ExpenseReportRequest, -}); - -export declare namespace ExpenseReportEndpointRequest { - export interface Raw { - model: ExpenseReportRequest.Raw; - } -} diff --git a/src/serialization/resources/accounting/resources/expenseReports/client/requests/index.ts b/src/serialization/resources/accounting/resources/expenseReports/client/requests/index.ts index 86f81d85a..bc0f30d14 100644 --- a/src/serialization/resources/accounting/resources/expenseReports/client/requests/index.ts +++ b/src/serialization/resources/accounting/resources/expenseReports/client/requests/index.ts @@ -1 +1 @@ -export { ExpenseReportEndpointRequest } from "./ExpenseReportEndpointRequest"; +export { ExpenseReportBulkRequest } from "./ExpenseReportBulkRequest"; diff --git a/src/serialization/resources/accounting/resources/expenseReports/types/ExpenseReportsBatchObjectsListRequestExpandItem.ts b/src/serialization/resources/accounting/resources/expenseReports/types/ExpenseReportsBatchObjectsListRequestExpandItem.ts new file mode 100644 index 000000000..da097ac58 --- /dev/null +++ b/src/serialization/resources/accounting/resources/expenseReports/types/ExpenseReportsBatchObjectsListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const ExpenseReportsBatchObjectsListRequestExpandItem: core.serialization.Schema< + serializers.accounting.ExpenseReportsBatchObjectsListRequestExpandItem.Raw, + Merge.accounting.ExpenseReportsBatchObjectsListRequestExpandItem +> = core.serialization.enum_(["accounting_period", "company", "employee", "lines"]); + +export declare namespace ExpenseReportsBatchObjectsListRequestExpandItem { + export type Raw = "accounting_period" | "company" | "employee" | "lines"; +} diff --git a/src/serialization/resources/accounting/resources/expenseReports/types/ExpenseReportsLinesListRequestExpand.ts b/src/serialization/resources/accounting/resources/expenseReports/types/ExpenseReportsLinesListRequestExpand.ts deleted file mode 100644 index 4b3bb7c65..000000000 --- a/src/serialization/resources/accounting/resources/expenseReports/types/ExpenseReportsLinesListRequestExpand.ts +++ /dev/null @@ -1,141 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const ExpenseReportsLinesListRequestExpand: core.serialization.Schema< - serializers.accounting.ExpenseReportsLinesListRequestExpand.Raw, - Merge.accounting.ExpenseReportsLinesListRequestExpand -> = core.serialization.enum_([ - "account", - "account,company", - "account,company,contact", - "account,company,contact,tax_rate", - "account,company,tax_rate", - "account,contact", - "account,contact,tax_rate", - "account,employee", - "account,employee,company", - "account,employee,company,contact", - "account,employee,company,contact,tax_rate", - "account,employee,company,tax_rate", - "account,employee,contact", - "account,employee,contact,tax_rate", - "account,employee,project", - "account,employee,project,company", - "account,employee,project,company,contact", - "account,employee,project,company,contact,tax_rate", - "account,employee,project,company,tax_rate", - "account,employee,project,contact", - "account,employee,project,contact,tax_rate", - "account,employee,project,tax_rate", - "account,employee,tax_rate", - "account,project", - "account,project,company", - "account,project,company,contact", - "account,project,company,contact,tax_rate", - "account,project,company,tax_rate", - "account,project,contact", - "account,project,contact,tax_rate", - "account,project,tax_rate", - "account,tax_rate", - "company", - "company,contact", - "company,contact,tax_rate", - "company,tax_rate", - "contact", - "contact,tax_rate", - "employee", - "employee,company", - "employee,company,contact", - "employee,company,contact,tax_rate", - "employee,company,tax_rate", - "employee,contact", - "employee,contact,tax_rate", - "employee,project", - "employee,project,company", - "employee,project,company,contact", - "employee,project,company,contact,tax_rate", - "employee,project,company,tax_rate", - "employee,project,contact", - "employee,project,contact,tax_rate", - "employee,project,tax_rate", - "employee,tax_rate", - "project", - "project,company", - "project,company,contact", - "project,company,contact,tax_rate", - "project,company,tax_rate", - "project,contact", - "project,contact,tax_rate", - "project,tax_rate", - "tax_rate", -]); - -export declare namespace ExpenseReportsLinesListRequestExpand { - export type Raw = - | "account" - | "account,company" - | "account,company,contact" - | "account,company,contact,tax_rate" - | "account,company,tax_rate" - | "account,contact" - | "account,contact,tax_rate" - | "account,employee" - | "account,employee,company" - | "account,employee,company,contact" - | "account,employee,company,contact,tax_rate" - | "account,employee,company,tax_rate" - | "account,employee,contact" - | "account,employee,contact,tax_rate" - | "account,employee,project" - | "account,employee,project,company" - | "account,employee,project,company,contact" - | "account,employee,project,company,contact,tax_rate" - | "account,employee,project,company,tax_rate" - | "account,employee,project,contact" - | "account,employee,project,contact,tax_rate" - | "account,employee,project,tax_rate" - | "account,employee,tax_rate" - | "account,project" - | "account,project,company" - | "account,project,company,contact" - | "account,project,company,contact,tax_rate" - | "account,project,company,tax_rate" - | "account,project,contact" - | "account,project,contact,tax_rate" - | "account,project,tax_rate" - | "account,tax_rate" - | "company" - | "company,contact" - | "company,contact,tax_rate" - | "company,tax_rate" - | "contact" - | "contact,tax_rate" - | "employee" - | "employee,company" - | "employee,company,contact" - | "employee,company,contact,tax_rate" - | "employee,company,tax_rate" - | "employee,contact" - | "employee,contact,tax_rate" - | "employee,project" - | "employee,project,company" - | "employee,project,company,contact" - | "employee,project,company,contact,tax_rate" - | "employee,project,company,tax_rate" - | "employee,project,contact" - | "employee,project,contact,tax_rate" - | "employee,project,tax_rate" - | "employee,tax_rate" - | "project" - | "project,company" - | "project,company,contact" - | "project,company,contact,tax_rate" - | "project,company,tax_rate" - | "project,contact" - | "project,contact,tax_rate" - | "project,tax_rate" - | "tax_rate"; -} diff --git a/src/serialization/resources/accounting/resources/expenseReports/types/ExpenseReportsLinesListRequestExpandItem.ts b/src/serialization/resources/accounting/resources/expenseReports/types/ExpenseReportsLinesListRequestExpandItem.ts new file mode 100644 index 000000000..33a321797 --- /dev/null +++ b/src/serialization/resources/accounting/resources/expenseReports/types/ExpenseReportsLinesListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const ExpenseReportsLinesListRequestExpandItem: core.serialization.Schema< + serializers.accounting.ExpenseReportsLinesListRequestExpandItem.Raw, + Merge.accounting.ExpenseReportsLinesListRequestExpandItem +> = core.serialization.enum_(["account", "company", "contact", "employee", "project", "tax_rate"]); + +export declare namespace ExpenseReportsLinesListRequestExpandItem { + export type Raw = "account" | "company" | "contact" | "employee" | "project" | "tax_rate"; +} diff --git a/src/serialization/resources/accounting/resources/expenseReports/types/ExpenseReportsListRequestExpand.ts b/src/serialization/resources/accounting/resources/expenseReports/types/ExpenseReportsListRequestExpand.ts deleted file mode 100644 index 9bdbf8250..000000000 --- a/src/serialization/resources/accounting/resources/expenseReports/types/ExpenseReportsListRequestExpand.ts +++ /dev/null @@ -1,45 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const ExpenseReportsListRequestExpand: core.serialization.Schema< - serializers.accounting.ExpenseReportsListRequestExpand.Raw, - Merge.accounting.ExpenseReportsListRequestExpand -> = core.serialization.enum_([ - "accounting_period", - "accounting_period,company", - "company", - "employee", - "employee,accounting_period", - "employee,accounting_period,company", - "employee,company", - "lines", - "lines,accounting_period", - "lines,accounting_period,company", - "lines,company", - "lines,employee", - "lines,employee,accounting_period", - "lines,employee,accounting_period,company", - "lines,employee,company", -]); - -export declare namespace ExpenseReportsListRequestExpand { - export type Raw = - | "accounting_period" - | "accounting_period,company" - | "company" - | "employee" - | "employee,accounting_period" - | "employee,accounting_period,company" - | "employee,company" - | "lines" - | "lines,accounting_period" - | "lines,accounting_period,company" - | "lines,company" - | "lines,employee" - | "lines,employee,accounting_period" - | "lines,employee,accounting_period,company" - | "lines,employee,company"; -} diff --git a/src/serialization/resources/accounting/resources/expenseReports/types/ExpenseReportsListRequestExpandItem.ts b/src/serialization/resources/accounting/resources/expenseReports/types/ExpenseReportsListRequestExpandItem.ts new file mode 100644 index 000000000..dbf110c2a --- /dev/null +++ b/src/serialization/resources/accounting/resources/expenseReports/types/ExpenseReportsListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const ExpenseReportsListRequestExpandItem: core.serialization.Schema< + serializers.accounting.ExpenseReportsListRequestExpandItem.Raw, + Merge.accounting.ExpenseReportsListRequestExpandItem +> = core.serialization.enum_(["accounting_period", "company", "employee", "lines"]); + +export declare namespace ExpenseReportsListRequestExpandItem { + export type Raw = "accounting_period" | "company" | "employee" | "lines"; +} diff --git a/src/serialization/resources/accounting/resources/expenseReports/types/ExpenseReportsRetrieveRequestExpand.ts b/src/serialization/resources/accounting/resources/expenseReports/types/ExpenseReportsRetrieveRequestExpand.ts deleted file mode 100644 index b3a77896b..000000000 --- a/src/serialization/resources/accounting/resources/expenseReports/types/ExpenseReportsRetrieveRequestExpand.ts +++ /dev/null @@ -1,45 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const ExpenseReportsRetrieveRequestExpand: core.serialization.Schema< - serializers.accounting.ExpenseReportsRetrieveRequestExpand.Raw, - Merge.accounting.ExpenseReportsRetrieveRequestExpand -> = core.serialization.enum_([ - "accounting_period", - "accounting_period,company", - "company", - "employee", - "employee,accounting_period", - "employee,accounting_period,company", - "employee,company", - "lines", - "lines,accounting_period", - "lines,accounting_period,company", - "lines,company", - "lines,employee", - "lines,employee,accounting_period", - "lines,employee,accounting_period,company", - "lines,employee,company", -]); - -export declare namespace ExpenseReportsRetrieveRequestExpand { - export type Raw = - | "accounting_period" - | "accounting_period,company" - | "company" - | "employee" - | "employee,accounting_period" - | "employee,accounting_period,company" - | "employee,company" - | "lines" - | "lines,accounting_period" - | "lines,accounting_period,company" - | "lines,company" - | "lines,employee" - | "lines,employee,accounting_period" - | "lines,employee,accounting_period,company" - | "lines,employee,company"; -} diff --git a/src/serialization/resources/accounting/resources/expenseReports/types/ExpenseReportsRetrieveRequestExpandItem.ts b/src/serialization/resources/accounting/resources/expenseReports/types/ExpenseReportsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..fcebdb94c --- /dev/null +++ b/src/serialization/resources/accounting/resources/expenseReports/types/ExpenseReportsRetrieveRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const ExpenseReportsRetrieveRequestExpandItem: core.serialization.Schema< + serializers.accounting.ExpenseReportsRetrieveRequestExpandItem.Raw, + Merge.accounting.ExpenseReportsRetrieveRequestExpandItem +> = core.serialization.enum_(["accounting_period", "company", "employee", "lines"]); + +export declare namespace ExpenseReportsRetrieveRequestExpandItem { + export type Raw = "accounting_period" | "company" | "employee" | "lines"; +} diff --git a/src/serialization/resources/accounting/resources/expenseReports/types/index.ts b/src/serialization/resources/accounting/resources/expenseReports/types/index.ts index 9dd83d9ba..879646673 100644 --- a/src/serialization/resources/accounting/resources/expenseReports/types/index.ts +++ b/src/serialization/resources/accounting/resources/expenseReports/types/index.ts @@ -1,3 +1,4 @@ -export * from "./ExpenseReportsLinesListRequestExpand"; -export * from "./ExpenseReportsListRequestExpand"; -export * from "./ExpenseReportsRetrieveRequestExpand"; +export * from "./ExpenseReportsBatchObjectsListRequestExpandItem"; +export * from "./ExpenseReportsLinesListRequestExpandItem"; +export * from "./ExpenseReportsListRequestExpandItem"; +export * from "./ExpenseReportsRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/accounting/resources/expenses/client/requests/ExpenseBulkRequest.ts b/src/serialization/resources/accounting/resources/expenses/client/requests/ExpenseBulkRequest.ts new file mode 100644 index 000000000..717f5f496 --- /dev/null +++ b/src/serialization/resources/accounting/resources/expenses/client/requests/ExpenseBulkRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../../api/index"; +import * as core from "../../../../../../../core"; +import type * as serializers from "../../../../../../index"; +import { ExpenseBatchItemRequest } from "../../../../types/ExpenseBatchItemRequest"; + +export const ExpenseBulkRequest: core.serialization.Schema< + serializers.accounting.ExpenseBulkRequest.Raw, + Omit +> = core.serialization.object({ + batchItems: core.serialization.property("batch_items", core.serialization.list(ExpenseBatchItemRequest)), +}); + +export declare namespace ExpenseBulkRequest { + export interface Raw { + batch_items: ExpenseBatchItemRequest.Raw[]; + } +} diff --git a/src/serialization/resources/accounting/resources/expenses/client/requests/ExpenseEndpointRequest.ts b/src/serialization/resources/accounting/resources/expenses/client/requests/ExpenseEndpointRequest.ts deleted file mode 100644 index e0e651d21..000000000 --- a/src/serialization/resources/accounting/resources/expenses/client/requests/ExpenseEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { ExpenseRequest } from "../../../../types/ExpenseRequest"; - -export const ExpenseEndpointRequest: core.serialization.Schema< - serializers.accounting.ExpenseEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: ExpenseRequest, -}); - -export declare namespace ExpenseEndpointRequest { - export interface Raw { - model: ExpenseRequest.Raw; - } -} diff --git a/src/serialization/resources/accounting/resources/expenses/client/requests/index.ts b/src/serialization/resources/accounting/resources/expenses/client/requests/index.ts index bb1ef9330..dbdda6ca6 100644 --- a/src/serialization/resources/accounting/resources/expenses/client/requests/index.ts +++ b/src/serialization/resources/accounting/resources/expenses/client/requests/index.ts @@ -1 +1 @@ -export { ExpenseEndpointRequest } from "./ExpenseEndpointRequest"; +export { ExpenseBulkRequest } from "./ExpenseBulkRequest"; diff --git a/src/serialization/resources/accounting/resources/expenses/types/ExpensesBatchObjectsListRequestExpandItem.ts b/src/serialization/resources/accounting/resources/expenses/types/ExpensesBatchObjectsListRequestExpandItem.ts new file mode 100644 index 000000000..f8163e2d6 --- /dev/null +++ b/src/serialization/resources/accounting/resources/expenses/types/ExpensesBatchObjectsListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const ExpensesBatchObjectsListRequestExpandItem: core.serialization.Schema< + serializers.accounting.ExpensesBatchObjectsListRequestExpandItem.Raw, + Merge.accounting.ExpensesBatchObjectsListRequestExpandItem +> = core.serialization.enum_(["account", "accounting_period", "company", "contact", "employee", "tracking_categories"]); + +export declare namespace ExpensesBatchObjectsListRequestExpandItem { + export type Raw = "account" | "accounting_period" | "company" | "contact" | "employee" | "tracking_categories"; +} diff --git a/src/serialization/resources/accounting/resources/expenses/types/ExpensesListRequestExpand.ts b/src/serialization/resources/accounting/resources/expenses/types/ExpensesListRequestExpand.ts deleted file mode 100644 index 8b959b2e2..000000000 --- a/src/serialization/resources/accounting/resources/expenses/types/ExpensesListRequestExpand.ts +++ /dev/null @@ -1,141 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const ExpensesListRequestExpand: core.serialization.Schema< - serializers.accounting.ExpensesListRequestExpand.Raw, - Merge.accounting.ExpensesListRequestExpand -> = core.serialization.enum_([ - "account", - "account,accounting_period", - "account,company", - "account,company,accounting_period", - "account,company,employee", - "account,company,employee,accounting_period", - "account,contact", - "account,contact,accounting_period", - "account,contact,company", - "account,contact,company,accounting_period", - "account,contact,company,employee", - "account,contact,company,employee,accounting_period", - "account,contact,employee", - "account,contact,employee,accounting_period", - "account,employee", - "account,employee,accounting_period", - "accounting_period", - "company", - "company,accounting_period", - "company,employee", - "company,employee,accounting_period", - "contact", - "contact,accounting_period", - "contact,company", - "contact,company,accounting_period", - "contact,company,employee", - "contact,company,employee,accounting_period", - "contact,employee", - "contact,employee,accounting_period", - "employee", - "employee,accounting_period", - "tracking_categories", - "tracking_categories,account", - "tracking_categories,account,accounting_period", - "tracking_categories,account,company", - "tracking_categories,account,company,accounting_period", - "tracking_categories,account,company,employee", - "tracking_categories,account,company,employee,accounting_period", - "tracking_categories,account,contact", - "tracking_categories,account,contact,accounting_period", - "tracking_categories,account,contact,company", - "tracking_categories,account,contact,company,accounting_period", - "tracking_categories,account,contact,company,employee", - "tracking_categories,account,contact,company,employee,accounting_period", - "tracking_categories,account,contact,employee", - "tracking_categories,account,contact,employee,accounting_period", - "tracking_categories,account,employee", - "tracking_categories,account,employee,accounting_period", - "tracking_categories,accounting_period", - "tracking_categories,company", - "tracking_categories,company,accounting_period", - "tracking_categories,company,employee", - "tracking_categories,company,employee,accounting_period", - "tracking_categories,contact", - "tracking_categories,contact,accounting_period", - "tracking_categories,contact,company", - "tracking_categories,contact,company,accounting_period", - "tracking_categories,contact,company,employee", - "tracking_categories,contact,company,employee,accounting_period", - "tracking_categories,contact,employee", - "tracking_categories,contact,employee,accounting_period", - "tracking_categories,employee", - "tracking_categories,employee,accounting_period", -]); - -export declare namespace ExpensesListRequestExpand { - export type Raw = - | "account" - | "account,accounting_period" - | "account,company" - | "account,company,accounting_period" - | "account,company,employee" - | "account,company,employee,accounting_period" - | "account,contact" - | "account,contact,accounting_period" - | "account,contact,company" - | "account,contact,company,accounting_period" - | "account,contact,company,employee" - | "account,contact,company,employee,accounting_period" - | "account,contact,employee" - | "account,contact,employee,accounting_period" - | "account,employee" - | "account,employee,accounting_period" - | "accounting_period" - | "company" - | "company,accounting_period" - | "company,employee" - | "company,employee,accounting_period" - | "contact" - | "contact,accounting_period" - | "contact,company" - | "contact,company,accounting_period" - | "contact,company,employee" - | "contact,company,employee,accounting_period" - | "contact,employee" - | "contact,employee,accounting_period" - | "employee" - | "employee,accounting_period" - | "tracking_categories" - | "tracking_categories,account" - | "tracking_categories,account,accounting_period" - | "tracking_categories,account,company" - | "tracking_categories,account,company,accounting_period" - | "tracking_categories,account,company,employee" - | "tracking_categories,account,company,employee,accounting_period" - | "tracking_categories,account,contact" - | "tracking_categories,account,contact,accounting_period" - | "tracking_categories,account,contact,company" - | "tracking_categories,account,contact,company,accounting_period" - | "tracking_categories,account,contact,company,employee" - | "tracking_categories,account,contact,company,employee,accounting_period" - | "tracking_categories,account,contact,employee" - | "tracking_categories,account,contact,employee,accounting_period" - | "tracking_categories,account,employee" - | "tracking_categories,account,employee,accounting_period" - | "tracking_categories,accounting_period" - | "tracking_categories,company" - | "tracking_categories,company,accounting_period" - | "tracking_categories,company,employee" - | "tracking_categories,company,employee,accounting_period" - | "tracking_categories,contact" - | "tracking_categories,contact,accounting_period" - | "tracking_categories,contact,company" - | "tracking_categories,contact,company,accounting_period" - | "tracking_categories,contact,company,employee" - | "tracking_categories,contact,company,employee,accounting_period" - | "tracking_categories,contact,employee" - | "tracking_categories,contact,employee,accounting_period" - | "tracking_categories,employee" - | "tracking_categories,employee,accounting_period"; -} diff --git a/src/serialization/resources/accounting/resources/expenses/types/ExpensesListRequestExpandItem.ts b/src/serialization/resources/accounting/resources/expenses/types/ExpensesListRequestExpandItem.ts new file mode 100644 index 000000000..1cc463961 --- /dev/null +++ b/src/serialization/resources/accounting/resources/expenses/types/ExpensesListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const ExpensesListRequestExpandItem: core.serialization.Schema< + serializers.accounting.ExpensesListRequestExpandItem.Raw, + Merge.accounting.ExpensesListRequestExpandItem +> = core.serialization.enum_(["account", "accounting_period", "company", "contact", "employee", "tracking_categories"]); + +export declare namespace ExpensesListRequestExpandItem { + export type Raw = "account" | "accounting_period" | "company" | "contact" | "employee" | "tracking_categories"; +} diff --git a/src/serialization/resources/accounting/resources/expenses/types/ExpensesRetrieveRequestExpand.ts b/src/serialization/resources/accounting/resources/expenses/types/ExpensesRetrieveRequestExpand.ts deleted file mode 100644 index 3fd4eda0e..000000000 --- a/src/serialization/resources/accounting/resources/expenses/types/ExpensesRetrieveRequestExpand.ts +++ /dev/null @@ -1,141 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const ExpensesRetrieveRequestExpand: core.serialization.Schema< - serializers.accounting.ExpensesRetrieveRequestExpand.Raw, - Merge.accounting.ExpensesRetrieveRequestExpand -> = core.serialization.enum_([ - "account", - "account,accounting_period", - "account,company", - "account,company,accounting_period", - "account,company,employee", - "account,company,employee,accounting_period", - "account,contact", - "account,contact,accounting_period", - "account,contact,company", - "account,contact,company,accounting_period", - "account,contact,company,employee", - "account,contact,company,employee,accounting_period", - "account,contact,employee", - "account,contact,employee,accounting_period", - "account,employee", - "account,employee,accounting_period", - "accounting_period", - "company", - "company,accounting_period", - "company,employee", - "company,employee,accounting_period", - "contact", - "contact,accounting_period", - "contact,company", - "contact,company,accounting_period", - "contact,company,employee", - "contact,company,employee,accounting_period", - "contact,employee", - "contact,employee,accounting_period", - "employee", - "employee,accounting_period", - "tracking_categories", - "tracking_categories,account", - "tracking_categories,account,accounting_period", - "tracking_categories,account,company", - "tracking_categories,account,company,accounting_period", - "tracking_categories,account,company,employee", - "tracking_categories,account,company,employee,accounting_period", - "tracking_categories,account,contact", - "tracking_categories,account,contact,accounting_period", - "tracking_categories,account,contact,company", - "tracking_categories,account,contact,company,accounting_period", - "tracking_categories,account,contact,company,employee", - "tracking_categories,account,contact,company,employee,accounting_period", - "tracking_categories,account,contact,employee", - "tracking_categories,account,contact,employee,accounting_period", - "tracking_categories,account,employee", - "tracking_categories,account,employee,accounting_period", - "tracking_categories,accounting_period", - "tracking_categories,company", - "tracking_categories,company,accounting_period", - "tracking_categories,company,employee", - "tracking_categories,company,employee,accounting_period", - "tracking_categories,contact", - "tracking_categories,contact,accounting_period", - "tracking_categories,contact,company", - "tracking_categories,contact,company,accounting_period", - "tracking_categories,contact,company,employee", - "tracking_categories,contact,company,employee,accounting_period", - "tracking_categories,contact,employee", - "tracking_categories,contact,employee,accounting_period", - "tracking_categories,employee", - "tracking_categories,employee,accounting_period", -]); - -export declare namespace ExpensesRetrieveRequestExpand { - export type Raw = - | "account" - | "account,accounting_period" - | "account,company" - | "account,company,accounting_period" - | "account,company,employee" - | "account,company,employee,accounting_period" - | "account,contact" - | "account,contact,accounting_period" - | "account,contact,company" - | "account,contact,company,accounting_period" - | "account,contact,company,employee" - | "account,contact,company,employee,accounting_period" - | "account,contact,employee" - | "account,contact,employee,accounting_period" - | "account,employee" - | "account,employee,accounting_period" - | "accounting_period" - | "company" - | "company,accounting_period" - | "company,employee" - | "company,employee,accounting_period" - | "contact" - | "contact,accounting_period" - | "contact,company" - | "contact,company,accounting_period" - | "contact,company,employee" - | "contact,company,employee,accounting_period" - | "contact,employee" - | "contact,employee,accounting_period" - | "employee" - | "employee,accounting_period" - | "tracking_categories" - | "tracking_categories,account" - | "tracking_categories,account,accounting_period" - | "tracking_categories,account,company" - | "tracking_categories,account,company,accounting_period" - | "tracking_categories,account,company,employee" - | "tracking_categories,account,company,employee,accounting_period" - | "tracking_categories,account,contact" - | "tracking_categories,account,contact,accounting_period" - | "tracking_categories,account,contact,company" - | "tracking_categories,account,contact,company,accounting_period" - | "tracking_categories,account,contact,company,employee" - | "tracking_categories,account,contact,company,employee,accounting_period" - | "tracking_categories,account,contact,employee" - | "tracking_categories,account,contact,employee,accounting_period" - | "tracking_categories,account,employee" - | "tracking_categories,account,employee,accounting_period" - | "tracking_categories,accounting_period" - | "tracking_categories,company" - | "tracking_categories,company,accounting_period" - | "tracking_categories,company,employee" - | "tracking_categories,company,employee,accounting_period" - | "tracking_categories,contact" - | "tracking_categories,contact,accounting_period" - | "tracking_categories,contact,company" - | "tracking_categories,contact,company,accounting_period" - | "tracking_categories,contact,company,employee" - | "tracking_categories,contact,company,employee,accounting_period" - | "tracking_categories,contact,employee" - | "tracking_categories,contact,employee,accounting_period" - | "tracking_categories,employee" - | "tracking_categories,employee,accounting_period"; -} diff --git a/src/serialization/resources/accounting/resources/expenses/types/ExpensesRetrieveRequestExpandItem.ts b/src/serialization/resources/accounting/resources/expenses/types/ExpensesRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..ca2d68c83 --- /dev/null +++ b/src/serialization/resources/accounting/resources/expenses/types/ExpensesRetrieveRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const ExpensesRetrieveRequestExpandItem: core.serialization.Schema< + serializers.accounting.ExpensesRetrieveRequestExpandItem.Raw, + Merge.accounting.ExpensesRetrieveRequestExpandItem +> = core.serialization.enum_(["account", "accounting_period", "company", "contact", "employee", "tracking_categories"]); + +export declare namespace ExpensesRetrieveRequestExpandItem { + export type Raw = "account" | "accounting_period" | "company" | "contact" | "employee" | "tracking_categories"; +} diff --git a/src/serialization/resources/accounting/resources/expenses/types/index.ts b/src/serialization/resources/accounting/resources/expenses/types/index.ts index 2a53835eb..1c81575ae 100644 --- a/src/serialization/resources/accounting/resources/expenses/types/index.ts +++ b/src/serialization/resources/accounting/resources/expenses/types/index.ts @@ -1,2 +1,3 @@ -export * from "./ExpensesListRequestExpand"; -export * from "./ExpensesRetrieveRequestExpand"; +export * from "./ExpensesBatchObjectsListRequestExpandItem"; +export * from "./ExpensesListRequestExpandItem"; +export * from "./ExpensesRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/accounting/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts b/src/serialization/resources/accounting/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts index e92cb2afa..11ed7ad19 100644 --- a/src/serialization/resources/accounting/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts +++ b/src/serialization/resources/accounting/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts @@ -6,7 +6,7 @@ import type * as serializers from "../../../../../../index"; export const CreateFieldMappingRequest: core.serialization.Schema< serializers.accounting.CreateFieldMappingRequest.Raw, - Omit + Omit > = core.serialization.object({ targetFieldName: core.serialization.property("target_field_name", core.serialization.string()), targetFieldDescription: core.serialization.property("target_field_description", core.serialization.string()), @@ -17,6 +17,7 @@ export const CreateFieldMappingRequest: core.serialization.Schema< remoteMethod: core.serialization.property("remote_method", core.serialization.string()), remoteUrlPath: core.serialization.property("remote_url_path", core.serialization.string()), commonModelName: core.serialization.property("common_model_name", core.serialization.string()), + jmesPath: core.serialization.property("jmes_path", core.serialization.string().optional()), }); export declare namespace CreateFieldMappingRequest { @@ -27,5 +28,6 @@ export declare namespace CreateFieldMappingRequest { remote_method: string; remote_url_path: string; common_model_name: string; + jmes_path?: string | null; } } diff --git a/src/serialization/resources/accounting/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts b/src/serialization/resources/accounting/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts index cb2730986..57cbcb3b7 100644 --- a/src/serialization/resources/accounting/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts +++ b/src/serialization/resources/accounting/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts @@ -6,7 +6,7 @@ import type * as serializers from "../../../../../../index"; export const PatchedEditFieldMappingRequest: core.serialization.Schema< serializers.accounting.PatchedEditFieldMappingRequest.Raw, - Merge.accounting.PatchedEditFieldMappingRequest + Omit > = core.serialization.object({ remoteFieldTraversalPath: core.serialization.property( "remote_field_traversal_path", @@ -14,6 +14,7 @@ export const PatchedEditFieldMappingRequest: core.serialization.Schema< ), remoteMethod: core.serialization.property("remote_method", core.serialization.string().optional()), remoteUrlPath: core.serialization.property("remote_url_path", core.serialization.string().optional()), + jmesPath: core.serialization.property("jmes_path", core.serialization.string().optional()), }); export declare namespace PatchedEditFieldMappingRequest { @@ -21,5 +22,6 @@ export declare namespace PatchedEditFieldMappingRequest { remote_field_traversal_path?: unknown[] | null; remote_method?: string | null; remote_url_path?: string | null; + jmes_path?: string | null; } } diff --git a/src/serialization/resources/accounting/resources/generalLedgerTransactions/types/GeneralLedgerTransactionsListRequestExpand.ts b/src/serialization/resources/accounting/resources/generalLedgerTransactions/types/GeneralLedgerTransactionsListRequestExpand.ts deleted file mode 100644 index 972bbfe2b..000000000 --- a/src/serialization/resources/accounting/resources/generalLedgerTransactions/types/GeneralLedgerTransactionsListRequestExpand.ts +++ /dev/null @@ -1,45 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const GeneralLedgerTransactionsListRequestExpand: core.serialization.Schema< - serializers.accounting.GeneralLedgerTransactionsListRequestExpand.Raw, - Merge.accounting.GeneralLedgerTransactionsListRequestExpand -> = core.serialization.enum_([ - "accounting_period", - "company", - "company,accounting_period", - "general_ledger_transaction_lines", - "general_ledger_transaction_lines,accounting_period", - "general_ledger_transaction_lines,company", - "general_ledger_transaction_lines,company,accounting_period", - "tracking_categories", - "tracking_categories,accounting_period", - "tracking_categories,company", - "tracking_categories,company,accounting_period", - "tracking_categories,general_ledger_transaction_lines", - "tracking_categories,general_ledger_transaction_lines,accounting_period", - "tracking_categories,general_ledger_transaction_lines,company", - "tracking_categories,general_ledger_transaction_lines,company,accounting_period", -]); - -export declare namespace GeneralLedgerTransactionsListRequestExpand { - export type Raw = - | "accounting_period" - | "company" - | "company,accounting_period" - | "general_ledger_transaction_lines" - | "general_ledger_transaction_lines,accounting_period" - | "general_ledger_transaction_lines,company" - | "general_ledger_transaction_lines,company,accounting_period" - | "tracking_categories" - | "tracking_categories,accounting_period" - | "tracking_categories,company" - | "tracking_categories,company,accounting_period" - | "tracking_categories,general_ledger_transaction_lines" - | "tracking_categories,general_ledger_transaction_lines,accounting_period" - | "tracking_categories,general_ledger_transaction_lines,company" - | "tracking_categories,general_ledger_transaction_lines,company,accounting_period"; -} diff --git a/src/serialization/resources/accounting/resources/generalLedgerTransactions/types/GeneralLedgerTransactionsListRequestExpandItem.ts b/src/serialization/resources/accounting/resources/generalLedgerTransactions/types/GeneralLedgerTransactionsListRequestExpandItem.ts new file mode 100644 index 000000000..590c0eea6 --- /dev/null +++ b/src/serialization/resources/accounting/resources/generalLedgerTransactions/types/GeneralLedgerTransactionsListRequestExpandItem.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const GeneralLedgerTransactionsListRequestExpandItem: core.serialization.Schema< + serializers.accounting.GeneralLedgerTransactionsListRequestExpandItem.Raw, + Merge.accounting.GeneralLedgerTransactionsListRequestExpandItem +> = core.serialization.enum_([ + "accounting_period", + "company", + "general_ledger_transaction_lines", + "tracking_categories", +]); + +export declare namespace GeneralLedgerTransactionsListRequestExpandItem { + export type Raw = "accounting_period" | "company" | "general_ledger_transaction_lines" | "tracking_categories"; +} diff --git a/src/serialization/resources/accounting/resources/generalLedgerTransactions/types/GeneralLedgerTransactionsRetrieveRequestExpand.ts b/src/serialization/resources/accounting/resources/generalLedgerTransactions/types/GeneralLedgerTransactionsRetrieveRequestExpand.ts deleted file mode 100644 index c3116e138..000000000 --- a/src/serialization/resources/accounting/resources/generalLedgerTransactions/types/GeneralLedgerTransactionsRetrieveRequestExpand.ts +++ /dev/null @@ -1,45 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const GeneralLedgerTransactionsRetrieveRequestExpand: core.serialization.Schema< - serializers.accounting.GeneralLedgerTransactionsRetrieveRequestExpand.Raw, - Merge.accounting.GeneralLedgerTransactionsRetrieveRequestExpand -> = core.serialization.enum_([ - "accounting_period", - "company", - "company,accounting_period", - "general_ledger_transaction_lines", - "general_ledger_transaction_lines,accounting_period", - "general_ledger_transaction_lines,company", - "general_ledger_transaction_lines,company,accounting_period", - "tracking_categories", - "tracking_categories,accounting_period", - "tracking_categories,company", - "tracking_categories,company,accounting_period", - "tracking_categories,general_ledger_transaction_lines", - "tracking_categories,general_ledger_transaction_lines,accounting_period", - "tracking_categories,general_ledger_transaction_lines,company", - "tracking_categories,general_ledger_transaction_lines,company,accounting_period", -]); - -export declare namespace GeneralLedgerTransactionsRetrieveRequestExpand { - export type Raw = - | "accounting_period" - | "company" - | "company,accounting_period" - | "general_ledger_transaction_lines" - | "general_ledger_transaction_lines,accounting_period" - | "general_ledger_transaction_lines,company" - | "general_ledger_transaction_lines,company,accounting_period" - | "tracking_categories" - | "tracking_categories,accounting_period" - | "tracking_categories,company" - | "tracking_categories,company,accounting_period" - | "tracking_categories,general_ledger_transaction_lines" - | "tracking_categories,general_ledger_transaction_lines,accounting_period" - | "tracking_categories,general_ledger_transaction_lines,company" - | "tracking_categories,general_ledger_transaction_lines,company,accounting_period"; -} diff --git a/src/serialization/resources/accounting/resources/generalLedgerTransactions/types/GeneralLedgerTransactionsRetrieveRequestExpandItem.ts b/src/serialization/resources/accounting/resources/generalLedgerTransactions/types/GeneralLedgerTransactionsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..96a5b7ed8 --- /dev/null +++ b/src/serialization/resources/accounting/resources/generalLedgerTransactions/types/GeneralLedgerTransactionsRetrieveRequestExpandItem.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const GeneralLedgerTransactionsRetrieveRequestExpandItem: core.serialization.Schema< + serializers.accounting.GeneralLedgerTransactionsRetrieveRequestExpandItem.Raw, + Merge.accounting.GeneralLedgerTransactionsRetrieveRequestExpandItem +> = core.serialization.enum_([ + "accounting_period", + "company", + "general_ledger_transaction_lines", + "tracking_categories", +]); + +export declare namespace GeneralLedgerTransactionsRetrieveRequestExpandItem { + export type Raw = "accounting_period" | "company" | "general_ledger_transaction_lines" | "tracking_categories"; +} diff --git a/src/serialization/resources/accounting/resources/generalLedgerTransactions/types/index.ts b/src/serialization/resources/accounting/resources/generalLedgerTransactions/types/index.ts index e77fb4471..8acfde7ac 100644 --- a/src/serialization/resources/accounting/resources/generalLedgerTransactions/types/index.ts +++ b/src/serialization/resources/accounting/resources/generalLedgerTransactions/types/index.ts @@ -1,2 +1,2 @@ -export * from "./GeneralLedgerTransactionsListRequestExpand"; -export * from "./GeneralLedgerTransactionsRetrieveRequestExpand"; +export * from "./GeneralLedgerTransactionsListRequestExpandItem"; +export * from "./GeneralLedgerTransactionsRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/accounting/resources/index.ts b/src/serialization/resources/accounting/resources/index.ts index 4528f9241..0d5305da0 100644 --- a/src/serialization/resources/accounting/resources/index.ts +++ b/src/serialization/resources/accounting/resources/index.ts @@ -35,6 +35,9 @@ export * from "./invoices/client/requests"; export * from "./invoices/types"; export * as issues from "./issues"; export * from "./issues/types"; +export * as itemFulfillments from "./itemFulfillments"; +export * from "./itemFulfillments/client/requests"; +export * from "./itemFulfillments/types"; export * as items from "./items"; export * from "./items/client/requests"; export * from "./items/types"; @@ -56,6 +59,9 @@ export * from "./purchaseOrders/client/requests"; export * from "./purchaseOrders/types"; export * as regenerateKey from "./regenerateKey"; export * from "./regenerateKey/client/requests"; +export * as salesOrders from "./salesOrders"; +export * from "./salesOrders/client/requests"; +export * from "./salesOrders/types"; export * as scopes from "./scopes"; export * from "./scopes/client/requests"; export * as trackingCategories from "./trackingCategories"; diff --git a/src/serialization/resources/accounting/resources/invoices/client/requests/InvoiceBulkRequest.ts b/src/serialization/resources/accounting/resources/invoices/client/requests/InvoiceBulkRequest.ts new file mode 100644 index 000000000..667ceb57a --- /dev/null +++ b/src/serialization/resources/accounting/resources/invoices/client/requests/InvoiceBulkRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../../api/index"; +import * as core from "../../../../../../../core"; +import type * as serializers from "../../../../../../index"; +import { InvoiceBatchItemRequest } from "../../../../types/InvoiceBatchItemRequest"; + +export const InvoiceBulkRequest: core.serialization.Schema< + serializers.accounting.InvoiceBulkRequest.Raw, + Omit +> = core.serialization.object({ + batchItems: core.serialization.property("batch_items", core.serialization.list(InvoiceBatchItemRequest)), +}); + +export declare namespace InvoiceBulkRequest { + export interface Raw { + batch_items: InvoiceBatchItemRequest.Raw[]; + } +} diff --git a/src/serialization/resources/accounting/resources/invoices/client/requests/InvoiceEndpointRequest.ts b/src/serialization/resources/accounting/resources/invoices/client/requests/InvoiceEndpointRequest.ts deleted file mode 100644 index 1308f9676..000000000 --- a/src/serialization/resources/accounting/resources/invoices/client/requests/InvoiceEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { InvoiceRequest } from "../../../../types/InvoiceRequest"; - -export const InvoiceEndpointRequest: core.serialization.Schema< - serializers.accounting.InvoiceEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: InvoiceRequest, -}); - -export declare namespace InvoiceEndpointRequest { - export interface Raw { - model: InvoiceRequest.Raw; - } -} diff --git a/src/serialization/resources/accounting/resources/invoices/client/requests/index.ts b/src/serialization/resources/accounting/resources/invoices/client/requests/index.ts index 71b7cdcff..37fb49ab1 100644 --- a/src/serialization/resources/accounting/resources/invoices/client/requests/index.ts +++ b/src/serialization/resources/accounting/resources/invoices/client/requests/index.ts @@ -1,2 +1,2 @@ -export { InvoiceEndpointRequest } from "./InvoiceEndpointRequest"; +export { InvoiceBulkRequest } from "./InvoiceBulkRequest"; export { PatchedInvoiceEndpointRequest } from "./PatchedInvoiceEndpointRequest"; diff --git a/src/serialization/resources/accounting/resources/invoices/types/InvoicesBatchObjectsListRequestExpandItem.ts b/src/serialization/resources/accounting/resources/invoices/types/InvoicesBatchObjectsListRequestExpandItem.ts new file mode 100644 index 000000000..1a3510603 --- /dev/null +++ b/src/serialization/resources/accounting/resources/invoices/types/InvoicesBatchObjectsListRequestExpandItem.ts @@ -0,0 +1,41 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const InvoicesBatchObjectsListRequestExpandItem: core.serialization.Schema< + serializers.accounting.InvoicesBatchObjectsListRequestExpandItem.Raw, + Merge.accounting.InvoicesBatchObjectsListRequestExpandItem +> = core.serialization.enum_([ + "accounting_period", + "applied_credit_notes", + "applied_payments", + "applied_vendor_credits", + "company", + "contact", + "employee", + "line_items", + "payment_term", + "payments", + "purchase_orders", + "sales_orders", + "tracking_categories", +]); + +export declare namespace InvoicesBatchObjectsListRequestExpandItem { + export type Raw = + | "accounting_period" + | "applied_credit_notes" + | "applied_payments" + | "applied_vendor_credits" + | "company" + | "contact" + | "employee" + | "line_items" + | "payment_term" + | "payments" + | "purchase_orders" + | "sales_orders" + | "tracking_categories"; +} diff --git a/src/serialization/resources/accounting/resources/invoices/types/InvoicesBatchObjectsListRequestStatus.ts b/src/serialization/resources/accounting/resources/invoices/types/InvoicesBatchObjectsListRequestStatus.ts new file mode 100644 index 000000000..630dc9d11 --- /dev/null +++ b/src/serialization/resources/accounting/resources/invoices/types/InvoicesBatchObjectsListRequestStatus.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const InvoicesBatchObjectsListRequestStatus: core.serialization.Schema< + serializers.accounting.InvoicesBatchObjectsListRequestStatus.Raw, + Merge.accounting.InvoicesBatchObjectsListRequestStatus +> = core.serialization.enum_(["DRAFT", "OPEN", "PAID", "PARTIALLY_PAID", "SUBMITTED", "VOID"]); + +export declare namespace InvoicesBatchObjectsListRequestStatus { + export type Raw = "DRAFT" | "OPEN" | "PAID" | "PARTIALLY_PAID" | "SUBMITTED" | "VOID"; +} diff --git a/src/serialization/resources/accounting/resources/invoices/types/InvoicesBatchObjectsListRequestType.ts b/src/serialization/resources/accounting/resources/invoices/types/InvoicesBatchObjectsListRequestType.ts new file mode 100644 index 000000000..fb56ce01e --- /dev/null +++ b/src/serialization/resources/accounting/resources/invoices/types/InvoicesBatchObjectsListRequestType.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const InvoicesBatchObjectsListRequestType: core.serialization.Schema< + serializers.accounting.InvoicesBatchObjectsListRequestType.Raw, + Merge.accounting.InvoicesBatchObjectsListRequestType +> = core.serialization.enum_(["ACCOUNTS_PAYABLE", "ACCOUNTS_RECEIVABLE"]); + +export declare namespace InvoicesBatchObjectsListRequestType { + export type Raw = "ACCOUNTS_PAYABLE" | "ACCOUNTS_RECEIVABLE"; +} diff --git a/src/serialization/resources/accounting/resources/invoices/types/InvoicesListRequestExpand.ts b/src/serialization/resources/accounting/resources/invoices/types/InvoicesListRequestExpand.ts deleted file mode 100644 index ed222d64f..000000000 --- a/src/serialization/resources/accounting/resources/invoices/types/InvoicesListRequestExpand.ts +++ /dev/null @@ -1,8205 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const InvoicesListRequestExpand: core.serialization.Schema< - serializers.accounting.InvoicesListRequestExpand.Raw, - Merge.accounting.InvoicesListRequestExpand -> = core.serialization.enum_([ - "accounting_period", - "accounting_period,payment_term", - "applied_credit_notes", - "applied_credit_notes,accounting_period", - "applied_credit_notes,accounting_period,payment_term", - "applied_credit_notes,applied_vendor_credits", - "applied_credit_notes,applied_vendor_credits,accounting_period", - "applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "applied_credit_notes,applied_vendor_credits,company", - "applied_credit_notes,applied_vendor_credits,company,accounting_period", - "applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "applied_credit_notes,applied_vendor_credits,company,employee", - "applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "applied_credit_notes,applied_vendor_credits,company,payment_term", - "applied_credit_notes,applied_vendor_credits,contact", - "applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_credit_notes,applied_vendor_credits,contact,company", - "applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_credit_notes,applied_vendor_credits,contact,company,employee", - "applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "applied_credit_notes,applied_vendor_credits,contact,employee", - "applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "applied_credit_notes,applied_vendor_credits,contact,payment_term", - "applied_credit_notes,applied_vendor_credits,employee", - "applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_credit_notes,applied_vendor_credits,employee,payment_term", - "applied_credit_notes,applied_vendor_credits,payment_term", - "applied_credit_notes,company", - "applied_credit_notes,company,accounting_period", - "applied_credit_notes,company,accounting_period,payment_term", - "applied_credit_notes,company,employee", - "applied_credit_notes,company,employee,accounting_period", - "applied_credit_notes,company,employee,accounting_period,payment_term", - "applied_credit_notes,company,employee,payment_term", - "applied_credit_notes,company,payment_term", - "applied_credit_notes,contact", - "applied_credit_notes,contact,accounting_period", - "applied_credit_notes,contact,accounting_period,payment_term", - "applied_credit_notes,contact,company", - "applied_credit_notes,contact,company,accounting_period", - "applied_credit_notes,contact,company,accounting_period,payment_term", - "applied_credit_notes,contact,company,employee", - "applied_credit_notes,contact,company,employee,accounting_period", - "applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "applied_credit_notes,contact,company,employee,payment_term", - "applied_credit_notes,contact,company,payment_term", - "applied_credit_notes,contact,employee", - "applied_credit_notes,contact,employee,accounting_period", - "applied_credit_notes,contact,employee,accounting_period,payment_term", - "applied_credit_notes,contact,employee,payment_term", - "applied_credit_notes,contact,payment_term", - "applied_credit_notes,employee", - "applied_credit_notes,employee,accounting_period", - "applied_credit_notes,employee,accounting_period,payment_term", - "applied_credit_notes,employee,payment_term", - "applied_credit_notes,payment_term", - "applied_payments", - "applied_payments,accounting_period", - "applied_payments,accounting_period,payment_term", - "applied_payments,applied_credit_notes", - "applied_payments,applied_credit_notes,accounting_period", - "applied_payments,applied_credit_notes,accounting_period,payment_term", - "applied_payments,applied_credit_notes,applied_vendor_credits", - "applied_payments,applied_credit_notes,applied_vendor_credits,accounting_period", - "applied_payments,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "applied_payments,applied_credit_notes,applied_vendor_credits,company", - "applied_payments,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "applied_payments,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "applied_payments,applied_credit_notes,applied_vendor_credits,company,employee", - "applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "applied_payments,applied_credit_notes,applied_vendor_credits,company,payment_term", - "applied_payments,applied_credit_notes,applied_vendor_credits,contact", - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company", - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee", - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "applied_payments,applied_credit_notes,applied_vendor_credits,employee", - "applied_payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "applied_payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_payments,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "applied_payments,applied_credit_notes,applied_vendor_credits,payment_term", - "applied_payments,applied_credit_notes,company", - "applied_payments,applied_credit_notes,company,accounting_period", - "applied_payments,applied_credit_notes,company,accounting_period,payment_term", - "applied_payments,applied_credit_notes,company,employee", - "applied_payments,applied_credit_notes,company,employee,accounting_period", - "applied_payments,applied_credit_notes,company,employee,accounting_period,payment_term", - "applied_payments,applied_credit_notes,company,employee,payment_term", - "applied_payments,applied_credit_notes,company,payment_term", - "applied_payments,applied_credit_notes,contact", - "applied_payments,applied_credit_notes,contact,accounting_period", - "applied_payments,applied_credit_notes,contact,accounting_period,payment_term", - "applied_payments,applied_credit_notes,contact,company", - "applied_payments,applied_credit_notes,contact,company,accounting_period", - "applied_payments,applied_credit_notes,contact,company,accounting_period,payment_term", - "applied_payments,applied_credit_notes,contact,company,employee", - "applied_payments,applied_credit_notes,contact,company,employee,accounting_period", - "applied_payments,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "applied_payments,applied_credit_notes,contact,company,employee,payment_term", - "applied_payments,applied_credit_notes,contact,company,payment_term", - "applied_payments,applied_credit_notes,contact,employee", - "applied_payments,applied_credit_notes,contact,employee,accounting_period", - "applied_payments,applied_credit_notes,contact,employee,accounting_period,payment_term", - "applied_payments,applied_credit_notes,contact,employee,payment_term", - "applied_payments,applied_credit_notes,contact,payment_term", - "applied_payments,applied_credit_notes,employee", - "applied_payments,applied_credit_notes,employee,accounting_period", - "applied_payments,applied_credit_notes,employee,accounting_period,payment_term", - "applied_payments,applied_credit_notes,employee,payment_term", - "applied_payments,applied_credit_notes,payment_term", - "applied_payments,applied_vendor_credits", - "applied_payments,applied_vendor_credits,accounting_period", - "applied_payments,applied_vendor_credits,accounting_period,payment_term", - "applied_payments,applied_vendor_credits,company", - "applied_payments,applied_vendor_credits,company,accounting_period", - "applied_payments,applied_vendor_credits,company,accounting_period,payment_term", - "applied_payments,applied_vendor_credits,company,employee", - "applied_payments,applied_vendor_credits,company,employee,accounting_period", - "applied_payments,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_payments,applied_vendor_credits,company,employee,payment_term", - "applied_payments,applied_vendor_credits,company,payment_term", - "applied_payments,applied_vendor_credits,contact", - "applied_payments,applied_vendor_credits,contact,accounting_period", - "applied_payments,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_payments,applied_vendor_credits,contact,company", - "applied_payments,applied_vendor_credits,contact,company,accounting_period", - "applied_payments,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_payments,applied_vendor_credits,contact,company,employee", - "applied_payments,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_payments,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_payments,applied_vendor_credits,contact,company,employee,payment_term", - "applied_payments,applied_vendor_credits,contact,company,payment_term", - "applied_payments,applied_vendor_credits,contact,employee", - "applied_payments,applied_vendor_credits,contact,employee,accounting_period", - "applied_payments,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_payments,applied_vendor_credits,contact,employee,payment_term", - "applied_payments,applied_vendor_credits,contact,payment_term", - "applied_payments,applied_vendor_credits,employee", - "applied_payments,applied_vendor_credits,employee,accounting_period", - "applied_payments,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_payments,applied_vendor_credits,employee,payment_term", - "applied_payments,applied_vendor_credits,payment_term", - "applied_payments,company", - "applied_payments,company,accounting_period", - "applied_payments,company,accounting_period,payment_term", - "applied_payments,company,employee", - "applied_payments,company,employee,accounting_period", - "applied_payments,company,employee,accounting_period,payment_term", - "applied_payments,company,employee,payment_term", - "applied_payments,company,payment_term", - "applied_payments,contact", - "applied_payments,contact,accounting_period", - "applied_payments,contact,accounting_period,payment_term", - "applied_payments,contact,company", - "applied_payments,contact,company,accounting_period", - "applied_payments,contact,company,accounting_period,payment_term", - "applied_payments,contact,company,employee", - "applied_payments,contact,company,employee,accounting_period", - "applied_payments,contact,company,employee,accounting_period,payment_term", - "applied_payments,contact,company,employee,payment_term", - "applied_payments,contact,company,payment_term", - "applied_payments,contact,employee", - "applied_payments,contact,employee,accounting_period", - "applied_payments,contact,employee,accounting_period,payment_term", - "applied_payments,contact,employee,payment_term", - "applied_payments,contact,payment_term", - "applied_payments,employee", - "applied_payments,employee,accounting_period", - "applied_payments,employee,accounting_period,payment_term", - "applied_payments,employee,payment_term", - "applied_payments,line_items", - "applied_payments,line_items,accounting_period", - "applied_payments,line_items,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes", - "applied_payments,line_items,applied_credit_notes,accounting_period", - "applied_payments,line_items,applied_credit_notes,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,payment_term", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,payment_term", - "applied_payments,line_items,applied_credit_notes,company", - "applied_payments,line_items,applied_credit_notes,company,accounting_period", - "applied_payments,line_items,applied_credit_notes,company,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes,company,employee", - "applied_payments,line_items,applied_credit_notes,company,employee,accounting_period", - "applied_payments,line_items,applied_credit_notes,company,employee,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes,company,employee,payment_term", - "applied_payments,line_items,applied_credit_notes,company,payment_term", - "applied_payments,line_items,applied_credit_notes,contact", - "applied_payments,line_items,applied_credit_notes,contact,accounting_period", - "applied_payments,line_items,applied_credit_notes,contact,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes,contact,company", - "applied_payments,line_items,applied_credit_notes,contact,company,accounting_period", - "applied_payments,line_items,applied_credit_notes,contact,company,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes,contact,company,employee", - "applied_payments,line_items,applied_credit_notes,contact,company,employee,accounting_period", - "applied_payments,line_items,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes,contact,company,employee,payment_term", - "applied_payments,line_items,applied_credit_notes,contact,company,payment_term", - "applied_payments,line_items,applied_credit_notes,contact,employee", - "applied_payments,line_items,applied_credit_notes,contact,employee,accounting_period", - "applied_payments,line_items,applied_credit_notes,contact,employee,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes,contact,employee,payment_term", - "applied_payments,line_items,applied_credit_notes,contact,payment_term", - "applied_payments,line_items,applied_credit_notes,employee", - "applied_payments,line_items,applied_credit_notes,employee,accounting_period", - "applied_payments,line_items,applied_credit_notes,employee,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes,employee,payment_term", - "applied_payments,line_items,applied_credit_notes,payment_term", - "applied_payments,line_items,applied_vendor_credits", - "applied_payments,line_items,applied_vendor_credits,accounting_period", - "applied_payments,line_items,applied_vendor_credits,accounting_period,payment_term", - "applied_payments,line_items,applied_vendor_credits,company", - "applied_payments,line_items,applied_vendor_credits,company,accounting_period", - "applied_payments,line_items,applied_vendor_credits,company,accounting_period,payment_term", - "applied_payments,line_items,applied_vendor_credits,company,employee", - "applied_payments,line_items,applied_vendor_credits,company,employee,accounting_period", - "applied_payments,line_items,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_payments,line_items,applied_vendor_credits,company,employee,payment_term", - "applied_payments,line_items,applied_vendor_credits,company,payment_term", - "applied_payments,line_items,applied_vendor_credits,contact", - "applied_payments,line_items,applied_vendor_credits,contact,accounting_period", - "applied_payments,line_items,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_payments,line_items,applied_vendor_credits,contact,company", - "applied_payments,line_items,applied_vendor_credits,contact,company,accounting_period", - "applied_payments,line_items,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_payments,line_items,applied_vendor_credits,contact,company,employee", - "applied_payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_payments,line_items,applied_vendor_credits,contact,company,employee,payment_term", - "applied_payments,line_items,applied_vendor_credits,contact,company,payment_term", - "applied_payments,line_items,applied_vendor_credits,contact,employee", - "applied_payments,line_items,applied_vendor_credits,contact,employee,accounting_period", - "applied_payments,line_items,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_payments,line_items,applied_vendor_credits,contact,employee,payment_term", - "applied_payments,line_items,applied_vendor_credits,contact,payment_term", - "applied_payments,line_items,applied_vendor_credits,employee", - "applied_payments,line_items,applied_vendor_credits,employee,accounting_period", - "applied_payments,line_items,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_payments,line_items,applied_vendor_credits,employee,payment_term", - "applied_payments,line_items,applied_vendor_credits,payment_term", - "applied_payments,line_items,company", - "applied_payments,line_items,company,accounting_period", - "applied_payments,line_items,company,accounting_period,payment_term", - "applied_payments,line_items,company,employee", - "applied_payments,line_items,company,employee,accounting_period", - "applied_payments,line_items,company,employee,accounting_period,payment_term", - "applied_payments,line_items,company,employee,payment_term", - "applied_payments,line_items,company,payment_term", - "applied_payments,line_items,contact", - "applied_payments,line_items,contact,accounting_period", - "applied_payments,line_items,contact,accounting_period,payment_term", - "applied_payments,line_items,contact,company", - "applied_payments,line_items,contact,company,accounting_period", - "applied_payments,line_items,contact,company,accounting_period,payment_term", - "applied_payments,line_items,contact,company,employee", - "applied_payments,line_items,contact,company,employee,accounting_period", - "applied_payments,line_items,contact,company,employee,accounting_period,payment_term", - "applied_payments,line_items,contact,company,employee,payment_term", - "applied_payments,line_items,contact,company,payment_term", - "applied_payments,line_items,contact,employee", - "applied_payments,line_items,contact,employee,accounting_period", - "applied_payments,line_items,contact,employee,accounting_period,payment_term", - "applied_payments,line_items,contact,employee,payment_term", - "applied_payments,line_items,contact,payment_term", - "applied_payments,line_items,employee", - "applied_payments,line_items,employee,accounting_period", - "applied_payments,line_items,employee,accounting_period,payment_term", - "applied_payments,line_items,employee,payment_term", - "applied_payments,line_items,payment_term", - "applied_payments,line_items,purchase_orders", - "applied_payments,line_items,purchase_orders,accounting_period", - "applied_payments,line_items,purchase_orders,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes", - "applied_payments,line_items,purchase_orders,applied_credit_notes,accounting_period", - "applied_payments,line_items,purchase_orders,applied_credit_notes,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,company", - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period", - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee", - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period", - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact", - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period", - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company", - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period", - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee", - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee", - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,employee", - "applied_payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period", - "applied_payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,employee,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,payment_term", - "applied_payments,line_items,purchase_orders,applied_vendor_credits", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,accounting_period", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,payment_term", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,payment_term", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,payment_term", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,payment_term", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,employee", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,payment_term", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,payment_term", - "applied_payments,line_items,purchase_orders,company", - "applied_payments,line_items,purchase_orders,company,accounting_period", - "applied_payments,line_items,purchase_orders,company,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,company,employee", - "applied_payments,line_items,purchase_orders,company,employee,accounting_period", - "applied_payments,line_items,purchase_orders,company,employee,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,company,employee,payment_term", - "applied_payments,line_items,purchase_orders,company,payment_term", - "applied_payments,line_items,purchase_orders,contact", - "applied_payments,line_items,purchase_orders,contact,accounting_period", - "applied_payments,line_items,purchase_orders,contact,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,contact,company", - "applied_payments,line_items,purchase_orders,contact,company,accounting_period", - "applied_payments,line_items,purchase_orders,contact,company,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,contact,company,employee", - "applied_payments,line_items,purchase_orders,contact,company,employee,accounting_period", - "applied_payments,line_items,purchase_orders,contact,company,employee,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,contact,company,employee,payment_term", - "applied_payments,line_items,purchase_orders,contact,company,payment_term", - "applied_payments,line_items,purchase_orders,contact,employee", - "applied_payments,line_items,purchase_orders,contact,employee,accounting_period", - "applied_payments,line_items,purchase_orders,contact,employee,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,contact,employee,payment_term", - "applied_payments,line_items,purchase_orders,contact,payment_term", - "applied_payments,line_items,purchase_orders,employee", - "applied_payments,line_items,purchase_orders,employee,accounting_period", - "applied_payments,line_items,purchase_orders,employee,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,employee,payment_term", - "applied_payments,line_items,purchase_orders,payment_term", - "applied_payments,line_items,tracking_categories", - "applied_payments,line_items,tracking_categories,accounting_period", - "applied_payments,line_items,tracking_categories,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes", - "applied_payments,line_items,tracking_categories,applied_credit_notes,accounting_period", - "applied_payments,line_items,tracking_categories,applied_credit_notes,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,company", - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period", - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee", - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period", - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact", - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period", - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company", - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period", - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee", - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period", - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee", - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period", - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,employee", - "applied_payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period", - "applied_payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,employee,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,payment_term", - "applied_payments,line_items,tracking_categories,applied_vendor_credits", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,accounting_period", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,payment_term", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,payment_term", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,payment_term", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,payment_term", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,payment_term", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,employee", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,payment_term", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,payment_term", - "applied_payments,line_items,tracking_categories,company", - "applied_payments,line_items,tracking_categories,company,accounting_period", - "applied_payments,line_items,tracking_categories,company,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,company,employee", - "applied_payments,line_items,tracking_categories,company,employee,accounting_period", - "applied_payments,line_items,tracking_categories,company,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,company,employee,payment_term", - "applied_payments,line_items,tracking_categories,company,payment_term", - "applied_payments,line_items,tracking_categories,contact", - "applied_payments,line_items,tracking_categories,contact,accounting_period", - "applied_payments,line_items,tracking_categories,contact,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,contact,company", - "applied_payments,line_items,tracking_categories,contact,company,accounting_period", - "applied_payments,line_items,tracking_categories,contact,company,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,contact,company,employee", - "applied_payments,line_items,tracking_categories,contact,company,employee,accounting_period", - "applied_payments,line_items,tracking_categories,contact,company,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,contact,company,employee,payment_term", - "applied_payments,line_items,tracking_categories,contact,company,payment_term", - "applied_payments,line_items,tracking_categories,contact,employee", - "applied_payments,line_items,tracking_categories,contact,employee,accounting_period", - "applied_payments,line_items,tracking_categories,contact,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,contact,employee,payment_term", - "applied_payments,line_items,tracking_categories,contact,payment_term", - "applied_payments,line_items,tracking_categories,employee", - "applied_payments,line_items,tracking_categories,employee,accounting_period", - "applied_payments,line_items,tracking_categories,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,employee,payment_term", - "applied_payments,line_items,tracking_categories,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders", - "applied_payments,line_items,tracking_categories,purchase_orders,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,company", - "applied_payments,line_items,tracking_categories,purchase_orders,company,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,company,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,company,employee", - "applied_payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,company,employee,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,company,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,contact", - "applied_payments,line_items,tracking_categories,purchase_orders,contact,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,contact,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company", - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee", - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,contact,employee", - "applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,contact,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,employee", - "applied_payments,line_items,tracking_categories,purchase_orders,employee,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,employee,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,payment_term", - "applied_payments,payment_term", - "applied_payments,purchase_orders", - "applied_payments,purchase_orders,accounting_period", - "applied_payments,purchase_orders,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes", - "applied_payments,purchase_orders,applied_credit_notes,accounting_period", - "applied_payments,purchase_orders,applied_credit_notes,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,company", - "applied_payments,purchase_orders,applied_credit_notes,company,accounting_period", - "applied_payments,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,company,employee", - "applied_payments,purchase_orders,applied_credit_notes,company,employee,accounting_period", - "applied_payments,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,company,employee,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,company,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,contact", - "applied_payments,purchase_orders,applied_credit_notes,contact,accounting_period", - "applied_payments,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,contact,company", - "applied_payments,purchase_orders,applied_credit_notes,contact,company,accounting_period", - "applied_payments,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,contact,company,employee", - "applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - "applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,contact,company,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,contact,employee", - "applied_payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - "applied_payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,contact,employee,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,contact,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,employee", - "applied_payments,purchase_orders,applied_credit_notes,employee,accounting_period", - "applied_payments,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,employee,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,payment_term", - "applied_payments,purchase_orders,applied_vendor_credits", - "applied_payments,purchase_orders,applied_vendor_credits,accounting_period", - "applied_payments,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_vendor_credits,company", - "applied_payments,purchase_orders,applied_vendor_credits,company,accounting_period", - "applied_payments,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_vendor_credits,company,employee", - "applied_payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - "applied_payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_vendor_credits,company,employee,payment_term", - "applied_payments,purchase_orders,applied_vendor_credits,company,payment_term", - "applied_payments,purchase_orders,applied_vendor_credits,contact", - "applied_payments,purchase_orders,applied_vendor_credits,contact,accounting_period", - "applied_payments,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_vendor_credits,contact,company", - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee", - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,payment_term", - "applied_payments,purchase_orders,applied_vendor_credits,contact,employee", - "applied_payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - "applied_payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - "applied_payments,purchase_orders,applied_vendor_credits,contact,payment_term", - "applied_payments,purchase_orders,applied_vendor_credits,employee", - "applied_payments,purchase_orders,applied_vendor_credits,employee,accounting_period", - "applied_payments,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_vendor_credits,employee,payment_term", - "applied_payments,purchase_orders,applied_vendor_credits,payment_term", - "applied_payments,purchase_orders,company", - "applied_payments,purchase_orders,company,accounting_period", - "applied_payments,purchase_orders,company,accounting_period,payment_term", - "applied_payments,purchase_orders,company,employee", - "applied_payments,purchase_orders,company,employee,accounting_period", - "applied_payments,purchase_orders,company,employee,accounting_period,payment_term", - "applied_payments,purchase_orders,company,employee,payment_term", - "applied_payments,purchase_orders,company,payment_term", - "applied_payments,purchase_orders,contact", - "applied_payments,purchase_orders,contact,accounting_period", - "applied_payments,purchase_orders,contact,accounting_period,payment_term", - "applied_payments,purchase_orders,contact,company", - "applied_payments,purchase_orders,contact,company,accounting_period", - "applied_payments,purchase_orders,contact,company,accounting_period,payment_term", - "applied_payments,purchase_orders,contact,company,employee", - "applied_payments,purchase_orders,contact,company,employee,accounting_period", - "applied_payments,purchase_orders,contact,company,employee,accounting_period,payment_term", - "applied_payments,purchase_orders,contact,company,employee,payment_term", - "applied_payments,purchase_orders,contact,company,payment_term", - "applied_payments,purchase_orders,contact,employee", - "applied_payments,purchase_orders,contact,employee,accounting_period", - "applied_payments,purchase_orders,contact,employee,accounting_period,payment_term", - "applied_payments,purchase_orders,contact,employee,payment_term", - "applied_payments,purchase_orders,contact,payment_term", - "applied_payments,purchase_orders,employee", - "applied_payments,purchase_orders,employee,accounting_period", - "applied_payments,purchase_orders,employee,accounting_period,payment_term", - "applied_payments,purchase_orders,employee,payment_term", - "applied_payments,purchase_orders,payment_term", - "applied_payments,tracking_categories", - "applied_payments,tracking_categories,accounting_period", - "applied_payments,tracking_categories,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes", - "applied_payments,tracking_categories,applied_credit_notes,accounting_period", - "applied_payments,tracking_categories,applied_credit_notes,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,company", - "applied_payments,tracking_categories,applied_credit_notes,company,accounting_period", - "applied_payments,tracking_categories,applied_credit_notes,company,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,company,employee", - "applied_payments,tracking_categories,applied_credit_notes,company,employee,accounting_period", - "applied_payments,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,company,employee,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,company,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,contact", - "applied_payments,tracking_categories,applied_credit_notes,contact,accounting_period", - "applied_payments,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,contact,company", - "applied_payments,tracking_categories,applied_credit_notes,contact,company,accounting_period", - "applied_payments,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,contact,company,employee", - "applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period", - "applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,contact,company,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,contact,employee", - "applied_payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period", - "applied_payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,contact,employee,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,contact,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,employee", - "applied_payments,tracking_categories,applied_credit_notes,employee,accounting_period", - "applied_payments,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,employee,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,payment_term", - "applied_payments,tracking_categories,applied_vendor_credits", - "applied_payments,tracking_categories,applied_vendor_credits,accounting_period", - "applied_payments,tracking_categories,applied_vendor_credits,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_vendor_credits,company", - "applied_payments,tracking_categories,applied_vendor_credits,company,accounting_period", - "applied_payments,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_vendor_credits,company,employee", - "applied_payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period", - "applied_payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_vendor_credits,company,employee,payment_term", - "applied_payments,tracking_categories,applied_vendor_credits,company,payment_term", - "applied_payments,tracking_categories,applied_vendor_credits,contact", - "applied_payments,tracking_categories,applied_vendor_credits,contact,accounting_period", - "applied_payments,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_vendor_credits,contact,company", - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period", - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee", - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term", - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,payment_term", - "applied_payments,tracking_categories,applied_vendor_credits,contact,employee", - "applied_payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period", - "applied_payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_vendor_credits,contact,employee,payment_term", - "applied_payments,tracking_categories,applied_vendor_credits,contact,payment_term", - "applied_payments,tracking_categories,applied_vendor_credits,employee", - "applied_payments,tracking_categories,applied_vendor_credits,employee,accounting_period", - "applied_payments,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_vendor_credits,employee,payment_term", - "applied_payments,tracking_categories,applied_vendor_credits,payment_term", - "applied_payments,tracking_categories,company", - "applied_payments,tracking_categories,company,accounting_period", - "applied_payments,tracking_categories,company,accounting_period,payment_term", - "applied_payments,tracking_categories,company,employee", - "applied_payments,tracking_categories,company,employee,accounting_period", - "applied_payments,tracking_categories,company,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,company,employee,payment_term", - "applied_payments,tracking_categories,company,payment_term", - "applied_payments,tracking_categories,contact", - "applied_payments,tracking_categories,contact,accounting_period", - "applied_payments,tracking_categories,contact,accounting_period,payment_term", - "applied_payments,tracking_categories,contact,company", - "applied_payments,tracking_categories,contact,company,accounting_period", - "applied_payments,tracking_categories,contact,company,accounting_period,payment_term", - "applied_payments,tracking_categories,contact,company,employee", - "applied_payments,tracking_categories,contact,company,employee,accounting_period", - "applied_payments,tracking_categories,contact,company,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,contact,company,employee,payment_term", - "applied_payments,tracking_categories,contact,company,payment_term", - "applied_payments,tracking_categories,contact,employee", - "applied_payments,tracking_categories,contact,employee,accounting_period", - "applied_payments,tracking_categories,contact,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,contact,employee,payment_term", - "applied_payments,tracking_categories,contact,payment_term", - "applied_payments,tracking_categories,employee", - "applied_payments,tracking_categories,employee,accounting_period", - "applied_payments,tracking_categories,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,employee,payment_term", - "applied_payments,tracking_categories,payment_term", - "applied_payments,tracking_categories,purchase_orders", - "applied_payments,tracking_categories,purchase_orders,accounting_period", - "applied_payments,tracking_categories,purchase_orders,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,payment_term", - "applied_payments,tracking_categories,purchase_orders,company", - "applied_payments,tracking_categories,purchase_orders,company,accounting_period", - "applied_payments,tracking_categories,purchase_orders,company,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,company,employee", - "applied_payments,tracking_categories,purchase_orders,company,employee,accounting_period", - "applied_payments,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,company,employee,payment_term", - "applied_payments,tracking_categories,purchase_orders,company,payment_term", - "applied_payments,tracking_categories,purchase_orders,contact", - "applied_payments,tracking_categories,purchase_orders,contact,accounting_period", - "applied_payments,tracking_categories,purchase_orders,contact,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,contact,company", - "applied_payments,tracking_categories,purchase_orders,contact,company,accounting_period", - "applied_payments,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,contact,company,employee", - "applied_payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period", - "applied_payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,contact,company,employee,payment_term", - "applied_payments,tracking_categories,purchase_orders,contact,company,payment_term", - "applied_payments,tracking_categories,purchase_orders,contact,employee", - "applied_payments,tracking_categories,purchase_orders,contact,employee,accounting_period", - "applied_payments,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,contact,employee,payment_term", - "applied_payments,tracking_categories,purchase_orders,contact,payment_term", - "applied_payments,tracking_categories,purchase_orders,employee", - "applied_payments,tracking_categories,purchase_orders,employee,accounting_period", - "applied_payments,tracking_categories,purchase_orders,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,employee,payment_term", - "applied_payments,tracking_categories,purchase_orders,payment_term", - "applied_vendor_credits", - "applied_vendor_credits,accounting_period", - "applied_vendor_credits,accounting_period,payment_term", - "applied_vendor_credits,company", - "applied_vendor_credits,company,accounting_period", - "applied_vendor_credits,company,accounting_period,payment_term", - "applied_vendor_credits,company,employee", - "applied_vendor_credits,company,employee,accounting_period", - "applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_vendor_credits,company,employee,payment_term", - "applied_vendor_credits,company,payment_term", - "applied_vendor_credits,contact", - "applied_vendor_credits,contact,accounting_period", - "applied_vendor_credits,contact,accounting_period,payment_term", - "applied_vendor_credits,contact,company", - "applied_vendor_credits,contact,company,accounting_period", - "applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_vendor_credits,contact,company,employee", - "applied_vendor_credits,contact,company,employee,accounting_period", - "applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_vendor_credits,contact,company,employee,payment_term", - "applied_vendor_credits,contact,company,payment_term", - "applied_vendor_credits,contact,employee", - "applied_vendor_credits,contact,employee,accounting_period", - "applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_vendor_credits,contact,employee,payment_term", - "applied_vendor_credits,contact,payment_term", - "applied_vendor_credits,employee", - "applied_vendor_credits,employee,accounting_period", - "applied_vendor_credits,employee,accounting_period,payment_term", - "applied_vendor_credits,employee,payment_term", - "applied_vendor_credits,payment_term", - "company", - "company,accounting_period", - "company,accounting_period,payment_term", - "company,employee", - "company,employee,accounting_period", - "company,employee,accounting_period,payment_term", - "company,employee,payment_term", - "company,payment_term", - "contact", - "contact,accounting_period", - "contact,accounting_period,payment_term", - "contact,company", - "contact,company,accounting_period", - "contact,company,accounting_period,payment_term", - "contact,company,employee", - "contact,company,employee,accounting_period", - "contact,company,employee,accounting_period,payment_term", - "contact,company,employee,payment_term", - "contact,company,payment_term", - "contact,employee", - "contact,employee,accounting_period", - "contact,employee,accounting_period,payment_term", - "contact,employee,payment_term", - "contact,payment_term", - "employee", - "employee,accounting_period", - "employee,accounting_period,payment_term", - "employee,payment_term", - "line_items", - "line_items,accounting_period", - "line_items,accounting_period,payment_term", - "line_items,applied_credit_notes", - "line_items,applied_credit_notes,accounting_period", - "line_items,applied_credit_notes,accounting_period,payment_term", - "line_items,applied_credit_notes,applied_vendor_credits", - "line_items,applied_credit_notes,applied_vendor_credits,accounting_period", - "line_items,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "line_items,applied_credit_notes,applied_vendor_credits,company", - "line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "line_items,applied_credit_notes,applied_vendor_credits,company,employee", - "line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "line_items,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "line_items,applied_credit_notes,applied_vendor_credits,company,payment_term", - "line_items,applied_credit_notes,applied_vendor_credits,contact", - "line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "line_items,applied_credit_notes,applied_vendor_credits,contact,company", - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "line_items,applied_credit_notes,applied_vendor_credits,contact,employee", - "line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "line_items,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "line_items,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "line_items,applied_credit_notes,applied_vendor_credits,employee", - "line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "line_items,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "line_items,applied_credit_notes,applied_vendor_credits,payment_term", - "line_items,applied_credit_notes,company", - "line_items,applied_credit_notes,company,accounting_period", - "line_items,applied_credit_notes,company,accounting_period,payment_term", - "line_items,applied_credit_notes,company,employee", - "line_items,applied_credit_notes,company,employee,accounting_period", - "line_items,applied_credit_notes,company,employee,accounting_period,payment_term", - "line_items,applied_credit_notes,company,employee,payment_term", - "line_items,applied_credit_notes,company,payment_term", - "line_items,applied_credit_notes,contact", - "line_items,applied_credit_notes,contact,accounting_period", - "line_items,applied_credit_notes,contact,accounting_period,payment_term", - "line_items,applied_credit_notes,contact,company", - "line_items,applied_credit_notes,contact,company,accounting_period", - "line_items,applied_credit_notes,contact,company,accounting_period,payment_term", - "line_items,applied_credit_notes,contact,company,employee", - "line_items,applied_credit_notes,contact,company,employee,accounting_period", - "line_items,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "line_items,applied_credit_notes,contact,company,employee,payment_term", - "line_items,applied_credit_notes,contact,company,payment_term", - "line_items,applied_credit_notes,contact,employee", - "line_items,applied_credit_notes,contact,employee,accounting_period", - "line_items,applied_credit_notes,contact,employee,accounting_period,payment_term", - "line_items,applied_credit_notes,contact,employee,payment_term", - "line_items,applied_credit_notes,contact,payment_term", - "line_items,applied_credit_notes,employee", - "line_items,applied_credit_notes,employee,accounting_period", - "line_items,applied_credit_notes,employee,accounting_period,payment_term", - "line_items,applied_credit_notes,employee,payment_term", - "line_items,applied_credit_notes,payment_term", - "line_items,applied_vendor_credits", - "line_items,applied_vendor_credits,accounting_period", - "line_items,applied_vendor_credits,accounting_period,payment_term", - "line_items,applied_vendor_credits,company", - "line_items,applied_vendor_credits,company,accounting_period", - "line_items,applied_vendor_credits,company,accounting_period,payment_term", - "line_items,applied_vendor_credits,company,employee", - "line_items,applied_vendor_credits,company,employee,accounting_period", - "line_items,applied_vendor_credits,company,employee,accounting_period,payment_term", - "line_items,applied_vendor_credits,company,employee,payment_term", - "line_items,applied_vendor_credits,company,payment_term", - "line_items,applied_vendor_credits,contact", - "line_items,applied_vendor_credits,contact,accounting_period", - "line_items,applied_vendor_credits,contact,accounting_period,payment_term", - "line_items,applied_vendor_credits,contact,company", - "line_items,applied_vendor_credits,contact,company,accounting_period", - "line_items,applied_vendor_credits,contact,company,accounting_period,payment_term", - "line_items,applied_vendor_credits,contact,company,employee", - "line_items,applied_vendor_credits,contact,company,employee,accounting_period", - "line_items,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "line_items,applied_vendor_credits,contact,company,employee,payment_term", - "line_items,applied_vendor_credits,contact,company,payment_term", - "line_items,applied_vendor_credits,contact,employee", - "line_items,applied_vendor_credits,contact,employee,accounting_period", - "line_items,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "line_items,applied_vendor_credits,contact,employee,payment_term", - "line_items,applied_vendor_credits,contact,payment_term", - "line_items,applied_vendor_credits,employee", - "line_items,applied_vendor_credits,employee,accounting_period", - "line_items,applied_vendor_credits,employee,accounting_period,payment_term", - "line_items,applied_vendor_credits,employee,payment_term", - "line_items,applied_vendor_credits,payment_term", - "line_items,company", - "line_items,company,accounting_period", - "line_items,company,accounting_period,payment_term", - "line_items,company,employee", - "line_items,company,employee,accounting_period", - "line_items,company,employee,accounting_period,payment_term", - "line_items,company,employee,payment_term", - "line_items,company,payment_term", - "line_items,contact", - "line_items,contact,accounting_period", - "line_items,contact,accounting_period,payment_term", - "line_items,contact,company", - "line_items,contact,company,accounting_period", - "line_items,contact,company,accounting_period,payment_term", - "line_items,contact,company,employee", - "line_items,contact,company,employee,accounting_period", - "line_items,contact,company,employee,accounting_period,payment_term", - "line_items,contact,company,employee,payment_term", - "line_items,contact,company,payment_term", - "line_items,contact,employee", - "line_items,contact,employee,accounting_period", - "line_items,contact,employee,accounting_period,payment_term", - "line_items,contact,employee,payment_term", - "line_items,contact,payment_term", - "line_items,employee", - "line_items,employee,accounting_period", - "line_items,employee,accounting_period,payment_term", - "line_items,employee,payment_term", - "line_items,payment_term", - "line_items,purchase_orders", - "line_items,purchase_orders,accounting_period", - "line_items,purchase_orders,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes", - "line_items,purchase_orders,applied_credit_notes,accounting_period", - "line_items,purchase_orders,applied_credit_notes,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - "line_items,purchase_orders,applied_credit_notes,company", - "line_items,purchase_orders,applied_credit_notes,company,accounting_period", - "line_items,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes,company,employee", - "line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period", - "line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes,company,employee,payment_term", - "line_items,purchase_orders,applied_credit_notes,company,payment_term", - "line_items,purchase_orders,applied_credit_notes,contact", - "line_items,purchase_orders,applied_credit_notes,contact,accounting_period", - "line_items,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes,contact,company", - "line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period", - "line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes,contact,company,employee", - "line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - "line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - "line_items,purchase_orders,applied_credit_notes,contact,company,payment_term", - "line_items,purchase_orders,applied_credit_notes,contact,employee", - "line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - "line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes,contact,employee,payment_term", - "line_items,purchase_orders,applied_credit_notes,contact,payment_term", - "line_items,purchase_orders,applied_credit_notes,employee", - "line_items,purchase_orders,applied_credit_notes,employee,accounting_period", - "line_items,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes,employee,payment_term", - "line_items,purchase_orders,applied_credit_notes,payment_term", - "line_items,purchase_orders,applied_vendor_credits", - "line_items,purchase_orders,applied_vendor_credits,accounting_period", - "line_items,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - "line_items,purchase_orders,applied_vendor_credits,company", - "line_items,purchase_orders,applied_vendor_credits,company,accounting_period", - "line_items,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - "line_items,purchase_orders,applied_vendor_credits,company,employee", - "line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - "line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - "line_items,purchase_orders,applied_vendor_credits,company,employee,payment_term", - "line_items,purchase_orders,applied_vendor_credits,company,payment_term", - "line_items,purchase_orders,applied_vendor_credits,contact", - "line_items,purchase_orders,applied_vendor_credits,contact,accounting_period", - "line_items,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - "line_items,purchase_orders,applied_vendor_credits,contact,company", - "line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - "line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - "line_items,purchase_orders,applied_vendor_credits,contact,company,employee", - "line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - "line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "line_items,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - "line_items,purchase_orders,applied_vendor_credits,contact,company,payment_term", - "line_items,purchase_orders,applied_vendor_credits,contact,employee", - "line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - "line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "line_items,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - "line_items,purchase_orders,applied_vendor_credits,contact,payment_term", - "line_items,purchase_orders,applied_vendor_credits,employee", - "line_items,purchase_orders,applied_vendor_credits,employee,accounting_period", - "line_items,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - "line_items,purchase_orders,applied_vendor_credits,employee,payment_term", - "line_items,purchase_orders,applied_vendor_credits,payment_term", - "line_items,purchase_orders,company", - "line_items,purchase_orders,company,accounting_period", - "line_items,purchase_orders,company,accounting_period,payment_term", - "line_items,purchase_orders,company,employee", - "line_items,purchase_orders,company,employee,accounting_period", - "line_items,purchase_orders,company,employee,accounting_period,payment_term", - "line_items,purchase_orders,company,employee,payment_term", - "line_items,purchase_orders,company,payment_term", - "line_items,purchase_orders,contact", - "line_items,purchase_orders,contact,accounting_period", - "line_items,purchase_orders,contact,accounting_period,payment_term", - "line_items,purchase_orders,contact,company", - "line_items,purchase_orders,contact,company,accounting_period", - "line_items,purchase_orders,contact,company,accounting_period,payment_term", - "line_items,purchase_orders,contact,company,employee", - "line_items,purchase_orders,contact,company,employee,accounting_period", - "line_items,purchase_orders,contact,company,employee,accounting_period,payment_term", - "line_items,purchase_orders,contact,company,employee,payment_term", - "line_items,purchase_orders,contact,company,payment_term", - "line_items,purchase_orders,contact,employee", - "line_items,purchase_orders,contact,employee,accounting_period", - "line_items,purchase_orders,contact,employee,accounting_period,payment_term", - "line_items,purchase_orders,contact,employee,payment_term", - "line_items,purchase_orders,contact,payment_term", - "line_items,purchase_orders,employee", - "line_items,purchase_orders,employee,accounting_period", - "line_items,purchase_orders,employee,accounting_period,payment_term", - "line_items,purchase_orders,employee,payment_term", - "line_items,purchase_orders,payment_term", - "line_items,tracking_categories", - "line_items,tracking_categories,accounting_period", - "line_items,tracking_categories,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes", - "line_items,tracking_categories,applied_credit_notes,accounting_period", - "line_items,tracking_categories,applied_credit_notes,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term", - "line_items,tracking_categories,applied_credit_notes,company", - "line_items,tracking_categories,applied_credit_notes,company,accounting_period", - "line_items,tracking_categories,applied_credit_notes,company,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes,company,employee", - "line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period", - "line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes,company,employee,payment_term", - "line_items,tracking_categories,applied_credit_notes,company,payment_term", - "line_items,tracking_categories,applied_credit_notes,contact", - "line_items,tracking_categories,applied_credit_notes,contact,accounting_period", - "line_items,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes,contact,company", - "line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period", - "line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes,contact,company,employee", - "line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period", - "line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes,contact,company,employee,payment_term", - "line_items,tracking_categories,applied_credit_notes,contact,company,payment_term", - "line_items,tracking_categories,applied_credit_notes,contact,employee", - "line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period", - "line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes,contact,employee,payment_term", - "line_items,tracking_categories,applied_credit_notes,contact,payment_term", - "line_items,tracking_categories,applied_credit_notes,employee", - "line_items,tracking_categories,applied_credit_notes,employee,accounting_period", - "line_items,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes,employee,payment_term", - "line_items,tracking_categories,applied_credit_notes,payment_term", - "line_items,tracking_categories,applied_vendor_credits", - "line_items,tracking_categories,applied_vendor_credits,accounting_period", - "line_items,tracking_categories,applied_vendor_credits,accounting_period,payment_term", - "line_items,tracking_categories,applied_vendor_credits,company", - "line_items,tracking_categories,applied_vendor_credits,company,accounting_period", - "line_items,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term", - "line_items,tracking_categories,applied_vendor_credits,company,employee", - "line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period", - "line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term", - "line_items,tracking_categories,applied_vendor_credits,company,employee,payment_term", - "line_items,tracking_categories,applied_vendor_credits,company,payment_term", - "line_items,tracking_categories,applied_vendor_credits,contact", - "line_items,tracking_categories,applied_vendor_credits,contact,accounting_period", - "line_items,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term", - "line_items,tracking_categories,applied_vendor_credits,contact,company", - "line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period", - "line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term", - "line_items,tracking_categories,applied_vendor_credits,contact,company,employee", - "line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period", - "line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "line_items,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term", - "line_items,tracking_categories,applied_vendor_credits,contact,company,payment_term", - "line_items,tracking_categories,applied_vendor_credits,contact,employee", - "line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period", - "line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "line_items,tracking_categories,applied_vendor_credits,contact,employee,payment_term", - "line_items,tracking_categories,applied_vendor_credits,contact,payment_term", - "line_items,tracking_categories,applied_vendor_credits,employee", - "line_items,tracking_categories,applied_vendor_credits,employee,accounting_period", - "line_items,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term", - "line_items,tracking_categories,applied_vendor_credits,employee,payment_term", - "line_items,tracking_categories,applied_vendor_credits,payment_term", - "line_items,tracking_categories,company", - "line_items,tracking_categories,company,accounting_period", - "line_items,tracking_categories,company,accounting_period,payment_term", - "line_items,tracking_categories,company,employee", - "line_items,tracking_categories,company,employee,accounting_period", - "line_items,tracking_categories,company,employee,accounting_period,payment_term", - "line_items,tracking_categories,company,employee,payment_term", - "line_items,tracking_categories,company,payment_term", - "line_items,tracking_categories,contact", - "line_items,tracking_categories,contact,accounting_period", - "line_items,tracking_categories,contact,accounting_period,payment_term", - "line_items,tracking_categories,contact,company", - "line_items,tracking_categories,contact,company,accounting_period", - "line_items,tracking_categories,contact,company,accounting_period,payment_term", - "line_items,tracking_categories,contact,company,employee", - "line_items,tracking_categories,contact,company,employee,accounting_period", - "line_items,tracking_categories,contact,company,employee,accounting_period,payment_term", - "line_items,tracking_categories,contact,company,employee,payment_term", - "line_items,tracking_categories,contact,company,payment_term", - "line_items,tracking_categories,contact,employee", - "line_items,tracking_categories,contact,employee,accounting_period", - "line_items,tracking_categories,contact,employee,accounting_period,payment_term", - "line_items,tracking_categories,contact,employee,payment_term", - "line_items,tracking_categories,contact,payment_term", - "line_items,tracking_categories,employee", - "line_items,tracking_categories,employee,accounting_period", - "line_items,tracking_categories,employee,accounting_period,payment_term", - "line_items,tracking_categories,employee,payment_term", - "line_items,tracking_categories,payment_term", - "line_items,tracking_categories,purchase_orders", - "line_items,tracking_categories,purchase_orders,accounting_period", - "line_items,tracking_categories,purchase_orders,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,employee", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,payment_term", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,payment_term", - "line_items,tracking_categories,purchase_orders,company", - "line_items,tracking_categories,purchase_orders,company,accounting_period", - "line_items,tracking_categories,purchase_orders,company,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,company,employee", - "line_items,tracking_categories,purchase_orders,company,employee,accounting_period", - "line_items,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,company,employee,payment_term", - "line_items,tracking_categories,purchase_orders,company,payment_term", - "line_items,tracking_categories,purchase_orders,contact", - "line_items,tracking_categories,purchase_orders,contact,accounting_period", - "line_items,tracking_categories,purchase_orders,contact,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,contact,company", - "line_items,tracking_categories,purchase_orders,contact,company,accounting_period", - "line_items,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,contact,company,employee", - "line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period", - "line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,contact,company,employee,payment_term", - "line_items,tracking_categories,purchase_orders,contact,company,payment_term", - "line_items,tracking_categories,purchase_orders,contact,employee", - "line_items,tracking_categories,purchase_orders,contact,employee,accounting_period", - "line_items,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,contact,employee,payment_term", - "line_items,tracking_categories,purchase_orders,contact,payment_term", - "line_items,tracking_categories,purchase_orders,employee", - "line_items,tracking_categories,purchase_orders,employee,accounting_period", - "line_items,tracking_categories,purchase_orders,employee,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,employee,payment_term", - "line_items,tracking_categories,purchase_orders,payment_term", - "payment_term", - "payments", - "payments,accounting_period", - "payments,accounting_period,payment_term", - "payments,applied_credit_notes", - "payments,applied_credit_notes,accounting_period", - "payments,applied_credit_notes,accounting_period,payment_term", - "payments,applied_credit_notes,applied_vendor_credits", - "payments,applied_credit_notes,applied_vendor_credits,accounting_period", - "payments,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_credit_notes,applied_vendor_credits,company", - "payments,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "payments,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_credit_notes,applied_vendor_credits,company,employee", - "payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "payments,applied_credit_notes,applied_vendor_credits,company,payment_term", - "payments,applied_credit_notes,applied_vendor_credits,contact", - "payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_credit_notes,applied_vendor_credits,contact,company", - "payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "payments,applied_credit_notes,applied_vendor_credits,contact,employee", - "payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "payments,applied_credit_notes,applied_vendor_credits,employee", - "payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "payments,applied_credit_notes,applied_vendor_credits,payment_term", - "payments,applied_credit_notes,company", - "payments,applied_credit_notes,company,accounting_period", - "payments,applied_credit_notes,company,accounting_period,payment_term", - "payments,applied_credit_notes,company,employee", - "payments,applied_credit_notes,company,employee,accounting_period", - "payments,applied_credit_notes,company,employee,accounting_period,payment_term", - "payments,applied_credit_notes,company,employee,payment_term", - "payments,applied_credit_notes,company,payment_term", - "payments,applied_credit_notes,contact", - "payments,applied_credit_notes,contact,accounting_period", - "payments,applied_credit_notes,contact,accounting_period,payment_term", - "payments,applied_credit_notes,contact,company", - "payments,applied_credit_notes,contact,company,accounting_period", - "payments,applied_credit_notes,contact,company,accounting_period,payment_term", - "payments,applied_credit_notes,contact,company,employee", - "payments,applied_credit_notes,contact,company,employee,accounting_period", - "payments,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "payments,applied_credit_notes,contact,company,employee,payment_term", - "payments,applied_credit_notes,contact,company,payment_term", - "payments,applied_credit_notes,contact,employee", - "payments,applied_credit_notes,contact,employee,accounting_period", - "payments,applied_credit_notes,contact,employee,accounting_period,payment_term", - "payments,applied_credit_notes,contact,employee,payment_term", - "payments,applied_credit_notes,contact,payment_term", - "payments,applied_credit_notes,employee", - "payments,applied_credit_notes,employee,accounting_period", - "payments,applied_credit_notes,employee,accounting_period,payment_term", - "payments,applied_credit_notes,employee,payment_term", - "payments,applied_credit_notes,payment_term", - "payments,applied_payments", - "payments,applied_payments,accounting_period", - "payments,applied_payments,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes", - "payments,applied_payments,applied_credit_notes,accounting_period", - "payments,applied_payments,applied_credit_notes,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,accounting_period", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,employee", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,payment_term", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,employee", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,payment_term", - "payments,applied_payments,applied_credit_notes,company", - "payments,applied_payments,applied_credit_notes,company,accounting_period", - "payments,applied_payments,applied_credit_notes,company,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes,company,employee", - "payments,applied_payments,applied_credit_notes,company,employee,accounting_period", - "payments,applied_payments,applied_credit_notes,company,employee,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes,company,employee,payment_term", - "payments,applied_payments,applied_credit_notes,company,payment_term", - "payments,applied_payments,applied_credit_notes,contact", - "payments,applied_payments,applied_credit_notes,contact,accounting_period", - "payments,applied_payments,applied_credit_notes,contact,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes,contact,company", - "payments,applied_payments,applied_credit_notes,contact,company,accounting_period", - "payments,applied_payments,applied_credit_notes,contact,company,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes,contact,company,employee", - "payments,applied_payments,applied_credit_notes,contact,company,employee,accounting_period", - "payments,applied_payments,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes,contact,company,employee,payment_term", - "payments,applied_payments,applied_credit_notes,contact,company,payment_term", - "payments,applied_payments,applied_credit_notes,contact,employee", - "payments,applied_payments,applied_credit_notes,contact,employee,accounting_period", - "payments,applied_payments,applied_credit_notes,contact,employee,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes,contact,employee,payment_term", - "payments,applied_payments,applied_credit_notes,contact,payment_term", - "payments,applied_payments,applied_credit_notes,employee", - "payments,applied_payments,applied_credit_notes,employee,accounting_period", - "payments,applied_payments,applied_credit_notes,employee,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes,employee,payment_term", - "payments,applied_payments,applied_credit_notes,payment_term", - "payments,applied_payments,applied_vendor_credits", - "payments,applied_payments,applied_vendor_credits,accounting_period", - "payments,applied_payments,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_payments,applied_vendor_credits,company", - "payments,applied_payments,applied_vendor_credits,company,accounting_period", - "payments,applied_payments,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_payments,applied_vendor_credits,company,employee", - "payments,applied_payments,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_payments,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_payments,applied_vendor_credits,company,employee,payment_term", - "payments,applied_payments,applied_vendor_credits,company,payment_term", - "payments,applied_payments,applied_vendor_credits,contact", - "payments,applied_payments,applied_vendor_credits,contact,accounting_period", - "payments,applied_payments,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_payments,applied_vendor_credits,contact,company", - "payments,applied_payments,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_payments,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_payments,applied_vendor_credits,contact,company,employee", - "payments,applied_payments,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_payments,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_payments,applied_vendor_credits,contact,company,payment_term", - "payments,applied_payments,applied_vendor_credits,contact,employee", - "payments,applied_payments,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_payments,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_payments,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_payments,applied_vendor_credits,contact,payment_term", - "payments,applied_payments,applied_vendor_credits,employee", - "payments,applied_payments,applied_vendor_credits,employee,accounting_period", - "payments,applied_payments,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_payments,applied_vendor_credits,employee,payment_term", - "payments,applied_payments,applied_vendor_credits,payment_term", - "payments,applied_payments,company", - "payments,applied_payments,company,accounting_period", - "payments,applied_payments,company,accounting_period,payment_term", - "payments,applied_payments,company,employee", - "payments,applied_payments,company,employee,accounting_period", - "payments,applied_payments,company,employee,accounting_period,payment_term", - "payments,applied_payments,company,employee,payment_term", - "payments,applied_payments,company,payment_term", - "payments,applied_payments,contact", - "payments,applied_payments,contact,accounting_period", - "payments,applied_payments,contact,accounting_period,payment_term", - "payments,applied_payments,contact,company", - "payments,applied_payments,contact,company,accounting_period", - "payments,applied_payments,contact,company,accounting_period,payment_term", - "payments,applied_payments,contact,company,employee", - "payments,applied_payments,contact,company,employee,accounting_period", - "payments,applied_payments,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,contact,company,employee,payment_term", - "payments,applied_payments,contact,company,payment_term", - "payments,applied_payments,contact,employee", - "payments,applied_payments,contact,employee,accounting_period", - "payments,applied_payments,contact,employee,accounting_period,payment_term", - "payments,applied_payments,contact,employee,payment_term", - "payments,applied_payments,contact,payment_term", - "payments,applied_payments,employee", - "payments,applied_payments,employee,accounting_period", - "payments,applied_payments,employee,accounting_period,payment_term", - "payments,applied_payments,employee,payment_term", - "payments,applied_payments,line_items", - "payments,applied_payments,line_items,accounting_period", - "payments,applied_payments,line_items,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes", - "payments,applied_payments,line_items,applied_credit_notes,accounting_period", - "payments,applied_payments,line_items,applied_credit_notes,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,company", - "payments,applied_payments,line_items,applied_credit_notes,company,accounting_period", - "payments,applied_payments,line_items,applied_credit_notes,company,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,company,employee", - "payments,applied_payments,line_items,applied_credit_notes,company,employee,accounting_period", - "payments,applied_payments,line_items,applied_credit_notes,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,company,employee,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,company,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,contact", - "payments,applied_payments,line_items,applied_credit_notes,contact,accounting_period", - "payments,applied_payments,line_items,applied_credit_notes,contact,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,contact,company", - "payments,applied_payments,line_items,applied_credit_notes,contact,company,accounting_period", - "payments,applied_payments,line_items,applied_credit_notes,contact,company,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,contact,company,employee", - "payments,applied_payments,line_items,applied_credit_notes,contact,company,employee,accounting_period", - "payments,applied_payments,line_items,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,contact,company,employee,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,contact,company,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,contact,employee", - "payments,applied_payments,line_items,applied_credit_notes,contact,employee,accounting_period", - "payments,applied_payments,line_items,applied_credit_notes,contact,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,contact,employee,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,contact,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,employee", - "payments,applied_payments,line_items,applied_credit_notes,employee,accounting_period", - "payments,applied_payments,line_items,applied_credit_notes,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,employee,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,payment_term", - "payments,applied_payments,line_items,applied_vendor_credits", - "payments,applied_payments,line_items,applied_vendor_credits,accounting_period", - "payments,applied_payments,line_items,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_vendor_credits,company", - "payments,applied_payments,line_items,applied_vendor_credits,company,accounting_period", - "payments,applied_payments,line_items,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_vendor_credits,company,employee", - "payments,applied_payments,line_items,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_payments,line_items,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_vendor_credits,company,employee,payment_term", - "payments,applied_payments,line_items,applied_vendor_credits,company,payment_term", - "payments,applied_payments,line_items,applied_vendor_credits,contact", - "payments,applied_payments,line_items,applied_vendor_credits,contact,accounting_period", - "payments,applied_payments,line_items,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_vendor_credits,contact,company", - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,employee", - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,payment_term", - "payments,applied_payments,line_items,applied_vendor_credits,contact,employee", - "payments,applied_payments,line_items,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_payments,line_items,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_payments,line_items,applied_vendor_credits,contact,payment_term", - "payments,applied_payments,line_items,applied_vendor_credits,employee", - "payments,applied_payments,line_items,applied_vendor_credits,employee,accounting_period", - "payments,applied_payments,line_items,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_vendor_credits,employee,payment_term", - "payments,applied_payments,line_items,applied_vendor_credits,payment_term", - "payments,applied_payments,line_items,company", - "payments,applied_payments,line_items,company,accounting_period", - "payments,applied_payments,line_items,company,accounting_period,payment_term", - "payments,applied_payments,line_items,company,employee", - "payments,applied_payments,line_items,company,employee,accounting_period", - "payments,applied_payments,line_items,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,company,employee,payment_term", - "payments,applied_payments,line_items,company,payment_term", - "payments,applied_payments,line_items,contact", - "payments,applied_payments,line_items,contact,accounting_period", - "payments,applied_payments,line_items,contact,accounting_period,payment_term", - "payments,applied_payments,line_items,contact,company", - "payments,applied_payments,line_items,contact,company,accounting_period", - "payments,applied_payments,line_items,contact,company,accounting_period,payment_term", - "payments,applied_payments,line_items,contact,company,employee", - "payments,applied_payments,line_items,contact,company,employee,accounting_period", - "payments,applied_payments,line_items,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,contact,company,employee,payment_term", - "payments,applied_payments,line_items,contact,company,payment_term", - "payments,applied_payments,line_items,contact,employee", - "payments,applied_payments,line_items,contact,employee,accounting_period", - "payments,applied_payments,line_items,contact,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,contact,employee,payment_term", - "payments,applied_payments,line_items,contact,payment_term", - "payments,applied_payments,line_items,employee", - "payments,applied_payments,line_items,employee,accounting_period", - "payments,applied_payments,line_items,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,employee,payment_term", - "payments,applied_payments,line_items,payment_term", - "payments,applied_payments,line_items,purchase_orders", - "payments,applied_payments,line_items,purchase_orders,accounting_period", - "payments,applied_payments,line_items,purchase_orders,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,employee", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,employee,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,employee", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,payment_term", - "payments,applied_payments,line_items,purchase_orders,company", - "payments,applied_payments,line_items,purchase_orders,company,accounting_period", - "payments,applied_payments,line_items,purchase_orders,company,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,company,employee", - "payments,applied_payments,line_items,purchase_orders,company,employee,accounting_period", - "payments,applied_payments,line_items,purchase_orders,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,company,employee,payment_term", - "payments,applied_payments,line_items,purchase_orders,company,payment_term", - "payments,applied_payments,line_items,purchase_orders,contact", - "payments,applied_payments,line_items,purchase_orders,contact,accounting_period", - "payments,applied_payments,line_items,purchase_orders,contact,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,contact,company", - "payments,applied_payments,line_items,purchase_orders,contact,company,accounting_period", - "payments,applied_payments,line_items,purchase_orders,contact,company,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,contact,company,employee", - "payments,applied_payments,line_items,purchase_orders,contact,company,employee,accounting_period", - "payments,applied_payments,line_items,purchase_orders,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,contact,company,employee,payment_term", - "payments,applied_payments,line_items,purchase_orders,contact,company,payment_term", - "payments,applied_payments,line_items,purchase_orders,contact,employee", - "payments,applied_payments,line_items,purchase_orders,contact,employee,accounting_period", - "payments,applied_payments,line_items,purchase_orders,contact,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,contact,employee,payment_term", - "payments,applied_payments,line_items,purchase_orders,contact,payment_term", - "payments,applied_payments,line_items,purchase_orders,employee", - "payments,applied_payments,line_items,purchase_orders,employee,accounting_period", - "payments,applied_payments,line_items,purchase_orders,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,employee,payment_term", - "payments,applied_payments,line_items,purchase_orders,payment_term", - "payments,applied_payments,line_items,tracking_categories", - "payments,applied_payments,line_items,tracking_categories,accounting_period", - "payments,applied_payments,line_items,tracking_categories,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,employee", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,employee", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,payment_term", - "payments,applied_payments,line_items,tracking_categories,company", - "payments,applied_payments,line_items,tracking_categories,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,company,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,company,employee", - "payments,applied_payments,line_items,tracking_categories,company,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,company,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,company,payment_term", - "payments,applied_payments,line_items,tracking_categories,contact", - "payments,applied_payments,line_items,tracking_categories,contact,accounting_period", - "payments,applied_payments,line_items,tracking_categories,contact,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,contact,company", - "payments,applied_payments,line_items,tracking_categories,contact,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,contact,company,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,contact,company,employee", - "payments,applied_payments,line_items,tracking_categories,contact,company,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,contact,company,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,contact,company,payment_term", - "payments,applied_payments,line_items,tracking_categories,contact,employee", - "payments,applied_payments,line_items,tracking_categories,contact,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,contact,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,contact,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,contact,payment_term", - "payments,applied_payments,line_items,tracking_categories,employee", - "payments,applied_payments,line_items,tracking_categories,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,employee", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,employee", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,employee", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,payment_term", - "payments,applied_payments,payment_term", - "payments,applied_payments,purchase_orders", - "payments,applied_payments,purchase_orders,accounting_period", - "payments,applied_payments,purchase_orders,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes", - "payments,applied_payments,purchase_orders,applied_credit_notes,accounting_period", - "payments,applied_payments,purchase_orders,applied_credit_notes,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,company", - "payments,applied_payments,purchase_orders,applied_credit_notes,company,accounting_period", - "payments,applied_payments,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,company,employee", - "payments,applied_payments,purchase_orders,applied_credit_notes,company,employee,accounting_period", - "payments,applied_payments,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,company,employee,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,company,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,contact", - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,accounting_period", - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company", - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,accounting_period", - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,employee", - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,employee", - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,employee,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,employee", - "payments,applied_payments,purchase_orders,applied_credit_notes,employee,accounting_period", - "payments,applied_payments,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,employee,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,payment_term", - "payments,applied_payments,purchase_orders,applied_vendor_credits", - "payments,applied_payments,purchase_orders,applied_vendor_credits,accounting_period", - "payments,applied_payments,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_vendor_credits,company", - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,accounting_period", - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,employee", - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,employee,payment_term", - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,payment_term", - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact", - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,accounting_period", - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company", - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee", - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,payment_term", - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,employee", - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,payment_term", - "payments,applied_payments,purchase_orders,applied_vendor_credits,employee", - "payments,applied_payments,purchase_orders,applied_vendor_credits,employee,accounting_period", - "payments,applied_payments,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_vendor_credits,employee,payment_term", - "payments,applied_payments,purchase_orders,applied_vendor_credits,payment_term", - "payments,applied_payments,purchase_orders,company", - "payments,applied_payments,purchase_orders,company,accounting_period", - "payments,applied_payments,purchase_orders,company,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,company,employee", - "payments,applied_payments,purchase_orders,company,employee,accounting_period", - "payments,applied_payments,purchase_orders,company,employee,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,company,employee,payment_term", - "payments,applied_payments,purchase_orders,company,payment_term", - "payments,applied_payments,purchase_orders,contact", - "payments,applied_payments,purchase_orders,contact,accounting_period", - "payments,applied_payments,purchase_orders,contact,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,contact,company", - "payments,applied_payments,purchase_orders,contact,company,accounting_period", - "payments,applied_payments,purchase_orders,contact,company,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,contact,company,employee", - "payments,applied_payments,purchase_orders,contact,company,employee,accounting_period", - "payments,applied_payments,purchase_orders,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,contact,company,employee,payment_term", - "payments,applied_payments,purchase_orders,contact,company,payment_term", - "payments,applied_payments,purchase_orders,contact,employee", - "payments,applied_payments,purchase_orders,contact,employee,accounting_period", - "payments,applied_payments,purchase_orders,contact,employee,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,contact,employee,payment_term", - "payments,applied_payments,purchase_orders,contact,payment_term", - "payments,applied_payments,purchase_orders,employee", - "payments,applied_payments,purchase_orders,employee,accounting_period", - "payments,applied_payments,purchase_orders,employee,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,employee,payment_term", - "payments,applied_payments,purchase_orders,payment_term", - "payments,applied_payments,tracking_categories", - "payments,applied_payments,tracking_categories,accounting_period", - "payments,applied_payments,tracking_categories,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes", - "payments,applied_payments,tracking_categories,applied_credit_notes,accounting_period", - "payments,applied_payments,tracking_categories,applied_credit_notes,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,company", - "payments,applied_payments,tracking_categories,applied_credit_notes,company,accounting_period", - "payments,applied_payments,tracking_categories,applied_credit_notes,company,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,company,employee", - "payments,applied_payments,tracking_categories,applied_credit_notes,company,employee,accounting_period", - "payments,applied_payments,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,company,employee,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,company,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,contact", - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,accounting_period", - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company", - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,accounting_period", - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,employee", - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period", - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,employee", - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period", - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,employee,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,employee", - "payments,applied_payments,tracking_categories,applied_credit_notes,employee,accounting_period", - "payments,applied_payments,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,employee,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,payment_term", - "payments,applied_payments,tracking_categories,applied_vendor_credits", - "payments,applied_payments,tracking_categories,applied_vendor_credits,accounting_period", - "payments,applied_payments,tracking_categories,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_vendor_credits,company", - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,accounting_period", - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,employee", - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,employee,payment_term", - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,payment_term", - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact", - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,accounting_period", - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company", - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee", - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,payment_term", - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,employee", - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,payment_term", - "payments,applied_payments,tracking_categories,applied_vendor_credits,employee", - "payments,applied_payments,tracking_categories,applied_vendor_credits,employee,accounting_period", - "payments,applied_payments,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_vendor_credits,employee,payment_term", - "payments,applied_payments,tracking_categories,applied_vendor_credits,payment_term", - "payments,applied_payments,tracking_categories,company", - "payments,applied_payments,tracking_categories,company,accounting_period", - "payments,applied_payments,tracking_categories,company,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,company,employee", - "payments,applied_payments,tracking_categories,company,employee,accounting_period", - "payments,applied_payments,tracking_categories,company,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,company,employee,payment_term", - "payments,applied_payments,tracking_categories,company,payment_term", - "payments,applied_payments,tracking_categories,contact", - "payments,applied_payments,tracking_categories,contact,accounting_period", - "payments,applied_payments,tracking_categories,contact,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,contact,company", - "payments,applied_payments,tracking_categories,contact,company,accounting_period", - "payments,applied_payments,tracking_categories,contact,company,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,contact,company,employee", - "payments,applied_payments,tracking_categories,contact,company,employee,accounting_period", - "payments,applied_payments,tracking_categories,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,contact,company,employee,payment_term", - "payments,applied_payments,tracking_categories,contact,company,payment_term", - "payments,applied_payments,tracking_categories,contact,employee", - "payments,applied_payments,tracking_categories,contact,employee,accounting_period", - "payments,applied_payments,tracking_categories,contact,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,contact,employee,payment_term", - "payments,applied_payments,tracking_categories,contact,payment_term", - "payments,applied_payments,tracking_categories,employee", - "payments,applied_payments,tracking_categories,employee,accounting_period", - "payments,applied_payments,tracking_categories,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,employee,payment_term", - "payments,applied_payments,tracking_categories,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders", - "payments,applied_payments,tracking_categories,purchase_orders,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,company", - "payments,applied_payments,tracking_categories,purchase_orders,company,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,company,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,company,employee", - "payments,applied_payments,tracking_categories,purchase_orders,company,employee,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,company,employee,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,company,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,contact", - "payments,applied_payments,tracking_categories,purchase_orders,contact,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,contact,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,contact,company", - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,employee", - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,employee,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,contact,employee", - "payments,applied_payments,tracking_categories,purchase_orders,contact,employee,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,contact,employee,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,contact,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,employee", - "payments,applied_payments,tracking_categories,purchase_orders,employee,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,employee,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,payment_term", - "payments,applied_vendor_credits", - "payments,applied_vendor_credits,accounting_period", - "payments,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_vendor_credits,company", - "payments,applied_vendor_credits,company,accounting_period", - "payments,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_vendor_credits,company,employee", - "payments,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_vendor_credits,company,employee,payment_term", - "payments,applied_vendor_credits,company,payment_term", - "payments,applied_vendor_credits,contact", - "payments,applied_vendor_credits,contact,accounting_period", - "payments,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_vendor_credits,contact,company", - "payments,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_vendor_credits,contact,company,employee", - "payments,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_vendor_credits,contact,company,payment_term", - "payments,applied_vendor_credits,contact,employee", - "payments,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_vendor_credits,contact,payment_term", - "payments,applied_vendor_credits,employee", - "payments,applied_vendor_credits,employee,accounting_period", - "payments,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_vendor_credits,employee,payment_term", - "payments,applied_vendor_credits,payment_term", - "payments,company", - "payments,company,accounting_period", - "payments,company,accounting_period,payment_term", - "payments,company,employee", - "payments,company,employee,accounting_period", - "payments,company,employee,accounting_period,payment_term", - "payments,company,employee,payment_term", - "payments,company,payment_term", - "payments,contact", - "payments,contact,accounting_period", - "payments,contact,accounting_period,payment_term", - "payments,contact,company", - "payments,contact,company,accounting_period", - "payments,contact,company,accounting_period,payment_term", - "payments,contact,company,employee", - "payments,contact,company,employee,accounting_period", - "payments,contact,company,employee,accounting_period,payment_term", - "payments,contact,company,employee,payment_term", - "payments,contact,company,payment_term", - "payments,contact,employee", - "payments,contact,employee,accounting_period", - "payments,contact,employee,accounting_period,payment_term", - "payments,contact,employee,payment_term", - "payments,contact,payment_term", - "payments,employee", - "payments,employee,accounting_period", - "payments,employee,accounting_period,payment_term", - "payments,employee,payment_term", - "payments,line_items", - "payments,line_items,accounting_period", - "payments,line_items,accounting_period,payment_term", - "payments,line_items,applied_credit_notes", - "payments,line_items,applied_credit_notes,accounting_period", - "payments,line_items,applied_credit_notes,accounting_period,payment_term", - "payments,line_items,applied_credit_notes,applied_vendor_credits", - "payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period", - "payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "payments,line_items,applied_credit_notes,applied_vendor_credits,company", - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee", - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,payment_term", - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact", - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company", - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee", - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "payments,line_items,applied_credit_notes,applied_vendor_credits,employee", - "payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,line_items,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "payments,line_items,applied_credit_notes,applied_vendor_credits,payment_term", - "payments,line_items,applied_credit_notes,company", - "payments,line_items,applied_credit_notes,company,accounting_period", - "payments,line_items,applied_credit_notes,company,accounting_period,payment_term", - "payments,line_items,applied_credit_notes,company,employee", - "payments,line_items,applied_credit_notes,company,employee,accounting_period", - "payments,line_items,applied_credit_notes,company,employee,accounting_period,payment_term", - "payments,line_items,applied_credit_notes,company,employee,payment_term", - "payments,line_items,applied_credit_notes,company,payment_term", - "payments,line_items,applied_credit_notes,contact", - "payments,line_items,applied_credit_notes,contact,accounting_period", - "payments,line_items,applied_credit_notes,contact,accounting_period,payment_term", - "payments,line_items,applied_credit_notes,contact,company", - "payments,line_items,applied_credit_notes,contact,company,accounting_period", - "payments,line_items,applied_credit_notes,contact,company,accounting_period,payment_term", - "payments,line_items,applied_credit_notes,contact,company,employee", - "payments,line_items,applied_credit_notes,contact,company,employee,accounting_period", - "payments,line_items,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "payments,line_items,applied_credit_notes,contact,company,employee,payment_term", - "payments,line_items,applied_credit_notes,contact,company,payment_term", - "payments,line_items,applied_credit_notes,contact,employee", - "payments,line_items,applied_credit_notes,contact,employee,accounting_period", - "payments,line_items,applied_credit_notes,contact,employee,accounting_period,payment_term", - "payments,line_items,applied_credit_notes,contact,employee,payment_term", - "payments,line_items,applied_credit_notes,contact,payment_term", - "payments,line_items,applied_credit_notes,employee", - "payments,line_items,applied_credit_notes,employee,accounting_period", - "payments,line_items,applied_credit_notes,employee,accounting_period,payment_term", - "payments,line_items,applied_credit_notes,employee,payment_term", - "payments,line_items,applied_credit_notes,payment_term", - "payments,line_items,applied_vendor_credits", - "payments,line_items,applied_vendor_credits,accounting_period", - "payments,line_items,applied_vendor_credits,accounting_period,payment_term", - "payments,line_items,applied_vendor_credits,company", - "payments,line_items,applied_vendor_credits,company,accounting_period", - "payments,line_items,applied_vendor_credits,company,accounting_period,payment_term", - "payments,line_items,applied_vendor_credits,company,employee", - "payments,line_items,applied_vendor_credits,company,employee,accounting_period", - "payments,line_items,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,line_items,applied_vendor_credits,company,employee,payment_term", - "payments,line_items,applied_vendor_credits,company,payment_term", - "payments,line_items,applied_vendor_credits,contact", - "payments,line_items,applied_vendor_credits,contact,accounting_period", - "payments,line_items,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,line_items,applied_vendor_credits,contact,company", - "payments,line_items,applied_vendor_credits,contact,company,accounting_period", - "payments,line_items,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,line_items,applied_vendor_credits,contact,company,employee", - "payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,line_items,applied_vendor_credits,contact,company,employee,payment_term", - "payments,line_items,applied_vendor_credits,contact,company,payment_term", - "payments,line_items,applied_vendor_credits,contact,employee", - "payments,line_items,applied_vendor_credits,contact,employee,accounting_period", - "payments,line_items,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,line_items,applied_vendor_credits,contact,employee,payment_term", - "payments,line_items,applied_vendor_credits,contact,payment_term", - "payments,line_items,applied_vendor_credits,employee", - "payments,line_items,applied_vendor_credits,employee,accounting_period", - "payments,line_items,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,line_items,applied_vendor_credits,employee,payment_term", - "payments,line_items,applied_vendor_credits,payment_term", - "payments,line_items,company", - "payments,line_items,company,accounting_period", - "payments,line_items,company,accounting_period,payment_term", - "payments,line_items,company,employee", - "payments,line_items,company,employee,accounting_period", - "payments,line_items,company,employee,accounting_period,payment_term", - "payments,line_items,company,employee,payment_term", - "payments,line_items,company,payment_term", - "payments,line_items,contact", - "payments,line_items,contact,accounting_period", - "payments,line_items,contact,accounting_period,payment_term", - "payments,line_items,contact,company", - "payments,line_items,contact,company,accounting_period", - "payments,line_items,contact,company,accounting_period,payment_term", - "payments,line_items,contact,company,employee", - "payments,line_items,contact,company,employee,accounting_period", - "payments,line_items,contact,company,employee,accounting_period,payment_term", - "payments,line_items,contact,company,employee,payment_term", - "payments,line_items,contact,company,payment_term", - "payments,line_items,contact,employee", - "payments,line_items,contact,employee,accounting_period", - "payments,line_items,contact,employee,accounting_period,payment_term", - "payments,line_items,contact,employee,payment_term", - "payments,line_items,contact,payment_term", - "payments,line_items,employee", - "payments,line_items,employee,accounting_period", - "payments,line_items,employee,accounting_period,payment_term", - "payments,line_items,employee,payment_term", - "payments,line_items,payment_term", - "payments,line_items,purchase_orders", - "payments,line_items,purchase_orders,accounting_period", - "payments,line_items,purchase_orders,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes", - "payments,line_items,purchase_orders,applied_credit_notes,accounting_period", - "payments,line_items,purchase_orders,applied_credit_notes,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,company", - "payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period", - "payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,company,employee", - "payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period", - "payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,company,employee,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,company,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,contact", - "payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period", - "payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,contact,company", - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period", - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee", - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,contact,employee", - "payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - "payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,contact,employee,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,contact,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,employee", - "payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period", - "payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,employee,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,payment_term", - "payments,line_items,purchase_orders,applied_vendor_credits", - "payments,line_items,purchase_orders,applied_vendor_credits,accounting_period", - "payments,line_items,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_vendor_credits,company", - "payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period", - "payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_vendor_credits,company,employee", - "payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - "payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_vendor_credits,company,employee,payment_term", - "payments,line_items,purchase_orders,applied_vendor_credits,company,payment_term", - "payments,line_items,purchase_orders,applied_vendor_credits,contact", - "payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period", - "payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company", - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee", - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,payment_term", - "payments,line_items,purchase_orders,applied_vendor_credits,contact,employee", - "payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - "payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - "payments,line_items,purchase_orders,applied_vendor_credits,contact,payment_term", - "payments,line_items,purchase_orders,applied_vendor_credits,employee", - "payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period", - "payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_vendor_credits,employee,payment_term", - "payments,line_items,purchase_orders,applied_vendor_credits,payment_term", - "payments,line_items,purchase_orders,company", - "payments,line_items,purchase_orders,company,accounting_period", - "payments,line_items,purchase_orders,company,accounting_period,payment_term", - "payments,line_items,purchase_orders,company,employee", - "payments,line_items,purchase_orders,company,employee,accounting_period", - "payments,line_items,purchase_orders,company,employee,accounting_period,payment_term", - "payments,line_items,purchase_orders,company,employee,payment_term", - "payments,line_items,purchase_orders,company,payment_term", - "payments,line_items,purchase_orders,contact", - "payments,line_items,purchase_orders,contact,accounting_period", - "payments,line_items,purchase_orders,contact,accounting_period,payment_term", - "payments,line_items,purchase_orders,contact,company", - "payments,line_items,purchase_orders,contact,company,accounting_period", - "payments,line_items,purchase_orders,contact,company,accounting_period,payment_term", - "payments,line_items,purchase_orders,contact,company,employee", - "payments,line_items,purchase_orders,contact,company,employee,accounting_period", - "payments,line_items,purchase_orders,contact,company,employee,accounting_period,payment_term", - "payments,line_items,purchase_orders,contact,company,employee,payment_term", - "payments,line_items,purchase_orders,contact,company,payment_term", - "payments,line_items,purchase_orders,contact,employee", - "payments,line_items,purchase_orders,contact,employee,accounting_period", - "payments,line_items,purchase_orders,contact,employee,accounting_period,payment_term", - "payments,line_items,purchase_orders,contact,employee,payment_term", - "payments,line_items,purchase_orders,contact,payment_term", - "payments,line_items,purchase_orders,employee", - "payments,line_items,purchase_orders,employee,accounting_period", - "payments,line_items,purchase_orders,employee,accounting_period,payment_term", - "payments,line_items,purchase_orders,employee,payment_term", - "payments,line_items,purchase_orders,payment_term", - "payments,line_items,tracking_categories", - "payments,line_items,tracking_categories,accounting_period", - "payments,line_items,tracking_categories,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes", - "payments,line_items,tracking_categories,applied_credit_notes,accounting_period", - "payments,line_items,tracking_categories,applied_credit_notes,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,company", - "payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period", - "payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,company,employee", - "payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period", - "payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,company,employee,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,company,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,contact", - "payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period", - "payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,contact,company", - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period", - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee", - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period", - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,contact,employee", - "payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period", - "payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,contact,employee,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,contact,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,employee", - "payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period", - "payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,employee,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,payment_term", - "payments,line_items,tracking_categories,applied_vendor_credits", - "payments,line_items,tracking_categories,applied_vendor_credits,accounting_period", - "payments,line_items,tracking_categories,applied_vendor_credits,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_vendor_credits,company", - "payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period", - "payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_vendor_credits,company,employee", - "payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period", - "payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_vendor_credits,company,employee,payment_term", - "payments,line_items,tracking_categories,applied_vendor_credits,company,payment_term", - "payments,line_items,tracking_categories,applied_vendor_credits,contact", - "payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period", - "payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company", - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period", - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee", - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term", - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,payment_term", - "payments,line_items,tracking_categories,applied_vendor_credits,contact,employee", - "payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period", - "payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,payment_term", - "payments,line_items,tracking_categories,applied_vendor_credits,contact,payment_term", - "payments,line_items,tracking_categories,applied_vendor_credits,employee", - "payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period", - "payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_vendor_credits,employee,payment_term", - "payments,line_items,tracking_categories,applied_vendor_credits,payment_term", - "payments,line_items,tracking_categories,company", - "payments,line_items,tracking_categories,company,accounting_period", - "payments,line_items,tracking_categories,company,accounting_period,payment_term", - "payments,line_items,tracking_categories,company,employee", - "payments,line_items,tracking_categories,company,employee,accounting_period", - "payments,line_items,tracking_categories,company,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,company,employee,payment_term", - "payments,line_items,tracking_categories,company,payment_term", - "payments,line_items,tracking_categories,contact", - "payments,line_items,tracking_categories,contact,accounting_period", - "payments,line_items,tracking_categories,contact,accounting_period,payment_term", - "payments,line_items,tracking_categories,contact,company", - "payments,line_items,tracking_categories,contact,company,accounting_period", - "payments,line_items,tracking_categories,contact,company,accounting_period,payment_term", - "payments,line_items,tracking_categories,contact,company,employee", - "payments,line_items,tracking_categories,contact,company,employee,accounting_period", - "payments,line_items,tracking_categories,contact,company,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,contact,company,employee,payment_term", - "payments,line_items,tracking_categories,contact,company,payment_term", - "payments,line_items,tracking_categories,contact,employee", - "payments,line_items,tracking_categories,contact,employee,accounting_period", - "payments,line_items,tracking_categories,contact,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,contact,employee,payment_term", - "payments,line_items,tracking_categories,contact,payment_term", - "payments,line_items,tracking_categories,employee", - "payments,line_items,tracking_categories,employee,accounting_period", - "payments,line_items,tracking_categories,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,employee,payment_term", - "payments,line_items,tracking_categories,payment_term", - "payments,line_items,tracking_categories,purchase_orders", - "payments,line_items,tracking_categories,purchase_orders,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,payment_term", - "payments,line_items,tracking_categories,purchase_orders,company", - "payments,line_items,tracking_categories,purchase_orders,company,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,company,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,company,employee", - "payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,company,employee,payment_term", - "payments,line_items,tracking_categories,purchase_orders,company,payment_term", - "payments,line_items,tracking_categories,purchase_orders,contact", - "payments,line_items,tracking_categories,purchase_orders,contact,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,contact,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,contact,company", - "payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,contact,company,employee", - "payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,contact,company,employee,payment_term", - "payments,line_items,tracking_categories,purchase_orders,contact,company,payment_term", - "payments,line_items,tracking_categories,purchase_orders,contact,employee", - "payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,contact,employee,payment_term", - "payments,line_items,tracking_categories,purchase_orders,contact,payment_term", - "payments,line_items,tracking_categories,purchase_orders,employee", - "payments,line_items,tracking_categories,purchase_orders,employee,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,employee,payment_term", - "payments,line_items,tracking_categories,purchase_orders,payment_term", - "payments,payment_term", - "payments,purchase_orders", - "payments,purchase_orders,accounting_period", - "payments,purchase_orders,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes", - "payments,purchase_orders,applied_credit_notes,accounting_period", - "payments,purchase_orders,applied_credit_notes,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - "payments,purchase_orders,applied_credit_notes,company", - "payments,purchase_orders,applied_credit_notes,company,accounting_period", - "payments,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes,company,employee", - "payments,purchase_orders,applied_credit_notes,company,employee,accounting_period", - "payments,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes,company,employee,payment_term", - "payments,purchase_orders,applied_credit_notes,company,payment_term", - "payments,purchase_orders,applied_credit_notes,contact", - "payments,purchase_orders,applied_credit_notes,contact,accounting_period", - "payments,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes,contact,company", - "payments,purchase_orders,applied_credit_notes,contact,company,accounting_period", - "payments,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes,contact,company,employee", - "payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - "payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - "payments,purchase_orders,applied_credit_notes,contact,company,payment_term", - "payments,purchase_orders,applied_credit_notes,contact,employee", - "payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - "payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes,contact,employee,payment_term", - "payments,purchase_orders,applied_credit_notes,contact,payment_term", - "payments,purchase_orders,applied_credit_notes,employee", - "payments,purchase_orders,applied_credit_notes,employee,accounting_period", - "payments,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes,employee,payment_term", - "payments,purchase_orders,applied_credit_notes,payment_term", - "payments,purchase_orders,applied_vendor_credits", - "payments,purchase_orders,applied_vendor_credits,accounting_period", - "payments,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - "payments,purchase_orders,applied_vendor_credits,company", - "payments,purchase_orders,applied_vendor_credits,company,accounting_period", - "payments,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - "payments,purchase_orders,applied_vendor_credits,company,employee", - "payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - "payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,purchase_orders,applied_vendor_credits,company,employee,payment_term", - "payments,purchase_orders,applied_vendor_credits,company,payment_term", - "payments,purchase_orders,applied_vendor_credits,contact", - "payments,purchase_orders,applied_vendor_credits,contact,accounting_period", - "payments,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,purchase_orders,applied_vendor_credits,contact,company", - "payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - "payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,purchase_orders,applied_vendor_credits,contact,company,employee", - "payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - "payments,purchase_orders,applied_vendor_credits,contact,company,payment_term", - "payments,purchase_orders,applied_vendor_credits,contact,employee", - "payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - "payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - "payments,purchase_orders,applied_vendor_credits,contact,payment_term", - "payments,purchase_orders,applied_vendor_credits,employee", - "payments,purchase_orders,applied_vendor_credits,employee,accounting_period", - "payments,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,purchase_orders,applied_vendor_credits,employee,payment_term", - "payments,purchase_orders,applied_vendor_credits,payment_term", - "payments,purchase_orders,company", - "payments,purchase_orders,company,accounting_period", - "payments,purchase_orders,company,accounting_period,payment_term", - "payments,purchase_orders,company,employee", - "payments,purchase_orders,company,employee,accounting_period", - "payments,purchase_orders,company,employee,accounting_period,payment_term", - "payments,purchase_orders,company,employee,payment_term", - "payments,purchase_orders,company,payment_term", - "payments,purchase_orders,contact", - "payments,purchase_orders,contact,accounting_period", - "payments,purchase_orders,contact,accounting_period,payment_term", - "payments,purchase_orders,contact,company", - "payments,purchase_orders,contact,company,accounting_period", - "payments,purchase_orders,contact,company,accounting_period,payment_term", - "payments,purchase_orders,contact,company,employee", - "payments,purchase_orders,contact,company,employee,accounting_period", - "payments,purchase_orders,contact,company,employee,accounting_period,payment_term", - "payments,purchase_orders,contact,company,employee,payment_term", - "payments,purchase_orders,contact,company,payment_term", - "payments,purchase_orders,contact,employee", - "payments,purchase_orders,contact,employee,accounting_period", - "payments,purchase_orders,contact,employee,accounting_period,payment_term", - "payments,purchase_orders,contact,employee,payment_term", - "payments,purchase_orders,contact,payment_term", - "payments,purchase_orders,employee", - "payments,purchase_orders,employee,accounting_period", - "payments,purchase_orders,employee,accounting_period,payment_term", - "payments,purchase_orders,employee,payment_term", - "payments,purchase_orders,payment_term", - "payments,tracking_categories", - "payments,tracking_categories,accounting_period", - "payments,tracking_categories,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes", - "payments,tracking_categories,applied_credit_notes,accounting_period", - "payments,tracking_categories,applied_credit_notes,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term", - "payments,tracking_categories,applied_credit_notes,company", - "payments,tracking_categories,applied_credit_notes,company,accounting_period", - "payments,tracking_categories,applied_credit_notes,company,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes,company,employee", - "payments,tracking_categories,applied_credit_notes,company,employee,accounting_period", - "payments,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes,company,employee,payment_term", - "payments,tracking_categories,applied_credit_notes,company,payment_term", - "payments,tracking_categories,applied_credit_notes,contact", - "payments,tracking_categories,applied_credit_notes,contact,accounting_period", - "payments,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes,contact,company", - "payments,tracking_categories,applied_credit_notes,contact,company,accounting_period", - "payments,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes,contact,company,employee", - "payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period", - "payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes,contact,company,employee,payment_term", - "payments,tracking_categories,applied_credit_notes,contact,company,payment_term", - "payments,tracking_categories,applied_credit_notes,contact,employee", - "payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period", - "payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes,contact,employee,payment_term", - "payments,tracking_categories,applied_credit_notes,contact,payment_term", - "payments,tracking_categories,applied_credit_notes,employee", - "payments,tracking_categories,applied_credit_notes,employee,accounting_period", - "payments,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes,employee,payment_term", - "payments,tracking_categories,applied_credit_notes,payment_term", - "payments,tracking_categories,applied_vendor_credits", - "payments,tracking_categories,applied_vendor_credits,accounting_period", - "payments,tracking_categories,applied_vendor_credits,accounting_period,payment_term", - "payments,tracking_categories,applied_vendor_credits,company", - "payments,tracking_categories,applied_vendor_credits,company,accounting_period", - "payments,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term", - "payments,tracking_categories,applied_vendor_credits,company,employee", - "payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period", - "payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,tracking_categories,applied_vendor_credits,company,employee,payment_term", - "payments,tracking_categories,applied_vendor_credits,company,payment_term", - "payments,tracking_categories,applied_vendor_credits,contact", - "payments,tracking_categories,applied_vendor_credits,contact,accounting_period", - "payments,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,tracking_categories,applied_vendor_credits,contact,company", - "payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period", - "payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,tracking_categories,applied_vendor_credits,contact,company,employee", - "payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term", - "payments,tracking_categories,applied_vendor_credits,contact,company,payment_term", - "payments,tracking_categories,applied_vendor_credits,contact,employee", - "payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period", - "payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,tracking_categories,applied_vendor_credits,contact,employee,payment_term", - "payments,tracking_categories,applied_vendor_credits,contact,payment_term", - "payments,tracking_categories,applied_vendor_credits,employee", - "payments,tracking_categories,applied_vendor_credits,employee,accounting_period", - "payments,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,tracking_categories,applied_vendor_credits,employee,payment_term", - "payments,tracking_categories,applied_vendor_credits,payment_term", - "payments,tracking_categories,company", - "payments,tracking_categories,company,accounting_period", - "payments,tracking_categories,company,accounting_period,payment_term", - "payments,tracking_categories,company,employee", - "payments,tracking_categories,company,employee,accounting_period", - "payments,tracking_categories,company,employee,accounting_period,payment_term", - "payments,tracking_categories,company,employee,payment_term", - "payments,tracking_categories,company,payment_term", - "payments,tracking_categories,contact", - "payments,tracking_categories,contact,accounting_period", - "payments,tracking_categories,contact,accounting_period,payment_term", - "payments,tracking_categories,contact,company", - "payments,tracking_categories,contact,company,accounting_period", - "payments,tracking_categories,contact,company,accounting_period,payment_term", - "payments,tracking_categories,contact,company,employee", - "payments,tracking_categories,contact,company,employee,accounting_period", - "payments,tracking_categories,contact,company,employee,accounting_period,payment_term", - "payments,tracking_categories,contact,company,employee,payment_term", - "payments,tracking_categories,contact,company,payment_term", - "payments,tracking_categories,contact,employee", - "payments,tracking_categories,contact,employee,accounting_period", - "payments,tracking_categories,contact,employee,accounting_period,payment_term", - "payments,tracking_categories,contact,employee,payment_term", - "payments,tracking_categories,contact,payment_term", - "payments,tracking_categories,employee", - "payments,tracking_categories,employee,accounting_period", - "payments,tracking_categories,employee,accounting_period,payment_term", - "payments,tracking_categories,employee,payment_term", - "payments,tracking_categories,payment_term", - "payments,tracking_categories,purchase_orders", - "payments,tracking_categories,purchase_orders,accounting_period", - "payments,tracking_categories,purchase_orders,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes", - "payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period", - "payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,company", - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period", - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee", - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period", - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact", - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period", - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company", - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period", - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee", - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee", - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,employee", - "payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period", - "payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,payment_term", - "payments,tracking_categories,purchase_orders,applied_vendor_credits", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,employee", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,payment_term", - "payments,tracking_categories,purchase_orders,company", - "payments,tracking_categories,purchase_orders,company,accounting_period", - "payments,tracking_categories,purchase_orders,company,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,company,employee", - "payments,tracking_categories,purchase_orders,company,employee,accounting_period", - "payments,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,company,employee,payment_term", - "payments,tracking_categories,purchase_orders,company,payment_term", - "payments,tracking_categories,purchase_orders,contact", - "payments,tracking_categories,purchase_orders,contact,accounting_period", - "payments,tracking_categories,purchase_orders,contact,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,contact,company", - "payments,tracking_categories,purchase_orders,contact,company,accounting_period", - "payments,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,contact,company,employee", - "payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period", - "payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,contact,company,employee,payment_term", - "payments,tracking_categories,purchase_orders,contact,company,payment_term", - "payments,tracking_categories,purchase_orders,contact,employee", - "payments,tracking_categories,purchase_orders,contact,employee,accounting_period", - "payments,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,contact,employee,payment_term", - "payments,tracking_categories,purchase_orders,contact,payment_term", - "payments,tracking_categories,purchase_orders,employee", - "payments,tracking_categories,purchase_orders,employee,accounting_period", - "payments,tracking_categories,purchase_orders,employee,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,employee,payment_term", - "payments,tracking_categories,purchase_orders,payment_term", - "purchase_orders", - "purchase_orders,accounting_period", - "purchase_orders,accounting_period,payment_term", - "purchase_orders,applied_credit_notes", - "purchase_orders,applied_credit_notes,accounting_period", - "purchase_orders,applied_credit_notes,accounting_period,payment_term", - "purchase_orders,applied_credit_notes,applied_vendor_credits", - "purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - "purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "purchase_orders,applied_credit_notes,applied_vendor_credits,company", - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - "purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - "purchase_orders,applied_credit_notes,company", - "purchase_orders,applied_credit_notes,company,accounting_period", - "purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - "purchase_orders,applied_credit_notes,company,employee", - "purchase_orders,applied_credit_notes,company,employee,accounting_period", - "purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - "purchase_orders,applied_credit_notes,company,employee,payment_term", - "purchase_orders,applied_credit_notes,company,payment_term", - "purchase_orders,applied_credit_notes,contact", - "purchase_orders,applied_credit_notes,contact,accounting_period", - "purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - "purchase_orders,applied_credit_notes,contact,company", - "purchase_orders,applied_credit_notes,contact,company,accounting_period", - "purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - "purchase_orders,applied_credit_notes,contact,company,employee", - "purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - "purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - "purchase_orders,applied_credit_notes,contact,company,payment_term", - "purchase_orders,applied_credit_notes,contact,employee", - "purchase_orders,applied_credit_notes,contact,employee,accounting_period", - "purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - "purchase_orders,applied_credit_notes,contact,employee,payment_term", - "purchase_orders,applied_credit_notes,contact,payment_term", - "purchase_orders,applied_credit_notes,employee", - "purchase_orders,applied_credit_notes,employee,accounting_period", - "purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - "purchase_orders,applied_credit_notes,employee,payment_term", - "purchase_orders,applied_credit_notes,payment_term", - "purchase_orders,applied_vendor_credits", - "purchase_orders,applied_vendor_credits,accounting_period", - "purchase_orders,applied_vendor_credits,accounting_period,payment_term", - "purchase_orders,applied_vendor_credits,company", - "purchase_orders,applied_vendor_credits,company,accounting_period", - "purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - "purchase_orders,applied_vendor_credits,company,employee", - "purchase_orders,applied_vendor_credits,company,employee,accounting_period", - "purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - "purchase_orders,applied_vendor_credits,company,employee,payment_term", - "purchase_orders,applied_vendor_credits,company,payment_term", - "purchase_orders,applied_vendor_credits,contact", - "purchase_orders,applied_vendor_credits,contact,accounting_period", - "purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - "purchase_orders,applied_vendor_credits,contact,company", - "purchase_orders,applied_vendor_credits,contact,company,accounting_period", - "purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - "purchase_orders,applied_vendor_credits,contact,company,employee", - "purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - "purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - "purchase_orders,applied_vendor_credits,contact,company,payment_term", - "purchase_orders,applied_vendor_credits,contact,employee", - "purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - "purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "purchase_orders,applied_vendor_credits,contact,employee,payment_term", - "purchase_orders,applied_vendor_credits,contact,payment_term", - "purchase_orders,applied_vendor_credits,employee", - "purchase_orders,applied_vendor_credits,employee,accounting_period", - "purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - "purchase_orders,applied_vendor_credits,employee,payment_term", - "purchase_orders,applied_vendor_credits,payment_term", - "purchase_orders,company", - "purchase_orders,company,accounting_period", - "purchase_orders,company,accounting_period,payment_term", - "purchase_orders,company,employee", - "purchase_orders,company,employee,accounting_period", - "purchase_orders,company,employee,accounting_period,payment_term", - "purchase_orders,company,employee,payment_term", - "purchase_orders,company,payment_term", - "purchase_orders,contact", - "purchase_orders,contact,accounting_period", - "purchase_orders,contact,accounting_period,payment_term", - "purchase_orders,contact,company", - "purchase_orders,contact,company,accounting_period", - "purchase_orders,contact,company,accounting_period,payment_term", - "purchase_orders,contact,company,employee", - "purchase_orders,contact,company,employee,accounting_period", - "purchase_orders,contact,company,employee,accounting_period,payment_term", - "purchase_orders,contact,company,employee,payment_term", - "purchase_orders,contact,company,payment_term", - "purchase_orders,contact,employee", - "purchase_orders,contact,employee,accounting_period", - "purchase_orders,contact,employee,accounting_period,payment_term", - "purchase_orders,contact,employee,payment_term", - "purchase_orders,contact,payment_term", - "purchase_orders,employee", - "purchase_orders,employee,accounting_period", - "purchase_orders,employee,accounting_period,payment_term", - "purchase_orders,employee,payment_term", - "purchase_orders,payment_term", - "tracking_categories", - "tracking_categories,accounting_period", - "tracking_categories,accounting_period,payment_term", - "tracking_categories,applied_credit_notes", - "tracking_categories,applied_credit_notes,accounting_period", - "tracking_categories,applied_credit_notes,accounting_period,payment_term", - "tracking_categories,applied_credit_notes,applied_vendor_credits", - "tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period", - "tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "tracking_categories,applied_credit_notes,applied_vendor_credits,company", - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee", - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term", - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact", - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company", - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee", - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "tracking_categories,applied_credit_notes,applied_vendor_credits,employee", - "tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term", - "tracking_categories,applied_credit_notes,company", - "tracking_categories,applied_credit_notes,company,accounting_period", - "tracking_categories,applied_credit_notes,company,accounting_period,payment_term", - "tracking_categories,applied_credit_notes,company,employee", - "tracking_categories,applied_credit_notes,company,employee,accounting_period", - "tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term", - "tracking_categories,applied_credit_notes,company,employee,payment_term", - "tracking_categories,applied_credit_notes,company,payment_term", - "tracking_categories,applied_credit_notes,contact", - "tracking_categories,applied_credit_notes,contact,accounting_period", - "tracking_categories,applied_credit_notes,contact,accounting_period,payment_term", - "tracking_categories,applied_credit_notes,contact,company", - "tracking_categories,applied_credit_notes,contact,company,accounting_period", - "tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term", - "tracking_categories,applied_credit_notes,contact,company,employee", - "tracking_categories,applied_credit_notes,contact,company,employee,accounting_period", - "tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "tracking_categories,applied_credit_notes,contact,company,employee,payment_term", - "tracking_categories,applied_credit_notes,contact,company,payment_term", - "tracking_categories,applied_credit_notes,contact,employee", - "tracking_categories,applied_credit_notes,contact,employee,accounting_period", - "tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term", - "tracking_categories,applied_credit_notes,contact,employee,payment_term", - "tracking_categories,applied_credit_notes,contact,payment_term", - "tracking_categories,applied_credit_notes,employee", - "tracking_categories,applied_credit_notes,employee,accounting_period", - "tracking_categories,applied_credit_notes,employee,accounting_period,payment_term", - "tracking_categories,applied_credit_notes,employee,payment_term", - "tracking_categories,applied_credit_notes,payment_term", - "tracking_categories,applied_vendor_credits", - "tracking_categories,applied_vendor_credits,accounting_period", - "tracking_categories,applied_vendor_credits,accounting_period,payment_term", - "tracking_categories,applied_vendor_credits,company", - "tracking_categories,applied_vendor_credits,company,accounting_period", - "tracking_categories,applied_vendor_credits,company,accounting_period,payment_term", - "tracking_categories,applied_vendor_credits,company,employee", - "tracking_categories,applied_vendor_credits,company,employee,accounting_period", - "tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term", - "tracking_categories,applied_vendor_credits,company,employee,payment_term", - "tracking_categories,applied_vendor_credits,company,payment_term", - "tracking_categories,applied_vendor_credits,contact", - "tracking_categories,applied_vendor_credits,contact,accounting_period", - "tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term", - "tracking_categories,applied_vendor_credits,contact,company", - "tracking_categories,applied_vendor_credits,contact,company,accounting_period", - "tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term", - "tracking_categories,applied_vendor_credits,contact,company,employee", - "tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period", - "tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "tracking_categories,applied_vendor_credits,contact,company,employee,payment_term", - "tracking_categories,applied_vendor_credits,contact,company,payment_term", - "tracking_categories,applied_vendor_credits,contact,employee", - "tracking_categories,applied_vendor_credits,contact,employee,accounting_period", - "tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "tracking_categories,applied_vendor_credits,contact,employee,payment_term", - "tracking_categories,applied_vendor_credits,contact,payment_term", - "tracking_categories,applied_vendor_credits,employee", - "tracking_categories,applied_vendor_credits,employee,accounting_period", - "tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term", - "tracking_categories,applied_vendor_credits,employee,payment_term", - "tracking_categories,applied_vendor_credits,payment_term", - "tracking_categories,company", - "tracking_categories,company,accounting_period", - "tracking_categories,company,accounting_period,payment_term", - "tracking_categories,company,employee", - "tracking_categories,company,employee,accounting_period", - "tracking_categories,company,employee,accounting_period,payment_term", - "tracking_categories,company,employee,payment_term", - "tracking_categories,company,payment_term", - "tracking_categories,contact", - "tracking_categories,contact,accounting_period", - "tracking_categories,contact,accounting_period,payment_term", - "tracking_categories,contact,company", - "tracking_categories,contact,company,accounting_period", - "tracking_categories,contact,company,accounting_period,payment_term", - "tracking_categories,contact,company,employee", - "tracking_categories,contact,company,employee,accounting_period", - "tracking_categories,contact,company,employee,accounting_period,payment_term", - "tracking_categories,contact,company,employee,payment_term", - "tracking_categories,contact,company,payment_term", - "tracking_categories,contact,employee", - "tracking_categories,contact,employee,accounting_period", - "tracking_categories,contact,employee,accounting_period,payment_term", - "tracking_categories,contact,employee,payment_term", - "tracking_categories,contact,payment_term", - "tracking_categories,employee", - "tracking_categories,employee,accounting_period", - "tracking_categories,employee,accounting_period,payment_term", - "tracking_categories,employee,payment_term", - "tracking_categories,payment_term", - "tracking_categories,purchase_orders", - "tracking_categories,purchase_orders,accounting_period", - "tracking_categories,purchase_orders,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes", - "tracking_categories,purchase_orders,applied_credit_notes,accounting_period", - "tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,company", - "tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period", - "tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,company,employee", - "tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period", - "tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,company,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,contact", - "tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period", - "tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,contact,company", - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period", - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee", - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,contact,employee", - "tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - "tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,employee", - "tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period", - "tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,payment_term", - "tracking_categories,purchase_orders,applied_vendor_credits", - "tracking_categories,purchase_orders,applied_vendor_credits,accounting_period", - "tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_vendor_credits,company", - "tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period", - "tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_vendor_credits,company,employee", - "tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - "tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term", - "tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term", - "tracking_categories,purchase_orders,applied_vendor_credits,contact", - "tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period", - "tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company", - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee", - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term", - "tracking_categories,purchase_orders,applied_vendor_credits,contact,employee", - "tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - "tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - "tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term", - "tracking_categories,purchase_orders,applied_vendor_credits,employee", - "tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period", - "tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term", - "tracking_categories,purchase_orders,applied_vendor_credits,payment_term", - "tracking_categories,purchase_orders,company", - "tracking_categories,purchase_orders,company,accounting_period", - "tracking_categories,purchase_orders,company,accounting_period,payment_term", - "tracking_categories,purchase_orders,company,employee", - "tracking_categories,purchase_orders,company,employee,accounting_period", - "tracking_categories,purchase_orders,company,employee,accounting_period,payment_term", - "tracking_categories,purchase_orders,company,employee,payment_term", - "tracking_categories,purchase_orders,company,payment_term", - "tracking_categories,purchase_orders,contact", - "tracking_categories,purchase_orders,contact,accounting_period", - "tracking_categories,purchase_orders,contact,accounting_period,payment_term", - "tracking_categories,purchase_orders,contact,company", - "tracking_categories,purchase_orders,contact,company,accounting_period", - "tracking_categories,purchase_orders,contact,company,accounting_period,payment_term", - "tracking_categories,purchase_orders,contact,company,employee", - "tracking_categories,purchase_orders,contact,company,employee,accounting_period", - "tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term", - "tracking_categories,purchase_orders,contact,company,employee,payment_term", - "tracking_categories,purchase_orders,contact,company,payment_term", - "tracking_categories,purchase_orders,contact,employee", - "tracking_categories,purchase_orders,contact,employee,accounting_period", - "tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term", - "tracking_categories,purchase_orders,contact,employee,payment_term", - "tracking_categories,purchase_orders,contact,payment_term", - "tracking_categories,purchase_orders,employee", - "tracking_categories,purchase_orders,employee,accounting_period", - "tracking_categories,purchase_orders,employee,accounting_period,payment_term", - "tracking_categories,purchase_orders,employee,payment_term", - "tracking_categories,purchase_orders,payment_term", -]); - -export declare namespace InvoicesListRequestExpand { - export type Raw = - | "accounting_period" - | "accounting_period,payment_term" - | "applied_credit_notes" - | "applied_credit_notes,accounting_period" - | "applied_credit_notes,accounting_period,payment_term" - | "applied_credit_notes,applied_vendor_credits" - | "applied_credit_notes,applied_vendor_credits,accounting_period" - | "applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "applied_credit_notes,applied_vendor_credits,company" - | "applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_credit_notes,applied_vendor_credits,company,employee" - | "applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "applied_credit_notes,applied_vendor_credits,company,payment_term" - | "applied_credit_notes,applied_vendor_credits,contact" - | "applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_credit_notes,applied_vendor_credits,contact,company" - | "applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "applied_credit_notes,applied_vendor_credits,contact,employee" - | "applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "applied_credit_notes,applied_vendor_credits,employee" - | "applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "applied_credit_notes,applied_vendor_credits,payment_term" - | "applied_credit_notes,company" - | "applied_credit_notes,company,accounting_period" - | "applied_credit_notes,company,accounting_period,payment_term" - | "applied_credit_notes,company,employee" - | "applied_credit_notes,company,employee,accounting_period" - | "applied_credit_notes,company,employee,accounting_period,payment_term" - | "applied_credit_notes,company,employee,payment_term" - | "applied_credit_notes,company,payment_term" - | "applied_credit_notes,contact" - | "applied_credit_notes,contact,accounting_period" - | "applied_credit_notes,contact,accounting_period,payment_term" - | "applied_credit_notes,contact,company" - | "applied_credit_notes,contact,company,accounting_period" - | "applied_credit_notes,contact,company,accounting_period,payment_term" - | "applied_credit_notes,contact,company,employee" - | "applied_credit_notes,contact,company,employee,accounting_period" - | "applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "applied_credit_notes,contact,company,employee,payment_term" - | "applied_credit_notes,contact,company,payment_term" - | "applied_credit_notes,contact,employee" - | "applied_credit_notes,contact,employee,accounting_period" - | "applied_credit_notes,contact,employee,accounting_period,payment_term" - | "applied_credit_notes,contact,employee,payment_term" - | "applied_credit_notes,contact,payment_term" - | "applied_credit_notes,employee" - | "applied_credit_notes,employee,accounting_period" - | "applied_credit_notes,employee,accounting_period,payment_term" - | "applied_credit_notes,employee,payment_term" - | "applied_credit_notes,payment_term" - | "applied_payments" - | "applied_payments,accounting_period" - | "applied_payments,accounting_period,payment_term" - | "applied_payments,applied_credit_notes" - | "applied_payments,applied_credit_notes,accounting_period" - | "applied_payments,applied_credit_notes,accounting_period,payment_term" - | "applied_payments,applied_credit_notes,applied_vendor_credits" - | "applied_payments,applied_credit_notes,applied_vendor_credits,accounting_period" - | "applied_payments,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "applied_payments,applied_credit_notes,applied_vendor_credits,company" - | "applied_payments,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "applied_payments,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_payments,applied_credit_notes,applied_vendor_credits,company,employee" - | "applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "applied_payments,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "applied_payments,applied_credit_notes,applied_vendor_credits,contact" - | "applied_payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "applied_payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company" - | "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee" - | "applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "applied_payments,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "applied_payments,applied_credit_notes,applied_vendor_credits,employee" - | "applied_payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "applied_payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_payments,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "applied_payments,applied_credit_notes,applied_vendor_credits,payment_term" - | "applied_payments,applied_credit_notes,company" - | "applied_payments,applied_credit_notes,company,accounting_period" - | "applied_payments,applied_credit_notes,company,accounting_period,payment_term" - | "applied_payments,applied_credit_notes,company,employee" - | "applied_payments,applied_credit_notes,company,employee,accounting_period" - | "applied_payments,applied_credit_notes,company,employee,accounting_period,payment_term" - | "applied_payments,applied_credit_notes,company,employee,payment_term" - | "applied_payments,applied_credit_notes,company,payment_term" - | "applied_payments,applied_credit_notes,contact" - | "applied_payments,applied_credit_notes,contact,accounting_period" - | "applied_payments,applied_credit_notes,contact,accounting_period,payment_term" - | "applied_payments,applied_credit_notes,contact,company" - | "applied_payments,applied_credit_notes,contact,company,accounting_period" - | "applied_payments,applied_credit_notes,contact,company,accounting_period,payment_term" - | "applied_payments,applied_credit_notes,contact,company,employee" - | "applied_payments,applied_credit_notes,contact,company,employee,accounting_period" - | "applied_payments,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "applied_payments,applied_credit_notes,contact,company,employee,payment_term" - | "applied_payments,applied_credit_notes,contact,company,payment_term" - | "applied_payments,applied_credit_notes,contact,employee" - | "applied_payments,applied_credit_notes,contact,employee,accounting_period" - | "applied_payments,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "applied_payments,applied_credit_notes,contact,employee,payment_term" - | "applied_payments,applied_credit_notes,contact,payment_term" - | "applied_payments,applied_credit_notes,employee" - | "applied_payments,applied_credit_notes,employee,accounting_period" - | "applied_payments,applied_credit_notes,employee,accounting_period,payment_term" - | "applied_payments,applied_credit_notes,employee,payment_term" - | "applied_payments,applied_credit_notes,payment_term" - | "applied_payments,applied_vendor_credits" - | "applied_payments,applied_vendor_credits,accounting_period" - | "applied_payments,applied_vendor_credits,accounting_period,payment_term" - | "applied_payments,applied_vendor_credits,company" - | "applied_payments,applied_vendor_credits,company,accounting_period" - | "applied_payments,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_payments,applied_vendor_credits,company,employee" - | "applied_payments,applied_vendor_credits,company,employee,accounting_period" - | "applied_payments,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_payments,applied_vendor_credits,company,employee,payment_term" - | "applied_payments,applied_vendor_credits,company,payment_term" - | "applied_payments,applied_vendor_credits,contact" - | "applied_payments,applied_vendor_credits,contact,accounting_period" - | "applied_payments,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_payments,applied_vendor_credits,contact,company" - | "applied_payments,applied_vendor_credits,contact,company,accounting_period" - | "applied_payments,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_payments,applied_vendor_credits,contact,company,employee" - | "applied_payments,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_payments,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_payments,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_payments,applied_vendor_credits,contact,company,payment_term" - | "applied_payments,applied_vendor_credits,contact,employee" - | "applied_payments,applied_vendor_credits,contact,employee,accounting_period" - | "applied_payments,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_payments,applied_vendor_credits,contact,employee,payment_term" - | "applied_payments,applied_vendor_credits,contact,payment_term" - | "applied_payments,applied_vendor_credits,employee" - | "applied_payments,applied_vendor_credits,employee,accounting_period" - | "applied_payments,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_payments,applied_vendor_credits,employee,payment_term" - | "applied_payments,applied_vendor_credits,payment_term" - | "applied_payments,company" - | "applied_payments,company,accounting_period" - | "applied_payments,company,accounting_period,payment_term" - | "applied_payments,company,employee" - | "applied_payments,company,employee,accounting_period" - | "applied_payments,company,employee,accounting_period,payment_term" - | "applied_payments,company,employee,payment_term" - | "applied_payments,company,payment_term" - | "applied_payments,contact" - | "applied_payments,contact,accounting_period" - | "applied_payments,contact,accounting_period,payment_term" - | "applied_payments,contact,company" - | "applied_payments,contact,company,accounting_period" - | "applied_payments,contact,company,accounting_period,payment_term" - | "applied_payments,contact,company,employee" - | "applied_payments,contact,company,employee,accounting_period" - | "applied_payments,contact,company,employee,accounting_period,payment_term" - | "applied_payments,contact,company,employee,payment_term" - | "applied_payments,contact,company,payment_term" - | "applied_payments,contact,employee" - | "applied_payments,contact,employee,accounting_period" - | "applied_payments,contact,employee,accounting_period,payment_term" - | "applied_payments,contact,employee,payment_term" - | "applied_payments,contact,payment_term" - | "applied_payments,employee" - | "applied_payments,employee,accounting_period" - | "applied_payments,employee,accounting_period,payment_term" - | "applied_payments,employee,payment_term" - | "applied_payments,line_items" - | "applied_payments,line_items,accounting_period" - | "applied_payments,line_items,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes" - | "applied_payments,line_items,applied_credit_notes,accounting_period" - | "applied_payments,line_items,applied_credit_notes,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,payment_term" - | "applied_payments,line_items,applied_credit_notes,company" - | "applied_payments,line_items,applied_credit_notes,company,accounting_period" - | "applied_payments,line_items,applied_credit_notes,company,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes,company,employee" - | "applied_payments,line_items,applied_credit_notes,company,employee,accounting_period" - | "applied_payments,line_items,applied_credit_notes,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes,company,employee,payment_term" - | "applied_payments,line_items,applied_credit_notes,company,payment_term" - | "applied_payments,line_items,applied_credit_notes,contact" - | "applied_payments,line_items,applied_credit_notes,contact,accounting_period" - | "applied_payments,line_items,applied_credit_notes,contact,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes,contact,company" - | "applied_payments,line_items,applied_credit_notes,contact,company,accounting_period" - | "applied_payments,line_items,applied_credit_notes,contact,company,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes,contact,company,employee" - | "applied_payments,line_items,applied_credit_notes,contact,company,employee,accounting_period" - | "applied_payments,line_items,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes,contact,company,employee,payment_term" - | "applied_payments,line_items,applied_credit_notes,contact,company,payment_term" - | "applied_payments,line_items,applied_credit_notes,contact,employee" - | "applied_payments,line_items,applied_credit_notes,contact,employee,accounting_period" - | "applied_payments,line_items,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes,contact,employee,payment_term" - | "applied_payments,line_items,applied_credit_notes,contact,payment_term" - | "applied_payments,line_items,applied_credit_notes,employee" - | "applied_payments,line_items,applied_credit_notes,employee,accounting_period" - | "applied_payments,line_items,applied_credit_notes,employee,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes,employee,payment_term" - | "applied_payments,line_items,applied_credit_notes,payment_term" - | "applied_payments,line_items,applied_vendor_credits" - | "applied_payments,line_items,applied_vendor_credits,accounting_period" - | "applied_payments,line_items,applied_vendor_credits,accounting_period,payment_term" - | "applied_payments,line_items,applied_vendor_credits,company" - | "applied_payments,line_items,applied_vendor_credits,company,accounting_period" - | "applied_payments,line_items,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_payments,line_items,applied_vendor_credits,company,employee" - | "applied_payments,line_items,applied_vendor_credits,company,employee,accounting_period" - | "applied_payments,line_items,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,applied_vendor_credits,company,employee,payment_term" - | "applied_payments,line_items,applied_vendor_credits,company,payment_term" - | "applied_payments,line_items,applied_vendor_credits,contact" - | "applied_payments,line_items,applied_vendor_credits,contact,accounting_period" - | "applied_payments,line_items,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_payments,line_items,applied_vendor_credits,contact,company" - | "applied_payments,line_items,applied_vendor_credits,contact,company,accounting_period" - | "applied_payments,line_items,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_payments,line_items,applied_vendor_credits,contact,company,employee" - | "applied_payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_payments,line_items,applied_vendor_credits,contact,company,payment_term" - | "applied_payments,line_items,applied_vendor_credits,contact,employee" - | "applied_payments,line_items,applied_vendor_credits,contact,employee,accounting_period" - | "applied_payments,line_items,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_payments,line_items,applied_vendor_credits,contact,employee,payment_term" - | "applied_payments,line_items,applied_vendor_credits,contact,payment_term" - | "applied_payments,line_items,applied_vendor_credits,employee" - | "applied_payments,line_items,applied_vendor_credits,employee,accounting_period" - | "applied_payments,line_items,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_payments,line_items,applied_vendor_credits,employee,payment_term" - | "applied_payments,line_items,applied_vendor_credits,payment_term" - | "applied_payments,line_items,company" - | "applied_payments,line_items,company,accounting_period" - | "applied_payments,line_items,company,accounting_period,payment_term" - | "applied_payments,line_items,company,employee" - | "applied_payments,line_items,company,employee,accounting_period" - | "applied_payments,line_items,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,company,employee,payment_term" - | "applied_payments,line_items,company,payment_term" - | "applied_payments,line_items,contact" - | "applied_payments,line_items,contact,accounting_period" - | "applied_payments,line_items,contact,accounting_period,payment_term" - | "applied_payments,line_items,contact,company" - | "applied_payments,line_items,contact,company,accounting_period" - | "applied_payments,line_items,contact,company,accounting_period,payment_term" - | "applied_payments,line_items,contact,company,employee" - | "applied_payments,line_items,contact,company,employee,accounting_period" - | "applied_payments,line_items,contact,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,contact,company,employee,payment_term" - | "applied_payments,line_items,contact,company,payment_term" - | "applied_payments,line_items,contact,employee" - | "applied_payments,line_items,contact,employee,accounting_period" - | "applied_payments,line_items,contact,employee,accounting_period,payment_term" - | "applied_payments,line_items,contact,employee,payment_term" - | "applied_payments,line_items,contact,payment_term" - | "applied_payments,line_items,employee" - | "applied_payments,line_items,employee,accounting_period" - | "applied_payments,line_items,employee,accounting_period,payment_term" - | "applied_payments,line_items,employee,payment_term" - | "applied_payments,line_items,payment_term" - | "applied_payments,line_items,purchase_orders" - | "applied_payments,line_items,purchase_orders,accounting_period" - | "applied_payments,line_items,purchase_orders,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,company" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,company,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,contact" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,employee" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,employee,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,payment_term" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,company" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,payment_term" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,payment_term" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,payment_term" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,payment_term" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,employee" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,payment_term" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,payment_term" - | "applied_payments,line_items,purchase_orders,company" - | "applied_payments,line_items,purchase_orders,company,accounting_period" - | "applied_payments,line_items,purchase_orders,company,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,company,employee" - | "applied_payments,line_items,purchase_orders,company,employee,accounting_period" - | "applied_payments,line_items,purchase_orders,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,company,employee,payment_term" - | "applied_payments,line_items,purchase_orders,company,payment_term" - | "applied_payments,line_items,purchase_orders,contact" - | "applied_payments,line_items,purchase_orders,contact,accounting_period" - | "applied_payments,line_items,purchase_orders,contact,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,contact,company" - | "applied_payments,line_items,purchase_orders,contact,company,accounting_period" - | "applied_payments,line_items,purchase_orders,contact,company,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,contact,company,employee" - | "applied_payments,line_items,purchase_orders,contact,company,employee,accounting_period" - | "applied_payments,line_items,purchase_orders,contact,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,contact,company,employee,payment_term" - | "applied_payments,line_items,purchase_orders,contact,company,payment_term" - | "applied_payments,line_items,purchase_orders,contact,employee" - | "applied_payments,line_items,purchase_orders,contact,employee,accounting_period" - | "applied_payments,line_items,purchase_orders,contact,employee,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,contact,employee,payment_term" - | "applied_payments,line_items,purchase_orders,contact,payment_term" - | "applied_payments,line_items,purchase_orders,employee" - | "applied_payments,line_items,purchase_orders,employee,accounting_period" - | "applied_payments,line_items,purchase_orders,employee,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,employee,payment_term" - | "applied_payments,line_items,purchase_orders,payment_term" - | "applied_payments,line_items,tracking_categories" - | "applied_payments,line_items,tracking_categories,accounting_period" - | "applied_payments,line_items,tracking_categories,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,company" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,company,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,contact" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,employee" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,employee,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,payment_term" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,company" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,payment_term" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,payment_term" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,payment_term" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,payment_term" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,payment_term" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,employee" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,payment_term" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,payment_term" - | "applied_payments,line_items,tracking_categories,company" - | "applied_payments,line_items,tracking_categories,company,accounting_period" - | "applied_payments,line_items,tracking_categories,company,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,company,employee" - | "applied_payments,line_items,tracking_categories,company,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,company,employee,payment_term" - | "applied_payments,line_items,tracking_categories,company,payment_term" - | "applied_payments,line_items,tracking_categories,contact" - | "applied_payments,line_items,tracking_categories,contact,accounting_period" - | "applied_payments,line_items,tracking_categories,contact,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,contact,company" - | "applied_payments,line_items,tracking_categories,contact,company,accounting_period" - | "applied_payments,line_items,tracking_categories,contact,company,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,contact,company,employee" - | "applied_payments,line_items,tracking_categories,contact,company,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,contact,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,contact,company,employee,payment_term" - | "applied_payments,line_items,tracking_categories,contact,company,payment_term" - | "applied_payments,line_items,tracking_categories,contact,employee" - | "applied_payments,line_items,tracking_categories,contact,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,contact,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,contact,employee,payment_term" - | "applied_payments,line_items,tracking_categories,contact,payment_term" - | "applied_payments,line_items,tracking_categories,employee" - | "applied_payments,line_items,tracking_categories,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,employee,payment_term" - | "applied_payments,line_items,tracking_categories,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders" - | "applied_payments,line_items,tracking_categories,purchase_orders,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,company" - | "applied_payments,line_items,tracking_categories,purchase_orders,company,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,company,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,company,employee" - | "applied_payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,company,employee,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,company,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,contact" - | "applied_payments,line_items,tracking_categories,purchase_orders,contact,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,contact,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,contact,company" - | "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee" - | "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,contact,employee" - | "applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,contact,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,employee" - | "applied_payments,line_items,tracking_categories,purchase_orders,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,employee,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,payment_term" - | "applied_payments,payment_term" - | "applied_payments,purchase_orders" - | "applied_payments,purchase_orders,accounting_period" - | "applied_payments,purchase_orders,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes" - | "applied_payments,purchase_orders,applied_credit_notes,accounting_period" - | "applied_payments,purchase_orders,applied_credit_notes,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,company" - | "applied_payments,purchase_orders,applied_credit_notes,company,accounting_period" - | "applied_payments,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,company,employee" - | "applied_payments,purchase_orders,applied_credit_notes,company,employee,accounting_period" - | "applied_payments,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,company,employee,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,company,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,contact" - | "applied_payments,purchase_orders,applied_credit_notes,contact,accounting_period" - | "applied_payments,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,contact,company" - | "applied_payments,purchase_orders,applied_credit_notes,contact,company,accounting_period" - | "applied_payments,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,contact,company,employee" - | "applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - | "applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,contact,company,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,contact,employee" - | "applied_payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - | "applied_payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,contact,employee,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,contact,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,employee" - | "applied_payments,purchase_orders,applied_credit_notes,employee,accounting_period" - | "applied_payments,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,employee,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,payment_term" - | "applied_payments,purchase_orders,applied_vendor_credits" - | "applied_payments,purchase_orders,applied_vendor_credits,accounting_period" - | "applied_payments,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_vendor_credits,company" - | "applied_payments,purchase_orders,applied_vendor_credits,company,accounting_period" - | "applied_payments,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_vendor_credits,company,employee" - | "applied_payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - | "applied_payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_vendor_credits,company,employee,payment_term" - | "applied_payments,purchase_orders,applied_vendor_credits,company,payment_term" - | "applied_payments,purchase_orders,applied_vendor_credits,contact" - | "applied_payments,purchase_orders,applied_vendor_credits,contact,accounting_period" - | "applied_payments,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_vendor_credits,contact,company" - | "applied_payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - | "applied_payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee" - | "applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_payments,purchase_orders,applied_vendor_credits,contact,company,payment_term" - | "applied_payments,purchase_orders,applied_vendor_credits,contact,employee" - | "applied_payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - | "applied_payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - | "applied_payments,purchase_orders,applied_vendor_credits,contact,payment_term" - | "applied_payments,purchase_orders,applied_vendor_credits,employee" - | "applied_payments,purchase_orders,applied_vendor_credits,employee,accounting_period" - | "applied_payments,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_vendor_credits,employee,payment_term" - | "applied_payments,purchase_orders,applied_vendor_credits,payment_term" - | "applied_payments,purchase_orders,company" - | "applied_payments,purchase_orders,company,accounting_period" - | "applied_payments,purchase_orders,company,accounting_period,payment_term" - | "applied_payments,purchase_orders,company,employee" - | "applied_payments,purchase_orders,company,employee,accounting_period" - | "applied_payments,purchase_orders,company,employee,accounting_period,payment_term" - | "applied_payments,purchase_orders,company,employee,payment_term" - | "applied_payments,purchase_orders,company,payment_term" - | "applied_payments,purchase_orders,contact" - | "applied_payments,purchase_orders,contact,accounting_period" - | "applied_payments,purchase_orders,contact,accounting_period,payment_term" - | "applied_payments,purchase_orders,contact,company" - | "applied_payments,purchase_orders,contact,company,accounting_period" - | "applied_payments,purchase_orders,contact,company,accounting_period,payment_term" - | "applied_payments,purchase_orders,contact,company,employee" - | "applied_payments,purchase_orders,contact,company,employee,accounting_period" - | "applied_payments,purchase_orders,contact,company,employee,accounting_period,payment_term" - | "applied_payments,purchase_orders,contact,company,employee,payment_term" - | "applied_payments,purchase_orders,contact,company,payment_term" - | "applied_payments,purchase_orders,contact,employee" - | "applied_payments,purchase_orders,contact,employee,accounting_period" - | "applied_payments,purchase_orders,contact,employee,accounting_period,payment_term" - | "applied_payments,purchase_orders,contact,employee,payment_term" - | "applied_payments,purchase_orders,contact,payment_term" - | "applied_payments,purchase_orders,employee" - | "applied_payments,purchase_orders,employee,accounting_period" - | "applied_payments,purchase_orders,employee,accounting_period,payment_term" - | "applied_payments,purchase_orders,employee,payment_term" - | "applied_payments,purchase_orders,payment_term" - | "applied_payments,tracking_categories" - | "applied_payments,tracking_categories,accounting_period" - | "applied_payments,tracking_categories,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes" - | "applied_payments,tracking_categories,applied_credit_notes,accounting_period" - | "applied_payments,tracking_categories,applied_credit_notes,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,company" - | "applied_payments,tracking_categories,applied_credit_notes,company,accounting_period" - | "applied_payments,tracking_categories,applied_credit_notes,company,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,company,employee" - | "applied_payments,tracking_categories,applied_credit_notes,company,employee,accounting_period" - | "applied_payments,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,company,employee,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,company,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,contact" - | "applied_payments,tracking_categories,applied_credit_notes,contact,accounting_period" - | "applied_payments,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,contact,company" - | "applied_payments,tracking_categories,applied_credit_notes,contact,company,accounting_period" - | "applied_payments,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,contact,company,employee" - | "applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period" - | "applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,contact,company,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,contact,employee" - | "applied_payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period" - | "applied_payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,contact,employee,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,contact,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,employee" - | "applied_payments,tracking_categories,applied_credit_notes,employee,accounting_period" - | "applied_payments,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,employee,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,payment_term" - | "applied_payments,tracking_categories,applied_vendor_credits" - | "applied_payments,tracking_categories,applied_vendor_credits,accounting_period" - | "applied_payments,tracking_categories,applied_vendor_credits,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_vendor_credits,company" - | "applied_payments,tracking_categories,applied_vendor_credits,company,accounting_period" - | "applied_payments,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_vendor_credits,company,employee" - | "applied_payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period" - | "applied_payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_vendor_credits,company,employee,payment_term" - | "applied_payments,tracking_categories,applied_vendor_credits,company,payment_term" - | "applied_payments,tracking_categories,applied_vendor_credits,contact" - | "applied_payments,tracking_categories,applied_vendor_credits,contact,accounting_period" - | "applied_payments,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_vendor_credits,contact,company" - | "applied_payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period" - | "applied_payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee" - | "applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_payments,tracking_categories,applied_vendor_credits,contact,company,payment_term" - | "applied_payments,tracking_categories,applied_vendor_credits,contact,employee" - | "applied_payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period" - | "applied_payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_vendor_credits,contact,employee,payment_term" - | "applied_payments,tracking_categories,applied_vendor_credits,contact,payment_term" - | "applied_payments,tracking_categories,applied_vendor_credits,employee" - | "applied_payments,tracking_categories,applied_vendor_credits,employee,accounting_period" - | "applied_payments,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_vendor_credits,employee,payment_term" - | "applied_payments,tracking_categories,applied_vendor_credits,payment_term" - | "applied_payments,tracking_categories,company" - | "applied_payments,tracking_categories,company,accounting_period" - | "applied_payments,tracking_categories,company,accounting_period,payment_term" - | "applied_payments,tracking_categories,company,employee" - | "applied_payments,tracking_categories,company,employee,accounting_period" - | "applied_payments,tracking_categories,company,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,company,employee,payment_term" - | "applied_payments,tracking_categories,company,payment_term" - | "applied_payments,tracking_categories,contact" - | "applied_payments,tracking_categories,contact,accounting_period" - | "applied_payments,tracking_categories,contact,accounting_period,payment_term" - | "applied_payments,tracking_categories,contact,company" - | "applied_payments,tracking_categories,contact,company,accounting_period" - | "applied_payments,tracking_categories,contact,company,accounting_period,payment_term" - | "applied_payments,tracking_categories,contact,company,employee" - | "applied_payments,tracking_categories,contact,company,employee,accounting_period" - | "applied_payments,tracking_categories,contact,company,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,contact,company,employee,payment_term" - | "applied_payments,tracking_categories,contact,company,payment_term" - | "applied_payments,tracking_categories,contact,employee" - | "applied_payments,tracking_categories,contact,employee,accounting_period" - | "applied_payments,tracking_categories,contact,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,contact,employee,payment_term" - | "applied_payments,tracking_categories,contact,payment_term" - | "applied_payments,tracking_categories,employee" - | "applied_payments,tracking_categories,employee,accounting_period" - | "applied_payments,tracking_categories,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,employee,payment_term" - | "applied_payments,tracking_categories,payment_term" - | "applied_payments,tracking_categories,purchase_orders" - | "applied_payments,tracking_categories,purchase_orders,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,payment_term" - | "applied_payments,tracking_categories,purchase_orders,company" - | "applied_payments,tracking_categories,purchase_orders,company,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,company,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,company,employee" - | "applied_payments,tracking_categories,purchase_orders,company,employee,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,company,employee,payment_term" - | "applied_payments,tracking_categories,purchase_orders,company,payment_term" - | "applied_payments,tracking_categories,purchase_orders,contact" - | "applied_payments,tracking_categories,purchase_orders,contact,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,contact,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,contact,company" - | "applied_payments,tracking_categories,purchase_orders,contact,company,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,contact,company,employee" - | "applied_payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,contact,company,employee,payment_term" - | "applied_payments,tracking_categories,purchase_orders,contact,company,payment_term" - | "applied_payments,tracking_categories,purchase_orders,contact,employee" - | "applied_payments,tracking_categories,purchase_orders,contact,employee,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,contact,employee,payment_term" - | "applied_payments,tracking_categories,purchase_orders,contact,payment_term" - | "applied_payments,tracking_categories,purchase_orders,employee" - | "applied_payments,tracking_categories,purchase_orders,employee,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,employee,payment_term" - | "applied_payments,tracking_categories,purchase_orders,payment_term" - | "applied_vendor_credits" - | "applied_vendor_credits,accounting_period" - | "applied_vendor_credits,accounting_period,payment_term" - | "applied_vendor_credits,company" - | "applied_vendor_credits,company,accounting_period" - | "applied_vendor_credits,company,accounting_period,payment_term" - | "applied_vendor_credits,company,employee" - | "applied_vendor_credits,company,employee,accounting_period" - | "applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_vendor_credits,company,employee,payment_term" - | "applied_vendor_credits,company,payment_term" - | "applied_vendor_credits,contact" - | "applied_vendor_credits,contact,accounting_period" - | "applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_vendor_credits,contact,company" - | "applied_vendor_credits,contact,company,accounting_period" - | "applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_vendor_credits,contact,company,employee" - | "applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_vendor_credits,contact,company,employee,payment_term" - | "applied_vendor_credits,contact,company,payment_term" - | "applied_vendor_credits,contact,employee" - | "applied_vendor_credits,contact,employee,accounting_period" - | "applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_vendor_credits,contact,employee,payment_term" - | "applied_vendor_credits,contact,payment_term" - | "applied_vendor_credits,employee" - | "applied_vendor_credits,employee,accounting_period" - | "applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_vendor_credits,employee,payment_term" - | "applied_vendor_credits,payment_term" - | "company" - | "company,accounting_period" - | "company,accounting_period,payment_term" - | "company,employee" - | "company,employee,accounting_period" - | "company,employee,accounting_period,payment_term" - | "company,employee,payment_term" - | "company,payment_term" - | "contact" - | "contact,accounting_period" - | "contact,accounting_period,payment_term" - | "contact,company" - | "contact,company,accounting_period" - | "contact,company,accounting_period,payment_term" - | "contact,company,employee" - | "contact,company,employee,accounting_period" - | "contact,company,employee,accounting_period,payment_term" - | "contact,company,employee,payment_term" - | "contact,company,payment_term" - | "contact,employee" - | "contact,employee,accounting_period" - | "contact,employee,accounting_period,payment_term" - | "contact,employee,payment_term" - | "contact,payment_term" - | "employee" - | "employee,accounting_period" - | "employee,accounting_period,payment_term" - | "employee,payment_term" - | "line_items" - | "line_items,accounting_period" - | "line_items,accounting_period,payment_term" - | "line_items,applied_credit_notes" - | "line_items,applied_credit_notes,accounting_period" - | "line_items,applied_credit_notes,accounting_period,payment_term" - | "line_items,applied_credit_notes,applied_vendor_credits" - | "line_items,applied_credit_notes,applied_vendor_credits,accounting_period" - | "line_items,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "line_items,applied_credit_notes,applied_vendor_credits,company" - | "line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "line_items,applied_credit_notes,applied_vendor_credits,company,employee" - | "line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "line_items,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "line_items,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "line_items,applied_credit_notes,applied_vendor_credits,contact" - | "line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "line_items,applied_credit_notes,applied_vendor_credits,contact,company" - | "line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "line_items,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "line_items,applied_credit_notes,applied_vendor_credits,contact,employee" - | "line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "line_items,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "line_items,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "line_items,applied_credit_notes,applied_vendor_credits,employee" - | "line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "line_items,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "line_items,applied_credit_notes,applied_vendor_credits,payment_term" - | "line_items,applied_credit_notes,company" - | "line_items,applied_credit_notes,company,accounting_period" - | "line_items,applied_credit_notes,company,accounting_period,payment_term" - | "line_items,applied_credit_notes,company,employee" - | "line_items,applied_credit_notes,company,employee,accounting_period" - | "line_items,applied_credit_notes,company,employee,accounting_period,payment_term" - | "line_items,applied_credit_notes,company,employee,payment_term" - | "line_items,applied_credit_notes,company,payment_term" - | "line_items,applied_credit_notes,contact" - | "line_items,applied_credit_notes,contact,accounting_period" - | "line_items,applied_credit_notes,contact,accounting_period,payment_term" - | "line_items,applied_credit_notes,contact,company" - | "line_items,applied_credit_notes,contact,company,accounting_period" - | "line_items,applied_credit_notes,contact,company,accounting_period,payment_term" - | "line_items,applied_credit_notes,contact,company,employee" - | "line_items,applied_credit_notes,contact,company,employee,accounting_period" - | "line_items,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "line_items,applied_credit_notes,contact,company,employee,payment_term" - | "line_items,applied_credit_notes,contact,company,payment_term" - | "line_items,applied_credit_notes,contact,employee" - | "line_items,applied_credit_notes,contact,employee,accounting_period" - | "line_items,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "line_items,applied_credit_notes,contact,employee,payment_term" - | "line_items,applied_credit_notes,contact,payment_term" - | "line_items,applied_credit_notes,employee" - | "line_items,applied_credit_notes,employee,accounting_period" - | "line_items,applied_credit_notes,employee,accounting_period,payment_term" - | "line_items,applied_credit_notes,employee,payment_term" - | "line_items,applied_credit_notes,payment_term" - | "line_items,applied_vendor_credits" - | "line_items,applied_vendor_credits,accounting_period" - | "line_items,applied_vendor_credits,accounting_period,payment_term" - | "line_items,applied_vendor_credits,company" - | "line_items,applied_vendor_credits,company,accounting_period" - | "line_items,applied_vendor_credits,company,accounting_period,payment_term" - | "line_items,applied_vendor_credits,company,employee" - | "line_items,applied_vendor_credits,company,employee,accounting_period" - | "line_items,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "line_items,applied_vendor_credits,company,employee,payment_term" - | "line_items,applied_vendor_credits,company,payment_term" - | "line_items,applied_vendor_credits,contact" - | "line_items,applied_vendor_credits,contact,accounting_period" - | "line_items,applied_vendor_credits,contact,accounting_period,payment_term" - | "line_items,applied_vendor_credits,contact,company" - | "line_items,applied_vendor_credits,contact,company,accounting_period" - | "line_items,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "line_items,applied_vendor_credits,contact,company,employee" - | "line_items,applied_vendor_credits,contact,company,employee,accounting_period" - | "line_items,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "line_items,applied_vendor_credits,contact,company,employee,payment_term" - | "line_items,applied_vendor_credits,contact,company,payment_term" - | "line_items,applied_vendor_credits,contact,employee" - | "line_items,applied_vendor_credits,contact,employee,accounting_period" - | "line_items,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "line_items,applied_vendor_credits,contact,employee,payment_term" - | "line_items,applied_vendor_credits,contact,payment_term" - | "line_items,applied_vendor_credits,employee" - | "line_items,applied_vendor_credits,employee,accounting_period" - | "line_items,applied_vendor_credits,employee,accounting_period,payment_term" - | "line_items,applied_vendor_credits,employee,payment_term" - | "line_items,applied_vendor_credits,payment_term" - | "line_items,company" - | "line_items,company,accounting_period" - | "line_items,company,accounting_period,payment_term" - | "line_items,company,employee" - | "line_items,company,employee,accounting_period" - | "line_items,company,employee,accounting_period,payment_term" - | "line_items,company,employee,payment_term" - | "line_items,company,payment_term" - | "line_items,contact" - | "line_items,contact,accounting_period" - | "line_items,contact,accounting_period,payment_term" - | "line_items,contact,company" - | "line_items,contact,company,accounting_period" - | "line_items,contact,company,accounting_period,payment_term" - | "line_items,contact,company,employee" - | "line_items,contact,company,employee,accounting_period" - | "line_items,contact,company,employee,accounting_period,payment_term" - | "line_items,contact,company,employee,payment_term" - | "line_items,contact,company,payment_term" - | "line_items,contact,employee" - | "line_items,contact,employee,accounting_period" - | "line_items,contact,employee,accounting_period,payment_term" - | "line_items,contact,employee,payment_term" - | "line_items,contact,payment_term" - | "line_items,employee" - | "line_items,employee,accounting_period" - | "line_items,employee,accounting_period,payment_term" - | "line_items,employee,payment_term" - | "line_items,payment_term" - | "line_items,purchase_orders" - | "line_items,purchase_orders,accounting_period" - | "line_items,purchase_orders,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes" - | "line_items,purchase_orders,applied_credit_notes,accounting_period" - | "line_items,purchase_orders,applied_credit_notes,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - | "line_items,purchase_orders,applied_credit_notes,company" - | "line_items,purchase_orders,applied_credit_notes,company,accounting_period" - | "line_items,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes,company,employee" - | "line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period" - | "line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes,company,employee,payment_term" - | "line_items,purchase_orders,applied_credit_notes,company,payment_term" - | "line_items,purchase_orders,applied_credit_notes,contact" - | "line_items,purchase_orders,applied_credit_notes,contact,accounting_period" - | "line_items,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes,contact,company" - | "line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period" - | "line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes,contact,company,employee" - | "line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - | "line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - | "line_items,purchase_orders,applied_credit_notes,contact,company,payment_term" - | "line_items,purchase_orders,applied_credit_notes,contact,employee" - | "line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - | "line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes,contact,employee,payment_term" - | "line_items,purchase_orders,applied_credit_notes,contact,payment_term" - | "line_items,purchase_orders,applied_credit_notes,employee" - | "line_items,purchase_orders,applied_credit_notes,employee,accounting_period" - | "line_items,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes,employee,payment_term" - | "line_items,purchase_orders,applied_credit_notes,payment_term" - | "line_items,purchase_orders,applied_vendor_credits" - | "line_items,purchase_orders,applied_vendor_credits,accounting_period" - | "line_items,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - | "line_items,purchase_orders,applied_vendor_credits,company" - | "line_items,purchase_orders,applied_vendor_credits,company,accounting_period" - | "line_items,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - | "line_items,purchase_orders,applied_vendor_credits,company,employee" - | "line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - | "line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "line_items,purchase_orders,applied_vendor_credits,company,employee,payment_term" - | "line_items,purchase_orders,applied_vendor_credits,company,payment_term" - | "line_items,purchase_orders,applied_vendor_credits,contact" - | "line_items,purchase_orders,applied_vendor_credits,contact,accounting_period" - | "line_items,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - | "line_items,purchase_orders,applied_vendor_credits,contact,company" - | "line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - | "line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "line_items,purchase_orders,applied_vendor_credits,contact,company,employee" - | "line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - | "line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "line_items,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - | "line_items,purchase_orders,applied_vendor_credits,contact,company,payment_term" - | "line_items,purchase_orders,applied_vendor_credits,contact,employee" - | "line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - | "line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "line_items,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - | "line_items,purchase_orders,applied_vendor_credits,contact,payment_term" - | "line_items,purchase_orders,applied_vendor_credits,employee" - | "line_items,purchase_orders,applied_vendor_credits,employee,accounting_period" - | "line_items,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - | "line_items,purchase_orders,applied_vendor_credits,employee,payment_term" - | "line_items,purchase_orders,applied_vendor_credits,payment_term" - | "line_items,purchase_orders,company" - | "line_items,purchase_orders,company,accounting_period" - | "line_items,purchase_orders,company,accounting_period,payment_term" - | "line_items,purchase_orders,company,employee" - | "line_items,purchase_orders,company,employee,accounting_period" - | "line_items,purchase_orders,company,employee,accounting_period,payment_term" - | "line_items,purchase_orders,company,employee,payment_term" - | "line_items,purchase_orders,company,payment_term" - | "line_items,purchase_orders,contact" - | "line_items,purchase_orders,contact,accounting_period" - | "line_items,purchase_orders,contact,accounting_period,payment_term" - | "line_items,purchase_orders,contact,company" - | "line_items,purchase_orders,contact,company,accounting_period" - | "line_items,purchase_orders,contact,company,accounting_period,payment_term" - | "line_items,purchase_orders,contact,company,employee" - | "line_items,purchase_orders,contact,company,employee,accounting_period" - | "line_items,purchase_orders,contact,company,employee,accounting_period,payment_term" - | "line_items,purchase_orders,contact,company,employee,payment_term" - | "line_items,purchase_orders,contact,company,payment_term" - | "line_items,purchase_orders,contact,employee" - | "line_items,purchase_orders,contact,employee,accounting_period" - | "line_items,purchase_orders,contact,employee,accounting_period,payment_term" - | "line_items,purchase_orders,contact,employee,payment_term" - | "line_items,purchase_orders,contact,payment_term" - | "line_items,purchase_orders,employee" - | "line_items,purchase_orders,employee,accounting_period" - | "line_items,purchase_orders,employee,accounting_period,payment_term" - | "line_items,purchase_orders,employee,payment_term" - | "line_items,purchase_orders,payment_term" - | "line_items,tracking_categories" - | "line_items,tracking_categories,accounting_period" - | "line_items,tracking_categories,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes" - | "line_items,tracking_categories,applied_credit_notes,accounting_period" - | "line_items,tracking_categories,applied_credit_notes,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term" - | "line_items,tracking_categories,applied_credit_notes,company" - | "line_items,tracking_categories,applied_credit_notes,company,accounting_period" - | "line_items,tracking_categories,applied_credit_notes,company,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes,company,employee" - | "line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period" - | "line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes,company,employee,payment_term" - | "line_items,tracking_categories,applied_credit_notes,company,payment_term" - | "line_items,tracking_categories,applied_credit_notes,contact" - | "line_items,tracking_categories,applied_credit_notes,contact,accounting_period" - | "line_items,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes,contact,company" - | "line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period" - | "line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes,contact,company,employee" - | "line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period" - | "line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes,contact,company,employee,payment_term" - | "line_items,tracking_categories,applied_credit_notes,contact,company,payment_term" - | "line_items,tracking_categories,applied_credit_notes,contact,employee" - | "line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period" - | "line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes,contact,employee,payment_term" - | "line_items,tracking_categories,applied_credit_notes,contact,payment_term" - | "line_items,tracking_categories,applied_credit_notes,employee" - | "line_items,tracking_categories,applied_credit_notes,employee,accounting_period" - | "line_items,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes,employee,payment_term" - | "line_items,tracking_categories,applied_credit_notes,payment_term" - | "line_items,tracking_categories,applied_vendor_credits" - | "line_items,tracking_categories,applied_vendor_credits,accounting_period" - | "line_items,tracking_categories,applied_vendor_credits,accounting_period,payment_term" - | "line_items,tracking_categories,applied_vendor_credits,company" - | "line_items,tracking_categories,applied_vendor_credits,company,accounting_period" - | "line_items,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term" - | "line_items,tracking_categories,applied_vendor_credits,company,employee" - | "line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period" - | "line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "line_items,tracking_categories,applied_vendor_credits,company,employee,payment_term" - | "line_items,tracking_categories,applied_vendor_credits,company,payment_term" - | "line_items,tracking_categories,applied_vendor_credits,contact" - | "line_items,tracking_categories,applied_vendor_credits,contact,accounting_period" - | "line_items,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term" - | "line_items,tracking_categories,applied_vendor_credits,contact,company" - | "line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period" - | "line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "line_items,tracking_categories,applied_vendor_credits,contact,company,employee" - | "line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period" - | "line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "line_items,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term" - | "line_items,tracking_categories,applied_vendor_credits,contact,company,payment_term" - | "line_items,tracking_categories,applied_vendor_credits,contact,employee" - | "line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period" - | "line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "line_items,tracking_categories,applied_vendor_credits,contact,employee,payment_term" - | "line_items,tracking_categories,applied_vendor_credits,contact,payment_term" - | "line_items,tracking_categories,applied_vendor_credits,employee" - | "line_items,tracking_categories,applied_vendor_credits,employee,accounting_period" - | "line_items,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term" - | "line_items,tracking_categories,applied_vendor_credits,employee,payment_term" - | "line_items,tracking_categories,applied_vendor_credits,payment_term" - | "line_items,tracking_categories,company" - | "line_items,tracking_categories,company,accounting_period" - | "line_items,tracking_categories,company,accounting_period,payment_term" - | "line_items,tracking_categories,company,employee" - | "line_items,tracking_categories,company,employee,accounting_period" - | "line_items,tracking_categories,company,employee,accounting_period,payment_term" - | "line_items,tracking_categories,company,employee,payment_term" - | "line_items,tracking_categories,company,payment_term" - | "line_items,tracking_categories,contact" - | "line_items,tracking_categories,contact,accounting_period" - | "line_items,tracking_categories,contact,accounting_period,payment_term" - | "line_items,tracking_categories,contact,company" - | "line_items,tracking_categories,contact,company,accounting_period" - | "line_items,tracking_categories,contact,company,accounting_period,payment_term" - | "line_items,tracking_categories,contact,company,employee" - | "line_items,tracking_categories,contact,company,employee,accounting_period" - | "line_items,tracking_categories,contact,company,employee,accounting_period,payment_term" - | "line_items,tracking_categories,contact,company,employee,payment_term" - | "line_items,tracking_categories,contact,company,payment_term" - | "line_items,tracking_categories,contact,employee" - | "line_items,tracking_categories,contact,employee,accounting_period" - | "line_items,tracking_categories,contact,employee,accounting_period,payment_term" - | "line_items,tracking_categories,contact,employee,payment_term" - | "line_items,tracking_categories,contact,payment_term" - | "line_items,tracking_categories,employee" - | "line_items,tracking_categories,employee,accounting_period" - | "line_items,tracking_categories,employee,accounting_period,payment_term" - | "line_items,tracking_categories,employee,payment_term" - | "line_items,tracking_categories,payment_term" - | "line_items,tracking_categories,purchase_orders" - | "line_items,tracking_categories,purchase_orders,accounting_period" - | "line_items,tracking_categories,purchase_orders,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,company" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,employee" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,payment_term" - | "line_items,tracking_categories,purchase_orders,company" - | "line_items,tracking_categories,purchase_orders,company,accounting_period" - | "line_items,tracking_categories,purchase_orders,company,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,company,employee" - | "line_items,tracking_categories,purchase_orders,company,employee,accounting_period" - | "line_items,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,company,employee,payment_term" - | "line_items,tracking_categories,purchase_orders,company,payment_term" - | "line_items,tracking_categories,purchase_orders,contact" - | "line_items,tracking_categories,purchase_orders,contact,accounting_period" - | "line_items,tracking_categories,purchase_orders,contact,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,contact,company" - | "line_items,tracking_categories,purchase_orders,contact,company,accounting_period" - | "line_items,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,contact,company,employee" - | "line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period" - | "line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,contact,company,employee,payment_term" - | "line_items,tracking_categories,purchase_orders,contact,company,payment_term" - | "line_items,tracking_categories,purchase_orders,contact,employee" - | "line_items,tracking_categories,purchase_orders,contact,employee,accounting_period" - | "line_items,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,contact,employee,payment_term" - | "line_items,tracking_categories,purchase_orders,contact,payment_term" - | "line_items,tracking_categories,purchase_orders,employee" - | "line_items,tracking_categories,purchase_orders,employee,accounting_period" - | "line_items,tracking_categories,purchase_orders,employee,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,employee,payment_term" - | "line_items,tracking_categories,purchase_orders,payment_term" - | "payment_term" - | "payments" - | "payments,accounting_period" - | "payments,accounting_period,payment_term" - | "payments,applied_credit_notes" - | "payments,applied_credit_notes,accounting_period" - | "payments,applied_credit_notes,accounting_period,payment_term" - | "payments,applied_credit_notes,applied_vendor_credits" - | "payments,applied_credit_notes,applied_vendor_credits,accounting_period" - | "payments,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_credit_notes,applied_vendor_credits,company" - | "payments,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "payments,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_credit_notes,applied_vendor_credits,company,employee" - | "payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "payments,applied_credit_notes,applied_vendor_credits,contact" - | "payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_credit_notes,applied_vendor_credits,contact,company" - | "payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_credit_notes,applied_vendor_credits,contact,employee" - | "payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "payments,applied_credit_notes,applied_vendor_credits,employee" - | "payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "payments,applied_credit_notes,applied_vendor_credits,payment_term" - | "payments,applied_credit_notes,company" - | "payments,applied_credit_notes,company,accounting_period" - | "payments,applied_credit_notes,company,accounting_period,payment_term" - | "payments,applied_credit_notes,company,employee" - | "payments,applied_credit_notes,company,employee,accounting_period" - | "payments,applied_credit_notes,company,employee,accounting_period,payment_term" - | "payments,applied_credit_notes,company,employee,payment_term" - | "payments,applied_credit_notes,company,payment_term" - | "payments,applied_credit_notes,contact" - | "payments,applied_credit_notes,contact,accounting_period" - | "payments,applied_credit_notes,contact,accounting_period,payment_term" - | "payments,applied_credit_notes,contact,company" - | "payments,applied_credit_notes,contact,company,accounting_period" - | "payments,applied_credit_notes,contact,company,accounting_period,payment_term" - | "payments,applied_credit_notes,contact,company,employee" - | "payments,applied_credit_notes,contact,company,employee,accounting_period" - | "payments,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "payments,applied_credit_notes,contact,company,employee,payment_term" - | "payments,applied_credit_notes,contact,company,payment_term" - | "payments,applied_credit_notes,contact,employee" - | "payments,applied_credit_notes,contact,employee,accounting_period" - | "payments,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "payments,applied_credit_notes,contact,employee,payment_term" - | "payments,applied_credit_notes,contact,payment_term" - | "payments,applied_credit_notes,employee" - | "payments,applied_credit_notes,employee,accounting_period" - | "payments,applied_credit_notes,employee,accounting_period,payment_term" - | "payments,applied_credit_notes,employee,payment_term" - | "payments,applied_credit_notes,payment_term" - | "payments,applied_payments" - | "payments,applied_payments,accounting_period" - | "payments,applied_payments,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes" - | "payments,applied_payments,applied_credit_notes,accounting_period" - | "payments,applied_payments,applied_credit_notes,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,accounting_period" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,employee" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,employee" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,payment_term" - | "payments,applied_payments,applied_credit_notes,company" - | "payments,applied_payments,applied_credit_notes,company,accounting_period" - | "payments,applied_payments,applied_credit_notes,company,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes,company,employee" - | "payments,applied_payments,applied_credit_notes,company,employee,accounting_period" - | "payments,applied_payments,applied_credit_notes,company,employee,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes,company,employee,payment_term" - | "payments,applied_payments,applied_credit_notes,company,payment_term" - | "payments,applied_payments,applied_credit_notes,contact" - | "payments,applied_payments,applied_credit_notes,contact,accounting_period" - | "payments,applied_payments,applied_credit_notes,contact,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes,contact,company" - | "payments,applied_payments,applied_credit_notes,contact,company,accounting_period" - | "payments,applied_payments,applied_credit_notes,contact,company,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes,contact,company,employee" - | "payments,applied_payments,applied_credit_notes,contact,company,employee,accounting_period" - | "payments,applied_payments,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes,contact,company,employee,payment_term" - | "payments,applied_payments,applied_credit_notes,contact,company,payment_term" - | "payments,applied_payments,applied_credit_notes,contact,employee" - | "payments,applied_payments,applied_credit_notes,contact,employee,accounting_period" - | "payments,applied_payments,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes,contact,employee,payment_term" - | "payments,applied_payments,applied_credit_notes,contact,payment_term" - | "payments,applied_payments,applied_credit_notes,employee" - | "payments,applied_payments,applied_credit_notes,employee,accounting_period" - | "payments,applied_payments,applied_credit_notes,employee,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes,employee,payment_term" - | "payments,applied_payments,applied_credit_notes,payment_term" - | "payments,applied_payments,applied_vendor_credits" - | "payments,applied_payments,applied_vendor_credits,accounting_period" - | "payments,applied_payments,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_payments,applied_vendor_credits,company" - | "payments,applied_payments,applied_vendor_credits,company,accounting_period" - | "payments,applied_payments,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_payments,applied_vendor_credits,company,employee" - | "payments,applied_payments,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_payments,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_payments,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_payments,applied_vendor_credits,company,payment_term" - | "payments,applied_payments,applied_vendor_credits,contact" - | "payments,applied_payments,applied_vendor_credits,contact,accounting_period" - | "payments,applied_payments,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_payments,applied_vendor_credits,contact,company" - | "payments,applied_payments,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_payments,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_payments,applied_vendor_credits,contact,company,employee" - | "payments,applied_payments,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_payments,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_payments,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_payments,applied_vendor_credits,contact,employee" - | "payments,applied_payments,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_payments,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_payments,applied_vendor_credits,contact,payment_term" - | "payments,applied_payments,applied_vendor_credits,employee" - | "payments,applied_payments,applied_vendor_credits,employee,accounting_period" - | "payments,applied_payments,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_payments,applied_vendor_credits,employee,payment_term" - | "payments,applied_payments,applied_vendor_credits,payment_term" - | "payments,applied_payments,company" - | "payments,applied_payments,company,accounting_period" - | "payments,applied_payments,company,accounting_period,payment_term" - | "payments,applied_payments,company,employee" - | "payments,applied_payments,company,employee,accounting_period" - | "payments,applied_payments,company,employee,accounting_period,payment_term" - | "payments,applied_payments,company,employee,payment_term" - | "payments,applied_payments,company,payment_term" - | "payments,applied_payments,contact" - | "payments,applied_payments,contact,accounting_period" - | "payments,applied_payments,contact,accounting_period,payment_term" - | "payments,applied_payments,contact,company" - | "payments,applied_payments,contact,company,accounting_period" - | "payments,applied_payments,contact,company,accounting_period,payment_term" - | "payments,applied_payments,contact,company,employee" - | "payments,applied_payments,contact,company,employee,accounting_period" - | "payments,applied_payments,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,contact,company,employee,payment_term" - | "payments,applied_payments,contact,company,payment_term" - | "payments,applied_payments,contact,employee" - | "payments,applied_payments,contact,employee,accounting_period" - | "payments,applied_payments,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,contact,employee,payment_term" - | "payments,applied_payments,contact,payment_term" - | "payments,applied_payments,employee" - | "payments,applied_payments,employee,accounting_period" - | "payments,applied_payments,employee,accounting_period,payment_term" - | "payments,applied_payments,employee,payment_term" - | "payments,applied_payments,line_items" - | "payments,applied_payments,line_items,accounting_period" - | "payments,applied_payments,line_items,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes" - | "payments,applied_payments,line_items,applied_credit_notes,accounting_period" - | "payments,applied_payments,line_items,applied_credit_notes,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,company" - | "payments,applied_payments,line_items,applied_credit_notes,company,accounting_period" - | "payments,applied_payments,line_items,applied_credit_notes,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,company,employee" - | "payments,applied_payments,line_items,applied_credit_notes,company,employee,accounting_period" - | "payments,applied_payments,line_items,applied_credit_notes,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,company,employee,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,company,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,contact" - | "payments,applied_payments,line_items,applied_credit_notes,contact,accounting_period" - | "payments,applied_payments,line_items,applied_credit_notes,contact,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,contact,company" - | "payments,applied_payments,line_items,applied_credit_notes,contact,company,accounting_period" - | "payments,applied_payments,line_items,applied_credit_notes,contact,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,contact,company,employee" - | "payments,applied_payments,line_items,applied_credit_notes,contact,company,employee,accounting_period" - | "payments,applied_payments,line_items,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,contact,company,employee,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,contact,company,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,contact,employee" - | "payments,applied_payments,line_items,applied_credit_notes,contact,employee,accounting_period" - | "payments,applied_payments,line_items,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,contact,employee,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,contact,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,employee" - | "payments,applied_payments,line_items,applied_credit_notes,employee,accounting_period" - | "payments,applied_payments,line_items,applied_credit_notes,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,employee,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,payment_term" - | "payments,applied_payments,line_items,applied_vendor_credits" - | "payments,applied_payments,line_items,applied_vendor_credits,accounting_period" - | "payments,applied_payments,line_items,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_vendor_credits,company" - | "payments,applied_payments,line_items,applied_vendor_credits,company,accounting_period" - | "payments,applied_payments,line_items,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_vendor_credits,company,employee" - | "payments,applied_payments,line_items,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_payments,line_items,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_payments,line_items,applied_vendor_credits,company,payment_term" - | "payments,applied_payments,line_items,applied_vendor_credits,contact" - | "payments,applied_payments,line_items,applied_vendor_credits,contact,accounting_period" - | "payments,applied_payments,line_items,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_vendor_credits,contact,company" - | "payments,applied_payments,line_items,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_payments,line_items,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_vendor_credits,contact,company,employee" - | "payments,applied_payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_payments,line_items,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_payments,line_items,applied_vendor_credits,contact,employee" - | "payments,applied_payments,line_items,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_payments,line_items,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_payments,line_items,applied_vendor_credits,contact,payment_term" - | "payments,applied_payments,line_items,applied_vendor_credits,employee" - | "payments,applied_payments,line_items,applied_vendor_credits,employee,accounting_period" - | "payments,applied_payments,line_items,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_vendor_credits,employee,payment_term" - | "payments,applied_payments,line_items,applied_vendor_credits,payment_term" - | "payments,applied_payments,line_items,company" - | "payments,applied_payments,line_items,company,accounting_period" - | "payments,applied_payments,line_items,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,company,employee" - | "payments,applied_payments,line_items,company,employee,accounting_period" - | "payments,applied_payments,line_items,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,company,employee,payment_term" - | "payments,applied_payments,line_items,company,payment_term" - | "payments,applied_payments,line_items,contact" - | "payments,applied_payments,line_items,contact,accounting_period" - | "payments,applied_payments,line_items,contact,accounting_period,payment_term" - | "payments,applied_payments,line_items,contact,company" - | "payments,applied_payments,line_items,contact,company,accounting_period" - | "payments,applied_payments,line_items,contact,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,contact,company,employee" - | "payments,applied_payments,line_items,contact,company,employee,accounting_period" - | "payments,applied_payments,line_items,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,contact,company,employee,payment_term" - | "payments,applied_payments,line_items,contact,company,payment_term" - | "payments,applied_payments,line_items,contact,employee" - | "payments,applied_payments,line_items,contact,employee,accounting_period" - | "payments,applied_payments,line_items,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,contact,employee,payment_term" - | "payments,applied_payments,line_items,contact,payment_term" - | "payments,applied_payments,line_items,employee" - | "payments,applied_payments,line_items,employee,accounting_period" - | "payments,applied_payments,line_items,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,employee,payment_term" - | "payments,applied_payments,line_items,payment_term" - | "payments,applied_payments,line_items,purchase_orders" - | "payments,applied_payments,line_items,purchase_orders,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,employee" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,employee,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,employee" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,payment_term" - | "payments,applied_payments,line_items,purchase_orders,company" - | "payments,applied_payments,line_items,purchase_orders,company,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,company,employee" - | "payments,applied_payments,line_items,purchase_orders,company,employee,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,company,employee,payment_term" - | "payments,applied_payments,line_items,purchase_orders,company,payment_term" - | "payments,applied_payments,line_items,purchase_orders,contact" - | "payments,applied_payments,line_items,purchase_orders,contact,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,contact,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,contact,company" - | "payments,applied_payments,line_items,purchase_orders,contact,company,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,contact,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,contact,company,employee" - | "payments,applied_payments,line_items,purchase_orders,contact,company,employee,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,contact,company,employee,payment_term" - | "payments,applied_payments,line_items,purchase_orders,contact,company,payment_term" - | "payments,applied_payments,line_items,purchase_orders,contact,employee" - | "payments,applied_payments,line_items,purchase_orders,contact,employee,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,contact,employee,payment_term" - | "payments,applied_payments,line_items,purchase_orders,contact,payment_term" - | "payments,applied_payments,line_items,purchase_orders,employee" - | "payments,applied_payments,line_items,purchase_orders,employee,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,employee,payment_term" - | "payments,applied_payments,line_items,purchase_orders,payment_term" - | "payments,applied_payments,line_items,tracking_categories" - | "payments,applied_payments,line_items,tracking_categories,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,employee" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,employee" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,payment_term" - | "payments,applied_payments,line_items,tracking_categories,company" - | "payments,applied_payments,line_items,tracking_categories,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,company,employee" - | "payments,applied_payments,line_items,tracking_categories,company,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,company,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,company,payment_term" - | "payments,applied_payments,line_items,tracking_categories,contact" - | "payments,applied_payments,line_items,tracking_categories,contact,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,contact,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,contact,company" - | "payments,applied_payments,line_items,tracking_categories,contact,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,contact,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,contact,company,employee" - | "payments,applied_payments,line_items,tracking_categories,contact,company,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,contact,company,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,contact,company,payment_term" - | "payments,applied_payments,line_items,tracking_categories,contact,employee" - | "payments,applied_payments,line_items,tracking_categories,contact,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,contact,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,contact,payment_term" - | "payments,applied_payments,line_items,tracking_categories,employee" - | "payments,applied_payments,line_items,tracking_categories,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,company" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,employee" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,employee" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,employee" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,payment_term" - | "payments,applied_payments,payment_term" - | "payments,applied_payments,purchase_orders" - | "payments,applied_payments,purchase_orders,accounting_period" - | "payments,applied_payments,purchase_orders,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes" - | "payments,applied_payments,purchase_orders,applied_credit_notes,accounting_period" - | "payments,applied_payments,purchase_orders,applied_credit_notes,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,company" - | "payments,applied_payments,purchase_orders,applied_credit_notes,company,accounting_period" - | "payments,applied_payments,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,company,employee" - | "payments,applied_payments,purchase_orders,applied_credit_notes,company,employee,accounting_period" - | "payments,applied_payments,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,company,employee,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,company,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,contact" - | "payments,applied_payments,purchase_orders,applied_credit_notes,contact,accounting_period" - | "payments,applied_payments,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company" - | "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,accounting_period" - | "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,employee" - | "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - | "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,contact,employee" - | "payments,applied_payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - | "payments,applied_payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,contact,employee,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,contact,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,employee" - | "payments,applied_payments,purchase_orders,applied_credit_notes,employee,accounting_period" - | "payments,applied_payments,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,employee,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,payment_term" - | "payments,applied_payments,purchase_orders,applied_vendor_credits" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,accounting_period" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,company" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,company,accounting_period" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,company,employee" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,company,payment_term" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,contact" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,accounting_period" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,employee" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,payment_term" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,employee" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,employee,accounting_period" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,employee,payment_term" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,payment_term" - | "payments,applied_payments,purchase_orders,company" - | "payments,applied_payments,purchase_orders,company,accounting_period" - | "payments,applied_payments,purchase_orders,company,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,company,employee" - | "payments,applied_payments,purchase_orders,company,employee,accounting_period" - | "payments,applied_payments,purchase_orders,company,employee,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,company,employee,payment_term" - | "payments,applied_payments,purchase_orders,company,payment_term" - | "payments,applied_payments,purchase_orders,contact" - | "payments,applied_payments,purchase_orders,contact,accounting_period" - | "payments,applied_payments,purchase_orders,contact,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,contact,company" - | "payments,applied_payments,purchase_orders,contact,company,accounting_period" - | "payments,applied_payments,purchase_orders,contact,company,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,contact,company,employee" - | "payments,applied_payments,purchase_orders,contact,company,employee,accounting_period" - | "payments,applied_payments,purchase_orders,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,contact,company,employee,payment_term" - | "payments,applied_payments,purchase_orders,contact,company,payment_term" - | "payments,applied_payments,purchase_orders,contact,employee" - | "payments,applied_payments,purchase_orders,contact,employee,accounting_period" - | "payments,applied_payments,purchase_orders,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,contact,employee,payment_term" - | "payments,applied_payments,purchase_orders,contact,payment_term" - | "payments,applied_payments,purchase_orders,employee" - | "payments,applied_payments,purchase_orders,employee,accounting_period" - | "payments,applied_payments,purchase_orders,employee,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,employee,payment_term" - | "payments,applied_payments,purchase_orders,payment_term" - | "payments,applied_payments,tracking_categories" - | "payments,applied_payments,tracking_categories,accounting_period" - | "payments,applied_payments,tracking_categories,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes" - | "payments,applied_payments,tracking_categories,applied_credit_notes,accounting_period" - | "payments,applied_payments,tracking_categories,applied_credit_notes,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,company" - | "payments,applied_payments,tracking_categories,applied_credit_notes,company,accounting_period" - | "payments,applied_payments,tracking_categories,applied_credit_notes,company,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,company,employee" - | "payments,applied_payments,tracking_categories,applied_credit_notes,company,employee,accounting_period" - | "payments,applied_payments,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,company,employee,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,company,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,contact" - | "payments,applied_payments,tracking_categories,applied_credit_notes,contact,accounting_period" - | "payments,applied_payments,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company" - | "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,accounting_period" - | "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,employee" - | "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period" - | "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,contact,employee" - | "payments,applied_payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period" - | "payments,applied_payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,contact,employee,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,contact,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,employee" - | "payments,applied_payments,tracking_categories,applied_credit_notes,employee,accounting_period" - | "payments,applied_payments,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,employee,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,payment_term" - | "payments,applied_payments,tracking_categories,applied_vendor_credits" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,accounting_period" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,company" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,company,accounting_period" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,company,employee" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,company,payment_term" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,contact" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,accounting_period" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,employee" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,payment_term" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,employee" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,employee,accounting_period" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,employee,payment_term" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,payment_term" - | "payments,applied_payments,tracking_categories,company" - | "payments,applied_payments,tracking_categories,company,accounting_period" - | "payments,applied_payments,tracking_categories,company,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,company,employee" - | "payments,applied_payments,tracking_categories,company,employee,accounting_period" - | "payments,applied_payments,tracking_categories,company,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,company,employee,payment_term" - | "payments,applied_payments,tracking_categories,company,payment_term" - | "payments,applied_payments,tracking_categories,contact" - | "payments,applied_payments,tracking_categories,contact,accounting_period" - | "payments,applied_payments,tracking_categories,contact,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,contact,company" - | "payments,applied_payments,tracking_categories,contact,company,accounting_period" - | "payments,applied_payments,tracking_categories,contact,company,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,contact,company,employee" - | "payments,applied_payments,tracking_categories,contact,company,employee,accounting_period" - | "payments,applied_payments,tracking_categories,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,contact,company,employee,payment_term" - | "payments,applied_payments,tracking_categories,contact,company,payment_term" - | "payments,applied_payments,tracking_categories,contact,employee" - | "payments,applied_payments,tracking_categories,contact,employee,accounting_period" - | "payments,applied_payments,tracking_categories,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,contact,employee,payment_term" - | "payments,applied_payments,tracking_categories,contact,payment_term" - | "payments,applied_payments,tracking_categories,employee" - | "payments,applied_payments,tracking_categories,employee,accounting_period" - | "payments,applied_payments,tracking_categories,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,employee,payment_term" - | "payments,applied_payments,tracking_categories,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders" - | "payments,applied_payments,tracking_categories,purchase_orders,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,company" - | "payments,applied_payments,tracking_categories,purchase_orders,company,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,company,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,company,employee" - | "payments,applied_payments,tracking_categories,purchase_orders,company,employee,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,company,employee,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,company,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,contact" - | "payments,applied_payments,tracking_categories,purchase_orders,contact,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,contact,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,contact,company" - | "payments,applied_payments,tracking_categories,purchase_orders,contact,company,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,contact,company,employee" - | "payments,applied_payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,contact,company,employee,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,contact,company,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,contact,employee" - | "payments,applied_payments,tracking_categories,purchase_orders,contact,employee,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,contact,employee,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,contact,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,employee" - | "payments,applied_payments,tracking_categories,purchase_orders,employee,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,employee,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,payment_term" - | "payments,applied_vendor_credits" - | "payments,applied_vendor_credits,accounting_period" - | "payments,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_vendor_credits,company" - | "payments,applied_vendor_credits,company,accounting_period" - | "payments,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_vendor_credits,company,employee" - | "payments,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_vendor_credits,company,payment_term" - | "payments,applied_vendor_credits,contact" - | "payments,applied_vendor_credits,contact,accounting_period" - | "payments,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_vendor_credits,contact,company" - | "payments,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_vendor_credits,contact,company,employee" - | "payments,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_vendor_credits,contact,employee" - | "payments,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_vendor_credits,contact,payment_term" - | "payments,applied_vendor_credits,employee" - | "payments,applied_vendor_credits,employee,accounting_period" - | "payments,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_vendor_credits,employee,payment_term" - | "payments,applied_vendor_credits,payment_term" - | "payments,company" - | "payments,company,accounting_period" - | "payments,company,accounting_period,payment_term" - | "payments,company,employee" - | "payments,company,employee,accounting_period" - | "payments,company,employee,accounting_period,payment_term" - | "payments,company,employee,payment_term" - | "payments,company,payment_term" - | "payments,contact" - | "payments,contact,accounting_period" - | "payments,contact,accounting_period,payment_term" - | "payments,contact,company" - | "payments,contact,company,accounting_period" - | "payments,contact,company,accounting_period,payment_term" - | "payments,contact,company,employee" - | "payments,contact,company,employee,accounting_period" - | "payments,contact,company,employee,accounting_period,payment_term" - | "payments,contact,company,employee,payment_term" - | "payments,contact,company,payment_term" - | "payments,contact,employee" - | "payments,contact,employee,accounting_period" - | "payments,contact,employee,accounting_period,payment_term" - | "payments,contact,employee,payment_term" - | "payments,contact,payment_term" - | "payments,employee" - | "payments,employee,accounting_period" - | "payments,employee,accounting_period,payment_term" - | "payments,employee,payment_term" - | "payments,line_items" - | "payments,line_items,accounting_period" - | "payments,line_items,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes" - | "payments,line_items,applied_credit_notes,accounting_period" - | "payments,line_items,applied_credit_notes,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes,applied_vendor_credits" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,company" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,contact" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,employee" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,payment_term" - | "payments,line_items,applied_credit_notes,company" - | "payments,line_items,applied_credit_notes,company,accounting_period" - | "payments,line_items,applied_credit_notes,company,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes,company,employee" - | "payments,line_items,applied_credit_notes,company,employee,accounting_period" - | "payments,line_items,applied_credit_notes,company,employee,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes,company,employee,payment_term" - | "payments,line_items,applied_credit_notes,company,payment_term" - | "payments,line_items,applied_credit_notes,contact" - | "payments,line_items,applied_credit_notes,contact,accounting_period" - | "payments,line_items,applied_credit_notes,contact,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes,contact,company" - | "payments,line_items,applied_credit_notes,contact,company,accounting_period" - | "payments,line_items,applied_credit_notes,contact,company,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes,contact,company,employee" - | "payments,line_items,applied_credit_notes,contact,company,employee,accounting_period" - | "payments,line_items,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes,contact,company,employee,payment_term" - | "payments,line_items,applied_credit_notes,contact,company,payment_term" - | "payments,line_items,applied_credit_notes,contact,employee" - | "payments,line_items,applied_credit_notes,contact,employee,accounting_period" - | "payments,line_items,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes,contact,employee,payment_term" - | "payments,line_items,applied_credit_notes,contact,payment_term" - | "payments,line_items,applied_credit_notes,employee" - | "payments,line_items,applied_credit_notes,employee,accounting_period" - | "payments,line_items,applied_credit_notes,employee,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes,employee,payment_term" - | "payments,line_items,applied_credit_notes,payment_term" - | "payments,line_items,applied_vendor_credits" - | "payments,line_items,applied_vendor_credits,accounting_period" - | "payments,line_items,applied_vendor_credits,accounting_period,payment_term" - | "payments,line_items,applied_vendor_credits,company" - | "payments,line_items,applied_vendor_credits,company,accounting_period" - | "payments,line_items,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,line_items,applied_vendor_credits,company,employee" - | "payments,line_items,applied_vendor_credits,company,employee,accounting_period" - | "payments,line_items,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,line_items,applied_vendor_credits,company,employee,payment_term" - | "payments,line_items,applied_vendor_credits,company,payment_term" - | "payments,line_items,applied_vendor_credits,contact" - | "payments,line_items,applied_vendor_credits,contact,accounting_period" - | "payments,line_items,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,line_items,applied_vendor_credits,contact,company" - | "payments,line_items,applied_vendor_credits,contact,company,accounting_period" - | "payments,line_items,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,line_items,applied_vendor_credits,contact,company,employee" - | "payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,line_items,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,line_items,applied_vendor_credits,contact,company,payment_term" - | "payments,line_items,applied_vendor_credits,contact,employee" - | "payments,line_items,applied_vendor_credits,contact,employee,accounting_period" - | "payments,line_items,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,line_items,applied_vendor_credits,contact,employee,payment_term" - | "payments,line_items,applied_vendor_credits,contact,payment_term" - | "payments,line_items,applied_vendor_credits,employee" - | "payments,line_items,applied_vendor_credits,employee,accounting_period" - | "payments,line_items,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,line_items,applied_vendor_credits,employee,payment_term" - | "payments,line_items,applied_vendor_credits,payment_term" - | "payments,line_items,company" - | "payments,line_items,company,accounting_period" - | "payments,line_items,company,accounting_period,payment_term" - | "payments,line_items,company,employee" - | "payments,line_items,company,employee,accounting_period" - | "payments,line_items,company,employee,accounting_period,payment_term" - | "payments,line_items,company,employee,payment_term" - | "payments,line_items,company,payment_term" - | "payments,line_items,contact" - | "payments,line_items,contact,accounting_period" - | "payments,line_items,contact,accounting_period,payment_term" - | "payments,line_items,contact,company" - | "payments,line_items,contact,company,accounting_period" - | "payments,line_items,contact,company,accounting_period,payment_term" - | "payments,line_items,contact,company,employee" - | "payments,line_items,contact,company,employee,accounting_period" - | "payments,line_items,contact,company,employee,accounting_period,payment_term" - | "payments,line_items,contact,company,employee,payment_term" - | "payments,line_items,contact,company,payment_term" - | "payments,line_items,contact,employee" - | "payments,line_items,contact,employee,accounting_period" - | "payments,line_items,contact,employee,accounting_period,payment_term" - | "payments,line_items,contact,employee,payment_term" - | "payments,line_items,contact,payment_term" - | "payments,line_items,employee" - | "payments,line_items,employee,accounting_period" - | "payments,line_items,employee,accounting_period,payment_term" - | "payments,line_items,employee,payment_term" - | "payments,line_items,payment_term" - | "payments,line_items,purchase_orders" - | "payments,line_items,purchase_orders,accounting_period" - | "payments,line_items,purchase_orders,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes" - | "payments,line_items,purchase_orders,applied_credit_notes,accounting_period" - | "payments,line_items,purchase_orders,applied_credit_notes,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,company" - | "payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period" - | "payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,company,employee" - | "payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period" - | "payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,company,employee,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,company,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,contact" - | "payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period" - | "payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,contact,company" - | "payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period" - | "payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee" - | "payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - | "payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,contact,company,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,contact,employee" - | "payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - | "payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,contact,employee,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,contact,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,employee" - | "payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period" - | "payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,employee,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,payment_term" - | "payments,line_items,purchase_orders,applied_vendor_credits" - | "payments,line_items,purchase_orders,applied_vendor_credits,accounting_period" - | "payments,line_items,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_vendor_credits,company" - | "payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period" - | "payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_vendor_credits,company,employee" - | "payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - | "payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_vendor_credits,company,employee,payment_term" - | "payments,line_items,purchase_orders,applied_vendor_credits,company,payment_term" - | "payments,line_items,purchase_orders,applied_vendor_credits,contact" - | "payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period" - | "payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_vendor_credits,contact,company" - | "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - | "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee" - | "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,payment_term" - | "payments,line_items,purchase_orders,applied_vendor_credits,contact,employee" - | "payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - | "payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - | "payments,line_items,purchase_orders,applied_vendor_credits,contact,payment_term" - | "payments,line_items,purchase_orders,applied_vendor_credits,employee" - | "payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period" - | "payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_vendor_credits,employee,payment_term" - | "payments,line_items,purchase_orders,applied_vendor_credits,payment_term" - | "payments,line_items,purchase_orders,company" - | "payments,line_items,purchase_orders,company,accounting_period" - | "payments,line_items,purchase_orders,company,accounting_period,payment_term" - | "payments,line_items,purchase_orders,company,employee" - | "payments,line_items,purchase_orders,company,employee,accounting_period" - | "payments,line_items,purchase_orders,company,employee,accounting_period,payment_term" - | "payments,line_items,purchase_orders,company,employee,payment_term" - | "payments,line_items,purchase_orders,company,payment_term" - | "payments,line_items,purchase_orders,contact" - | "payments,line_items,purchase_orders,contact,accounting_period" - | "payments,line_items,purchase_orders,contact,accounting_period,payment_term" - | "payments,line_items,purchase_orders,contact,company" - | "payments,line_items,purchase_orders,contact,company,accounting_period" - | "payments,line_items,purchase_orders,contact,company,accounting_period,payment_term" - | "payments,line_items,purchase_orders,contact,company,employee" - | "payments,line_items,purchase_orders,contact,company,employee,accounting_period" - | "payments,line_items,purchase_orders,contact,company,employee,accounting_period,payment_term" - | "payments,line_items,purchase_orders,contact,company,employee,payment_term" - | "payments,line_items,purchase_orders,contact,company,payment_term" - | "payments,line_items,purchase_orders,contact,employee" - | "payments,line_items,purchase_orders,contact,employee,accounting_period" - | "payments,line_items,purchase_orders,contact,employee,accounting_period,payment_term" - | "payments,line_items,purchase_orders,contact,employee,payment_term" - | "payments,line_items,purchase_orders,contact,payment_term" - | "payments,line_items,purchase_orders,employee" - | "payments,line_items,purchase_orders,employee,accounting_period" - | "payments,line_items,purchase_orders,employee,accounting_period,payment_term" - | "payments,line_items,purchase_orders,employee,payment_term" - | "payments,line_items,purchase_orders,payment_term" - | "payments,line_items,tracking_categories" - | "payments,line_items,tracking_categories,accounting_period" - | "payments,line_items,tracking_categories,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes" - | "payments,line_items,tracking_categories,applied_credit_notes,accounting_period" - | "payments,line_items,tracking_categories,applied_credit_notes,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,company" - | "payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period" - | "payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,company,employee" - | "payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period" - | "payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,company,employee,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,company,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,contact" - | "payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period" - | "payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,contact,company" - | "payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period" - | "payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee" - | "payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period" - | "payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,contact,company,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,contact,employee" - | "payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period" - | "payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,contact,employee,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,contact,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,employee" - | "payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period" - | "payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,employee,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,payment_term" - | "payments,line_items,tracking_categories,applied_vendor_credits" - | "payments,line_items,tracking_categories,applied_vendor_credits,accounting_period" - | "payments,line_items,tracking_categories,applied_vendor_credits,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_vendor_credits,company" - | "payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period" - | "payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_vendor_credits,company,employee" - | "payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period" - | "payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_vendor_credits,company,employee,payment_term" - | "payments,line_items,tracking_categories,applied_vendor_credits,company,payment_term" - | "payments,line_items,tracking_categories,applied_vendor_credits,contact" - | "payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period" - | "payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_vendor_credits,contact,company" - | "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period" - | "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee" - | "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,payment_term" - | "payments,line_items,tracking_categories,applied_vendor_credits,contact,employee" - | "payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period" - | "payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,payment_term" - | "payments,line_items,tracking_categories,applied_vendor_credits,contact,payment_term" - | "payments,line_items,tracking_categories,applied_vendor_credits,employee" - | "payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period" - | "payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_vendor_credits,employee,payment_term" - | "payments,line_items,tracking_categories,applied_vendor_credits,payment_term" - | "payments,line_items,tracking_categories,company" - | "payments,line_items,tracking_categories,company,accounting_period" - | "payments,line_items,tracking_categories,company,accounting_period,payment_term" - | "payments,line_items,tracking_categories,company,employee" - | "payments,line_items,tracking_categories,company,employee,accounting_period" - | "payments,line_items,tracking_categories,company,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,company,employee,payment_term" - | "payments,line_items,tracking_categories,company,payment_term" - | "payments,line_items,tracking_categories,contact" - | "payments,line_items,tracking_categories,contact,accounting_period" - | "payments,line_items,tracking_categories,contact,accounting_period,payment_term" - | "payments,line_items,tracking_categories,contact,company" - | "payments,line_items,tracking_categories,contact,company,accounting_period" - | "payments,line_items,tracking_categories,contact,company,accounting_period,payment_term" - | "payments,line_items,tracking_categories,contact,company,employee" - | "payments,line_items,tracking_categories,contact,company,employee,accounting_period" - | "payments,line_items,tracking_categories,contact,company,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,contact,company,employee,payment_term" - | "payments,line_items,tracking_categories,contact,company,payment_term" - | "payments,line_items,tracking_categories,contact,employee" - | "payments,line_items,tracking_categories,contact,employee,accounting_period" - | "payments,line_items,tracking_categories,contact,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,contact,employee,payment_term" - | "payments,line_items,tracking_categories,contact,payment_term" - | "payments,line_items,tracking_categories,employee" - | "payments,line_items,tracking_categories,employee,accounting_period" - | "payments,line_items,tracking_categories,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,employee,payment_term" - | "payments,line_items,tracking_categories,payment_term" - | "payments,line_items,tracking_categories,purchase_orders" - | "payments,line_items,tracking_categories,purchase_orders,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,company" - | "payments,line_items,tracking_categories,purchase_orders,company,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,company,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,company,employee" - | "payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,company,employee,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,company,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,contact" - | "payments,line_items,tracking_categories,purchase_orders,contact,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,contact,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,contact,company" - | "payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,contact,company,employee" - | "payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,contact,company,employee,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,contact,company,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,contact,employee" - | "payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,contact,employee,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,contact,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,employee" - | "payments,line_items,tracking_categories,purchase_orders,employee,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,employee,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,payment_term" - | "payments,payment_term" - | "payments,purchase_orders" - | "payments,purchase_orders,accounting_period" - | "payments,purchase_orders,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes" - | "payments,purchase_orders,applied_credit_notes,accounting_period" - | "payments,purchase_orders,applied_credit_notes,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - | "payments,purchase_orders,applied_credit_notes,company" - | "payments,purchase_orders,applied_credit_notes,company,accounting_period" - | "payments,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes,company,employee" - | "payments,purchase_orders,applied_credit_notes,company,employee,accounting_period" - | "payments,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes,company,employee,payment_term" - | "payments,purchase_orders,applied_credit_notes,company,payment_term" - | "payments,purchase_orders,applied_credit_notes,contact" - | "payments,purchase_orders,applied_credit_notes,contact,accounting_period" - | "payments,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes,contact,company" - | "payments,purchase_orders,applied_credit_notes,contact,company,accounting_period" - | "payments,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes,contact,company,employee" - | "payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - | "payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - | "payments,purchase_orders,applied_credit_notes,contact,company,payment_term" - | "payments,purchase_orders,applied_credit_notes,contact,employee" - | "payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - | "payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes,contact,employee,payment_term" - | "payments,purchase_orders,applied_credit_notes,contact,payment_term" - | "payments,purchase_orders,applied_credit_notes,employee" - | "payments,purchase_orders,applied_credit_notes,employee,accounting_period" - | "payments,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes,employee,payment_term" - | "payments,purchase_orders,applied_credit_notes,payment_term" - | "payments,purchase_orders,applied_vendor_credits" - | "payments,purchase_orders,applied_vendor_credits,accounting_period" - | "payments,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - | "payments,purchase_orders,applied_vendor_credits,company" - | "payments,purchase_orders,applied_vendor_credits,company,accounting_period" - | "payments,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,purchase_orders,applied_vendor_credits,company,employee" - | "payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - | "payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,purchase_orders,applied_vendor_credits,company,employee,payment_term" - | "payments,purchase_orders,applied_vendor_credits,company,payment_term" - | "payments,purchase_orders,applied_vendor_credits,contact" - | "payments,purchase_orders,applied_vendor_credits,contact,accounting_period" - | "payments,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,purchase_orders,applied_vendor_credits,contact,company" - | "payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - | "payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,purchase_orders,applied_vendor_credits,contact,company,employee" - | "payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,purchase_orders,applied_vendor_credits,contact,company,payment_term" - | "payments,purchase_orders,applied_vendor_credits,contact,employee" - | "payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - | "payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - | "payments,purchase_orders,applied_vendor_credits,contact,payment_term" - | "payments,purchase_orders,applied_vendor_credits,employee" - | "payments,purchase_orders,applied_vendor_credits,employee,accounting_period" - | "payments,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,purchase_orders,applied_vendor_credits,employee,payment_term" - | "payments,purchase_orders,applied_vendor_credits,payment_term" - | "payments,purchase_orders,company" - | "payments,purchase_orders,company,accounting_period" - | "payments,purchase_orders,company,accounting_period,payment_term" - | "payments,purchase_orders,company,employee" - | "payments,purchase_orders,company,employee,accounting_period" - | "payments,purchase_orders,company,employee,accounting_period,payment_term" - | "payments,purchase_orders,company,employee,payment_term" - | "payments,purchase_orders,company,payment_term" - | "payments,purchase_orders,contact" - | "payments,purchase_orders,contact,accounting_period" - | "payments,purchase_orders,contact,accounting_period,payment_term" - | "payments,purchase_orders,contact,company" - | "payments,purchase_orders,contact,company,accounting_period" - | "payments,purchase_orders,contact,company,accounting_period,payment_term" - | "payments,purchase_orders,contact,company,employee" - | "payments,purchase_orders,contact,company,employee,accounting_period" - | "payments,purchase_orders,contact,company,employee,accounting_period,payment_term" - | "payments,purchase_orders,contact,company,employee,payment_term" - | "payments,purchase_orders,contact,company,payment_term" - | "payments,purchase_orders,contact,employee" - | "payments,purchase_orders,contact,employee,accounting_period" - | "payments,purchase_orders,contact,employee,accounting_period,payment_term" - | "payments,purchase_orders,contact,employee,payment_term" - | "payments,purchase_orders,contact,payment_term" - | "payments,purchase_orders,employee" - | "payments,purchase_orders,employee,accounting_period" - | "payments,purchase_orders,employee,accounting_period,payment_term" - | "payments,purchase_orders,employee,payment_term" - | "payments,purchase_orders,payment_term" - | "payments,tracking_categories" - | "payments,tracking_categories,accounting_period" - | "payments,tracking_categories,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes" - | "payments,tracking_categories,applied_credit_notes,accounting_period" - | "payments,tracking_categories,applied_credit_notes,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term" - | "payments,tracking_categories,applied_credit_notes,company" - | "payments,tracking_categories,applied_credit_notes,company,accounting_period" - | "payments,tracking_categories,applied_credit_notes,company,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes,company,employee" - | "payments,tracking_categories,applied_credit_notes,company,employee,accounting_period" - | "payments,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes,company,employee,payment_term" - | "payments,tracking_categories,applied_credit_notes,company,payment_term" - | "payments,tracking_categories,applied_credit_notes,contact" - | "payments,tracking_categories,applied_credit_notes,contact,accounting_period" - | "payments,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes,contact,company" - | "payments,tracking_categories,applied_credit_notes,contact,company,accounting_period" - | "payments,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes,contact,company,employee" - | "payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period" - | "payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes,contact,company,employee,payment_term" - | "payments,tracking_categories,applied_credit_notes,contact,company,payment_term" - | "payments,tracking_categories,applied_credit_notes,contact,employee" - | "payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period" - | "payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes,contact,employee,payment_term" - | "payments,tracking_categories,applied_credit_notes,contact,payment_term" - | "payments,tracking_categories,applied_credit_notes,employee" - | "payments,tracking_categories,applied_credit_notes,employee,accounting_period" - | "payments,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes,employee,payment_term" - | "payments,tracking_categories,applied_credit_notes,payment_term" - | "payments,tracking_categories,applied_vendor_credits" - | "payments,tracking_categories,applied_vendor_credits,accounting_period" - | "payments,tracking_categories,applied_vendor_credits,accounting_period,payment_term" - | "payments,tracking_categories,applied_vendor_credits,company" - | "payments,tracking_categories,applied_vendor_credits,company,accounting_period" - | "payments,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,tracking_categories,applied_vendor_credits,company,employee" - | "payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period" - | "payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,tracking_categories,applied_vendor_credits,company,employee,payment_term" - | "payments,tracking_categories,applied_vendor_credits,company,payment_term" - | "payments,tracking_categories,applied_vendor_credits,contact" - | "payments,tracking_categories,applied_vendor_credits,contact,accounting_period" - | "payments,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,tracking_categories,applied_vendor_credits,contact,company" - | "payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period" - | "payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,tracking_categories,applied_vendor_credits,contact,company,employee" - | "payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,tracking_categories,applied_vendor_credits,contact,company,payment_term" - | "payments,tracking_categories,applied_vendor_credits,contact,employee" - | "payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period" - | "payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,tracking_categories,applied_vendor_credits,contact,employee,payment_term" - | "payments,tracking_categories,applied_vendor_credits,contact,payment_term" - | "payments,tracking_categories,applied_vendor_credits,employee" - | "payments,tracking_categories,applied_vendor_credits,employee,accounting_period" - | "payments,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,tracking_categories,applied_vendor_credits,employee,payment_term" - | "payments,tracking_categories,applied_vendor_credits,payment_term" - | "payments,tracking_categories,company" - | "payments,tracking_categories,company,accounting_period" - | "payments,tracking_categories,company,accounting_period,payment_term" - | "payments,tracking_categories,company,employee" - | "payments,tracking_categories,company,employee,accounting_period" - | "payments,tracking_categories,company,employee,accounting_period,payment_term" - | "payments,tracking_categories,company,employee,payment_term" - | "payments,tracking_categories,company,payment_term" - | "payments,tracking_categories,contact" - | "payments,tracking_categories,contact,accounting_period" - | "payments,tracking_categories,contact,accounting_period,payment_term" - | "payments,tracking_categories,contact,company" - | "payments,tracking_categories,contact,company,accounting_period" - | "payments,tracking_categories,contact,company,accounting_period,payment_term" - | "payments,tracking_categories,contact,company,employee" - | "payments,tracking_categories,contact,company,employee,accounting_period" - | "payments,tracking_categories,contact,company,employee,accounting_period,payment_term" - | "payments,tracking_categories,contact,company,employee,payment_term" - | "payments,tracking_categories,contact,company,payment_term" - | "payments,tracking_categories,contact,employee" - | "payments,tracking_categories,contact,employee,accounting_period" - | "payments,tracking_categories,contact,employee,accounting_period,payment_term" - | "payments,tracking_categories,contact,employee,payment_term" - | "payments,tracking_categories,contact,payment_term" - | "payments,tracking_categories,employee" - | "payments,tracking_categories,employee,accounting_period" - | "payments,tracking_categories,employee,accounting_period,payment_term" - | "payments,tracking_categories,employee,payment_term" - | "payments,tracking_categories,payment_term" - | "payments,tracking_categories,purchase_orders" - | "payments,tracking_categories,purchase_orders,accounting_period" - | "payments,tracking_categories,purchase_orders,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,company" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,contact" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,employee" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,payment_term" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,company" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,employee" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,payment_term" - | "payments,tracking_categories,purchase_orders,company" - | "payments,tracking_categories,purchase_orders,company,accounting_period" - | "payments,tracking_categories,purchase_orders,company,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,company,employee" - | "payments,tracking_categories,purchase_orders,company,employee,accounting_period" - | "payments,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,company,employee,payment_term" - | "payments,tracking_categories,purchase_orders,company,payment_term" - | "payments,tracking_categories,purchase_orders,contact" - | "payments,tracking_categories,purchase_orders,contact,accounting_period" - | "payments,tracking_categories,purchase_orders,contact,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,contact,company" - | "payments,tracking_categories,purchase_orders,contact,company,accounting_period" - | "payments,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,contact,company,employee" - | "payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period" - | "payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,contact,company,employee,payment_term" - | "payments,tracking_categories,purchase_orders,contact,company,payment_term" - | "payments,tracking_categories,purchase_orders,contact,employee" - | "payments,tracking_categories,purchase_orders,contact,employee,accounting_period" - | "payments,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,contact,employee,payment_term" - | "payments,tracking_categories,purchase_orders,contact,payment_term" - | "payments,tracking_categories,purchase_orders,employee" - | "payments,tracking_categories,purchase_orders,employee,accounting_period" - | "payments,tracking_categories,purchase_orders,employee,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,employee,payment_term" - | "payments,tracking_categories,purchase_orders,payment_term" - | "purchase_orders" - | "purchase_orders,accounting_period" - | "purchase_orders,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes" - | "purchase_orders,applied_credit_notes,accounting_period" - | "purchase_orders,applied_credit_notes,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes,applied_vendor_credits" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,company" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - | "purchase_orders,applied_credit_notes,company" - | "purchase_orders,applied_credit_notes,company,accounting_period" - | "purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes,company,employee" - | "purchase_orders,applied_credit_notes,company,employee,accounting_period" - | "purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes,company,employee,payment_term" - | "purchase_orders,applied_credit_notes,company,payment_term" - | "purchase_orders,applied_credit_notes,contact" - | "purchase_orders,applied_credit_notes,contact,accounting_period" - | "purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes,contact,company" - | "purchase_orders,applied_credit_notes,contact,company,accounting_period" - | "purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes,contact,company,employee" - | "purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - | "purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - | "purchase_orders,applied_credit_notes,contact,company,payment_term" - | "purchase_orders,applied_credit_notes,contact,employee" - | "purchase_orders,applied_credit_notes,contact,employee,accounting_period" - | "purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes,contact,employee,payment_term" - | "purchase_orders,applied_credit_notes,contact,payment_term" - | "purchase_orders,applied_credit_notes,employee" - | "purchase_orders,applied_credit_notes,employee,accounting_period" - | "purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes,employee,payment_term" - | "purchase_orders,applied_credit_notes,payment_term" - | "purchase_orders,applied_vendor_credits" - | "purchase_orders,applied_vendor_credits,accounting_period" - | "purchase_orders,applied_vendor_credits,accounting_period,payment_term" - | "purchase_orders,applied_vendor_credits,company" - | "purchase_orders,applied_vendor_credits,company,accounting_period" - | "purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - | "purchase_orders,applied_vendor_credits,company,employee" - | "purchase_orders,applied_vendor_credits,company,employee,accounting_period" - | "purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "purchase_orders,applied_vendor_credits,company,employee,payment_term" - | "purchase_orders,applied_vendor_credits,company,payment_term" - | "purchase_orders,applied_vendor_credits,contact" - | "purchase_orders,applied_vendor_credits,contact,accounting_period" - | "purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - | "purchase_orders,applied_vendor_credits,contact,company" - | "purchase_orders,applied_vendor_credits,contact,company,accounting_period" - | "purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "purchase_orders,applied_vendor_credits,contact,company,employee" - | "purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - | "purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - | "purchase_orders,applied_vendor_credits,contact,company,payment_term" - | "purchase_orders,applied_vendor_credits,contact,employee" - | "purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - | "purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "purchase_orders,applied_vendor_credits,contact,employee,payment_term" - | "purchase_orders,applied_vendor_credits,contact,payment_term" - | "purchase_orders,applied_vendor_credits,employee" - | "purchase_orders,applied_vendor_credits,employee,accounting_period" - | "purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - | "purchase_orders,applied_vendor_credits,employee,payment_term" - | "purchase_orders,applied_vendor_credits,payment_term" - | "purchase_orders,company" - | "purchase_orders,company,accounting_period" - | "purchase_orders,company,accounting_period,payment_term" - | "purchase_orders,company,employee" - | "purchase_orders,company,employee,accounting_period" - | "purchase_orders,company,employee,accounting_period,payment_term" - | "purchase_orders,company,employee,payment_term" - | "purchase_orders,company,payment_term" - | "purchase_orders,contact" - | "purchase_orders,contact,accounting_period" - | "purchase_orders,contact,accounting_period,payment_term" - | "purchase_orders,contact,company" - | "purchase_orders,contact,company,accounting_period" - | "purchase_orders,contact,company,accounting_period,payment_term" - | "purchase_orders,contact,company,employee" - | "purchase_orders,contact,company,employee,accounting_period" - | "purchase_orders,contact,company,employee,accounting_period,payment_term" - | "purchase_orders,contact,company,employee,payment_term" - | "purchase_orders,contact,company,payment_term" - | "purchase_orders,contact,employee" - | "purchase_orders,contact,employee,accounting_period" - | "purchase_orders,contact,employee,accounting_period,payment_term" - | "purchase_orders,contact,employee,payment_term" - | "purchase_orders,contact,payment_term" - | "purchase_orders,employee" - | "purchase_orders,employee,accounting_period" - | "purchase_orders,employee,accounting_period,payment_term" - | "purchase_orders,employee,payment_term" - | "purchase_orders,payment_term" - | "tracking_categories" - | "tracking_categories,accounting_period" - | "tracking_categories,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes" - | "tracking_categories,applied_credit_notes,accounting_period" - | "tracking_categories,applied_credit_notes,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes,applied_vendor_credits" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,company" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,contact" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,employee" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term" - | "tracking_categories,applied_credit_notes,company" - | "tracking_categories,applied_credit_notes,company,accounting_period" - | "tracking_categories,applied_credit_notes,company,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes,company,employee" - | "tracking_categories,applied_credit_notes,company,employee,accounting_period" - | "tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes,company,employee,payment_term" - | "tracking_categories,applied_credit_notes,company,payment_term" - | "tracking_categories,applied_credit_notes,contact" - | "tracking_categories,applied_credit_notes,contact,accounting_period" - | "tracking_categories,applied_credit_notes,contact,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes,contact,company" - | "tracking_categories,applied_credit_notes,contact,company,accounting_period" - | "tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes,contact,company,employee" - | "tracking_categories,applied_credit_notes,contact,company,employee,accounting_period" - | "tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes,contact,company,employee,payment_term" - | "tracking_categories,applied_credit_notes,contact,company,payment_term" - | "tracking_categories,applied_credit_notes,contact,employee" - | "tracking_categories,applied_credit_notes,contact,employee,accounting_period" - | "tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes,contact,employee,payment_term" - | "tracking_categories,applied_credit_notes,contact,payment_term" - | "tracking_categories,applied_credit_notes,employee" - | "tracking_categories,applied_credit_notes,employee,accounting_period" - | "tracking_categories,applied_credit_notes,employee,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes,employee,payment_term" - | "tracking_categories,applied_credit_notes,payment_term" - | "tracking_categories,applied_vendor_credits" - | "tracking_categories,applied_vendor_credits,accounting_period" - | "tracking_categories,applied_vendor_credits,accounting_period,payment_term" - | "tracking_categories,applied_vendor_credits,company" - | "tracking_categories,applied_vendor_credits,company,accounting_period" - | "tracking_categories,applied_vendor_credits,company,accounting_period,payment_term" - | "tracking_categories,applied_vendor_credits,company,employee" - | "tracking_categories,applied_vendor_credits,company,employee,accounting_period" - | "tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "tracking_categories,applied_vendor_credits,company,employee,payment_term" - | "tracking_categories,applied_vendor_credits,company,payment_term" - | "tracking_categories,applied_vendor_credits,contact" - | "tracking_categories,applied_vendor_credits,contact,accounting_period" - | "tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term" - | "tracking_categories,applied_vendor_credits,contact,company" - | "tracking_categories,applied_vendor_credits,contact,company,accounting_period" - | "tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "tracking_categories,applied_vendor_credits,contact,company,employee" - | "tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period" - | "tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "tracking_categories,applied_vendor_credits,contact,company,employee,payment_term" - | "tracking_categories,applied_vendor_credits,contact,company,payment_term" - | "tracking_categories,applied_vendor_credits,contact,employee" - | "tracking_categories,applied_vendor_credits,contact,employee,accounting_period" - | "tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "tracking_categories,applied_vendor_credits,contact,employee,payment_term" - | "tracking_categories,applied_vendor_credits,contact,payment_term" - | "tracking_categories,applied_vendor_credits,employee" - | "tracking_categories,applied_vendor_credits,employee,accounting_period" - | "tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term" - | "tracking_categories,applied_vendor_credits,employee,payment_term" - | "tracking_categories,applied_vendor_credits,payment_term" - | "tracking_categories,company" - | "tracking_categories,company,accounting_period" - | "tracking_categories,company,accounting_period,payment_term" - | "tracking_categories,company,employee" - | "tracking_categories,company,employee,accounting_period" - | "tracking_categories,company,employee,accounting_period,payment_term" - | "tracking_categories,company,employee,payment_term" - | "tracking_categories,company,payment_term" - | "tracking_categories,contact" - | "tracking_categories,contact,accounting_period" - | "tracking_categories,contact,accounting_period,payment_term" - | "tracking_categories,contact,company" - | "tracking_categories,contact,company,accounting_period" - | "tracking_categories,contact,company,accounting_period,payment_term" - | "tracking_categories,contact,company,employee" - | "tracking_categories,contact,company,employee,accounting_period" - | "tracking_categories,contact,company,employee,accounting_period,payment_term" - | "tracking_categories,contact,company,employee,payment_term" - | "tracking_categories,contact,company,payment_term" - | "tracking_categories,contact,employee" - | "tracking_categories,contact,employee,accounting_period" - | "tracking_categories,contact,employee,accounting_period,payment_term" - | "tracking_categories,contact,employee,payment_term" - | "tracking_categories,contact,payment_term" - | "tracking_categories,employee" - | "tracking_categories,employee,accounting_period" - | "tracking_categories,employee,accounting_period,payment_term" - | "tracking_categories,employee,payment_term" - | "tracking_categories,payment_term" - | "tracking_categories,purchase_orders" - | "tracking_categories,purchase_orders,accounting_period" - | "tracking_categories,purchase_orders,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes" - | "tracking_categories,purchase_orders,applied_credit_notes,accounting_period" - | "tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,company" - | "tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period" - | "tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,company,employee" - | "tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period" - | "tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,company,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,contact" - | "tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period" - | "tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,contact,company" - | "tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period" - | "tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee" - | "tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - | "tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,contact,employee" - | "tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - | "tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,employee" - | "tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period" - | "tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,payment_term" - | "tracking_categories,purchase_orders,applied_vendor_credits" - | "tracking_categories,purchase_orders,applied_vendor_credits,accounting_period" - | "tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_vendor_credits,company" - | "tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period" - | "tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_vendor_credits,company,employee" - | "tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - | "tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term" - | "tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term" - | "tracking_categories,purchase_orders,applied_vendor_credits,contact" - | "tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period" - | "tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_vendor_credits,contact,company" - | "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - | "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee" - | "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - | "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - | "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term" - | "tracking_categories,purchase_orders,applied_vendor_credits,contact,employee" - | "tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - | "tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - | "tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term" - | "tracking_categories,purchase_orders,applied_vendor_credits,employee" - | "tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period" - | "tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term" - | "tracking_categories,purchase_orders,applied_vendor_credits,payment_term" - | "tracking_categories,purchase_orders,company" - | "tracking_categories,purchase_orders,company,accounting_period" - | "tracking_categories,purchase_orders,company,accounting_period,payment_term" - | "tracking_categories,purchase_orders,company,employee" - | "tracking_categories,purchase_orders,company,employee,accounting_period" - | "tracking_categories,purchase_orders,company,employee,accounting_period,payment_term" - | "tracking_categories,purchase_orders,company,employee,payment_term" - | "tracking_categories,purchase_orders,company,payment_term" - | "tracking_categories,purchase_orders,contact" - | "tracking_categories,purchase_orders,contact,accounting_period" - | "tracking_categories,purchase_orders,contact,accounting_period,payment_term" - | "tracking_categories,purchase_orders,contact,company" - | "tracking_categories,purchase_orders,contact,company,accounting_period" - | "tracking_categories,purchase_orders,contact,company,accounting_period,payment_term" - | "tracking_categories,purchase_orders,contact,company,employee" - | "tracking_categories,purchase_orders,contact,company,employee,accounting_period" - | "tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term" - | "tracking_categories,purchase_orders,contact,company,employee,payment_term" - | "tracking_categories,purchase_orders,contact,company,payment_term" - | "tracking_categories,purchase_orders,contact,employee" - | "tracking_categories,purchase_orders,contact,employee,accounting_period" - | "tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term" - | "tracking_categories,purchase_orders,contact,employee,payment_term" - | "tracking_categories,purchase_orders,contact,payment_term" - | "tracking_categories,purchase_orders,employee" - | "tracking_categories,purchase_orders,employee,accounting_period" - | "tracking_categories,purchase_orders,employee,accounting_period,payment_term" - | "tracking_categories,purchase_orders,employee,payment_term" - | "tracking_categories,purchase_orders,payment_term"; -} diff --git a/src/serialization/resources/accounting/resources/invoices/types/InvoicesListRequestExpandItem.ts b/src/serialization/resources/accounting/resources/invoices/types/InvoicesListRequestExpandItem.ts new file mode 100644 index 000000000..015a71673 --- /dev/null +++ b/src/serialization/resources/accounting/resources/invoices/types/InvoicesListRequestExpandItem.ts @@ -0,0 +1,41 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const InvoicesListRequestExpandItem: core.serialization.Schema< + serializers.accounting.InvoicesListRequestExpandItem.Raw, + Merge.accounting.InvoicesListRequestExpandItem +> = core.serialization.enum_([ + "accounting_period", + "applied_credit_notes", + "applied_payments", + "applied_vendor_credits", + "company", + "contact", + "employee", + "line_items", + "payment_term", + "payments", + "purchase_orders", + "sales_orders", + "tracking_categories", +]); + +export declare namespace InvoicesListRequestExpandItem { + export type Raw = + | "accounting_period" + | "applied_credit_notes" + | "applied_payments" + | "applied_vendor_credits" + | "company" + | "contact" + | "employee" + | "line_items" + | "payment_term" + | "payments" + | "purchase_orders" + | "sales_orders" + | "tracking_categories"; +} diff --git a/src/serialization/resources/accounting/resources/invoices/types/InvoicesRetrieveRequestExpand.ts b/src/serialization/resources/accounting/resources/invoices/types/InvoicesRetrieveRequestExpand.ts deleted file mode 100644 index bb017ee28..000000000 --- a/src/serialization/resources/accounting/resources/invoices/types/InvoicesRetrieveRequestExpand.ts +++ /dev/null @@ -1,8205 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const InvoicesRetrieveRequestExpand: core.serialization.Schema< - serializers.accounting.InvoicesRetrieveRequestExpand.Raw, - Merge.accounting.InvoicesRetrieveRequestExpand -> = core.serialization.enum_([ - "accounting_period", - "accounting_period,payment_term", - "applied_credit_notes", - "applied_credit_notes,accounting_period", - "applied_credit_notes,accounting_period,payment_term", - "applied_credit_notes,applied_vendor_credits", - "applied_credit_notes,applied_vendor_credits,accounting_period", - "applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "applied_credit_notes,applied_vendor_credits,company", - "applied_credit_notes,applied_vendor_credits,company,accounting_period", - "applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "applied_credit_notes,applied_vendor_credits,company,employee", - "applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "applied_credit_notes,applied_vendor_credits,company,payment_term", - "applied_credit_notes,applied_vendor_credits,contact", - "applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_credit_notes,applied_vendor_credits,contact,company", - "applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_credit_notes,applied_vendor_credits,contact,company,employee", - "applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "applied_credit_notes,applied_vendor_credits,contact,employee", - "applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "applied_credit_notes,applied_vendor_credits,contact,payment_term", - "applied_credit_notes,applied_vendor_credits,employee", - "applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_credit_notes,applied_vendor_credits,employee,payment_term", - "applied_credit_notes,applied_vendor_credits,payment_term", - "applied_credit_notes,company", - "applied_credit_notes,company,accounting_period", - "applied_credit_notes,company,accounting_period,payment_term", - "applied_credit_notes,company,employee", - "applied_credit_notes,company,employee,accounting_period", - "applied_credit_notes,company,employee,accounting_period,payment_term", - "applied_credit_notes,company,employee,payment_term", - "applied_credit_notes,company,payment_term", - "applied_credit_notes,contact", - "applied_credit_notes,contact,accounting_period", - "applied_credit_notes,contact,accounting_period,payment_term", - "applied_credit_notes,contact,company", - "applied_credit_notes,contact,company,accounting_period", - "applied_credit_notes,contact,company,accounting_period,payment_term", - "applied_credit_notes,contact,company,employee", - "applied_credit_notes,contact,company,employee,accounting_period", - "applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "applied_credit_notes,contact,company,employee,payment_term", - "applied_credit_notes,contact,company,payment_term", - "applied_credit_notes,contact,employee", - "applied_credit_notes,contact,employee,accounting_period", - "applied_credit_notes,contact,employee,accounting_period,payment_term", - "applied_credit_notes,contact,employee,payment_term", - "applied_credit_notes,contact,payment_term", - "applied_credit_notes,employee", - "applied_credit_notes,employee,accounting_period", - "applied_credit_notes,employee,accounting_period,payment_term", - "applied_credit_notes,employee,payment_term", - "applied_credit_notes,payment_term", - "applied_payments", - "applied_payments,accounting_period", - "applied_payments,accounting_period,payment_term", - "applied_payments,applied_credit_notes", - "applied_payments,applied_credit_notes,accounting_period", - "applied_payments,applied_credit_notes,accounting_period,payment_term", - "applied_payments,applied_credit_notes,applied_vendor_credits", - "applied_payments,applied_credit_notes,applied_vendor_credits,accounting_period", - "applied_payments,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "applied_payments,applied_credit_notes,applied_vendor_credits,company", - "applied_payments,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "applied_payments,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "applied_payments,applied_credit_notes,applied_vendor_credits,company,employee", - "applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "applied_payments,applied_credit_notes,applied_vendor_credits,company,payment_term", - "applied_payments,applied_credit_notes,applied_vendor_credits,contact", - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company", - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee", - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "applied_payments,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "applied_payments,applied_credit_notes,applied_vendor_credits,employee", - "applied_payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "applied_payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_payments,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "applied_payments,applied_credit_notes,applied_vendor_credits,payment_term", - "applied_payments,applied_credit_notes,company", - "applied_payments,applied_credit_notes,company,accounting_period", - "applied_payments,applied_credit_notes,company,accounting_period,payment_term", - "applied_payments,applied_credit_notes,company,employee", - "applied_payments,applied_credit_notes,company,employee,accounting_period", - "applied_payments,applied_credit_notes,company,employee,accounting_period,payment_term", - "applied_payments,applied_credit_notes,company,employee,payment_term", - "applied_payments,applied_credit_notes,company,payment_term", - "applied_payments,applied_credit_notes,contact", - "applied_payments,applied_credit_notes,contact,accounting_period", - "applied_payments,applied_credit_notes,contact,accounting_period,payment_term", - "applied_payments,applied_credit_notes,contact,company", - "applied_payments,applied_credit_notes,contact,company,accounting_period", - "applied_payments,applied_credit_notes,contact,company,accounting_period,payment_term", - "applied_payments,applied_credit_notes,contact,company,employee", - "applied_payments,applied_credit_notes,contact,company,employee,accounting_period", - "applied_payments,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "applied_payments,applied_credit_notes,contact,company,employee,payment_term", - "applied_payments,applied_credit_notes,contact,company,payment_term", - "applied_payments,applied_credit_notes,contact,employee", - "applied_payments,applied_credit_notes,contact,employee,accounting_period", - "applied_payments,applied_credit_notes,contact,employee,accounting_period,payment_term", - "applied_payments,applied_credit_notes,contact,employee,payment_term", - "applied_payments,applied_credit_notes,contact,payment_term", - "applied_payments,applied_credit_notes,employee", - "applied_payments,applied_credit_notes,employee,accounting_period", - "applied_payments,applied_credit_notes,employee,accounting_period,payment_term", - "applied_payments,applied_credit_notes,employee,payment_term", - "applied_payments,applied_credit_notes,payment_term", - "applied_payments,applied_vendor_credits", - "applied_payments,applied_vendor_credits,accounting_period", - "applied_payments,applied_vendor_credits,accounting_period,payment_term", - "applied_payments,applied_vendor_credits,company", - "applied_payments,applied_vendor_credits,company,accounting_period", - "applied_payments,applied_vendor_credits,company,accounting_period,payment_term", - "applied_payments,applied_vendor_credits,company,employee", - "applied_payments,applied_vendor_credits,company,employee,accounting_period", - "applied_payments,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_payments,applied_vendor_credits,company,employee,payment_term", - "applied_payments,applied_vendor_credits,company,payment_term", - "applied_payments,applied_vendor_credits,contact", - "applied_payments,applied_vendor_credits,contact,accounting_period", - "applied_payments,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_payments,applied_vendor_credits,contact,company", - "applied_payments,applied_vendor_credits,contact,company,accounting_period", - "applied_payments,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_payments,applied_vendor_credits,contact,company,employee", - "applied_payments,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_payments,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_payments,applied_vendor_credits,contact,company,employee,payment_term", - "applied_payments,applied_vendor_credits,contact,company,payment_term", - "applied_payments,applied_vendor_credits,contact,employee", - "applied_payments,applied_vendor_credits,contact,employee,accounting_period", - "applied_payments,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_payments,applied_vendor_credits,contact,employee,payment_term", - "applied_payments,applied_vendor_credits,contact,payment_term", - "applied_payments,applied_vendor_credits,employee", - "applied_payments,applied_vendor_credits,employee,accounting_period", - "applied_payments,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_payments,applied_vendor_credits,employee,payment_term", - "applied_payments,applied_vendor_credits,payment_term", - "applied_payments,company", - "applied_payments,company,accounting_period", - "applied_payments,company,accounting_period,payment_term", - "applied_payments,company,employee", - "applied_payments,company,employee,accounting_period", - "applied_payments,company,employee,accounting_period,payment_term", - "applied_payments,company,employee,payment_term", - "applied_payments,company,payment_term", - "applied_payments,contact", - "applied_payments,contact,accounting_period", - "applied_payments,contact,accounting_period,payment_term", - "applied_payments,contact,company", - "applied_payments,contact,company,accounting_period", - "applied_payments,contact,company,accounting_period,payment_term", - "applied_payments,contact,company,employee", - "applied_payments,contact,company,employee,accounting_period", - "applied_payments,contact,company,employee,accounting_period,payment_term", - "applied_payments,contact,company,employee,payment_term", - "applied_payments,contact,company,payment_term", - "applied_payments,contact,employee", - "applied_payments,contact,employee,accounting_period", - "applied_payments,contact,employee,accounting_period,payment_term", - "applied_payments,contact,employee,payment_term", - "applied_payments,contact,payment_term", - "applied_payments,employee", - "applied_payments,employee,accounting_period", - "applied_payments,employee,accounting_period,payment_term", - "applied_payments,employee,payment_term", - "applied_payments,line_items", - "applied_payments,line_items,accounting_period", - "applied_payments,line_items,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes", - "applied_payments,line_items,applied_credit_notes,accounting_period", - "applied_payments,line_items,applied_credit_notes,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,payment_term", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,payment_term", - "applied_payments,line_items,applied_credit_notes,company", - "applied_payments,line_items,applied_credit_notes,company,accounting_period", - "applied_payments,line_items,applied_credit_notes,company,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes,company,employee", - "applied_payments,line_items,applied_credit_notes,company,employee,accounting_period", - "applied_payments,line_items,applied_credit_notes,company,employee,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes,company,employee,payment_term", - "applied_payments,line_items,applied_credit_notes,company,payment_term", - "applied_payments,line_items,applied_credit_notes,contact", - "applied_payments,line_items,applied_credit_notes,contact,accounting_period", - "applied_payments,line_items,applied_credit_notes,contact,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes,contact,company", - "applied_payments,line_items,applied_credit_notes,contact,company,accounting_period", - "applied_payments,line_items,applied_credit_notes,contact,company,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes,contact,company,employee", - "applied_payments,line_items,applied_credit_notes,contact,company,employee,accounting_period", - "applied_payments,line_items,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes,contact,company,employee,payment_term", - "applied_payments,line_items,applied_credit_notes,contact,company,payment_term", - "applied_payments,line_items,applied_credit_notes,contact,employee", - "applied_payments,line_items,applied_credit_notes,contact,employee,accounting_period", - "applied_payments,line_items,applied_credit_notes,contact,employee,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes,contact,employee,payment_term", - "applied_payments,line_items,applied_credit_notes,contact,payment_term", - "applied_payments,line_items,applied_credit_notes,employee", - "applied_payments,line_items,applied_credit_notes,employee,accounting_period", - "applied_payments,line_items,applied_credit_notes,employee,accounting_period,payment_term", - "applied_payments,line_items,applied_credit_notes,employee,payment_term", - "applied_payments,line_items,applied_credit_notes,payment_term", - "applied_payments,line_items,applied_vendor_credits", - "applied_payments,line_items,applied_vendor_credits,accounting_period", - "applied_payments,line_items,applied_vendor_credits,accounting_period,payment_term", - "applied_payments,line_items,applied_vendor_credits,company", - "applied_payments,line_items,applied_vendor_credits,company,accounting_period", - "applied_payments,line_items,applied_vendor_credits,company,accounting_period,payment_term", - "applied_payments,line_items,applied_vendor_credits,company,employee", - "applied_payments,line_items,applied_vendor_credits,company,employee,accounting_period", - "applied_payments,line_items,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_payments,line_items,applied_vendor_credits,company,employee,payment_term", - "applied_payments,line_items,applied_vendor_credits,company,payment_term", - "applied_payments,line_items,applied_vendor_credits,contact", - "applied_payments,line_items,applied_vendor_credits,contact,accounting_period", - "applied_payments,line_items,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_payments,line_items,applied_vendor_credits,contact,company", - "applied_payments,line_items,applied_vendor_credits,contact,company,accounting_period", - "applied_payments,line_items,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_payments,line_items,applied_vendor_credits,contact,company,employee", - "applied_payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_payments,line_items,applied_vendor_credits,contact,company,employee,payment_term", - "applied_payments,line_items,applied_vendor_credits,contact,company,payment_term", - "applied_payments,line_items,applied_vendor_credits,contact,employee", - "applied_payments,line_items,applied_vendor_credits,contact,employee,accounting_period", - "applied_payments,line_items,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_payments,line_items,applied_vendor_credits,contact,employee,payment_term", - "applied_payments,line_items,applied_vendor_credits,contact,payment_term", - "applied_payments,line_items,applied_vendor_credits,employee", - "applied_payments,line_items,applied_vendor_credits,employee,accounting_period", - "applied_payments,line_items,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_payments,line_items,applied_vendor_credits,employee,payment_term", - "applied_payments,line_items,applied_vendor_credits,payment_term", - "applied_payments,line_items,company", - "applied_payments,line_items,company,accounting_period", - "applied_payments,line_items,company,accounting_period,payment_term", - "applied_payments,line_items,company,employee", - "applied_payments,line_items,company,employee,accounting_period", - "applied_payments,line_items,company,employee,accounting_period,payment_term", - "applied_payments,line_items,company,employee,payment_term", - "applied_payments,line_items,company,payment_term", - "applied_payments,line_items,contact", - "applied_payments,line_items,contact,accounting_period", - "applied_payments,line_items,contact,accounting_period,payment_term", - "applied_payments,line_items,contact,company", - "applied_payments,line_items,contact,company,accounting_period", - "applied_payments,line_items,contact,company,accounting_period,payment_term", - "applied_payments,line_items,contact,company,employee", - "applied_payments,line_items,contact,company,employee,accounting_period", - "applied_payments,line_items,contact,company,employee,accounting_period,payment_term", - "applied_payments,line_items,contact,company,employee,payment_term", - "applied_payments,line_items,contact,company,payment_term", - "applied_payments,line_items,contact,employee", - "applied_payments,line_items,contact,employee,accounting_period", - "applied_payments,line_items,contact,employee,accounting_period,payment_term", - "applied_payments,line_items,contact,employee,payment_term", - "applied_payments,line_items,contact,payment_term", - "applied_payments,line_items,employee", - "applied_payments,line_items,employee,accounting_period", - "applied_payments,line_items,employee,accounting_period,payment_term", - "applied_payments,line_items,employee,payment_term", - "applied_payments,line_items,payment_term", - "applied_payments,line_items,purchase_orders", - "applied_payments,line_items,purchase_orders,accounting_period", - "applied_payments,line_items,purchase_orders,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes", - "applied_payments,line_items,purchase_orders,applied_credit_notes,accounting_period", - "applied_payments,line_items,purchase_orders,applied_credit_notes,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,company", - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period", - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee", - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period", - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,company,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact", - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period", - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company", - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period", - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee", - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee", - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,employee", - "applied_payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period", - "applied_payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,employee,payment_term", - "applied_payments,line_items,purchase_orders,applied_credit_notes,payment_term", - "applied_payments,line_items,purchase_orders,applied_vendor_credits", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,accounting_period", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,payment_term", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,payment_term", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,payment_term", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,payment_term", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,employee", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,payment_term", - "applied_payments,line_items,purchase_orders,applied_vendor_credits,payment_term", - "applied_payments,line_items,purchase_orders,company", - "applied_payments,line_items,purchase_orders,company,accounting_period", - "applied_payments,line_items,purchase_orders,company,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,company,employee", - "applied_payments,line_items,purchase_orders,company,employee,accounting_period", - "applied_payments,line_items,purchase_orders,company,employee,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,company,employee,payment_term", - "applied_payments,line_items,purchase_orders,company,payment_term", - "applied_payments,line_items,purchase_orders,contact", - "applied_payments,line_items,purchase_orders,contact,accounting_period", - "applied_payments,line_items,purchase_orders,contact,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,contact,company", - "applied_payments,line_items,purchase_orders,contact,company,accounting_period", - "applied_payments,line_items,purchase_orders,contact,company,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,contact,company,employee", - "applied_payments,line_items,purchase_orders,contact,company,employee,accounting_period", - "applied_payments,line_items,purchase_orders,contact,company,employee,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,contact,company,employee,payment_term", - "applied_payments,line_items,purchase_orders,contact,company,payment_term", - "applied_payments,line_items,purchase_orders,contact,employee", - "applied_payments,line_items,purchase_orders,contact,employee,accounting_period", - "applied_payments,line_items,purchase_orders,contact,employee,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,contact,employee,payment_term", - "applied_payments,line_items,purchase_orders,contact,payment_term", - "applied_payments,line_items,purchase_orders,employee", - "applied_payments,line_items,purchase_orders,employee,accounting_period", - "applied_payments,line_items,purchase_orders,employee,accounting_period,payment_term", - "applied_payments,line_items,purchase_orders,employee,payment_term", - "applied_payments,line_items,purchase_orders,payment_term", - "applied_payments,line_items,tracking_categories", - "applied_payments,line_items,tracking_categories,accounting_period", - "applied_payments,line_items,tracking_categories,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes", - "applied_payments,line_items,tracking_categories,applied_credit_notes,accounting_period", - "applied_payments,line_items,tracking_categories,applied_credit_notes,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,company", - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period", - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee", - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period", - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,company,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact", - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period", - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company", - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period", - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee", - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period", - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee", - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period", - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,employee", - "applied_payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period", - "applied_payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,employee,payment_term", - "applied_payments,line_items,tracking_categories,applied_credit_notes,payment_term", - "applied_payments,line_items,tracking_categories,applied_vendor_credits", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,accounting_period", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,payment_term", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,payment_term", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,payment_term", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,payment_term", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,payment_term", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,employee", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,payment_term", - "applied_payments,line_items,tracking_categories,applied_vendor_credits,payment_term", - "applied_payments,line_items,tracking_categories,company", - "applied_payments,line_items,tracking_categories,company,accounting_period", - "applied_payments,line_items,tracking_categories,company,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,company,employee", - "applied_payments,line_items,tracking_categories,company,employee,accounting_period", - "applied_payments,line_items,tracking_categories,company,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,company,employee,payment_term", - "applied_payments,line_items,tracking_categories,company,payment_term", - "applied_payments,line_items,tracking_categories,contact", - "applied_payments,line_items,tracking_categories,contact,accounting_period", - "applied_payments,line_items,tracking_categories,contact,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,contact,company", - "applied_payments,line_items,tracking_categories,contact,company,accounting_period", - "applied_payments,line_items,tracking_categories,contact,company,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,contact,company,employee", - "applied_payments,line_items,tracking_categories,contact,company,employee,accounting_period", - "applied_payments,line_items,tracking_categories,contact,company,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,contact,company,employee,payment_term", - "applied_payments,line_items,tracking_categories,contact,company,payment_term", - "applied_payments,line_items,tracking_categories,contact,employee", - "applied_payments,line_items,tracking_categories,contact,employee,accounting_period", - "applied_payments,line_items,tracking_categories,contact,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,contact,employee,payment_term", - "applied_payments,line_items,tracking_categories,contact,payment_term", - "applied_payments,line_items,tracking_categories,employee", - "applied_payments,line_items,tracking_categories,employee,accounting_period", - "applied_payments,line_items,tracking_categories,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,employee,payment_term", - "applied_payments,line_items,tracking_categories,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders", - "applied_payments,line_items,tracking_categories,purchase_orders,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,company", - "applied_payments,line_items,tracking_categories,purchase_orders,company,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,company,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,company,employee", - "applied_payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,company,employee,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,company,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,contact", - "applied_payments,line_items,tracking_categories,purchase_orders,contact,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,contact,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company", - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee", - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,contact,employee", - "applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,contact,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,employee", - "applied_payments,line_items,tracking_categories,purchase_orders,employee,accounting_period", - "applied_payments,line_items,tracking_categories,purchase_orders,employee,accounting_period,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,employee,payment_term", - "applied_payments,line_items,tracking_categories,purchase_orders,payment_term", - "applied_payments,payment_term", - "applied_payments,purchase_orders", - "applied_payments,purchase_orders,accounting_period", - "applied_payments,purchase_orders,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes", - "applied_payments,purchase_orders,applied_credit_notes,accounting_period", - "applied_payments,purchase_orders,applied_credit_notes,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,company", - "applied_payments,purchase_orders,applied_credit_notes,company,accounting_period", - "applied_payments,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,company,employee", - "applied_payments,purchase_orders,applied_credit_notes,company,employee,accounting_period", - "applied_payments,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,company,employee,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,company,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,contact", - "applied_payments,purchase_orders,applied_credit_notes,contact,accounting_period", - "applied_payments,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,contact,company", - "applied_payments,purchase_orders,applied_credit_notes,contact,company,accounting_period", - "applied_payments,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,contact,company,employee", - "applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - "applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,contact,company,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,contact,employee", - "applied_payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - "applied_payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,contact,employee,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,contact,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,employee", - "applied_payments,purchase_orders,applied_credit_notes,employee,accounting_period", - "applied_payments,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,employee,payment_term", - "applied_payments,purchase_orders,applied_credit_notes,payment_term", - "applied_payments,purchase_orders,applied_vendor_credits", - "applied_payments,purchase_orders,applied_vendor_credits,accounting_period", - "applied_payments,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_vendor_credits,company", - "applied_payments,purchase_orders,applied_vendor_credits,company,accounting_period", - "applied_payments,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_vendor_credits,company,employee", - "applied_payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - "applied_payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_vendor_credits,company,employee,payment_term", - "applied_payments,purchase_orders,applied_vendor_credits,company,payment_term", - "applied_payments,purchase_orders,applied_vendor_credits,contact", - "applied_payments,purchase_orders,applied_vendor_credits,contact,accounting_period", - "applied_payments,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_vendor_credits,contact,company", - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee", - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - "applied_payments,purchase_orders,applied_vendor_credits,contact,company,payment_term", - "applied_payments,purchase_orders,applied_vendor_credits,contact,employee", - "applied_payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - "applied_payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - "applied_payments,purchase_orders,applied_vendor_credits,contact,payment_term", - "applied_payments,purchase_orders,applied_vendor_credits,employee", - "applied_payments,purchase_orders,applied_vendor_credits,employee,accounting_period", - "applied_payments,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_payments,purchase_orders,applied_vendor_credits,employee,payment_term", - "applied_payments,purchase_orders,applied_vendor_credits,payment_term", - "applied_payments,purchase_orders,company", - "applied_payments,purchase_orders,company,accounting_period", - "applied_payments,purchase_orders,company,accounting_period,payment_term", - "applied_payments,purchase_orders,company,employee", - "applied_payments,purchase_orders,company,employee,accounting_period", - "applied_payments,purchase_orders,company,employee,accounting_period,payment_term", - "applied_payments,purchase_orders,company,employee,payment_term", - "applied_payments,purchase_orders,company,payment_term", - "applied_payments,purchase_orders,contact", - "applied_payments,purchase_orders,contact,accounting_period", - "applied_payments,purchase_orders,contact,accounting_period,payment_term", - "applied_payments,purchase_orders,contact,company", - "applied_payments,purchase_orders,contact,company,accounting_period", - "applied_payments,purchase_orders,contact,company,accounting_period,payment_term", - "applied_payments,purchase_orders,contact,company,employee", - "applied_payments,purchase_orders,contact,company,employee,accounting_period", - "applied_payments,purchase_orders,contact,company,employee,accounting_period,payment_term", - "applied_payments,purchase_orders,contact,company,employee,payment_term", - "applied_payments,purchase_orders,contact,company,payment_term", - "applied_payments,purchase_orders,contact,employee", - "applied_payments,purchase_orders,contact,employee,accounting_period", - "applied_payments,purchase_orders,contact,employee,accounting_period,payment_term", - "applied_payments,purchase_orders,contact,employee,payment_term", - "applied_payments,purchase_orders,contact,payment_term", - "applied_payments,purchase_orders,employee", - "applied_payments,purchase_orders,employee,accounting_period", - "applied_payments,purchase_orders,employee,accounting_period,payment_term", - "applied_payments,purchase_orders,employee,payment_term", - "applied_payments,purchase_orders,payment_term", - "applied_payments,tracking_categories", - "applied_payments,tracking_categories,accounting_period", - "applied_payments,tracking_categories,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes", - "applied_payments,tracking_categories,applied_credit_notes,accounting_period", - "applied_payments,tracking_categories,applied_credit_notes,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,company", - "applied_payments,tracking_categories,applied_credit_notes,company,accounting_period", - "applied_payments,tracking_categories,applied_credit_notes,company,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,company,employee", - "applied_payments,tracking_categories,applied_credit_notes,company,employee,accounting_period", - "applied_payments,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,company,employee,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,company,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,contact", - "applied_payments,tracking_categories,applied_credit_notes,contact,accounting_period", - "applied_payments,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,contact,company", - "applied_payments,tracking_categories,applied_credit_notes,contact,company,accounting_period", - "applied_payments,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,contact,company,employee", - "applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period", - "applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,contact,company,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,contact,employee", - "applied_payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period", - "applied_payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,contact,employee,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,contact,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,employee", - "applied_payments,tracking_categories,applied_credit_notes,employee,accounting_period", - "applied_payments,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,employee,payment_term", - "applied_payments,tracking_categories,applied_credit_notes,payment_term", - "applied_payments,tracking_categories,applied_vendor_credits", - "applied_payments,tracking_categories,applied_vendor_credits,accounting_period", - "applied_payments,tracking_categories,applied_vendor_credits,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_vendor_credits,company", - "applied_payments,tracking_categories,applied_vendor_credits,company,accounting_period", - "applied_payments,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_vendor_credits,company,employee", - "applied_payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period", - "applied_payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_vendor_credits,company,employee,payment_term", - "applied_payments,tracking_categories,applied_vendor_credits,company,payment_term", - "applied_payments,tracking_categories,applied_vendor_credits,contact", - "applied_payments,tracking_categories,applied_vendor_credits,contact,accounting_period", - "applied_payments,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_vendor_credits,contact,company", - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period", - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee", - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term", - "applied_payments,tracking_categories,applied_vendor_credits,contact,company,payment_term", - "applied_payments,tracking_categories,applied_vendor_credits,contact,employee", - "applied_payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period", - "applied_payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_vendor_credits,contact,employee,payment_term", - "applied_payments,tracking_categories,applied_vendor_credits,contact,payment_term", - "applied_payments,tracking_categories,applied_vendor_credits,employee", - "applied_payments,tracking_categories,applied_vendor_credits,employee,accounting_period", - "applied_payments,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,applied_vendor_credits,employee,payment_term", - "applied_payments,tracking_categories,applied_vendor_credits,payment_term", - "applied_payments,tracking_categories,company", - "applied_payments,tracking_categories,company,accounting_period", - "applied_payments,tracking_categories,company,accounting_period,payment_term", - "applied_payments,tracking_categories,company,employee", - "applied_payments,tracking_categories,company,employee,accounting_period", - "applied_payments,tracking_categories,company,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,company,employee,payment_term", - "applied_payments,tracking_categories,company,payment_term", - "applied_payments,tracking_categories,contact", - "applied_payments,tracking_categories,contact,accounting_period", - "applied_payments,tracking_categories,contact,accounting_period,payment_term", - "applied_payments,tracking_categories,contact,company", - "applied_payments,tracking_categories,contact,company,accounting_period", - "applied_payments,tracking_categories,contact,company,accounting_period,payment_term", - "applied_payments,tracking_categories,contact,company,employee", - "applied_payments,tracking_categories,contact,company,employee,accounting_period", - "applied_payments,tracking_categories,contact,company,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,contact,company,employee,payment_term", - "applied_payments,tracking_categories,contact,company,payment_term", - "applied_payments,tracking_categories,contact,employee", - "applied_payments,tracking_categories,contact,employee,accounting_period", - "applied_payments,tracking_categories,contact,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,contact,employee,payment_term", - "applied_payments,tracking_categories,contact,payment_term", - "applied_payments,tracking_categories,employee", - "applied_payments,tracking_categories,employee,accounting_period", - "applied_payments,tracking_categories,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,employee,payment_term", - "applied_payments,tracking_categories,payment_term", - "applied_payments,tracking_categories,purchase_orders", - "applied_payments,tracking_categories,purchase_orders,accounting_period", - "applied_payments,tracking_categories,purchase_orders,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term", - "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,payment_term", - "applied_payments,tracking_categories,purchase_orders,company", - "applied_payments,tracking_categories,purchase_orders,company,accounting_period", - "applied_payments,tracking_categories,purchase_orders,company,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,company,employee", - "applied_payments,tracking_categories,purchase_orders,company,employee,accounting_period", - "applied_payments,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,company,employee,payment_term", - "applied_payments,tracking_categories,purchase_orders,company,payment_term", - "applied_payments,tracking_categories,purchase_orders,contact", - "applied_payments,tracking_categories,purchase_orders,contact,accounting_period", - "applied_payments,tracking_categories,purchase_orders,contact,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,contact,company", - "applied_payments,tracking_categories,purchase_orders,contact,company,accounting_period", - "applied_payments,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,contact,company,employee", - "applied_payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period", - "applied_payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,contact,company,employee,payment_term", - "applied_payments,tracking_categories,purchase_orders,contact,company,payment_term", - "applied_payments,tracking_categories,purchase_orders,contact,employee", - "applied_payments,tracking_categories,purchase_orders,contact,employee,accounting_period", - "applied_payments,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,contact,employee,payment_term", - "applied_payments,tracking_categories,purchase_orders,contact,payment_term", - "applied_payments,tracking_categories,purchase_orders,employee", - "applied_payments,tracking_categories,purchase_orders,employee,accounting_period", - "applied_payments,tracking_categories,purchase_orders,employee,accounting_period,payment_term", - "applied_payments,tracking_categories,purchase_orders,employee,payment_term", - "applied_payments,tracking_categories,purchase_orders,payment_term", - "applied_vendor_credits", - "applied_vendor_credits,accounting_period", - "applied_vendor_credits,accounting_period,payment_term", - "applied_vendor_credits,company", - "applied_vendor_credits,company,accounting_period", - "applied_vendor_credits,company,accounting_period,payment_term", - "applied_vendor_credits,company,employee", - "applied_vendor_credits,company,employee,accounting_period", - "applied_vendor_credits,company,employee,accounting_period,payment_term", - "applied_vendor_credits,company,employee,payment_term", - "applied_vendor_credits,company,payment_term", - "applied_vendor_credits,contact", - "applied_vendor_credits,contact,accounting_period", - "applied_vendor_credits,contact,accounting_period,payment_term", - "applied_vendor_credits,contact,company", - "applied_vendor_credits,contact,company,accounting_period", - "applied_vendor_credits,contact,company,accounting_period,payment_term", - "applied_vendor_credits,contact,company,employee", - "applied_vendor_credits,contact,company,employee,accounting_period", - "applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "applied_vendor_credits,contact,company,employee,payment_term", - "applied_vendor_credits,contact,company,payment_term", - "applied_vendor_credits,contact,employee", - "applied_vendor_credits,contact,employee,accounting_period", - "applied_vendor_credits,contact,employee,accounting_period,payment_term", - "applied_vendor_credits,contact,employee,payment_term", - "applied_vendor_credits,contact,payment_term", - "applied_vendor_credits,employee", - "applied_vendor_credits,employee,accounting_period", - "applied_vendor_credits,employee,accounting_period,payment_term", - "applied_vendor_credits,employee,payment_term", - "applied_vendor_credits,payment_term", - "company", - "company,accounting_period", - "company,accounting_period,payment_term", - "company,employee", - "company,employee,accounting_period", - "company,employee,accounting_period,payment_term", - "company,employee,payment_term", - "company,payment_term", - "contact", - "contact,accounting_period", - "contact,accounting_period,payment_term", - "contact,company", - "contact,company,accounting_period", - "contact,company,accounting_period,payment_term", - "contact,company,employee", - "contact,company,employee,accounting_period", - "contact,company,employee,accounting_period,payment_term", - "contact,company,employee,payment_term", - "contact,company,payment_term", - "contact,employee", - "contact,employee,accounting_period", - "contact,employee,accounting_period,payment_term", - "contact,employee,payment_term", - "contact,payment_term", - "employee", - "employee,accounting_period", - "employee,accounting_period,payment_term", - "employee,payment_term", - "line_items", - "line_items,accounting_period", - "line_items,accounting_period,payment_term", - "line_items,applied_credit_notes", - "line_items,applied_credit_notes,accounting_period", - "line_items,applied_credit_notes,accounting_period,payment_term", - "line_items,applied_credit_notes,applied_vendor_credits", - "line_items,applied_credit_notes,applied_vendor_credits,accounting_period", - "line_items,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "line_items,applied_credit_notes,applied_vendor_credits,company", - "line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "line_items,applied_credit_notes,applied_vendor_credits,company,employee", - "line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "line_items,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "line_items,applied_credit_notes,applied_vendor_credits,company,payment_term", - "line_items,applied_credit_notes,applied_vendor_credits,contact", - "line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "line_items,applied_credit_notes,applied_vendor_credits,contact,company", - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "line_items,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "line_items,applied_credit_notes,applied_vendor_credits,contact,employee", - "line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "line_items,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "line_items,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "line_items,applied_credit_notes,applied_vendor_credits,employee", - "line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "line_items,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "line_items,applied_credit_notes,applied_vendor_credits,payment_term", - "line_items,applied_credit_notes,company", - "line_items,applied_credit_notes,company,accounting_period", - "line_items,applied_credit_notes,company,accounting_period,payment_term", - "line_items,applied_credit_notes,company,employee", - "line_items,applied_credit_notes,company,employee,accounting_period", - "line_items,applied_credit_notes,company,employee,accounting_period,payment_term", - "line_items,applied_credit_notes,company,employee,payment_term", - "line_items,applied_credit_notes,company,payment_term", - "line_items,applied_credit_notes,contact", - "line_items,applied_credit_notes,contact,accounting_period", - "line_items,applied_credit_notes,contact,accounting_period,payment_term", - "line_items,applied_credit_notes,contact,company", - "line_items,applied_credit_notes,contact,company,accounting_period", - "line_items,applied_credit_notes,contact,company,accounting_period,payment_term", - "line_items,applied_credit_notes,contact,company,employee", - "line_items,applied_credit_notes,contact,company,employee,accounting_period", - "line_items,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "line_items,applied_credit_notes,contact,company,employee,payment_term", - "line_items,applied_credit_notes,contact,company,payment_term", - "line_items,applied_credit_notes,contact,employee", - "line_items,applied_credit_notes,contact,employee,accounting_period", - "line_items,applied_credit_notes,contact,employee,accounting_period,payment_term", - "line_items,applied_credit_notes,contact,employee,payment_term", - "line_items,applied_credit_notes,contact,payment_term", - "line_items,applied_credit_notes,employee", - "line_items,applied_credit_notes,employee,accounting_period", - "line_items,applied_credit_notes,employee,accounting_period,payment_term", - "line_items,applied_credit_notes,employee,payment_term", - "line_items,applied_credit_notes,payment_term", - "line_items,applied_vendor_credits", - "line_items,applied_vendor_credits,accounting_period", - "line_items,applied_vendor_credits,accounting_period,payment_term", - "line_items,applied_vendor_credits,company", - "line_items,applied_vendor_credits,company,accounting_period", - "line_items,applied_vendor_credits,company,accounting_period,payment_term", - "line_items,applied_vendor_credits,company,employee", - "line_items,applied_vendor_credits,company,employee,accounting_period", - "line_items,applied_vendor_credits,company,employee,accounting_period,payment_term", - "line_items,applied_vendor_credits,company,employee,payment_term", - "line_items,applied_vendor_credits,company,payment_term", - "line_items,applied_vendor_credits,contact", - "line_items,applied_vendor_credits,contact,accounting_period", - "line_items,applied_vendor_credits,contact,accounting_period,payment_term", - "line_items,applied_vendor_credits,contact,company", - "line_items,applied_vendor_credits,contact,company,accounting_period", - "line_items,applied_vendor_credits,contact,company,accounting_period,payment_term", - "line_items,applied_vendor_credits,contact,company,employee", - "line_items,applied_vendor_credits,contact,company,employee,accounting_period", - "line_items,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "line_items,applied_vendor_credits,contact,company,employee,payment_term", - "line_items,applied_vendor_credits,contact,company,payment_term", - "line_items,applied_vendor_credits,contact,employee", - "line_items,applied_vendor_credits,contact,employee,accounting_period", - "line_items,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "line_items,applied_vendor_credits,contact,employee,payment_term", - "line_items,applied_vendor_credits,contact,payment_term", - "line_items,applied_vendor_credits,employee", - "line_items,applied_vendor_credits,employee,accounting_period", - "line_items,applied_vendor_credits,employee,accounting_period,payment_term", - "line_items,applied_vendor_credits,employee,payment_term", - "line_items,applied_vendor_credits,payment_term", - "line_items,company", - "line_items,company,accounting_period", - "line_items,company,accounting_period,payment_term", - "line_items,company,employee", - "line_items,company,employee,accounting_period", - "line_items,company,employee,accounting_period,payment_term", - "line_items,company,employee,payment_term", - "line_items,company,payment_term", - "line_items,contact", - "line_items,contact,accounting_period", - "line_items,contact,accounting_period,payment_term", - "line_items,contact,company", - "line_items,contact,company,accounting_period", - "line_items,contact,company,accounting_period,payment_term", - "line_items,contact,company,employee", - "line_items,contact,company,employee,accounting_period", - "line_items,contact,company,employee,accounting_period,payment_term", - "line_items,contact,company,employee,payment_term", - "line_items,contact,company,payment_term", - "line_items,contact,employee", - "line_items,contact,employee,accounting_period", - "line_items,contact,employee,accounting_period,payment_term", - "line_items,contact,employee,payment_term", - "line_items,contact,payment_term", - "line_items,employee", - "line_items,employee,accounting_period", - "line_items,employee,accounting_period,payment_term", - "line_items,employee,payment_term", - "line_items,payment_term", - "line_items,purchase_orders", - "line_items,purchase_orders,accounting_period", - "line_items,purchase_orders,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes", - "line_items,purchase_orders,applied_credit_notes,accounting_period", - "line_items,purchase_orders,applied_credit_notes,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - "line_items,purchase_orders,applied_credit_notes,company", - "line_items,purchase_orders,applied_credit_notes,company,accounting_period", - "line_items,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes,company,employee", - "line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period", - "line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes,company,employee,payment_term", - "line_items,purchase_orders,applied_credit_notes,company,payment_term", - "line_items,purchase_orders,applied_credit_notes,contact", - "line_items,purchase_orders,applied_credit_notes,contact,accounting_period", - "line_items,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes,contact,company", - "line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period", - "line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes,contact,company,employee", - "line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - "line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - "line_items,purchase_orders,applied_credit_notes,contact,company,payment_term", - "line_items,purchase_orders,applied_credit_notes,contact,employee", - "line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - "line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes,contact,employee,payment_term", - "line_items,purchase_orders,applied_credit_notes,contact,payment_term", - "line_items,purchase_orders,applied_credit_notes,employee", - "line_items,purchase_orders,applied_credit_notes,employee,accounting_period", - "line_items,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - "line_items,purchase_orders,applied_credit_notes,employee,payment_term", - "line_items,purchase_orders,applied_credit_notes,payment_term", - "line_items,purchase_orders,applied_vendor_credits", - "line_items,purchase_orders,applied_vendor_credits,accounting_period", - "line_items,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - "line_items,purchase_orders,applied_vendor_credits,company", - "line_items,purchase_orders,applied_vendor_credits,company,accounting_period", - "line_items,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - "line_items,purchase_orders,applied_vendor_credits,company,employee", - "line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - "line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - "line_items,purchase_orders,applied_vendor_credits,company,employee,payment_term", - "line_items,purchase_orders,applied_vendor_credits,company,payment_term", - "line_items,purchase_orders,applied_vendor_credits,contact", - "line_items,purchase_orders,applied_vendor_credits,contact,accounting_period", - "line_items,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - "line_items,purchase_orders,applied_vendor_credits,contact,company", - "line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - "line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - "line_items,purchase_orders,applied_vendor_credits,contact,company,employee", - "line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - "line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "line_items,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - "line_items,purchase_orders,applied_vendor_credits,contact,company,payment_term", - "line_items,purchase_orders,applied_vendor_credits,contact,employee", - "line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - "line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "line_items,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - "line_items,purchase_orders,applied_vendor_credits,contact,payment_term", - "line_items,purchase_orders,applied_vendor_credits,employee", - "line_items,purchase_orders,applied_vendor_credits,employee,accounting_period", - "line_items,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - "line_items,purchase_orders,applied_vendor_credits,employee,payment_term", - "line_items,purchase_orders,applied_vendor_credits,payment_term", - "line_items,purchase_orders,company", - "line_items,purchase_orders,company,accounting_period", - "line_items,purchase_orders,company,accounting_period,payment_term", - "line_items,purchase_orders,company,employee", - "line_items,purchase_orders,company,employee,accounting_period", - "line_items,purchase_orders,company,employee,accounting_period,payment_term", - "line_items,purchase_orders,company,employee,payment_term", - "line_items,purchase_orders,company,payment_term", - "line_items,purchase_orders,contact", - "line_items,purchase_orders,contact,accounting_period", - "line_items,purchase_orders,contact,accounting_period,payment_term", - "line_items,purchase_orders,contact,company", - "line_items,purchase_orders,contact,company,accounting_period", - "line_items,purchase_orders,contact,company,accounting_period,payment_term", - "line_items,purchase_orders,contact,company,employee", - "line_items,purchase_orders,contact,company,employee,accounting_period", - "line_items,purchase_orders,contact,company,employee,accounting_period,payment_term", - "line_items,purchase_orders,contact,company,employee,payment_term", - "line_items,purchase_orders,contact,company,payment_term", - "line_items,purchase_orders,contact,employee", - "line_items,purchase_orders,contact,employee,accounting_period", - "line_items,purchase_orders,contact,employee,accounting_period,payment_term", - "line_items,purchase_orders,contact,employee,payment_term", - "line_items,purchase_orders,contact,payment_term", - "line_items,purchase_orders,employee", - "line_items,purchase_orders,employee,accounting_period", - "line_items,purchase_orders,employee,accounting_period,payment_term", - "line_items,purchase_orders,employee,payment_term", - "line_items,purchase_orders,payment_term", - "line_items,tracking_categories", - "line_items,tracking_categories,accounting_period", - "line_items,tracking_categories,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes", - "line_items,tracking_categories,applied_credit_notes,accounting_period", - "line_items,tracking_categories,applied_credit_notes,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term", - "line_items,tracking_categories,applied_credit_notes,company", - "line_items,tracking_categories,applied_credit_notes,company,accounting_period", - "line_items,tracking_categories,applied_credit_notes,company,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes,company,employee", - "line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period", - "line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes,company,employee,payment_term", - "line_items,tracking_categories,applied_credit_notes,company,payment_term", - "line_items,tracking_categories,applied_credit_notes,contact", - "line_items,tracking_categories,applied_credit_notes,contact,accounting_period", - "line_items,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes,contact,company", - "line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period", - "line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes,contact,company,employee", - "line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period", - "line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes,contact,company,employee,payment_term", - "line_items,tracking_categories,applied_credit_notes,contact,company,payment_term", - "line_items,tracking_categories,applied_credit_notes,contact,employee", - "line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period", - "line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes,contact,employee,payment_term", - "line_items,tracking_categories,applied_credit_notes,contact,payment_term", - "line_items,tracking_categories,applied_credit_notes,employee", - "line_items,tracking_categories,applied_credit_notes,employee,accounting_period", - "line_items,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term", - "line_items,tracking_categories,applied_credit_notes,employee,payment_term", - "line_items,tracking_categories,applied_credit_notes,payment_term", - "line_items,tracking_categories,applied_vendor_credits", - "line_items,tracking_categories,applied_vendor_credits,accounting_period", - "line_items,tracking_categories,applied_vendor_credits,accounting_period,payment_term", - "line_items,tracking_categories,applied_vendor_credits,company", - "line_items,tracking_categories,applied_vendor_credits,company,accounting_period", - "line_items,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term", - "line_items,tracking_categories,applied_vendor_credits,company,employee", - "line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period", - "line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term", - "line_items,tracking_categories,applied_vendor_credits,company,employee,payment_term", - "line_items,tracking_categories,applied_vendor_credits,company,payment_term", - "line_items,tracking_categories,applied_vendor_credits,contact", - "line_items,tracking_categories,applied_vendor_credits,contact,accounting_period", - "line_items,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term", - "line_items,tracking_categories,applied_vendor_credits,contact,company", - "line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period", - "line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term", - "line_items,tracking_categories,applied_vendor_credits,contact,company,employee", - "line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period", - "line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "line_items,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term", - "line_items,tracking_categories,applied_vendor_credits,contact,company,payment_term", - "line_items,tracking_categories,applied_vendor_credits,contact,employee", - "line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period", - "line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "line_items,tracking_categories,applied_vendor_credits,contact,employee,payment_term", - "line_items,tracking_categories,applied_vendor_credits,contact,payment_term", - "line_items,tracking_categories,applied_vendor_credits,employee", - "line_items,tracking_categories,applied_vendor_credits,employee,accounting_period", - "line_items,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term", - "line_items,tracking_categories,applied_vendor_credits,employee,payment_term", - "line_items,tracking_categories,applied_vendor_credits,payment_term", - "line_items,tracking_categories,company", - "line_items,tracking_categories,company,accounting_period", - "line_items,tracking_categories,company,accounting_period,payment_term", - "line_items,tracking_categories,company,employee", - "line_items,tracking_categories,company,employee,accounting_period", - "line_items,tracking_categories,company,employee,accounting_period,payment_term", - "line_items,tracking_categories,company,employee,payment_term", - "line_items,tracking_categories,company,payment_term", - "line_items,tracking_categories,contact", - "line_items,tracking_categories,contact,accounting_period", - "line_items,tracking_categories,contact,accounting_period,payment_term", - "line_items,tracking_categories,contact,company", - "line_items,tracking_categories,contact,company,accounting_period", - "line_items,tracking_categories,contact,company,accounting_period,payment_term", - "line_items,tracking_categories,contact,company,employee", - "line_items,tracking_categories,contact,company,employee,accounting_period", - "line_items,tracking_categories,contact,company,employee,accounting_period,payment_term", - "line_items,tracking_categories,contact,company,employee,payment_term", - "line_items,tracking_categories,contact,company,payment_term", - "line_items,tracking_categories,contact,employee", - "line_items,tracking_categories,contact,employee,accounting_period", - "line_items,tracking_categories,contact,employee,accounting_period,payment_term", - "line_items,tracking_categories,contact,employee,payment_term", - "line_items,tracking_categories,contact,payment_term", - "line_items,tracking_categories,employee", - "line_items,tracking_categories,employee,accounting_period", - "line_items,tracking_categories,employee,accounting_period,payment_term", - "line_items,tracking_categories,employee,payment_term", - "line_items,tracking_categories,payment_term", - "line_items,tracking_categories,purchase_orders", - "line_items,tracking_categories,purchase_orders,accounting_period", - "line_items,tracking_categories,purchase_orders,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,employee", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term", - "line_items,tracking_categories,purchase_orders,applied_credit_notes,payment_term", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term", - "line_items,tracking_categories,purchase_orders,applied_vendor_credits,payment_term", - "line_items,tracking_categories,purchase_orders,company", - "line_items,tracking_categories,purchase_orders,company,accounting_period", - "line_items,tracking_categories,purchase_orders,company,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,company,employee", - "line_items,tracking_categories,purchase_orders,company,employee,accounting_period", - "line_items,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,company,employee,payment_term", - "line_items,tracking_categories,purchase_orders,company,payment_term", - "line_items,tracking_categories,purchase_orders,contact", - "line_items,tracking_categories,purchase_orders,contact,accounting_period", - "line_items,tracking_categories,purchase_orders,contact,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,contact,company", - "line_items,tracking_categories,purchase_orders,contact,company,accounting_period", - "line_items,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,contact,company,employee", - "line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period", - "line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,contact,company,employee,payment_term", - "line_items,tracking_categories,purchase_orders,contact,company,payment_term", - "line_items,tracking_categories,purchase_orders,contact,employee", - "line_items,tracking_categories,purchase_orders,contact,employee,accounting_period", - "line_items,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,contact,employee,payment_term", - "line_items,tracking_categories,purchase_orders,contact,payment_term", - "line_items,tracking_categories,purchase_orders,employee", - "line_items,tracking_categories,purchase_orders,employee,accounting_period", - "line_items,tracking_categories,purchase_orders,employee,accounting_period,payment_term", - "line_items,tracking_categories,purchase_orders,employee,payment_term", - "line_items,tracking_categories,purchase_orders,payment_term", - "payment_term", - "payments", - "payments,accounting_period", - "payments,accounting_period,payment_term", - "payments,applied_credit_notes", - "payments,applied_credit_notes,accounting_period", - "payments,applied_credit_notes,accounting_period,payment_term", - "payments,applied_credit_notes,applied_vendor_credits", - "payments,applied_credit_notes,applied_vendor_credits,accounting_period", - "payments,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_credit_notes,applied_vendor_credits,company", - "payments,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "payments,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_credit_notes,applied_vendor_credits,company,employee", - "payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "payments,applied_credit_notes,applied_vendor_credits,company,payment_term", - "payments,applied_credit_notes,applied_vendor_credits,contact", - "payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_credit_notes,applied_vendor_credits,contact,company", - "payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "payments,applied_credit_notes,applied_vendor_credits,contact,employee", - "payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "payments,applied_credit_notes,applied_vendor_credits,employee", - "payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "payments,applied_credit_notes,applied_vendor_credits,payment_term", - "payments,applied_credit_notes,company", - "payments,applied_credit_notes,company,accounting_period", - "payments,applied_credit_notes,company,accounting_period,payment_term", - "payments,applied_credit_notes,company,employee", - "payments,applied_credit_notes,company,employee,accounting_period", - "payments,applied_credit_notes,company,employee,accounting_period,payment_term", - "payments,applied_credit_notes,company,employee,payment_term", - "payments,applied_credit_notes,company,payment_term", - "payments,applied_credit_notes,contact", - "payments,applied_credit_notes,contact,accounting_period", - "payments,applied_credit_notes,contact,accounting_period,payment_term", - "payments,applied_credit_notes,contact,company", - "payments,applied_credit_notes,contact,company,accounting_period", - "payments,applied_credit_notes,contact,company,accounting_period,payment_term", - "payments,applied_credit_notes,contact,company,employee", - "payments,applied_credit_notes,contact,company,employee,accounting_period", - "payments,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "payments,applied_credit_notes,contact,company,employee,payment_term", - "payments,applied_credit_notes,contact,company,payment_term", - "payments,applied_credit_notes,contact,employee", - "payments,applied_credit_notes,contact,employee,accounting_period", - "payments,applied_credit_notes,contact,employee,accounting_period,payment_term", - "payments,applied_credit_notes,contact,employee,payment_term", - "payments,applied_credit_notes,contact,payment_term", - "payments,applied_credit_notes,employee", - "payments,applied_credit_notes,employee,accounting_period", - "payments,applied_credit_notes,employee,accounting_period,payment_term", - "payments,applied_credit_notes,employee,payment_term", - "payments,applied_credit_notes,payment_term", - "payments,applied_payments", - "payments,applied_payments,accounting_period", - "payments,applied_payments,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes", - "payments,applied_payments,applied_credit_notes,accounting_period", - "payments,applied_payments,applied_credit_notes,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,accounting_period", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,employee", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,payment_term", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,employee", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "payments,applied_payments,applied_credit_notes,applied_vendor_credits,payment_term", - "payments,applied_payments,applied_credit_notes,company", - "payments,applied_payments,applied_credit_notes,company,accounting_period", - "payments,applied_payments,applied_credit_notes,company,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes,company,employee", - "payments,applied_payments,applied_credit_notes,company,employee,accounting_period", - "payments,applied_payments,applied_credit_notes,company,employee,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes,company,employee,payment_term", - "payments,applied_payments,applied_credit_notes,company,payment_term", - "payments,applied_payments,applied_credit_notes,contact", - "payments,applied_payments,applied_credit_notes,contact,accounting_period", - "payments,applied_payments,applied_credit_notes,contact,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes,contact,company", - "payments,applied_payments,applied_credit_notes,contact,company,accounting_period", - "payments,applied_payments,applied_credit_notes,contact,company,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes,contact,company,employee", - "payments,applied_payments,applied_credit_notes,contact,company,employee,accounting_period", - "payments,applied_payments,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes,contact,company,employee,payment_term", - "payments,applied_payments,applied_credit_notes,contact,company,payment_term", - "payments,applied_payments,applied_credit_notes,contact,employee", - "payments,applied_payments,applied_credit_notes,contact,employee,accounting_period", - "payments,applied_payments,applied_credit_notes,contact,employee,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes,contact,employee,payment_term", - "payments,applied_payments,applied_credit_notes,contact,payment_term", - "payments,applied_payments,applied_credit_notes,employee", - "payments,applied_payments,applied_credit_notes,employee,accounting_period", - "payments,applied_payments,applied_credit_notes,employee,accounting_period,payment_term", - "payments,applied_payments,applied_credit_notes,employee,payment_term", - "payments,applied_payments,applied_credit_notes,payment_term", - "payments,applied_payments,applied_vendor_credits", - "payments,applied_payments,applied_vendor_credits,accounting_period", - "payments,applied_payments,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_payments,applied_vendor_credits,company", - "payments,applied_payments,applied_vendor_credits,company,accounting_period", - "payments,applied_payments,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_payments,applied_vendor_credits,company,employee", - "payments,applied_payments,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_payments,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_payments,applied_vendor_credits,company,employee,payment_term", - "payments,applied_payments,applied_vendor_credits,company,payment_term", - "payments,applied_payments,applied_vendor_credits,contact", - "payments,applied_payments,applied_vendor_credits,contact,accounting_period", - "payments,applied_payments,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_payments,applied_vendor_credits,contact,company", - "payments,applied_payments,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_payments,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_payments,applied_vendor_credits,contact,company,employee", - "payments,applied_payments,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_payments,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_payments,applied_vendor_credits,contact,company,payment_term", - "payments,applied_payments,applied_vendor_credits,contact,employee", - "payments,applied_payments,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_payments,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_payments,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_payments,applied_vendor_credits,contact,payment_term", - "payments,applied_payments,applied_vendor_credits,employee", - "payments,applied_payments,applied_vendor_credits,employee,accounting_period", - "payments,applied_payments,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_payments,applied_vendor_credits,employee,payment_term", - "payments,applied_payments,applied_vendor_credits,payment_term", - "payments,applied_payments,company", - "payments,applied_payments,company,accounting_period", - "payments,applied_payments,company,accounting_period,payment_term", - "payments,applied_payments,company,employee", - "payments,applied_payments,company,employee,accounting_period", - "payments,applied_payments,company,employee,accounting_period,payment_term", - "payments,applied_payments,company,employee,payment_term", - "payments,applied_payments,company,payment_term", - "payments,applied_payments,contact", - "payments,applied_payments,contact,accounting_period", - "payments,applied_payments,contact,accounting_period,payment_term", - "payments,applied_payments,contact,company", - "payments,applied_payments,contact,company,accounting_period", - "payments,applied_payments,contact,company,accounting_period,payment_term", - "payments,applied_payments,contact,company,employee", - "payments,applied_payments,contact,company,employee,accounting_period", - "payments,applied_payments,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,contact,company,employee,payment_term", - "payments,applied_payments,contact,company,payment_term", - "payments,applied_payments,contact,employee", - "payments,applied_payments,contact,employee,accounting_period", - "payments,applied_payments,contact,employee,accounting_period,payment_term", - "payments,applied_payments,contact,employee,payment_term", - "payments,applied_payments,contact,payment_term", - "payments,applied_payments,employee", - "payments,applied_payments,employee,accounting_period", - "payments,applied_payments,employee,accounting_period,payment_term", - "payments,applied_payments,employee,payment_term", - "payments,applied_payments,line_items", - "payments,applied_payments,line_items,accounting_period", - "payments,applied_payments,line_items,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes", - "payments,applied_payments,line_items,applied_credit_notes,accounting_period", - "payments,applied_payments,line_items,applied_credit_notes,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,company", - "payments,applied_payments,line_items,applied_credit_notes,company,accounting_period", - "payments,applied_payments,line_items,applied_credit_notes,company,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,company,employee", - "payments,applied_payments,line_items,applied_credit_notes,company,employee,accounting_period", - "payments,applied_payments,line_items,applied_credit_notes,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,company,employee,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,company,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,contact", - "payments,applied_payments,line_items,applied_credit_notes,contact,accounting_period", - "payments,applied_payments,line_items,applied_credit_notes,contact,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,contact,company", - "payments,applied_payments,line_items,applied_credit_notes,contact,company,accounting_period", - "payments,applied_payments,line_items,applied_credit_notes,contact,company,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,contact,company,employee", - "payments,applied_payments,line_items,applied_credit_notes,contact,company,employee,accounting_period", - "payments,applied_payments,line_items,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,contact,company,employee,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,contact,company,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,contact,employee", - "payments,applied_payments,line_items,applied_credit_notes,contact,employee,accounting_period", - "payments,applied_payments,line_items,applied_credit_notes,contact,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,contact,employee,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,contact,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,employee", - "payments,applied_payments,line_items,applied_credit_notes,employee,accounting_period", - "payments,applied_payments,line_items,applied_credit_notes,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,employee,payment_term", - "payments,applied_payments,line_items,applied_credit_notes,payment_term", - "payments,applied_payments,line_items,applied_vendor_credits", - "payments,applied_payments,line_items,applied_vendor_credits,accounting_period", - "payments,applied_payments,line_items,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_vendor_credits,company", - "payments,applied_payments,line_items,applied_vendor_credits,company,accounting_period", - "payments,applied_payments,line_items,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_vendor_credits,company,employee", - "payments,applied_payments,line_items,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_payments,line_items,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_vendor_credits,company,employee,payment_term", - "payments,applied_payments,line_items,applied_vendor_credits,company,payment_term", - "payments,applied_payments,line_items,applied_vendor_credits,contact", - "payments,applied_payments,line_items,applied_vendor_credits,contact,accounting_period", - "payments,applied_payments,line_items,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_vendor_credits,contact,company", - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,employee", - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_payments,line_items,applied_vendor_credits,contact,company,payment_term", - "payments,applied_payments,line_items,applied_vendor_credits,contact,employee", - "payments,applied_payments,line_items,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_payments,line_items,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_payments,line_items,applied_vendor_credits,contact,payment_term", - "payments,applied_payments,line_items,applied_vendor_credits,employee", - "payments,applied_payments,line_items,applied_vendor_credits,employee,accounting_period", - "payments,applied_payments,line_items,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,applied_vendor_credits,employee,payment_term", - "payments,applied_payments,line_items,applied_vendor_credits,payment_term", - "payments,applied_payments,line_items,company", - "payments,applied_payments,line_items,company,accounting_period", - "payments,applied_payments,line_items,company,accounting_period,payment_term", - "payments,applied_payments,line_items,company,employee", - "payments,applied_payments,line_items,company,employee,accounting_period", - "payments,applied_payments,line_items,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,company,employee,payment_term", - "payments,applied_payments,line_items,company,payment_term", - "payments,applied_payments,line_items,contact", - "payments,applied_payments,line_items,contact,accounting_period", - "payments,applied_payments,line_items,contact,accounting_period,payment_term", - "payments,applied_payments,line_items,contact,company", - "payments,applied_payments,line_items,contact,company,accounting_period", - "payments,applied_payments,line_items,contact,company,accounting_period,payment_term", - "payments,applied_payments,line_items,contact,company,employee", - "payments,applied_payments,line_items,contact,company,employee,accounting_period", - "payments,applied_payments,line_items,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,contact,company,employee,payment_term", - "payments,applied_payments,line_items,contact,company,payment_term", - "payments,applied_payments,line_items,contact,employee", - "payments,applied_payments,line_items,contact,employee,accounting_period", - "payments,applied_payments,line_items,contact,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,contact,employee,payment_term", - "payments,applied_payments,line_items,contact,payment_term", - "payments,applied_payments,line_items,employee", - "payments,applied_payments,line_items,employee,accounting_period", - "payments,applied_payments,line_items,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,employee,payment_term", - "payments,applied_payments,line_items,payment_term", - "payments,applied_payments,line_items,purchase_orders", - "payments,applied_payments,line_items,purchase_orders,accounting_period", - "payments,applied_payments,line_items,purchase_orders,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,employee", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,employee,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,employee", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,payment_term", - "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,payment_term", - "payments,applied_payments,line_items,purchase_orders,company", - "payments,applied_payments,line_items,purchase_orders,company,accounting_period", - "payments,applied_payments,line_items,purchase_orders,company,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,company,employee", - "payments,applied_payments,line_items,purchase_orders,company,employee,accounting_period", - "payments,applied_payments,line_items,purchase_orders,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,company,employee,payment_term", - "payments,applied_payments,line_items,purchase_orders,company,payment_term", - "payments,applied_payments,line_items,purchase_orders,contact", - "payments,applied_payments,line_items,purchase_orders,contact,accounting_period", - "payments,applied_payments,line_items,purchase_orders,contact,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,contact,company", - "payments,applied_payments,line_items,purchase_orders,contact,company,accounting_period", - "payments,applied_payments,line_items,purchase_orders,contact,company,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,contact,company,employee", - "payments,applied_payments,line_items,purchase_orders,contact,company,employee,accounting_period", - "payments,applied_payments,line_items,purchase_orders,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,contact,company,employee,payment_term", - "payments,applied_payments,line_items,purchase_orders,contact,company,payment_term", - "payments,applied_payments,line_items,purchase_orders,contact,employee", - "payments,applied_payments,line_items,purchase_orders,contact,employee,accounting_period", - "payments,applied_payments,line_items,purchase_orders,contact,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,contact,employee,payment_term", - "payments,applied_payments,line_items,purchase_orders,contact,payment_term", - "payments,applied_payments,line_items,purchase_orders,employee", - "payments,applied_payments,line_items,purchase_orders,employee,accounting_period", - "payments,applied_payments,line_items,purchase_orders,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,purchase_orders,employee,payment_term", - "payments,applied_payments,line_items,purchase_orders,payment_term", - "payments,applied_payments,line_items,tracking_categories", - "payments,applied_payments,line_items,tracking_categories,accounting_period", - "payments,applied_payments,line_items,tracking_categories,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,employee", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,employee", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,payment_term", - "payments,applied_payments,line_items,tracking_categories,company", - "payments,applied_payments,line_items,tracking_categories,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,company,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,company,employee", - "payments,applied_payments,line_items,tracking_categories,company,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,company,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,company,payment_term", - "payments,applied_payments,line_items,tracking_categories,contact", - "payments,applied_payments,line_items,tracking_categories,contact,accounting_period", - "payments,applied_payments,line_items,tracking_categories,contact,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,contact,company", - "payments,applied_payments,line_items,tracking_categories,contact,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,contact,company,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,contact,company,employee", - "payments,applied_payments,line_items,tracking_categories,contact,company,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,contact,company,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,contact,company,payment_term", - "payments,applied_payments,line_items,tracking_categories,contact,employee", - "payments,applied_payments,line_items,tracking_categories,contact,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,contact,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,contact,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,contact,payment_term", - "payments,applied_payments,line_items,tracking_categories,employee", - "payments,applied_payments,line_items,tracking_categories,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,employee", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,employee", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,employee", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,employee,accounting_period", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,employee,accounting_period,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,employee,payment_term", - "payments,applied_payments,line_items,tracking_categories,purchase_orders,payment_term", - "payments,applied_payments,payment_term", - "payments,applied_payments,purchase_orders", - "payments,applied_payments,purchase_orders,accounting_period", - "payments,applied_payments,purchase_orders,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes", - "payments,applied_payments,purchase_orders,applied_credit_notes,accounting_period", - "payments,applied_payments,purchase_orders,applied_credit_notes,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,company", - "payments,applied_payments,purchase_orders,applied_credit_notes,company,accounting_period", - "payments,applied_payments,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,company,employee", - "payments,applied_payments,purchase_orders,applied_credit_notes,company,employee,accounting_period", - "payments,applied_payments,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,company,employee,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,company,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,contact", - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,accounting_period", - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company", - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,accounting_period", - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,employee", - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,employee", - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,employee,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,contact,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,employee", - "payments,applied_payments,purchase_orders,applied_credit_notes,employee,accounting_period", - "payments,applied_payments,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,employee,payment_term", - "payments,applied_payments,purchase_orders,applied_credit_notes,payment_term", - "payments,applied_payments,purchase_orders,applied_vendor_credits", - "payments,applied_payments,purchase_orders,applied_vendor_credits,accounting_period", - "payments,applied_payments,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_vendor_credits,company", - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,accounting_period", - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,employee", - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,employee,payment_term", - "payments,applied_payments,purchase_orders,applied_vendor_credits,company,payment_term", - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact", - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,accounting_period", - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company", - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee", - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,payment_term", - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,employee", - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,payment_term", - "payments,applied_payments,purchase_orders,applied_vendor_credits,employee", - "payments,applied_payments,purchase_orders,applied_vendor_credits,employee,accounting_period", - "payments,applied_payments,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,applied_vendor_credits,employee,payment_term", - "payments,applied_payments,purchase_orders,applied_vendor_credits,payment_term", - "payments,applied_payments,purchase_orders,company", - "payments,applied_payments,purchase_orders,company,accounting_period", - "payments,applied_payments,purchase_orders,company,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,company,employee", - "payments,applied_payments,purchase_orders,company,employee,accounting_period", - "payments,applied_payments,purchase_orders,company,employee,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,company,employee,payment_term", - "payments,applied_payments,purchase_orders,company,payment_term", - "payments,applied_payments,purchase_orders,contact", - "payments,applied_payments,purchase_orders,contact,accounting_period", - "payments,applied_payments,purchase_orders,contact,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,contact,company", - "payments,applied_payments,purchase_orders,contact,company,accounting_period", - "payments,applied_payments,purchase_orders,contact,company,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,contact,company,employee", - "payments,applied_payments,purchase_orders,contact,company,employee,accounting_period", - "payments,applied_payments,purchase_orders,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,contact,company,employee,payment_term", - "payments,applied_payments,purchase_orders,contact,company,payment_term", - "payments,applied_payments,purchase_orders,contact,employee", - "payments,applied_payments,purchase_orders,contact,employee,accounting_period", - "payments,applied_payments,purchase_orders,contact,employee,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,contact,employee,payment_term", - "payments,applied_payments,purchase_orders,contact,payment_term", - "payments,applied_payments,purchase_orders,employee", - "payments,applied_payments,purchase_orders,employee,accounting_period", - "payments,applied_payments,purchase_orders,employee,accounting_period,payment_term", - "payments,applied_payments,purchase_orders,employee,payment_term", - "payments,applied_payments,purchase_orders,payment_term", - "payments,applied_payments,tracking_categories", - "payments,applied_payments,tracking_categories,accounting_period", - "payments,applied_payments,tracking_categories,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes", - "payments,applied_payments,tracking_categories,applied_credit_notes,accounting_period", - "payments,applied_payments,tracking_categories,applied_credit_notes,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,company", - "payments,applied_payments,tracking_categories,applied_credit_notes,company,accounting_period", - "payments,applied_payments,tracking_categories,applied_credit_notes,company,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,company,employee", - "payments,applied_payments,tracking_categories,applied_credit_notes,company,employee,accounting_period", - "payments,applied_payments,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,company,employee,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,company,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,contact", - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,accounting_period", - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company", - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,accounting_period", - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,employee", - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period", - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,employee", - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period", - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,employee,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,contact,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,employee", - "payments,applied_payments,tracking_categories,applied_credit_notes,employee,accounting_period", - "payments,applied_payments,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,employee,payment_term", - "payments,applied_payments,tracking_categories,applied_credit_notes,payment_term", - "payments,applied_payments,tracking_categories,applied_vendor_credits", - "payments,applied_payments,tracking_categories,applied_vendor_credits,accounting_period", - "payments,applied_payments,tracking_categories,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_vendor_credits,company", - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,accounting_period", - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,employee", - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,employee,payment_term", - "payments,applied_payments,tracking_categories,applied_vendor_credits,company,payment_term", - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact", - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,accounting_period", - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company", - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee", - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,payment_term", - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,employee", - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,payment_term", - "payments,applied_payments,tracking_categories,applied_vendor_credits,employee", - "payments,applied_payments,tracking_categories,applied_vendor_credits,employee,accounting_period", - "payments,applied_payments,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,applied_vendor_credits,employee,payment_term", - "payments,applied_payments,tracking_categories,applied_vendor_credits,payment_term", - "payments,applied_payments,tracking_categories,company", - "payments,applied_payments,tracking_categories,company,accounting_period", - "payments,applied_payments,tracking_categories,company,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,company,employee", - "payments,applied_payments,tracking_categories,company,employee,accounting_period", - "payments,applied_payments,tracking_categories,company,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,company,employee,payment_term", - "payments,applied_payments,tracking_categories,company,payment_term", - "payments,applied_payments,tracking_categories,contact", - "payments,applied_payments,tracking_categories,contact,accounting_period", - "payments,applied_payments,tracking_categories,contact,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,contact,company", - "payments,applied_payments,tracking_categories,contact,company,accounting_period", - "payments,applied_payments,tracking_categories,contact,company,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,contact,company,employee", - "payments,applied_payments,tracking_categories,contact,company,employee,accounting_period", - "payments,applied_payments,tracking_categories,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,contact,company,employee,payment_term", - "payments,applied_payments,tracking_categories,contact,company,payment_term", - "payments,applied_payments,tracking_categories,contact,employee", - "payments,applied_payments,tracking_categories,contact,employee,accounting_period", - "payments,applied_payments,tracking_categories,contact,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,contact,employee,payment_term", - "payments,applied_payments,tracking_categories,contact,payment_term", - "payments,applied_payments,tracking_categories,employee", - "payments,applied_payments,tracking_categories,employee,accounting_period", - "payments,applied_payments,tracking_categories,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,employee,payment_term", - "payments,applied_payments,tracking_categories,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders", - "payments,applied_payments,tracking_categories,purchase_orders,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,company", - "payments,applied_payments,tracking_categories,purchase_orders,company,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,company,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,company,employee", - "payments,applied_payments,tracking_categories,purchase_orders,company,employee,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,company,employee,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,company,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,contact", - "payments,applied_payments,tracking_categories,purchase_orders,contact,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,contact,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,contact,company", - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,employee", - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,employee,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,contact,company,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,contact,employee", - "payments,applied_payments,tracking_categories,purchase_orders,contact,employee,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,contact,employee,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,contact,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,employee", - "payments,applied_payments,tracking_categories,purchase_orders,employee,accounting_period", - "payments,applied_payments,tracking_categories,purchase_orders,employee,accounting_period,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,employee,payment_term", - "payments,applied_payments,tracking_categories,purchase_orders,payment_term", - "payments,applied_vendor_credits", - "payments,applied_vendor_credits,accounting_period", - "payments,applied_vendor_credits,accounting_period,payment_term", - "payments,applied_vendor_credits,company", - "payments,applied_vendor_credits,company,accounting_period", - "payments,applied_vendor_credits,company,accounting_period,payment_term", - "payments,applied_vendor_credits,company,employee", - "payments,applied_vendor_credits,company,employee,accounting_period", - "payments,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,applied_vendor_credits,company,employee,payment_term", - "payments,applied_vendor_credits,company,payment_term", - "payments,applied_vendor_credits,contact", - "payments,applied_vendor_credits,contact,accounting_period", - "payments,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,applied_vendor_credits,contact,company", - "payments,applied_vendor_credits,contact,company,accounting_period", - "payments,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,applied_vendor_credits,contact,company,employee", - "payments,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,applied_vendor_credits,contact,company,employee,payment_term", - "payments,applied_vendor_credits,contact,company,payment_term", - "payments,applied_vendor_credits,contact,employee", - "payments,applied_vendor_credits,contact,employee,accounting_period", - "payments,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,applied_vendor_credits,contact,employee,payment_term", - "payments,applied_vendor_credits,contact,payment_term", - "payments,applied_vendor_credits,employee", - "payments,applied_vendor_credits,employee,accounting_period", - "payments,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,applied_vendor_credits,employee,payment_term", - "payments,applied_vendor_credits,payment_term", - "payments,company", - "payments,company,accounting_period", - "payments,company,accounting_period,payment_term", - "payments,company,employee", - "payments,company,employee,accounting_period", - "payments,company,employee,accounting_period,payment_term", - "payments,company,employee,payment_term", - "payments,company,payment_term", - "payments,contact", - "payments,contact,accounting_period", - "payments,contact,accounting_period,payment_term", - "payments,contact,company", - "payments,contact,company,accounting_period", - "payments,contact,company,accounting_period,payment_term", - "payments,contact,company,employee", - "payments,contact,company,employee,accounting_period", - "payments,contact,company,employee,accounting_period,payment_term", - "payments,contact,company,employee,payment_term", - "payments,contact,company,payment_term", - "payments,contact,employee", - "payments,contact,employee,accounting_period", - "payments,contact,employee,accounting_period,payment_term", - "payments,contact,employee,payment_term", - "payments,contact,payment_term", - "payments,employee", - "payments,employee,accounting_period", - "payments,employee,accounting_period,payment_term", - "payments,employee,payment_term", - "payments,line_items", - "payments,line_items,accounting_period", - "payments,line_items,accounting_period,payment_term", - "payments,line_items,applied_credit_notes", - "payments,line_items,applied_credit_notes,accounting_period", - "payments,line_items,applied_credit_notes,accounting_period,payment_term", - "payments,line_items,applied_credit_notes,applied_vendor_credits", - "payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period", - "payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "payments,line_items,applied_credit_notes,applied_vendor_credits,company", - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee", - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "payments,line_items,applied_credit_notes,applied_vendor_credits,company,payment_term", - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact", - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company", - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee", - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "payments,line_items,applied_credit_notes,applied_vendor_credits,employee", - "payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,line_items,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "payments,line_items,applied_credit_notes,applied_vendor_credits,payment_term", - "payments,line_items,applied_credit_notes,company", - "payments,line_items,applied_credit_notes,company,accounting_period", - "payments,line_items,applied_credit_notes,company,accounting_period,payment_term", - "payments,line_items,applied_credit_notes,company,employee", - "payments,line_items,applied_credit_notes,company,employee,accounting_period", - "payments,line_items,applied_credit_notes,company,employee,accounting_period,payment_term", - "payments,line_items,applied_credit_notes,company,employee,payment_term", - "payments,line_items,applied_credit_notes,company,payment_term", - "payments,line_items,applied_credit_notes,contact", - "payments,line_items,applied_credit_notes,contact,accounting_period", - "payments,line_items,applied_credit_notes,contact,accounting_period,payment_term", - "payments,line_items,applied_credit_notes,contact,company", - "payments,line_items,applied_credit_notes,contact,company,accounting_period", - "payments,line_items,applied_credit_notes,contact,company,accounting_period,payment_term", - "payments,line_items,applied_credit_notes,contact,company,employee", - "payments,line_items,applied_credit_notes,contact,company,employee,accounting_period", - "payments,line_items,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "payments,line_items,applied_credit_notes,contact,company,employee,payment_term", - "payments,line_items,applied_credit_notes,contact,company,payment_term", - "payments,line_items,applied_credit_notes,contact,employee", - "payments,line_items,applied_credit_notes,contact,employee,accounting_period", - "payments,line_items,applied_credit_notes,contact,employee,accounting_period,payment_term", - "payments,line_items,applied_credit_notes,contact,employee,payment_term", - "payments,line_items,applied_credit_notes,contact,payment_term", - "payments,line_items,applied_credit_notes,employee", - "payments,line_items,applied_credit_notes,employee,accounting_period", - "payments,line_items,applied_credit_notes,employee,accounting_period,payment_term", - "payments,line_items,applied_credit_notes,employee,payment_term", - "payments,line_items,applied_credit_notes,payment_term", - "payments,line_items,applied_vendor_credits", - "payments,line_items,applied_vendor_credits,accounting_period", - "payments,line_items,applied_vendor_credits,accounting_period,payment_term", - "payments,line_items,applied_vendor_credits,company", - "payments,line_items,applied_vendor_credits,company,accounting_period", - "payments,line_items,applied_vendor_credits,company,accounting_period,payment_term", - "payments,line_items,applied_vendor_credits,company,employee", - "payments,line_items,applied_vendor_credits,company,employee,accounting_period", - "payments,line_items,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,line_items,applied_vendor_credits,company,employee,payment_term", - "payments,line_items,applied_vendor_credits,company,payment_term", - "payments,line_items,applied_vendor_credits,contact", - "payments,line_items,applied_vendor_credits,contact,accounting_period", - "payments,line_items,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,line_items,applied_vendor_credits,contact,company", - "payments,line_items,applied_vendor_credits,contact,company,accounting_period", - "payments,line_items,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,line_items,applied_vendor_credits,contact,company,employee", - "payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,line_items,applied_vendor_credits,contact,company,employee,payment_term", - "payments,line_items,applied_vendor_credits,contact,company,payment_term", - "payments,line_items,applied_vendor_credits,contact,employee", - "payments,line_items,applied_vendor_credits,contact,employee,accounting_period", - "payments,line_items,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,line_items,applied_vendor_credits,contact,employee,payment_term", - "payments,line_items,applied_vendor_credits,contact,payment_term", - "payments,line_items,applied_vendor_credits,employee", - "payments,line_items,applied_vendor_credits,employee,accounting_period", - "payments,line_items,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,line_items,applied_vendor_credits,employee,payment_term", - "payments,line_items,applied_vendor_credits,payment_term", - "payments,line_items,company", - "payments,line_items,company,accounting_period", - "payments,line_items,company,accounting_period,payment_term", - "payments,line_items,company,employee", - "payments,line_items,company,employee,accounting_period", - "payments,line_items,company,employee,accounting_period,payment_term", - "payments,line_items,company,employee,payment_term", - "payments,line_items,company,payment_term", - "payments,line_items,contact", - "payments,line_items,contact,accounting_period", - "payments,line_items,contact,accounting_period,payment_term", - "payments,line_items,contact,company", - "payments,line_items,contact,company,accounting_period", - "payments,line_items,contact,company,accounting_period,payment_term", - "payments,line_items,contact,company,employee", - "payments,line_items,contact,company,employee,accounting_period", - "payments,line_items,contact,company,employee,accounting_period,payment_term", - "payments,line_items,contact,company,employee,payment_term", - "payments,line_items,contact,company,payment_term", - "payments,line_items,contact,employee", - "payments,line_items,contact,employee,accounting_period", - "payments,line_items,contact,employee,accounting_period,payment_term", - "payments,line_items,contact,employee,payment_term", - "payments,line_items,contact,payment_term", - "payments,line_items,employee", - "payments,line_items,employee,accounting_period", - "payments,line_items,employee,accounting_period,payment_term", - "payments,line_items,employee,payment_term", - "payments,line_items,payment_term", - "payments,line_items,purchase_orders", - "payments,line_items,purchase_orders,accounting_period", - "payments,line_items,purchase_orders,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes", - "payments,line_items,purchase_orders,applied_credit_notes,accounting_period", - "payments,line_items,purchase_orders,applied_credit_notes,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,company", - "payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period", - "payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,company,employee", - "payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period", - "payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,company,employee,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,company,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,contact", - "payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period", - "payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,contact,company", - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period", - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee", - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,contact,company,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,contact,employee", - "payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - "payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,contact,employee,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,contact,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,employee", - "payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period", - "payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,employee,payment_term", - "payments,line_items,purchase_orders,applied_credit_notes,payment_term", - "payments,line_items,purchase_orders,applied_vendor_credits", - "payments,line_items,purchase_orders,applied_vendor_credits,accounting_period", - "payments,line_items,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_vendor_credits,company", - "payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period", - "payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_vendor_credits,company,employee", - "payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - "payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_vendor_credits,company,employee,payment_term", - "payments,line_items,purchase_orders,applied_vendor_credits,company,payment_term", - "payments,line_items,purchase_orders,applied_vendor_credits,contact", - "payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period", - "payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company", - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee", - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,payment_term", - "payments,line_items,purchase_orders,applied_vendor_credits,contact,employee", - "payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - "payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - "payments,line_items,purchase_orders,applied_vendor_credits,contact,payment_term", - "payments,line_items,purchase_orders,applied_vendor_credits,employee", - "payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period", - "payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,line_items,purchase_orders,applied_vendor_credits,employee,payment_term", - "payments,line_items,purchase_orders,applied_vendor_credits,payment_term", - "payments,line_items,purchase_orders,company", - "payments,line_items,purchase_orders,company,accounting_period", - "payments,line_items,purchase_orders,company,accounting_period,payment_term", - "payments,line_items,purchase_orders,company,employee", - "payments,line_items,purchase_orders,company,employee,accounting_period", - "payments,line_items,purchase_orders,company,employee,accounting_period,payment_term", - "payments,line_items,purchase_orders,company,employee,payment_term", - "payments,line_items,purchase_orders,company,payment_term", - "payments,line_items,purchase_orders,contact", - "payments,line_items,purchase_orders,contact,accounting_period", - "payments,line_items,purchase_orders,contact,accounting_period,payment_term", - "payments,line_items,purchase_orders,contact,company", - "payments,line_items,purchase_orders,contact,company,accounting_period", - "payments,line_items,purchase_orders,contact,company,accounting_period,payment_term", - "payments,line_items,purchase_orders,contact,company,employee", - "payments,line_items,purchase_orders,contact,company,employee,accounting_period", - "payments,line_items,purchase_orders,contact,company,employee,accounting_period,payment_term", - "payments,line_items,purchase_orders,contact,company,employee,payment_term", - "payments,line_items,purchase_orders,contact,company,payment_term", - "payments,line_items,purchase_orders,contact,employee", - "payments,line_items,purchase_orders,contact,employee,accounting_period", - "payments,line_items,purchase_orders,contact,employee,accounting_period,payment_term", - "payments,line_items,purchase_orders,contact,employee,payment_term", - "payments,line_items,purchase_orders,contact,payment_term", - "payments,line_items,purchase_orders,employee", - "payments,line_items,purchase_orders,employee,accounting_period", - "payments,line_items,purchase_orders,employee,accounting_period,payment_term", - "payments,line_items,purchase_orders,employee,payment_term", - "payments,line_items,purchase_orders,payment_term", - "payments,line_items,tracking_categories", - "payments,line_items,tracking_categories,accounting_period", - "payments,line_items,tracking_categories,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes", - "payments,line_items,tracking_categories,applied_credit_notes,accounting_period", - "payments,line_items,tracking_categories,applied_credit_notes,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,company", - "payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period", - "payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,company,employee", - "payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period", - "payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,company,employee,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,company,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,contact", - "payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period", - "payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,contact,company", - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period", - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee", - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period", - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,contact,company,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,contact,employee", - "payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period", - "payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,contact,employee,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,contact,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,employee", - "payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period", - "payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,employee,payment_term", - "payments,line_items,tracking_categories,applied_credit_notes,payment_term", - "payments,line_items,tracking_categories,applied_vendor_credits", - "payments,line_items,tracking_categories,applied_vendor_credits,accounting_period", - "payments,line_items,tracking_categories,applied_vendor_credits,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_vendor_credits,company", - "payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period", - "payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_vendor_credits,company,employee", - "payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period", - "payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_vendor_credits,company,employee,payment_term", - "payments,line_items,tracking_categories,applied_vendor_credits,company,payment_term", - "payments,line_items,tracking_categories,applied_vendor_credits,contact", - "payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period", - "payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company", - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period", - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee", - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term", - "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,payment_term", - "payments,line_items,tracking_categories,applied_vendor_credits,contact,employee", - "payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period", - "payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,payment_term", - "payments,line_items,tracking_categories,applied_vendor_credits,contact,payment_term", - "payments,line_items,tracking_categories,applied_vendor_credits,employee", - "payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period", - "payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,applied_vendor_credits,employee,payment_term", - "payments,line_items,tracking_categories,applied_vendor_credits,payment_term", - "payments,line_items,tracking_categories,company", - "payments,line_items,tracking_categories,company,accounting_period", - "payments,line_items,tracking_categories,company,accounting_period,payment_term", - "payments,line_items,tracking_categories,company,employee", - "payments,line_items,tracking_categories,company,employee,accounting_period", - "payments,line_items,tracking_categories,company,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,company,employee,payment_term", - "payments,line_items,tracking_categories,company,payment_term", - "payments,line_items,tracking_categories,contact", - "payments,line_items,tracking_categories,contact,accounting_period", - "payments,line_items,tracking_categories,contact,accounting_period,payment_term", - "payments,line_items,tracking_categories,contact,company", - "payments,line_items,tracking_categories,contact,company,accounting_period", - "payments,line_items,tracking_categories,contact,company,accounting_period,payment_term", - "payments,line_items,tracking_categories,contact,company,employee", - "payments,line_items,tracking_categories,contact,company,employee,accounting_period", - "payments,line_items,tracking_categories,contact,company,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,contact,company,employee,payment_term", - "payments,line_items,tracking_categories,contact,company,payment_term", - "payments,line_items,tracking_categories,contact,employee", - "payments,line_items,tracking_categories,contact,employee,accounting_period", - "payments,line_items,tracking_categories,contact,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,contact,employee,payment_term", - "payments,line_items,tracking_categories,contact,payment_term", - "payments,line_items,tracking_categories,employee", - "payments,line_items,tracking_categories,employee,accounting_period", - "payments,line_items,tracking_categories,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,employee,payment_term", - "payments,line_items,tracking_categories,payment_term", - "payments,line_items,tracking_categories,purchase_orders", - "payments,line_items,tracking_categories,purchase_orders,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term", - "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,payment_term", - "payments,line_items,tracking_categories,purchase_orders,company", - "payments,line_items,tracking_categories,purchase_orders,company,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,company,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,company,employee", - "payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,company,employee,payment_term", - "payments,line_items,tracking_categories,purchase_orders,company,payment_term", - "payments,line_items,tracking_categories,purchase_orders,contact", - "payments,line_items,tracking_categories,purchase_orders,contact,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,contact,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,contact,company", - "payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,contact,company,employee", - "payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,contact,company,employee,payment_term", - "payments,line_items,tracking_categories,purchase_orders,contact,company,payment_term", - "payments,line_items,tracking_categories,purchase_orders,contact,employee", - "payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,contact,employee,payment_term", - "payments,line_items,tracking_categories,purchase_orders,contact,payment_term", - "payments,line_items,tracking_categories,purchase_orders,employee", - "payments,line_items,tracking_categories,purchase_orders,employee,accounting_period", - "payments,line_items,tracking_categories,purchase_orders,employee,accounting_period,payment_term", - "payments,line_items,tracking_categories,purchase_orders,employee,payment_term", - "payments,line_items,tracking_categories,purchase_orders,payment_term", - "payments,payment_term", - "payments,purchase_orders", - "payments,purchase_orders,accounting_period", - "payments,purchase_orders,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes", - "payments,purchase_orders,applied_credit_notes,accounting_period", - "payments,purchase_orders,applied_credit_notes,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - "payments,purchase_orders,applied_credit_notes,company", - "payments,purchase_orders,applied_credit_notes,company,accounting_period", - "payments,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes,company,employee", - "payments,purchase_orders,applied_credit_notes,company,employee,accounting_period", - "payments,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes,company,employee,payment_term", - "payments,purchase_orders,applied_credit_notes,company,payment_term", - "payments,purchase_orders,applied_credit_notes,contact", - "payments,purchase_orders,applied_credit_notes,contact,accounting_period", - "payments,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes,contact,company", - "payments,purchase_orders,applied_credit_notes,contact,company,accounting_period", - "payments,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes,contact,company,employee", - "payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - "payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - "payments,purchase_orders,applied_credit_notes,contact,company,payment_term", - "payments,purchase_orders,applied_credit_notes,contact,employee", - "payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - "payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes,contact,employee,payment_term", - "payments,purchase_orders,applied_credit_notes,contact,payment_term", - "payments,purchase_orders,applied_credit_notes,employee", - "payments,purchase_orders,applied_credit_notes,employee,accounting_period", - "payments,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - "payments,purchase_orders,applied_credit_notes,employee,payment_term", - "payments,purchase_orders,applied_credit_notes,payment_term", - "payments,purchase_orders,applied_vendor_credits", - "payments,purchase_orders,applied_vendor_credits,accounting_period", - "payments,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - "payments,purchase_orders,applied_vendor_credits,company", - "payments,purchase_orders,applied_vendor_credits,company,accounting_period", - "payments,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - "payments,purchase_orders,applied_vendor_credits,company,employee", - "payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - "payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,purchase_orders,applied_vendor_credits,company,employee,payment_term", - "payments,purchase_orders,applied_vendor_credits,company,payment_term", - "payments,purchase_orders,applied_vendor_credits,contact", - "payments,purchase_orders,applied_vendor_credits,contact,accounting_period", - "payments,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,purchase_orders,applied_vendor_credits,contact,company", - "payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - "payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,purchase_orders,applied_vendor_credits,contact,company,employee", - "payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - "payments,purchase_orders,applied_vendor_credits,contact,company,payment_term", - "payments,purchase_orders,applied_vendor_credits,contact,employee", - "payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - "payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - "payments,purchase_orders,applied_vendor_credits,contact,payment_term", - "payments,purchase_orders,applied_vendor_credits,employee", - "payments,purchase_orders,applied_vendor_credits,employee,accounting_period", - "payments,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,purchase_orders,applied_vendor_credits,employee,payment_term", - "payments,purchase_orders,applied_vendor_credits,payment_term", - "payments,purchase_orders,company", - "payments,purchase_orders,company,accounting_period", - "payments,purchase_orders,company,accounting_period,payment_term", - "payments,purchase_orders,company,employee", - "payments,purchase_orders,company,employee,accounting_period", - "payments,purchase_orders,company,employee,accounting_period,payment_term", - "payments,purchase_orders,company,employee,payment_term", - "payments,purchase_orders,company,payment_term", - "payments,purchase_orders,contact", - "payments,purchase_orders,contact,accounting_period", - "payments,purchase_orders,contact,accounting_period,payment_term", - "payments,purchase_orders,contact,company", - "payments,purchase_orders,contact,company,accounting_period", - "payments,purchase_orders,contact,company,accounting_period,payment_term", - "payments,purchase_orders,contact,company,employee", - "payments,purchase_orders,contact,company,employee,accounting_period", - "payments,purchase_orders,contact,company,employee,accounting_period,payment_term", - "payments,purchase_orders,contact,company,employee,payment_term", - "payments,purchase_orders,contact,company,payment_term", - "payments,purchase_orders,contact,employee", - "payments,purchase_orders,contact,employee,accounting_period", - "payments,purchase_orders,contact,employee,accounting_period,payment_term", - "payments,purchase_orders,contact,employee,payment_term", - "payments,purchase_orders,contact,payment_term", - "payments,purchase_orders,employee", - "payments,purchase_orders,employee,accounting_period", - "payments,purchase_orders,employee,accounting_period,payment_term", - "payments,purchase_orders,employee,payment_term", - "payments,purchase_orders,payment_term", - "payments,tracking_categories", - "payments,tracking_categories,accounting_period", - "payments,tracking_categories,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes", - "payments,tracking_categories,applied_credit_notes,accounting_period", - "payments,tracking_categories,applied_credit_notes,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term", - "payments,tracking_categories,applied_credit_notes,company", - "payments,tracking_categories,applied_credit_notes,company,accounting_period", - "payments,tracking_categories,applied_credit_notes,company,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes,company,employee", - "payments,tracking_categories,applied_credit_notes,company,employee,accounting_period", - "payments,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes,company,employee,payment_term", - "payments,tracking_categories,applied_credit_notes,company,payment_term", - "payments,tracking_categories,applied_credit_notes,contact", - "payments,tracking_categories,applied_credit_notes,contact,accounting_period", - "payments,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes,contact,company", - "payments,tracking_categories,applied_credit_notes,contact,company,accounting_period", - "payments,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes,contact,company,employee", - "payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period", - "payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes,contact,company,employee,payment_term", - "payments,tracking_categories,applied_credit_notes,contact,company,payment_term", - "payments,tracking_categories,applied_credit_notes,contact,employee", - "payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period", - "payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes,contact,employee,payment_term", - "payments,tracking_categories,applied_credit_notes,contact,payment_term", - "payments,tracking_categories,applied_credit_notes,employee", - "payments,tracking_categories,applied_credit_notes,employee,accounting_period", - "payments,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term", - "payments,tracking_categories,applied_credit_notes,employee,payment_term", - "payments,tracking_categories,applied_credit_notes,payment_term", - "payments,tracking_categories,applied_vendor_credits", - "payments,tracking_categories,applied_vendor_credits,accounting_period", - "payments,tracking_categories,applied_vendor_credits,accounting_period,payment_term", - "payments,tracking_categories,applied_vendor_credits,company", - "payments,tracking_categories,applied_vendor_credits,company,accounting_period", - "payments,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term", - "payments,tracking_categories,applied_vendor_credits,company,employee", - "payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period", - "payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,tracking_categories,applied_vendor_credits,company,employee,payment_term", - "payments,tracking_categories,applied_vendor_credits,company,payment_term", - "payments,tracking_categories,applied_vendor_credits,contact", - "payments,tracking_categories,applied_vendor_credits,contact,accounting_period", - "payments,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,tracking_categories,applied_vendor_credits,contact,company", - "payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period", - "payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,tracking_categories,applied_vendor_credits,contact,company,employee", - "payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term", - "payments,tracking_categories,applied_vendor_credits,contact,company,payment_term", - "payments,tracking_categories,applied_vendor_credits,contact,employee", - "payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period", - "payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,tracking_categories,applied_vendor_credits,contact,employee,payment_term", - "payments,tracking_categories,applied_vendor_credits,contact,payment_term", - "payments,tracking_categories,applied_vendor_credits,employee", - "payments,tracking_categories,applied_vendor_credits,employee,accounting_period", - "payments,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,tracking_categories,applied_vendor_credits,employee,payment_term", - "payments,tracking_categories,applied_vendor_credits,payment_term", - "payments,tracking_categories,company", - "payments,tracking_categories,company,accounting_period", - "payments,tracking_categories,company,accounting_period,payment_term", - "payments,tracking_categories,company,employee", - "payments,tracking_categories,company,employee,accounting_period", - "payments,tracking_categories,company,employee,accounting_period,payment_term", - "payments,tracking_categories,company,employee,payment_term", - "payments,tracking_categories,company,payment_term", - "payments,tracking_categories,contact", - "payments,tracking_categories,contact,accounting_period", - "payments,tracking_categories,contact,accounting_period,payment_term", - "payments,tracking_categories,contact,company", - "payments,tracking_categories,contact,company,accounting_period", - "payments,tracking_categories,contact,company,accounting_period,payment_term", - "payments,tracking_categories,contact,company,employee", - "payments,tracking_categories,contact,company,employee,accounting_period", - "payments,tracking_categories,contact,company,employee,accounting_period,payment_term", - "payments,tracking_categories,contact,company,employee,payment_term", - "payments,tracking_categories,contact,company,payment_term", - "payments,tracking_categories,contact,employee", - "payments,tracking_categories,contact,employee,accounting_period", - "payments,tracking_categories,contact,employee,accounting_period,payment_term", - "payments,tracking_categories,contact,employee,payment_term", - "payments,tracking_categories,contact,payment_term", - "payments,tracking_categories,employee", - "payments,tracking_categories,employee,accounting_period", - "payments,tracking_categories,employee,accounting_period,payment_term", - "payments,tracking_categories,employee,payment_term", - "payments,tracking_categories,payment_term", - "payments,tracking_categories,purchase_orders", - "payments,tracking_categories,purchase_orders,accounting_period", - "payments,tracking_categories,purchase_orders,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes", - "payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period", - "payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,company", - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period", - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee", - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period", - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact", - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period", - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company", - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period", - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee", - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee", - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,employee", - "payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period", - "payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term", - "payments,tracking_categories,purchase_orders,applied_credit_notes,payment_term", - "payments,tracking_categories,purchase_orders,applied_vendor_credits", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,employee", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term", - "payments,tracking_categories,purchase_orders,applied_vendor_credits,payment_term", - "payments,tracking_categories,purchase_orders,company", - "payments,tracking_categories,purchase_orders,company,accounting_period", - "payments,tracking_categories,purchase_orders,company,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,company,employee", - "payments,tracking_categories,purchase_orders,company,employee,accounting_period", - "payments,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,company,employee,payment_term", - "payments,tracking_categories,purchase_orders,company,payment_term", - "payments,tracking_categories,purchase_orders,contact", - "payments,tracking_categories,purchase_orders,contact,accounting_period", - "payments,tracking_categories,purchase_orders,contact,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,contact,company", - "payments,tracking_categories,purchase_orders,contact,company,accounting_period", - "payments,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,contact,company,employee", - "payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period", - "payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,contact,company,employee,payment_term", - "payments,tracking_categories,purchase_orders,contact,company,payment_term", - "payments,tracking_categories,purchase_orders,contact,employee", - "payments,tracking_categories,purchase_orders,contact,employee,accounting_period", - "payments,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,contact,employee,payment_term", - "payments,tracking_categories,purchase_orders,contact,payment_term", - "payments,tracking_categories,purchase_orders,employee", - "payments,tracking_categories,purchase_orders,employee,accounting_period", - "payments,tracking_categories,purchase_orders,employee,accounting_period,payment_term", - "payments,tracking_categories,purchase_orders,employee,payment_term", - "payments,tracking_categories,purchase_orders,payment_term", - "purchase_orders", - "purchase_orders,accounting_period", - "purchase_orders,accounting_period,payment_term", - "purchase_orders,applied_credit_notes", - "purchase_orders,applied_credit_notes,accounting_period", - "purchase_orders,applied_credit_notes,accounting_period,payment_term", - "purchase_orders,applied_credit_notes,applied_vendor_credits", - "purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - "purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "purchase_orders,applied_credit_notes,applied_vendor_credits,company", - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - "purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - "purchase_orders,applied_credit_notes,company", - "purchase_orders,applied_credit_notes,company,accounting_period", - "purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - "purchase_orders,applied_credit_notes,company,employee", - "purchase_orders,applied_credit_notes,company,employee,accounting_period", - "purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - "purchase_orders,applied_credit_notes,company,employee,payment_term", - "purchase_orders,applied_credit_notes,company,payment_term", - "purchase_orders,applied_credit_notes,contact", - "purchase_orders,applied_credit_notes,contact,accounting_period", - "purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - "purchase_orders,applied_credit_notes,contact,company", - "purchase_orders,applied_credit_notes,contact,company,accounting_period", - "purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - "purchase_orders,applied_credit_notes,contact,company,employee", - "purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - "purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - "purchase_orders,applied_credit_notes,contact,company,payment_term", - "purchase_orders,applied_credit_notes,contact,employee", - "purchase_orders,applied_credit_notes,contact,employee,accounting_period", - "purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - "purchase_orders,applied_credit_notes,contact,employee,payment_term", - "purchase_orders,applied_credit_notes,contact,payment_term", - "purchase_orders,applied_credit_notes,employee", - "purchase_orders,applied_credit_notes,employee,accounting_period", - "purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - "purchase_orders,applied_credit_notes,employee,payment_term", - "purchase_orders,applied_credit_notes,payment_term", - "purchase_orders,applied_vendor_credits", - "purchase_orders,applied_vendor_credits,accounting_period", - "purchase_orders,applied_vendor_credits,accounting_period,payment_term", - "purchase_orders,applied_vendor_credits,company", - "purchase_orders,applied_vendor_credits,company,accounting_period", - "purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - "purchase_orders,applied_vendor_credits,company,employee", - "purchase_orders,applied_vendor_credits,company,employee,accounting_period", - "purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - "purchase_orders,applied_vendor_credits,company,employee,payment_term", - "purchase_orders,applied_vendor_credits,company,payment_term", - "purchase_orders,applied_vendor_credits,contact", - "purchase_orders,applied_vendor_credits,contact,accounting_period", - "purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - "purchase_orders,applied_vendor_credits,contact,company", - "purchase_orders,applied_vendor_credits,contact,company,accounting_period", - "purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - "purchase_orders,applied_vendor_credits,contact,company,employee", - "purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - "purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - "purchase_orders,applied_vendor_credits,contact,company,payment_term", - "purchase_orders,applied_vendor_credits,contact,employee", - "purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - "purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "purchase_orders,applied_vendor_credits,contact,employee,payment_term", - "purchase_orders,applied_vendor_credits,contact,payment_term", - "purchase_orders,applied_vendor_credits,employee", - "purchase_orders,applied_vendor_credits,employee,accounting_period", - "purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - "purchase_orders,applied_vendor_credits,employee,payment_term", - "purchase_orders,applied_vendor_credits,payment_term", - "purchase_orders,company", - "purchase_orders,company,accounting_period", - "purchase_orders,company,accounting_period,payment_term", - "purchase_orders,company,employee", - "purchase_orders,company,employee,accounting_period", - "purchase_orders,company,employee,accounting_period,payment_term", - "purchase_orders,company,employee,payment_term", - "purchase_orders,company,payment_term", - "purchase_orders,contact", - "purchase_orders,contact,accounting_period", - "purchase_orders,contact,accounting_period,payment_term", - "purchase_orders,contact,company", - "purchase_orders,contact,company,accounting_period", - "purchase_orders,contact,company,accounting_period,payment_term", - "purchase_orders,contact,company,employee", - "purchase_orders,contact,company,employee,accounting_period", - "purchase_orders,contact,company,employee,accounting_period,payment_term", - "purchase_orders,contact,company,employee,payment_term", - "purchase_orders,contact,company,payment_term", - "purchase_orders,contact,employee", - "purchase_orders,contact,employee,accounting_period", - "purchase_orders,contact,employee,accounting_period,payment_term", - "purchase_orders,contact,employee,payment_term", - "purchase_orders,contact,payment_term", - "purchase_orders,employee", - "purchase_orders,employee,accounting_period", - "purchase_orders,employee,accounting_period,payment_term", - "purchase_orders,employee,payment_term", - "purchase_orders,payment_term", - "tracking_categories", - "tracking_categories,accounting_period", - "tracking_categories,accounting_period,payment_term", - "tracking_categories,applied_credit_notes", - "tracking_categories,applied_credit_notes,accounting_period", - "tracking_categories,applied_credit_notes,accounting_period,payment_term", - "tracking_categories,applied_credit_notes,applied_vendor_credits", - "tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period", - "tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "tracking_categories,applied_credit_notes,applied_vendor_credits,company", - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee", - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term", - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact", - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company", - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee", - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "tracking_categories,applied_credit_notes,applied_vendor_credits,employee", - "tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term", - "tracking_categories,applied_credit_notes,company", - "tracking_categories,applied_credit_notes,company,accounting_period", - "tracking_categories,applied_credit_notes,company,accounting_period,payment_term", - "tracking_categories,applied_credit_notes,company,employee", - "tracking_categories,applied_credit_notes,company,employee,accounting_period", - "tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term", - "tracking_categories,applied_credit_notes,company,employee,payment_term", - "tracking_categories,applied_credit_notes,company,payment_term", - "tracking_categories,applied_credit_notes,contact", - "tracking_categories,applied_credit_notes,contact,accounting_period", - "tracking_categories,applied_credit_notes,contact,accounting_period,payment_term", - "tracking_categories,applied_credit_notes,contact,company", - "tracking_categories,applied_credit_notes,contact,company,accounting_period", - "tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term", - "tracking_categories,applied_credit_notes,contact,company,employee", - "tracking_categories,applied_credit_notes,contact,company,employee,accounting_period", - "tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "tracking_categories,applied_credit_notes,contact,company,employee,payment_term", - "tracking_categories,applied_credit_notes,contact,company,payment_term", - "tracking_categories,applied_credit_notes,contact,employee", - "tracking_categories,applied_credit_notes,contact,employee,accounting_period", - "tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term", - "tracking_categories,applied_credit_notes,contact,employee,payment_term", - "tracking_categories,applied_credit_notes,contact,payment_term", - "tracking_categories,applied_credit_notes,employee", - "tracking_categories,applied_credit_notes,employee,accounting_period", - "tracking_categories,applied_credit_notes,employee,accounting_period,payment_term", - "tracking_categories,applied_credit_notes,employee,payment_term", - "tracking_categories,applied_credit_notes,payment_term", - "tracking_categories,applied_vendor_credits", - "tracking_categories,applied_vendor_credits,accounting_period", - "tracking_categories,applied_vendor_credits,accounting_period,payment_term", - "tracking_categories,applied_vendor_credits,company", - "tracking_categories,applied_vendor_credits,company,accounting_period", - "tracking_categories,applied_vendor_credits,company,accounting_period,payment_term", - "tracking_categories,applied_vendor_credits,company,employee", - "tracking_categories,applied_vendor_credits,company,employee,accounting_period", - "tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term", - "tracking_categories,applied_vendor_credits,company,employee,payment_term", - "tracking_categories,applied_vendor_credits,company,payment_term", - "tracking_categories,applied_vendor_credits,contact", - "tracking_categories,applied_vendor_credits,contact,accounting_period", - "tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term", - "tracking_categories,applied_vendor_credits,contact,company", - "tracking_categories,applied_vendor_credits,contact,company,accounting_period", - "tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term", - "tracking_categories,applied_vendor_credits,contact,company,employee", - "tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period", - "tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "tracking_categories,applied_vendor_credits,contact,company,employee,payment_term", - "tracking_categories,applied_vendor_credits,contact,company,payment_term", - "tracking_categories,applied_vendor_credits,contact,employee", - "tracking_categories,applied_vendor_credits,contact,employee,accounting_period", - "tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "tracking_categories,applied_vendor_credits,contact,employee,payment_term", - "tracking_categories,applied_vendor_credits,contact,payment_term", - "tracking_categories,applied_vendor_credits,employee", - "tracking_categories,applied_vendor_credits,employee,accounting_period", - "tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term", - "tracking_categories,applied_vendor_credits,employee,payment_term", - "tracking_categories,applied_vendor_credits,payment_term", - "tracking_categories,company", - "tracking_categories,company,accounting_period", - "tracking_categories,company,accounting_period,payment_term", - "tracking_categories,company,employee", - "tracking_categories,company,employee,accounting_period", - "tracking_categories,company,employee,accounting_period,payment_term", - "tracking_categories,company,employee,payment_term", - "tracking_categories,company,payment_term", - "tracking_categories,contact", - "tracking_categories,contact,accounting_period", - "tracking_categories,contact,accounting_period,payment_term", - "tracking_categories,contact,company", - "tracking_categories,contact,company,accounting_period", - "tracking_categories,contact,company,accounting_period,payment_term", - "tracking_categories,contact,company,employee", - "tracking_categories,contact,company,employee,accounting_period", - "tracking_categories,contact,company,employee,accounting_period,payment_term", - "tracking_categories,contact,company,employee,payment_term", - "tracking_categories,contact,company,payment_term", - "tracking_categories,contact,employee", - "tracking_categories,contact,employee,accounting_period", - "tracking_categories,contact,employee,accounting_period,payment_term", - "tracking_categories,contact,employee,payment_term", - "tracking_categories,contact,payment_term", - "tracking_categories,employee", - "tracking_categories,employee,accounting_period", - "tracking_categories,employee,accounting_period,payment_term", - "tracking_categories,employee,payment_term", - "tracking_categories,payment_term", - "tracking_categories,purchase_orders", - "tracking_categories,purchase_orders,accounting_period", - "tracking_categories,purchase_orders,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes", - "tracking_categories,purchase_orders,applied_credit_notes,accounting_period", - "tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,company", - "tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period", - "tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,company,employee", - "tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period", - "tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,company,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,contact", - "tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period", - "tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,contact,company", - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period", - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee", - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period", - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,contact,employee", - "tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period", - "tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,employee", - "tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period", - "tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term", - "tracking_categories,purchase_orders,applied_credit_notes,payment_term", - "tracking_categories,purchase_orders,applied_vendor_credits", - "tracking_categories,purchase_orders,applied_vendor_credits,accounting_period", - "tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_vendor_credits,company", - "tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period", - "tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_vendor_credits,company,employee", - "tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period", - "tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term", - "tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term", - "tracking_categories,purchase_orders,applied_vendor_credits,contact", - "tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period", - "tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company", - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period", - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee", - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period", - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term", - "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term", - "tracking_categories,purchase_orders,applied_vendor_credits,contact,employee", - "tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period", - "tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term", - "tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term", - "tracking_categories,purchase_orders,applied_vendor_credits,employee", - "tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period", - "tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term", - "tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term", - "tracking_categories,purchase_orders,applied_vendor_credits,payment_term", - "tracking_categories,purchase_orders,company", - "tracking_categories,purchase_orders,company,accounting_period", - "tracking_categories,purchase_orders,company,accounting_period,payment_term", - "tracking_categories,purchase_orders,company,employee", - "tracking_categories,purchase_orders,company,employee,accounting_period", - "tracking_categories,purchase_orders,company,employee,accounting_period,payment_term", - "tracking_categories,purchase_orders,company,employee,payment_term", - "tracking_categories,purchase_orders,company,payment_term", - "tracking_categories,purchase_orders,contact", - "tracking_categories,purchase_orders,contact,accounting_period", - "tracking_categories,purchase_orders,contact,accounting_period,payment_term", - "tracking_categories,purchase_orders,contact,company", - "tracking_categories,purchase_orders,contact,company,accounting_period", - "tracking_categories,purchase_orders,contact,company,accounting_period,payment_term", - "tracking_categories,purchase_orders,contact,company,employee", - "tracking_categories,purchase_orders,contact,company,employee,accounting_period", - "tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term", - "tracking_categories,purchase_orders,contact,company,employee,payment_term", - "tracking_categories,purchase_orders,contact,company,payment_term", - "tracking_categories,purchase_orders,contact,employee", - "tracking_categories,purchase_orders,contact,employee,accounting_period", - "tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term", - "tracking_categories,purchase_orders,contact,employee,payment_term", - "tracking_categories,purchase_orders,contact,payment_term", - "tracking_categories,purchase_orders,employee", - "tracking_categories,purchase_orders,employee,accounting_period", - "tracking_categories,purchase_orders,employee,accounting_period,payment_term", - "tracking_categories,purchase_orders,employee,payment_term", - "tracking_categories,purchase_orders,payment_term", -]); - -export declare namespace InvoicesRetrieveRequestExpand { - export type Raw = - | "accounting_period" - | "accounting_period,payment_term" - | "applied_credit_notes" - | "applied_credit_notes,accounting_period" - | "applied_credit_notes,accounting_period,payment_term" - | "applied_credit_notes,applied_vendor_credits" - | "applied_credit_notes,applied_vendor_credits,accounting_period" - | "applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "applied_credit_notes,applied_vendor_credits,company" - | "applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_credit_notes,applied_vendor_credits,company,employee" - | "applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "applied_credit_notes,applied_vendor_credits,company,payment_term" - | "applied_credit_notes,applied_vendor_credits,contact" - | "applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_credit_notes,applied_vendor_credits,contact,company" - | "applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "applied_credit_notes,applied_vendor_credits,contact,employee" - | "applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "applied_credit_notes,applied_vendor_credits,employee" - | "applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "applied_credit_notes,applied_vendor_credits,payment_term" - | "applied_credit_notes,company" - | "applied_credit_notes,company,accounting_period" - | "applied_credit_notes,company,accounting_period,payment_term" - | "applied_credit_notes,company,employee" - | "applied_credit_notes,company,employee,accounting_period" - | "applied_credit_notes,company,employee,accounting_period,payment_term" - | "applied_credit_notes,company,employee,payment_term" - | "applied_credit_notes,company,payment_term" - | "applied_credit_notes,contact" - | "applied_credit_notes,contact,accounting_period" - | "applied_credit_notes,contact,accounting_period,payment_term" - | "applied_credit_notes,contact,company" - | "applied_credit_notes,contact,company,accounting_period" - | "applied_credit_notes,contact,company,accounting_period,payment_term" - | "applied_credit_notes,contact,company,employee" - | "applied_credit_notes,contact,company,employee,accounting_period" - | "applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "applied_credit_notes,contact,company,employee,payment_term" - | "applied_credit_notes,contact,company,payment_term" - | "applied_credit_notes,contact,employee" - | "applied_credit_notes,contact,employee,accounting_period" - | "applied_credit_notes,contact,employee,accounting_period,payment_term" - | "applied_credit_notes,contact,employee,payment_term" - | "applied_credit_notes,contact,payment_term" - | "applied_credit_notes,employee" - | "applied_credit_notes,employee,accounting_period" - | "applied_credit_notes,employee,accounting_period,payment_term" - | "applied_credit_notes,employee,payment_term" - | "applied_credit_notes,payment_term" - | "applied_payments" - | "applied_payments,accounting_period" - | "applied_payments,accounting_period,payment_term" - | "applied_payments,applied_credit_notes" - | "applied_payments,applied_credit_notes,accounting_period" - | "applied_payments,applied_credit_notes,accounting_period,payment_term" - | "applied_payments,applied_credit_notes,applied_vendor_credits" - | "applied_payments,applied_credit_notes,applied_vendor_credits,accounting_period" - | "applied_payments,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "applied_payments,applied_credit_notes,applied_vendor_credits,company" - | "applied_payments,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "applied_payments,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_payments,applied_credit_notes,applied_vendor_credits,company,employee" - | "applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "applied_payments,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "applied_payments,applied_credit_notes,applied_vendor_credits,contact" - | "applied_payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "applied_payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company" - | "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee" - | "applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "applied_payments,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "applied_payments,applied_credit_notes,applied_vendor_credits,employee" - | "applied_payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "applied_payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_payments,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "applied_payments,applied_credit_notes,applied_vendor_credits,payment_term" - | "applied_payments,applied_credit_notes,company" - | "applied_payments,applied_credit_notes,company,accounting_period" - | "applied_payments,applied_credit_notes,company,accounting_period,payment_term" - | "applied_payments,applied_credit_notes,company,employee" - | "applied_payments,applied_credit_notes,company,employee,accounting_period" - | "applied_payments,applied_credit_notes,company,employee,accounting_period,payment_term" - | "applied_payments,applied_credit_notes,company,employee,payment_term" - | "applied_payments,applied_credit_notes,company,payment_term" - | "applied_payments,applied_credit_notes,contact" - | "applied_payments,applied_credit_notes,contact,accounting_period" - | "applied_payments,applied_credit_notes,contact,accounting_period,payment_term" - | "applied_payments,applied_credit_notes,contact,company" - | "applied_payments,applied_credit_notes,contact,company,accounting_period" - | "applied_payments,applied_credit_notes,contact,company,accounting_period,payment_term" - | "applied_payments,applied_credit_notes,contact,company,employee" - | "applied_payments,applied_credit_notes,contact,company,employee,accounting_period" - | "applied_payments,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "applied_payments,applied_credit_notes,contact,company,employee,payment_term" - | "applied_payments,applied_credit_notes,contact,company,payment_term" - | "applied_payments,applied_credit_notes,contact,employee" - | "applied_payments,applied_credit_notes,contact,employee,accounting_period" - | "applied_payments,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "applied_payments,applied_credit_notes,contact,employee,payment_term" - | "applied_payments,applied_credit_notes,contact,payment_term" - | "applied_payments,applied_credit_notes,employee" - | "applied_payments,applied_credit_notes,employee,accounting_period" - | "applied_payments,applied_credit_notes,employee,accounting_period,payment_term" - | "applied_payments,applied_credit_notes,employee,payment_term" - | "applied_payments,applied_credit_notes,payment_term" - | "applied_payments,applied_vendor_credits" - | "applied_payments,applied_vendor_credits,accounting_period" - | "applied_payments,applied_vendor_credits,accounting_period,payment_term" - | "applied_payments,applied_vendor_credits,company" - | "applied_payments,applied_vendor_credits,company,accounting_period" - | "applied_payments,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_payments,applied_vendor_credits,company,employee" - | "applied_payments,applied_vendor_credits,company,employee,accounting_period" - | "applied_payments,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_payments,applied_vendor_credits,company,employee,payment_term" - | "applied_payments,applied_vendor_credits,company,payment_term" - | "applied_payments,applied_vendor_credits,contact" - | "applied_payments,applied_vendor_credits,contact,accounting_period" - | "applied_payments,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_payments,applied_vendor_credits,contact,company" - | "applied_payments,applied_vendor_credits,contact,company,accounting_period" - | "applied_payments,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_payments,applied_vendor_credits,contact,company,employee" - | "applied_payments,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_payments,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_payments,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_payments,applied_vendor_credits,contact,company,payment_term" - | "applied_payments,applied_vendor_credits,contact,employee" - | "applied_payments,applied_vendor_credits,contact,employee,accounting_period" - | "applied_payments,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_payments,applied_vendor_credits,contact,employee,payment_term" - | "applied_payments,applied_vendor_credits,contact,payment_term" - | "applied_payments,applied_vendor_credits,employee" - | "applied_payments,applied_vendor_credits,employee,accounting_period" - | "applied_payments,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_payments,applied_vendor_credits,employee,payment_term" - | "applied_payments,applied_vendor_credits,payment_term" - | "applied_payments,company" - | "applied_payments,company,accounting_period" - | "applied_payments,company,accounting_period,payment_term" - | "applied_payments,company,employee" - | "applied_payments,company,employee,accounting_period" - | "applied_payments,company,employee,accounting_period,payment_term" - | "applied_payments,company,employee,payment_term" - | "applied_payments,company,payment_term" - | "applied_payments,contact" - | "applied_payments,contact,accounting_period" - | "applied_payments,contact,accounting_period,payment_term" - | "applied_payments,contact,company" - | "applied_payments,contact,company,accounting_period" - | "applied_payments,contact,company,accounting_period,payment_term" - | "applied_payments,contact,company,employee" - | "applied_payments,contact,company,employee,accounting_period" - | "applied_payments,contact,company,employee,accounting_period,payment_term" - | "applied_payments,contact,company,employee,payment_term" - | "applied_payments,contact,company,payment_term" - | "applied_payments,contact,employee" - | "applied_payments,contact,employee,accounting_period" - | "applied_payments,contact,employee,accounting_period,payment_term" - | "applied_payments,contact,employee,payment_term" - | "applied_payments,contact,payment_term" - | "applied_payments,employee" - | "applied_payments,employee,accounting_period" - | "applied_payments,employee,accounting_period,payment_term" - | "applied_payments,employee,payment_term" - | "applied_payments,line_items" - | "applied_payments,line_items,accounting_period" - | "applied_payments,line_items,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes" - | "applied_payments,line_items,applied_credit_notes,accounting_period" - | "applied_payments,line_items,applied_credit_notes,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "applied_payments,line_items,applied_credit_notes,applied_vendor_credits,payment_term" - | "applied_payments,line_items,applied_credit_notes,company" - | "applied_payments,line_items,applied_credit_notes,company,accounting_period" - | "applied_payments,line_items,applied_credit_notes,company,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes,company,employee" - | "applied_payments,line_items,applied_credit_notes,company,employee,accounting_period" - | "applied_payments,line_items,applied_credit_notes,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes,company,employee,payment_term" - | "applied_payments,line_items,applied_credit_notes,company,payment_term" - | "applied_payments,line_items,applied_credit_notes,contact" - | "applied_payments,line_items,applied_credit_notes,contact,accounting_period" - | "applied_payments,line_items,applied_credit_notes,contact,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes,contact,company" - | "applied_payments,line_items,applied_credit_notes,contact,company,accounting_period" - | "applied_payments,line_items,applied_credit_notes,contact,company,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes,contact,company,employee" - | "applied_payments,line_items,applied_credit_notes,contact,company,employee,accounting_period" - | "applied_payments,line_items,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes,contact,company,employee,payment_term" - | "applied_payments,line_items,applied_credit_notes,contact,company,payment_term" - | "applied_payments,line_items,applied_credit_notes,contact,employee" - | "applied_payments,line_items,applied_credit_notes,contact,employee,accounting_period" - | "applied_payments,line_items,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes,contact,employee,payment_term" - | "applied_payments,line_items,applied_credit_notes,contact,payment_term" - | "applied_payments,line_items,applied_credit_notes,employee" - | "applied_payments,line_items,applied_credit_notes,employee,accounting_period" - | "applied_payments,line_items,applied_credit_notes,employee,accounting_period,payment_term" - | "applied_payments,line_items,applied_credit_notes,employee,payment_term" - | "applied_payments,line_items,applied_credit_notes,payment_term" - | "applied_payments,line_items,applied_vendor_credits" - | "applied_payments,line_items,applied_vendor_credits,accounting_period" - | "applied_payments,line_items,applied_vendor_credits,accounting_period,payment_term" - | "applied_payments,line_items,applied_vendor_credits,company" - | "applied_payments,line_items,applied_vendor_credits,company,accounting_period" - | "applied_payments,line_items,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_payments,line_items,applied_vendor_credits,company,employee" - | "applied_payments,line_items,applied_vendor_credits,company,employee,accounting_period" - | "applied_payments,line_items,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,applied_vendor_credits,company,employee,payment_term" - | "applied_payments,line_items,applied_vendor_credits,company,payment_term" - | "applied_payments,line_items,applied_vendor_credits,contact" - | "applied_payments,line_items,applied_vendor_credits,contact,accounting_period" - | "applied_payments,line_items,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_payments,line_items,applied_vendor_credits,contact,company" - | "applied_payments,line_items,applied_vendor_credits,contact,company,accounting_period" - | "applied_payments,line_items,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_payments,line_items,applied_vendor_credits,contact,company,employee" - | "applied_payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_payments,line_items,applied_vendor_credits,contact,company,payment_term" - | "applied_payments,line_items,applied_vendor_credits,contact,employee" - | "applied_payments,line_items,applied_vendor_credits,contact,employee,accounting_period" - | "applied_payments,line_items,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_payments,line_items,applied_vendor_credits,contact,employee,payment_term" - | "applied_payments,line_items,applied_vendor_credits,contact,payment_term" - | "applied_payments,line_items,applied_vendor_credits,employee" - | "applied_payments,line_items,applied_vendor_credits,employee,accounting_period" - | "applied_payments,line_items,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_payments,line_items,applied_vendor_credits,employee,payment_term" - | "applied_payments,line_items,applied_vendor_credits,payment_term" - | "applied_payments,line_items,company" - | "applied_payments,line_items,company,accounting_period" - | "applied_payments,line_items,company,accounting_period,payment_term" - | "applied_payments,line_items,company,employee" - | "applied_payments,line_items,company,employee,accounting_period" - | "applied_payments,line_items,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,company,employee,payment_term" - | "applied_payments,line_items,company,payment_term" - | "applied_payments,line_items,contact" - | "applied_payments,line_items,contact,accounting_period" - | "applied_payments,line_items,contact,accounting_period,payment_term" - | "applied_payments,line_items,contact,company" - | "applied_payments,line_items,contact,company,accounting_period" - | "applied_payments,line_items,contact,company,accounting_period,payment_term" - | "applied_payments,line_items,contact,company,employee" - | "applied_payments,line_items,contact,company,employee,accounting_period" - | "applied_payments,line_items,contact,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,contact,company,employee,payment_term" - | "applied_payments,line_items,contact,company,payment_term" - | "applied_payments,line_items,contact,employee" - | "applied_payments,line_items,contact,employee,accounting_period" - | "applied_payments,line_items,contact,employee,accounting_period,payment_term" - | "applied_payments,line_items,contact,employee,payment_term" - | "applied_payments,line_items,contact,payment_term" - | "applied_payments,line_items,employee" - | "applied_payments,line_items,employee,accounting_period" - | "applied_payments,line_items,employee,accounting_period,payment_term" - | "applied_payments,line_items,employee,payment_term" - | "applied_payments,line_items,payment_term" - | "applied_payments,line_items,purchase_orders" - | "applied_payments,line_items,purchase_orders,accounting_period" - | "applied_payments,line_items,purchase_orders,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,company" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,company,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,contact" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,contact,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,employee" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,employee,payment_term" - | "applied_payments,line_items,purchase_orders,applied_credit_notes,payment_term" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,company" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,payment_term" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,company,payment_term" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,payment_term" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,payment_term" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,employee" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,payment_term" - | "applied_payments,line_items,purchase_orders,applied_vendor_credits,payment_term" - | "applied_payments,line_items,purchase_orders,company" - | "applied_payments,line_items,purchase_orders,company,accounting_period" - | "applied_payments,line_items,purchase_orders,company,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,company,employee" - | "applied_payments,line_items,purchase_orders,company,employee,accounting_period" - | "applied_payments,line_items,purchase_orders,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,company,employee,payment_term" - | "applied_payments,line_items,purchase_orders,company,payment_term" - | "applied_payments,line_items,purchase_orders,contact" - | "applied_payments,line_items,purchase_orders,contact,accounting_period" - | "applied_payments,line_items,purchase_orders,contact,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,contact,company" - | "applied_payments,line_items,purchase_orders,contact,company,accounting_period" - | "applied_payments,line_items,purchase_orders,contact,company,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,contact,company,employee" - | "applied_payments,line_items,purchase_orders,contact,company,employee,accounting_period" - | "applied_payments,line_items,purchase_orders,contact,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,contact,company,employee,payment_term" - | "applied_payments,line_items,purchase_orders,contact,company,payment_term" - | "applied_payments,line_items,purchase_orders,contact,employee" - | "applied_payments,line_items,purchase_orders,contact,employee,accounting_period" - | "applied_payments,line_items,purchase_orders,contact,employee,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,contact,employee,payment_term" - | "applied_payments,line_items,purchase_orders,contact,payment_term" - | "applied_payments,line_items,purchase_orders,employee" - | "applied_payments,line_items,purchase_orders,employee,accounting_period" - | "applied_payments,line_items,purchase_orders,employee,accounting_period,payment_term" - | "applied_payments,line_items,purchase_orders,employee,payment_term" - | "applied_payments,line_items,purchase_orders,payment_term" - | "applied_payments,line_items,tracking_categories" - | "applied_payments,line_items,tracking_categories,accounting_period" - | "applied_payments,line_items,tracking_categories,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,company" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,company,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,contact" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,contact,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,employee" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,employee,payment_term" - | "applied_payments,line_items,tracking_categories,applied_credit_notes,payment_term" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,company" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,payment_term" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,company,payment_term" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,payment_term" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,payment_term" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,payment_term" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,employee" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,payment_term" - | "applied_payments,line_items,tracking_categories,applied_vendor_credits,payment_term" - | "applied_payments,line_items,tracking_categories,company" - | "applied_payments,line_items,tracking_categories,company,accounting_period" - | "applied_payments,line_items,tracking_categories,company,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,company,employee" - | "applied_payments,line_items,tracking_categories,company,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,company,employee,payment_term" - | "applied_payments,line_items,tracking_categories,company,payment_term" - | "applied_payments,line_items,tracking_categories,contact" - | "applied_payments,line_items,tracking_categories,contact,accounting_period" - | "applied_payments,line_items,tracking_categories,contact,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,contact,company" - | "applied_payments,line_items,tracking_categories,contact,company,accounting_period" - | "applied_payments,line_items,tracking_categories,contact,company,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,contact,company,employee" - | "applied_payments,line_items,tracking_categories,contact,company,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,contact,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,contact,company,employee,payment_term" - | "applied_payments,line_items,tracking_categories,contact,company,payment_term" - | "applied_payments,line_items,tracking_categories,contact,employee" - | "applied_payments,line_items,tracking_categories,contact,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,contact,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,contact,employee,payment_term" - | "applied_payments,line_items,tracking_categories,contact,payment_term" - | "applied_payments,line_items,tracking_categories,employee" - | "applied_payments,line_items,tracking_categories,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,employee,payment_term" - | "applied_payments,line_items,tracking_categories,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders" - | "applied_payments,line_items,tracking_categories,purchase_orders,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,company" - | "applied_payments,line_items,tracking_categories,purchase_orders,company,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,company,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,company,employee" - | "applied_payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,company,employee,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,company,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,contact" - | "applied_payments,line_items,tracking_categories,purchase_orders,contact,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,contact,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,contact,company" - | "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee" - | "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,contact,company,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,contact,employee" - | "applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,contact,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,employee" - | "applied_payments,line_items,tracking_categories,purchase_orders,employee,accounting_period" - | "applied_payments,line_items,tracking_categories,purchase_orders,employee,accounting_period,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,employee,payment_term" - | "applied_payments,line_items,tracking_categories,purchase_orders,payment_term" - | "applied_payments,payment_term" - | "applied_payments,purchase_orders" - | "applied_payments,purchase_orders,accounting_period" - | "applied_payments,purchase_orders,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes" - | "applied_payments,purchase_orders,applied_credit_notes,accounting_period" - | "applied_payments,purchase_orders,applied_credit_notes,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,company" - | "applied_payments,purchase_orders,applied_credit_notes,company,accounting_period" - | "applied_payments,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,company,employee" - | "applied_payments,purchase_orders,applied_credit_notes,company,employee,accounting_period" - | "applied_payments,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,company,employee,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,company,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,contact" - | "applied_payments,purchase_orders,applied_credit_notes,contact,accounting_period" - | "applied_payments,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,contact,company" - | "applied_payments,purchase_orders,applied_credit_notes,contact,company,accounting_period" - | "applied_payments,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,contact,company,employee" - | "applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - | "applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,contact,company,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,contact,employee" - | "applied_payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - | "applied_payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,contact,employee,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,contact,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,employee" - | "applied_payments,purchase_orders,applied_credit_notes,employee,accounting_period" - | "applied_payments,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,employee,payment_term" - | "applied_payments,purchase_orders,applied_credit_notes,payment_term" - | "applied_payments,purchase_orders,applied_vendor_credits" - | "applied_payments,purchase_orders,applied_vendor_credits,accounting_period" - | "applied_payments,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_vendor_credits,company" - | "applied_payments,purchase_orders,applied_vendor_credits,company,accounting_period" - | "applied_payments,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_vendor_credits,company,employee" - | "applied_payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - | "applied_payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_vendor_credits,company,employee,payment_term" - | "applied_payments,purchase_orders,applied_vendor_credits,company,payment_term" - | "applied_payments,purchase_orders,applied_vendor_credits,contact" - | "applied_payments,purchase_orders,applied_vendor_credits,contact,accounting_period" - | "applied_payments,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_vendor_credits,contact,company" - | "applied_payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - | "applied_payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee" - | "applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_payments,purchase_orders,applied_vendor_credits,contact,company,payment_term" - | "applied_payments,purchase_orders,applied_vendor_credits,contact,employee" - | "applied_payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - | "applied_payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - | "applied_payments,purchase_orders,applied_vendor_credits,contact,payment_term" - | "applied_payments,purchase_orders,applied_vendor_credits,employee" - | "applied_payments,purchase_orders,applied_vendor_credits,employee,accounting_period" - | "applied_payments,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_payments,purchase_orders,applied_vendor_credits,employee,payment_term" - | "applied_payments,purchase_orders,applied_vendor_credits,payment_term" - | "applied_payments,purchase_orders,company" - | "applied_payments,purchase_orders,company,accounting_period" - | "applied_payments,purchase_orders,company,accounting_period,payment_term" - | "applied_payments,purchase_orders,company,employee" - | "applied_payments,purchase_orders,company,employee,accounting_period" - | "applied_payments,purchase_orders,company,employee,accounting_period,payment_term" - | "applied_payments,purchase_orders,company,employee,payment_term" - | "applied_payments,purchase_orders,company,payment_term" - | "applied_payments,purchase_orders,contact" - | "applied_payments,purchase_orders,contact,accounting_period" - | "applied_payments,purchase_orders,contact,accounting_period,payment_term" - | "applied_payments,purchase_orders,contact,company" - | "applied_payments,purchase_orders,contact,company,accounting_period" - | "applied_payments,purchase_orders,contact,company,accounting_period,payment_term" - | "applied_payments,purchase_orders,contact,company,employee" - | "applied_payments,purchase_orders,contact,company,employee,accounting_period" - | "applied_payments,purchase_orders,contact,company,employee,accounting_period,payment_term" - | "applied_payments,purchase_orders,contact,company,employee,payment_term" - | "applied_payments,purchase_orders,contact,company,payment_term" - | "applied_payments,purchase_orders,contact,employee" - | "applied_payments,purchase_orders,contact,employee,accounting_period" - | "applied_payments,purchase_orders,contact,employee,accounting_period,payment_term" - | "applied_payments,purchase_orders,contact,employee,payment_term" - | "applied_payments,purchase_orders,contact,payment_term" - | "applied_payments,purchase_orders,employee" - | "applied_payments,purchase_orders,employee,accounting_period" - | "applied_payments,purchase_orders,employee,accounting_period,payment_term" - | "applied_payments,purchase_orders,employee,payment_term" - | "applied_payments,purchase_orders,payment_term" - | "applied_payments,tracking_categories" - | "applied_payments,tracking_categories,accounting_period" - | "applied_payments,tracking_categories,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes" - | "applied_payments,tracking_categories,applied_credit_notes,accounting_period" - | "applied_payments,tracking_categories,applied_credit_notes,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,company" - | "applied_payments,tracking_categories,applied_credit_notes,company,accounting_period" - | "applied_payments,tracking_categories,applied_credit_notes,company,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,company,employee" - | "applied_payments,tracking_categories,applied_credit_notes,company,employee,accounting_period" - | "applied_payments,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,company,employee,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,company,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,contact" - | "applied_payments,tracking_categories,applied_credit_notes,contact,accounting_period" - | "applied_payments,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,contact,company" - | "applied_payments,tracking_categories,applied_credit_notes,contact,company,accounting_period" - | "applied_payments,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,contact,company,employee" - | "applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period" - | "applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,contact,company,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,contact,employee" - | "applied_payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period" - | "applied_payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,contact,employee,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,contact,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,employee" - | "applied_payments,tracking_categories,applied_credit_notes,employee,accounting_period" - | "applied_payments,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,employee,payment_term" - | "applied_payments,tracking_categories,applied_credit_notes,payment_term" - | "applied_payments,tracking_categories,applied_vendor_credits" - | "applied_payments,tracking_categories,applied_vendor_credits,accounting_period" - | "applied_payments,tracking_categories,applied_vendor_credits,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_vendor_credits,company" - | "applied_payments,tracking_categories,applied_vendor_credits,company,accounting_period" - | "applied_payments,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_vendor_credits,company,employee" - | "applied_payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period" - | "applied_payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_vendor_credits,company,employee,payment_term" - | "applied_payments,tracking_categories,applied_vendor_credits,company,payment_term" - | "applied_payments,tracking_categories,applied_vendor_credits,contact" - | "applied_payments,tracking_categories,applied_vendor_credits,contact,accounting_period" - | "applied_payments,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_vendor_credits,contact,company" - | "applied_payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period" - | "applied_payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee" - | "applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_payments,tracking_categories,applied_vendor_credits,contact,company,payment_term" - | "applied_payments,tracking_categories,applied_vendor_credits,contact,employee" - | "applied_payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period" - | "applied_payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_vendor_credits,contact,employee,payment_term" - | "applied_payments,tracking_categories,applied_vendor_credits,contact,payment_term" - | "applied_payments,tracking_categories,applied_vendor_credits,employee" - | "applied_payments,tracking_categories,applied_vendor_credits,employee,accounting_period" - | "applied_payments,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,applied_vendor_credits,employee,payment_term" - | "applied_payments,tracking_categories,applied_vendor_credits,payment_term" - | "applied_payments,tracking_categories,company" - | "applied_payments,tracking_categories,company,accounting_period" - | "applied_payments,tracking_categories,company,accounting_period,payment_term" - | "applied_payments,tracking_categories,company,employee" - | "applied_payments,tracking_categories,company,employee,accounting_period" - | "applied_payments,tracking_categories,company,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,company,employee,payment_term" - | "applied_payments,tracking_categories,company,payment_term" - | "applied_payments,tracking_categories,contact" - | "applied_payments,tracking_categories,contact,accounting_period" - | "applied_payments,tracking_categories,contact,accounting_period,payment_term" - | "applied_payments,tracking_categories,contact,company" - | "applied_payments,tracking_categories,contact,company,accounting_period" - | "applied_payments,tracking_categories,contact,company,accounting_period,payment_term" - | "applied_payments,tracking_categories,contact,company,employee" - | "applied_payments,tracking_categories,contact,company,employee,accounting_period" - | "applied_payments,tracking_categories,contact,company,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,contact,company,employee,payment_term" - | "applied_payments,tracking_categories,contact,company,payment_term" - | "applied_payments,tracking_categories,contact,employee" - | "applied_payments,tracking_categories,contact,employee,accounting_period" - | "applied_payments,tracking_categories,contact,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,contact,employee,payment_term" - | "applied_payments,tracking_categories,contact,payment_term" - | "applied_payments,tracking_categories,employee" - | "applied_payments,tracking_categories,employee,accounting_period" - | "applied_payments,tracking_categories,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,employee,payment_term" - | "applied_payments,tracking_categories,payment_term" - | "applied_payments,tracking_categories,purchase_orders" - | "applied_payments,tracking_categories,purchase_orders,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_credit_notes,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term" - | "applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,payment_term" - | "applied_payments,tracking_categories,purchase_orders,company" - | "applied_payments,tracking_categories,purchase_orders,company,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,company,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,company,employee" - | "applied_payments,tracking_categories,purchase_orders,company,employee,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,company,employee,payment_term" - | "applied_payments,tracking_categories,purchase_orders,company,payment_term" - | "applied_payments,tracking_categories,purchase_orders,contact" - | "applied_payments,tracking_categories,purchase_orders,contact,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,contact,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,contact,company" - | "applied_payments,tracking_categories,purchase_orders,contact,company,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,contact,company,employee" - | "applied_payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,contact,company,employee,payment_term" - | "applied_payments,tracking_categories,purchase_orders,contact,company,payment_term" - | "applied_payments,tracking_categories,purchase_orders,contact,employee" - | "applied_payments,tracking_categories,purchase_orders,contact,employee,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,contact,employee,payment_term" - | "applied_payments,tracking_categories,purchase_orders,contact,payment_term" - | "applied_payments,tracking_categories,purchase_orders,employee" - | "applied_payments,tracking_categories,purchase_orders,employee,accounting_period" - | "applied_payments,tracking_categories,purchase_orders,employee,accounting_period,payment_term" - | "applied_payments,tracking_categories,purchase_orders,employee,payment_term" - | "applied_payments,tracking_categories,purchase_orders,payment_term" - | "applied_vendor_credits" - | "applied_vendor_credits,accounting_period" - | "applied_vendor_credits,accounting_period,payment_term" - | "applied_vendor_credits,company" - | "applied_vendor_credits,company,accounting_period" - | "applied_vendor_credits,company,accounting_period,payment_term" - | "applied_vendor_credits,company,employee" - | "applied_vendor_credits,company,employee,accounting_period" - | "applied_vendor_credits,company,employee,accounting_period,payment_term" - | "applied_vendor_credits,company,employee,payment_term" - | "applied_vendor_credits,company,payment_term" - | "applied_vendor_credits,contact" - | "applied_vendor_credits,contact,accounting_period" - | "applied_vendor_credits,contact,accounting_period,payment_term" - | "applied_vendor_credits,contact,company" - | "applied_vendor_credits,contact,company,accounting_period" - | "applied_vendor_credits,contact,company,accounting_period,payment_term" - | "applied_vendor_credits,contact,company,employee" - | "applied_vendor_credits,contact,company,employee,accounting_period" - | "applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "applied_vendor_credits,contact,company,employee,payment_term" - | "applied_vendor_credits,contact,company,payment_term" - | "applied_vendor_credits,contact,employee" - | "applied_vendor_credits,contact,employee,accounting_period" - | "applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "applied_vendor_credits,contact,employee,payment_term" - | "applied_vendor_credits,contact,payment_term" - | "applied_vendor_credits,employee" - | "applied_vendor_credits,employee,accounting_period" - | "applied_vendor_credits,employee,accounting_period,payment_term" - | "applied_vendor_credits,employee,payment_term" - | "applied_vendor_credits,payment_term" - | "company" - | "company,accounting_period" - | "company,accounting_period,payment_term" - | "company,employee" - | "company,employee,accounting_period" - | "company,employee,accounting_period,payment_term" - | "company,employee,payment_term" - | "company,payment_term" - | "contact" - | "contact,accounting_period" - | "contact,accounting_period,payment_term" - | "contact,company" - | "contact,company,accounting_period" - | "contact,company,accounting_period,payment_term" - | "contact,company,employee" - | "contact,company,employee,accounting_period" - | "contact,company,employee,accounting_period,payment_term" - | "contact,company,employee,payment_term" - | "contact,company,payment_term" - | "contact,employee" - | "contact,employee,accounting_period" - | "contact,employee,accounting_period,payment_term" - | "contact,employee,payment_term" - | "contact,payment_term" - | "employee" - | "employee,accounting_period" - | "employee,accounting_period,payment_term" - | "employee,payment_term" - | "line_items" - | "line_items,accounting_period" - | "line_items,accounting_period,payment_term" - | "line_items,applied_credit_notes" - | "line_items,applied_credit_notes,accounting_period" - | "line_items,applied_credit_notes,accounting_period,payment_term" - | "line_items,applied_credit_notes,applied_vendor_credits" - | "line_items,applied_credit_notes,applied_vendor_credits,accounting_period" - | "line_items,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "line_items,applied_credit_notes,applied_vendor_credits,company" - | "line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "line_items,applied_credit_notes,applied_vendor_credits,company,employee" - | "line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "line_items,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "line_items,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "line_items,applied_credit_notes,applied_vendor_credits,contact" - | "line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "line_items,applied_credit_notes,applied_vendor_credits,contact,company" - | "line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "line_items,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "line_items,applied_credit_notes,applied_vendor_credits,contact,employee" - | "line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "line_items,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "line_items,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "line_items,applied_credit_notes,applied_vendor_credits,employee" - | "line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "line_items,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "line_items,applied_credit_notes,applied_vendor_credits,payment_term" - | "line_items,applied_credit_notes,company" - | "line_items,applied_credit_notes,company,accounting_period" - | "line_items,applied_credit_notes,company,accounting_period,payment_term" - | "line_items,applied_credit_notes,company,employee" - | "line_items,applied_credit_notes,company,employee,accounting_period" - | "line_items,applied_credit_notes,company,employee,accounting_period,payment_term" - | "line_items,applied_credit_notes,company,employee,payment_term" - | "line_items,applied_credit_notes,company,payment_term" - | "line_items,applied_credit_notes,contact" - | "line_items,applied_credit_notes,contact,accounting_period" - | "line_items,applied_credit_notes,contact,accounting_period,payment_term" - | "line_items,applied_credit_notes,contact,company" - | "line_items,applied_credit_notes,contact,company,accounting_period" - | "line_items,applied_credit_notes,contact,company,accounting_period,payment_term" - | "line_items,applied_credit_notes,contact,company,employee" - | "line_items,applied_credit_notes,contact,company,employee,accounting_period" - | "line_items,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "line_items,applied_credit_notes,contact,company,employee,payment_term" - | "line_items,applied_credit_notes,contact,company,payment_term" - | "line_items,applied_credit_notes,contact,employee" - | "line_items,applied_credit_notes,contact,employee,accounting_period" - | "line_items,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "line_items,applied_credit_notes,contact,employee,payment_term" - | "line_items,applied_credit_notes,contact,payment_term" - | "line_items,applied_credit_notes,employee" - | "line_items,applied_credit_notes,employee,accounting_period" - | "line_items,applied_credit_notes,employee,accounting_period,payment_term" - | "line_items,applied_credit_notes,employee,payment_term" - | "line_items,applied_credit_notes,payment_term" - | "line_items,applied_vendor_credits" - | "line_items,applied_vendor_credits,accounting_period" - | "line_items,applied_vendor_credits,accounting_period,payment_term" - | "line_items,applied_vendor_credits,company" - | "line_items,applied_vendor_credits,company,accounting_period" - | "line_items,applied_vendor_credits,company,accounting_period,payment_term" - | "line_items,applied_vendor_credits,company,employee" - | "line_items,applied_vendor_credits,company,employee,accounting_period" - | "line_items,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "line_items,applied_vendor_credits,company,employee,payment_term" - | "line_items,applied_vendor_credits,company,payment_term" - | "line_items,applied_vendor_credits,contact" - | "line_items,applied_vendor_credits,contact,accounting_period" - | "line_items,applied_vendor_credits,contact,accounting_period,payment_term" - | "line_items,applied_vendor_credits,contact,company" - | "line_items,applied_vendor_credits,contact,company,accounting_period" - | "line_items,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "line_items,applied_vendor_credits,contact,company,employee" - | "line_items,applied_vendor_credits,contact,company,employee,accounting_period" - | "line_items,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "line_items,applied_vendor_credits,contact,company,employee,payment_term" - | "line_items,applied_vendor_credits,contact,company,payment_term" - | "line_items,applied_vendor_credits,contact,employee" - | "line_items,applied_vendor_credits,contact,employee,accounting_period" - | "line_items,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "line_items,applied_vendor_credits,contact,employee,payment_term" - | "line_items,applied_vendor_credits,contact,payment_term" - | "line_items,applied_vendor_credits,employee" - | "line_items,applied_vendor_credits,employee,accounting_period" - | "line_items,applied_vendor_credits,employee,accounting_period,payment_term" - | "line_items,applied_vendor_credits,employee,payment_term" - | "line_items,applied_vendor_credits,payment_term" - | "line_items,company" - | "line_items,company,accounting_period" - | "line_items,company,accounting_period,payment_term" - | "line_items,company,employee" - | "line_items,company,employee,accounting_period" - | "line_items,company,employee,accounting_period,payment_term" - | "line_items,company,employee,payment_term" - | "line_items,company,payment_term" - | "line_items,contact" - | "line_items,contact,accounting_period" - | "line_items,contact,accounting_period,payment_term" - | "line_items,contact,company" - | "line_items,contact,company,accounting_period" - | "line_items,contact,company,accounting_period,payment_term" - | "line_items,contact,company,employee" - | "line_items,contact,company,employee,accounting_period" - | "line_items,contact,company,employee,accounting_period,payment_term" - | "line_items,contact,company,employee,payment_term" - | "line_items,contact,company,payment_term" - | "line_items,contact,employee" - | "line_items,contact,employee,accounting_period" - | "line_items,contact,employee,accounting_period,payment_term" - | "line_items,contact,employee,payment_term" - | "line_items,contact,payment_term" - | "line_items,employee" - | "line_items,employee,accounting_period" - | "line_items,employee,accounting_period,payment_term" - | "line_items,employee,payment_term" - | "line_items,payment_term" - | "line_items,purchase_orders" - | "line_items,purchase_orders,accounting_period" - | "line_items,purchase_orders,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes" - | "line_items,purchase_orders,applied_credit_notes,accounting_period" - | "line_items,purchase_orders,applied_credit_notes,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - | "line_items,purchase_orders,applied_credit_notes,company" - | "line_items,purchase_orders,applied_credit_notes,company,accounting_period" - | "line_items,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes,company,employee" - | "line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period" - | "line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes,company,employee,payment_term" - | "line_items,purchase_orders,applied_credit_notes,company,payment_term" - | "line_items,purchase_orders,applied_credit_notes,contact" - | "line_items,purchase_orders,applied_credit_notes,contact,accounting_period" - | "line_items,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes,contact,company" - | "line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period" - | "line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes,contact,company,employee" - | "line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - | "line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - | "line_items,purchase_orders,applied_credit_notes,contact,company,payment_term" - | "line_items,purchase_orders,applied_credit_notes,contact,employee" - | "line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - | "line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes,contact,employee,payment_term" - | "line_items,purchase_orders,applied_credit_notes,contact,payment_term" - | "line_items,purchase_orders,applied_credit_notes,employee" - | "line_items,purchase_orders,applied_credit_notes,employee,accounting_period" - | "line_items,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - | "line_items,purchase_orders,applied_credit_notes,employee,payment_term" - | "line_items,purchase_orders,applied_credit_notes,payment_term" - | "line_items,purchase_orders,applied_vendor_credits" - | "line_items,purchase_orders,applied_vendor_credits,accounting_period" - | "line_items,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - | "line_items,purchase_orders,applied_vendor_credits,company" - | "line_items,purchase_orders,applied_vendor_credits,company,accounting_period" - | "line_items,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - | "line_items,purchase_orders,applied_vendor_credits,company,employee" - | "line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - | "line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "line_items,purchase_orders,applied_vendor_credits,company,employee,payment_term" - | "line_items,purchase_orders,applied_vendor_credits,company,payment_term" - | "line_items,purchase_orders,applied_vendor_credits,contact" - | "line_items,purchase_orders,applied_vendor_credits,contact,accounting_period" - | "line_items,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - | "line_items,purchase_orders,applied_vendor_credits,contact,company" - | "line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - | "line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "line_items,purchase_orders,applied_vendor_credits,contact,company,employee" - | "line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - | "line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "line_items,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - | "line_items,purchase_orders,applied_vendor_credits,contact,company,payment_term" - | "line_items,purchase_orders,applied_vendor_credits,contact,employee" - | "line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - | "line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "line_items,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - | "line_items,purchase_orders,applied_vendor_credits,contact,payment_term" - | "line_items,purchase_orders,applied_vendor_credits,employee" - | "line_items,purchase_orders,applied_vendor_credits,employee,accounting_period" - | "line_items,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - | "line_items,purchase_orders,applied_vendor_credits,employee,payment_term" - | "line_items,purchase_orders,applied_vendor_credits,payment_term" - | "line_items,purchase_orders,company" - | "line_items,purchase_orders,company,accounting_period" - | "line_items,purchase_orders,company,accounting_period,payment_term" - | "line_items,purchase_orders,company,employee" - | "line_items,purchase_orders,company,employee,accounting_period" - | "line_items,purchase_orders,company,employee,accounting_period,payment_term" - | "line_items,purchase_orders,company,employee,payment_term" - | "line_items,purchase_orders,company,payment_term" - | "line_items,purchase_orders,contact" - | "line_items,purchase_orders,contact,accounting_period" - | "line_items,purchase_orders,contact,accounting_period,payment_term" - | "line_items,purchase_orders,contact,company" - | "line_items,purchase_orders,contact,company,accounting_period" - | "line_items,purchase_orders,contact,company,accounting_period,payment_term" - | "line_items,purchase_orders,contact,company,employee" - | "line_items,purchase_orders,contact,company,employee,accounting_period" - | "line_items,purchase_orders,contact,company,employee,accounting_period,payment_term" - | "line_items,purchase_orders,contact,company,employee,payment_term" - | "line_items,purchase_orders,contact,company,payment_term" - | "line_items,purchase_orders,contact,employee" - | "line_items,purchase_orders,contact,employee,accounting_period" - | "line_items,purchase_orders,contact,employee,accounting_period,payment_term" - | "line_items,purchase_orders,contact,employee,payment_term" - | "line_items,purchase_orders,contact,payment_term" - | "line_items,purchase_orders,employee" - | "line_items,purchase_orders,employee,accounting_period" - | "line_items,purchase_orders,employee,accounting_period,payment_term" - | "line_items,purchase_orders,employee,payment_term" - | "line_items,purchase_orders,payment_term" - | "line_items,tracking_categories" - | "line_items,tracking_categories,accounting_period" - | "line_items,tracking_categories,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes" - | "line_items,tracking_categories,applied_credit_notes,accounting_period" - | "line_items,tracking_categories,applied_credit_notes,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term" - | "line_items,tracking_categories,applied_credit_notes,company" - | "line_items,tracking_categories,applied_credit_notes,company,accounting_period" - | "line_items,tracking_categories,applied_credit_notes,company,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes,company,employee" - | "line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period" - | "line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes,company,employee,payment_term" - | "line_items,tracking_categories,applied_credit_notes,company,payment_term" - | "line_items,tracking_categories,applied_credit_notes,contact" - | "line_items,tracking_categories,applied_credit_notes,contact,accounting_period" - | "line_items,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes,contact,company" - | "line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period" - | "line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes,contact,company,employee" - | "line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period" - | "line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes,contact,company,employee,payment_term" - | "line_items,tracking_categories,applied_credit_notes,contact,company,payment_term" - | "line_items,tracking_categories,applied_credit_notes,contact,employee" - | "line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period" - | "line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes,contact,employee,payment_term" - | "line_items,tracking_categories,applied_credit_notes,contact,payment_term" - | "line_items,tracking_categories,applied_credit_notes,employee" - | "line_items,tracking_categories,applied_credit_notes,employee,accounting_period" - | "line_items,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term" - | "line_items,tracking_categories,applied_credit_notes,employee,payment_term" - | "line_items,tracking_categories,applied_credit_notes,payment_term" - | "line_items,tracking_categories,applied_vendor_credits" - | "line_items,tracking_categories,applied_vendor_credits,accounting_period" - | "line_items,tracking_categories,applied_vendor_credits,accounting_period,payment_term" - | "line_items,tracking_categories,applied_vendor_credits,company" - | "line_items,tracking_categories,applied_vendor_credits,company,accounting_period" - | "line_items,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term" - | "line_items,tracking_categories,applied_vendor_credits,company,employee" - | "line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period" - | "line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "line_items,tracking_categories,applied_vendor_credits,company,employee,payment_term" - | "line_items,tracking_categories,applied_vendor_credits,company,payment_term" - | "line_items,tracking_categories,applied_vendor_credits,contact" - | "line_items,tracking_categories,applied_vendor_credits,contact,accounting_period" - | "line_items,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term" - | "line_items,tracking_categories,applied_vendor_credits,contact,company" - | "line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period" - | "line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "line_items,tracking_categories,applied_vendor_credits,contact,company,employee" - | "line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period" - | "line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "line_items,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term" - | "line_items,tracking_categories,applied_vendor_credits,contact,company,payment_term" - | "line_items,tracking_categories,applied_vendor_credits,contact,employee" - | "line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period" - | "line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "line_items,tracking_categories,applied_vendor_credits,contact,employee,payment_term" - | "line_items,tracking_categories,applied_vendor_credits,contact,payment_term" - | "line_items,tracking_categories,applied_vendor_credits,employee" - | "line_items,tracking_categories,applied_vendor_credits,employee,accounting_period" - | "line_items,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term" - | "line_items,tracking_categories,applied_vendor_credits,employee,payment_term" - | "line_items,tracking_categories,applied_vendor_credits,payment_term" - | "line_items,tracking_categories,company" - | "line_items,tracking_categories,company,accounting_period" - | "line_items,tracking_categories,company,accounting_period,payment_term" - | "line_items,tracking_categories,company,employee" - | "line_items,tracking_categories,company,employee,accounting_period" - | "line_items,tracking_categories,company,employee,accounting_period,payment_term" - | "line_items,tracking_categories,company,employee,payment_term" - | "line_items,tracking_categories,company,payment_term" - | "line_items,tracking_categories,contact" - | "line_items,tracking_categories,contact,accounting_period" - | "line_items,tracking_categories,contact,accounting_period,payment_term" - | "line_items,tracking_categories,contact,company" - | "line_items,tracking_categories,contact,company,accounting_period" - | "line_items,tracking_categories,contact,company,accounting_period,payment_term" - | "line_items,tracking_categories,contact,company,employee" - | "line_items,tracking_categories,contact,company,employee,accounting_period" - | "line_items,tracking_categories,contact,company,employee,accounting_period,payment_term" - | "line_items,tracking_categories,contact,company,employee,payment_term" - | "line_items,tracking_categories,contact,company,payment_term" - | "line_items,tracking_categories,contact,employee" - | "line_items,tracking_categories,contact,employee,accounting_period" - | "line_items,tracking_categories,contact,employee,accounting_period,payment_term" - | "line_items,tracking_categories,contact,employee,payment_term" - | "line_items,tracking_categories,contact,payment_term" - | "line_items,tracking_categories,employee" - | "line_items,tracking_categories,employee,accounting_period" - | "line_items,tracking_categories,employee,accounting_period,payment_term" - | "line_items,tracking_categories,employee,payment_term" - | "line_items,tracking_categories,payment_term" - | "line_items,tracking_categories,purchase_orders" - | "line_items,tracking_categories,purchase_orders,accounting_period" - | "line_items,tracking_categories,purchase_orders,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,company" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,employee" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_credit_notes,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term" - | "line_items,tracking_categories,purchase_orders,applied_vendor_credits,payment_term" - | "line_items,tracking_categories,purchase_orders,company" - | "line_items,tracking_categories,purchase_orders,company,accounting_period" - | "line_items,tracking_categories,purchase_orders,company,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,company,employee" - | "line_items,tracking_categories,purchase_orders,company,employee,accounting_period" - | "line_items,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,company,employee,payment_term" - | "line_items,tracking_categories,purchase_orders,company,payment_term" - | "line_items,tracking_categories,purchase_orders,contact" - | "line_items,tracking_categories,purchase_orders,contact,accounting_period" - | "line_items,tracking_categories,purchase_orders,contact,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,contact,company" - | "line_items,tracking_categories,purchase_orders,contact,company,accounting_period" - | "line_items,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,contact,company,employee" - | "line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period" - | "line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,contact,company,employee,payment_term" - | "line_items,tracking_categories,purchase_orders,contact,company,payment_term" - | "line_items,tracking_categories,purchase_orders,contact,employee" - | "line_items,tracking_categories,purchase_orders,contact,employee,accounting_period" - | "line_items,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,contact,employee,payment_term" - | "line_items,tracking_categories,purchase_orders,contact,payment_term" - | "line_items,tracking_categories,purchase_orders,employee" - | "line_items,tracking_categories,purchase_orders,employee,accounting_period" - | "line_items,tracking_categories,purchase_orders,employee,accounting_period,payment_term" - | "line_items,tracking_categories,purchase_orders,employee,payment_term" - | "line_items,tracking_categories,purchase_orders,payment_term" - | "payment_term" - | "payments" - | "payments,accounting_period" - | "payments,accounting_period,payment_term" - | "payments,applied_credit_notes" - | "payments,applied_credit_notes,accounting_period" - | "payments,applied_credit_notes,accounting_period,payment_term" - | "payments,applied_credit_notes,applied_vendor_credits" - | "payments,applied_credit_notes,applied_vendor_credits,accounting_period" - | "payments,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_credit_notes,applied_vendor_credits,company" - | "payments,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "payments,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_credit_notes,applied_vendor_credits,company,employee" - | "payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "payments,applied_credit_notes,applied_vendor_credits,contact" - | "payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_credit_notes,applied_vendor_credits,contact,company" - | "payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_credit_notes,applied_vendor_credits,contact,employee" - | "payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "payments,applied_credit_notes,applied_vendor_credits,employee" - | "payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "payments,applied_credit_notes,applied_vendor_credits,payment_term" - | "payments,applied_credit_notes,company" - | "payments,applied_credit_notes,company,accounting_period" - | "payments,applied_credit_notes,company,accounting_period,payment_term" - | "payments,applied_credit_notes,company,employee" - | "payments,applied_credit_notes,company,employee,accounting_period" - | "payments,applied_credit_notes,company,employee,accounting_period,payment_term" - | "payments,applied_credit_notes,company,employee,payment_term" - | "payments,applied_credit_notes,company,payment_term" - | "payments,applied_credit_notes,contact" - | "payments,applied_credit_notes,contact,accounting_period" - | "payments,applied_credit_notes,contact,accounting_period,payment_term" - | "payments,applied_credit_notes,contact,company" - | "payments,applied_credit_notes,contact,company,accounting_period" - | "payments,applied_credit_notes,contact,company,accounting_period,payment_term" - | "payments,applied_credit_notes,contact,company,employee" - | "payments,applied_credit_notes,contact,company,employee,accounting_period" - | "payments,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "payments,applied_credit_notes,contact,company,employee,payment_term" - | "payments,applied_credit_notes,contact,company,payment_term" - | "payments,applied_credit_notes,contact,employee" - | "payments,applied_credit_notes,contact,employee,accounting_period" - | "payments,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "payments,applied_credit_notes,contact,employee,payment_term" - | "payments,applied_credit_notes,contact,payment_term" - | "payments,applied_credit_notes,employee" - | "payments,applied_credit_notes,employee,accounting_period" - | "payments,applied_credit_notes,employee,accounting_period,payment_term" - | "payments,applied_credit_notes,employee,payment_term" - | "payments,applied_credit_notes,payment_term" - | "payments,applied_payments" - | "payments,applied_payments,accounting_period" - | "payments,applied_payments,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes" - | "payments,applied_payments,applied_credit_notes,accounting_period" - | "payments,applied_payments,applied_credit_notes,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,accounting_period" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,employee" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,employee" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "payments,applied_payments,applied_credit_notes,applied_vendor_credits,payment_term" - | "payments,applied_payments,applied_credit_notes,company" - | "payments,applied_payments,applied_credit_notes,company,accounting_period" - | "payments,applied_payments,applied_credit_notes,company,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes,company,employee" - | "payments,applied_payments,applied_credit_notes,company,employee,accounting_period" - | "payments,applied_payments,applied_credit_notes,company,employee,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes,company,employee,payment_term" - | "payments,applied_payments,applied_credit_notes,company,payment_term" - | "payments,applied_payments,applied_credit_notes,contact" - | "payments,applied_payments,applied_credit_notes,contact,accounting_period" - | "payments,applied_payments,applied_credit_notes,contact,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes,contact,company" - | "payments,applied_payments,applied_credit_notes,contact,company,accounting_period" - | "payments,applied_payments,applied_credit_notes,contact,company,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes,contact,company,employee" - | "payments,applied_payments,applied_credit_notes,contact,company,employee,accounting_period" - | "payments,applied_payments,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes,contact,company,employee,payment_term" - | "payments,applied_payments,applied_credit_notes,contact,company,payment_term" - | "payments,applied_payments,applied_credit_notes,contact,employee" - | "payments,applied_payments,applied_credit_notes,contact,employee,accounting_period" - | "payments,applied_payments,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes,contact,employee,payment_term" - | "payments,applied_payments,applied_credit_notes,contact,payment_term" - | "payments,applied_payments,applied_credit_notes,employee" - | "payments,applied_payments,applied_credit_notes,employee,accounting_period" - | "payments,applied_payments,applied_credit_notes,employee,accounting_period,payment_term" - | "payments,applied_payments,applied_credit_notes,employee,payment_term" - | "payments,applied_payments,applied_credit_notes,payment_term" - | "payments,applied_payments,applied_vendor_credits" - | "payments,applied_payments,applied_vendor_credits,accounting_period" - | "payments,applied_payments,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_payments,applied_vendor_credits,company" - | "payments,applied_payments,applied_vendor_credits,company,accounting_period" - | "payments,applied_payments,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_payments,applied_vendor_credits,company,employee" - | "payments,applied_payments,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_payments,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_payments,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_payments,applied_vendor_credits,company,payment_term" - | "payments,applied_payments,applied_vendor_credits,contact" - | "payments,applied_payments,applied_vendor_credits,contact,accounting_period" - | "payments,applied_payments,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_payments,applied_vendor_credits,contact,company" - | "payments,applied_payments,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_payments,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_payments,applied_vendor_credits,contact,company,employee" - | "payments,applied_payments,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_payments,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_payments,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_payments,applied_vendor_credits,contact,employee" - | "payments,applied_payments,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_payments,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_payments,applied_vendor_credits,contact,payment_term" - | "payments,applied_payments,applied_vendor_credits,employee" - | "payments,applied_payments,applied_vendor_credits,employee,accounting_period" - | "payments,applied_payments,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_payments,applied_vendor_credits,employee,payment_term" - | "payments,applied_payments,applied_vendor_credits,payment_term" - | "payments,applied_payments,company" - | "payments,applied_payments,company,accounting_period" - | "payments,applied_payments,company,accounting_period,payment_term" - | "payments,applied_payments,company,employee" - | "payments,applied_payments,company,employee,accounting_period" - | "payments,applied_payments,company,employee,accounting_period,payment_term" - | "payments,applied_payments,company,employee,payment_term" - | "payments,applied_payments,company,payment_term" - | "payments,applied_payments,contact" - | "payments,applied_payments,contact,accounting_period" - | "payments,applied_payments,contact,accounting_period,payment_term" - | "payments,applied_payments,contact,company" - | "payments,applied_payments,contact,company,accounting_period" - | "payments,applied_payments,contact,company,accounting_period,payment_term" - | "payments,applied_payments,contact,company,employee" - | "payments,applied_payments,contact,company,employee,accounting_period" - | "payments,applied_payments,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,contact,company,employee,payment_term" - | "payments,applied_payments,contact,company,payment_term" - | "payments,applied_payments,contact,employee" - | "payments,applied_payments,contact,employee,accounting_period" - | "payments,applied_payments,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,contact,employee,payment_term" - | "payments,applied_payments,contact,payment_term" - | "payments,applied_payments,employee" - | "payments,applied_payments,employee,accounting_period" - | "payments,applied_payments,employee,accounting_period,payment_term" - | "payments,applied_payments,employee,payment_term" - | "payments,applied_payments,line_items" - | "payments,applied_payments,line_items,accounting_period" - | "payments,applied_payments,line_items,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes" - | "payments,applied_payments,line_items,applied_credit_notes,accounting_period" - | "payments,applied_payments,line_items,applied_credit_notes,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,applied_vendor_credits,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,company" - | "payments,applied_payments,line_items,applied_credit_notes,company,accounting_period" - | "payments,applied_payments,line_items,applied_credit_notes,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,company,employee" - | "payments,applied_payments,line_items,applied_credit_notes,company,employee,accounting_period" - | "payments,applied_payments,line_items,applied_credit_notes,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,company,employee,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,company,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,contact" - | "payments,applied_payments,line_items,applied_credit_notes,contact,accounting_period" - | "payments,applied_payments,line_items,applied_credit_notes,contact,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,contact,company" - | "payments,applied_payments,line_items,applied_credit_notes,contact,company,accounting_period" - | "payments,applied_payments,line_items,applied_credit_notes,contact,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,contact,company,employee" - | "payments,applied_payments,line_items,applied_credit_notes,contact,company,employee,accounting_period" - | "payments,applied_payments,line_items,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,contact,company,employee,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,contact,company,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,contact,employee" - | "payments,applied_payments,line_items,applied_credit_notes,contact,employee,accounting_period" - | "payments,applied_payments,line_items,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,contact,employee,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,contact,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,employee" - | "payments,applied_payments,line_items,applied_credit_notes,employee,accounting_period" - | "payments,applied_payments,line_items,applied_credit_notes,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,employee,payment_term" - | "payments,applied_payments,line_items,applied_credit_notes,payment_term" - | "payments,applied_payments,line_items,applied_vendor_credits" - | "payments,applied_payments,line_items,applied_vendor_credits,accounting_period" - | "payments,applied_payments,line_items,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_vendor_credits,company" - | "payments,applied_payments,line_items,applied_vendor_credits,company,accounting_period" - | "payments,applied_payments,line_items,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_vendor_credits,company,employee" - | "payments,applied_payments,line_items,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_payments,line_items,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_payments,line_items,applied_vendor_credits,company,payment_term" - | "payments,applied_payments,line_items,applied_vendor_credits,contact" - | "payments,applied_payments,line_items,applied_vendor_credits,contact,accounting_period" - | "payments,applied_payments,line_items,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_vendor_credits,contact,company" - | "payments,applied_payments,line_items,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_payments,line_items,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_vendor_credits,contact,company,employee" - | "payments,applied_payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_payments,line_items,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_payments,line_items,applied_vendor_credits,contact,employee" - | "payments,applied_payments,line_items,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_payments,line_items,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_payments,line_items,applied_vendor_credits,contact,payment_term" - | "payments,applied_payments,line_items,applied_vendor_credits,employee" - | "payments,applied_payments,line_items,applied_vendor_credits,employee,accounting_period" - | "payments,applied_payments,line_items,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,applied_vendor_credits,employee,payment_term" - | "payments,applied_payments,line_items,applied_vendor_credits,payment_term" - | "payments,applied_payments,line_items,company" - | "payments,applied_payments,line_items,company,accounting_period" - | "payments,applied_payments,line_items,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,company,employee" - | "payments,applied_payments,line_items,company,employee,accounting_period" - | "payments,applied_payments,line_items,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,company,employee,payment_term" - | "payments,applied_payments,line_items,company,payment_term" - | "payments,applied_payments,line_items,contact" - | "payments,applied_payments,line_items,contact,accounting_period" - | "payments,applied_payments,line_items,contact,accounting_period,payment_term" - | "payments,applied_payments,line_items,contact,company" - | "payments,applied_payments,line_items,contact,company,accounting_period" - | "payments,applied_payments,line_items,contact,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,contact,company,employee" - | "payments,applied_payments,line_items,contact,company,employee,accounting_period" - | "payments,applied_payments,line_items,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,contact,company,employee,payment_term" - | "payments,applied_payments,line_items,contact,company,payment_term" - | "payments,applied_payments,line_items,contact,employee" - | "payments,applied_payments,line_items,contact,employee,accounting_period" - | "payments,applied_payments,line_items,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,contact,employee,payment_term" - | "payments,applied_payments,line_items,contact,payment_term" - | "payments,applied_payments,line_items,employee" - | "payments,applied_payments,line_items,employee,accounting_period" - | "payments,applied_payments,line_items,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,employee,payment_term" - | "payments,applied_payments,line_items,payment_term" - | "payments,applied_payments,line_items,purchase_orders" - | "payments,applied_payments,line_items,purchase_orders,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,employee,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,company,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,company,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,employee,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,contact,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,employee" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,employee,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_credit_notes,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,company,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,contact,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,employee" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,employee,payment_term" - | "payments,applied_payments,line_items,purchase_orders,applied_vendor_credits,payment_term" - | "payments,applied_payments,line_items,purchase_orders,company" - | "payments,applied_payments,line_items,purchase_orders,company,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,company,employee" - | "payments,applied_payments,line_items,purchase_orders,company,employee,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,company,employee,payment_term" - | "payments,applied_payments,line_items,purchase_orders,company,payment_term" - | "payments,applied_payments,line_items,purchase_orders,contact" - | "payments,applied_payments,line_items,purchase_orders,contact,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,contact,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,contact,company" - | "payments,applied_payments,line_items,purchase_orders,contact,company,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,contact,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,contact,company,employee" - | "payments,applied_payments,line_items,purchase_orders,contact,company,employee,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,contact,company,employee,payment_term" - | "payments,applied_payments,line_items,purchase_orders,contact,company,payment_term" - | "payments,applied_payments,line_items,purchase_orders,contact,employee" - | "payments,applied_payments,line_items,purchase_orders,contact,employee,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,contact,employee,payment_term" - | "payments,applied_payments,line_items,purchase_orders,contact,payment_term" - | "payments,applied_payments,line_items,purchase_orders,employee" - | "payments,applied_payments,line_items,purchase_orders,employee,accounting_period" - | "payments,applied_payments,line_items,purchase_orders,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,purchase_orders,employee,payment_term" - | "payments,applied_payments,line_items,purchase_orders,payment_term" - | "payments,applied_payments,line_items,tracking_categories" - | "payments,applied_payments,line_items,tracking_categories,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,company,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,company,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,contact,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,employee" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_credit_notes,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,company,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,contact,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,employee" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,applied_vendor_credits,payment_term" - | "payments,applied_payments,line_items,tracking_categories,company" - | "payments,applied_payments,line_items,tracking_categories,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,company,employee" - | "payments,applied_payments,line_items,tracking_categories,company,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,company,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,company,payment_term" - | "payments,applied_payments,line_items,tracking_categories,contact" - | "payments,applied_payments,line_items,tracking_categories,contact,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,contact,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,contact,company" - | "payments,applied_payments,line_items,tracking_categories,contact,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,contact,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,contact,company,employee" - | "payments,applied_payments,line_items,tracking_categories,contact,company,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,contact,company,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,contact,company,payment_term" - | "payments,applied_payments,line_items,tracking_categories,contact,employee" - | "payments,applied_payments,line_items,tracking_categories,contact,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,contact,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,contact,payment_term" - | "payments,applied_payments,line_items,tracking_categories,employee" - | "payments,applied_payments,line_items,tracking_categories,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,company" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,employee" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,company,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,company,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,employee" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,contact,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,employee" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,employee,accounting_period" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,employee,accounting_period,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,employee,payment_term" - | "payments,applied_payments,line_items,tracking_categories,purchase_orders,payment_term" - | "payments,applied_payments,payment_term" - | "payments,applied_payments,purchase_orders" - | "payments,applied_payments,purchase_orders,accounting_period" - | "payments,applied_payments,purchase_orders,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes" - | "payments,applied_payments,purchase_orders,applied_credit_notes,accounting_period" - | "payments,applied_payments,purchase_orders,applied_credit_notes,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,company" - | "payments,applied_payments,purchase_orders,applied_credit_notes,company,accounting_period" - | "payments,applied_payments,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,company,employee" - | "payments,applied_payments,purchase_orders,applied_credit_notes,company,employee,accounting_period" - | "payments,applied_payments,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,company,employee,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,company,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,contact" - | "payments,applied_payments,purchase_orders,applied_credit_notes,contact,accounting_period" - | "payments,applied_payments,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company" - | "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,accounting_period" - | "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,employee" - | "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - | "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,contact,company,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,contact,employee" - | "payments,applied_payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - | "payments,applied_payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,contact,employee,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,contact,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,employee" - | "payments,applied_payments,purchase_orders,applied_credit_notes,employee,accounting_period" - | "payments,applied_payments,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,employee,payment_term" - | "payments,applied_payments,purchase_orders,applied_credit_notes,payment_term" - | "payments,applied_payments,purchase_orders,applied_vendor_credits" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,accounting_period" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,company" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,company,accounting_period" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,company,employee" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,company,payment_term" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,contact" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,accounting_period" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,employee" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,contact,payment_term" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,employee" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,employee,accounting_period" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,employee,payment_term" - | "payments,applied_payments,purchase_orders,applied_vendor_credits,payment_term" - | "payments,applied_payments,purchase_orders,company" - | "payments,applied_payments,purchase_orders,company,accounting_period" - | "payments,applied_payments,purchase_orders,company,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,company,employee" - | "payments,applied_payments,purchase_orders,company,employee,accounting_period" - | "payments,applied_payments,purchase_orders,company,employee,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,company,employee,payment_term" - | "payments,applied_payments,purchase_orders,company,payment_term" - | "payments,applied_payments,purchase_orders,contact" - | "payments,applied_payments,purchase_orders,contact,accounting_period" - | "payments,applied_payments,purchase_orders,contact,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,contact,company" - | "payments,applied_payments,purchase_orders,contact,company,accounting_period" - | "payments,applied_payments,purchase_orders,contact,company,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,contact,company,employee" - | "payments,applied_payments,purchase_orders,contact,company,employee,accounting_period" - | "payments,applied_payments,purchase_orders,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,contact,company,employee,payment_term" - | "payments,applied_payments,purchase_orders,contact,company,payment_term" - | "payments,applied_payments,purchase_orders,contact,employee" - | "payments,applied_payments,purchase_orders,contact,employee,accounting_period" - | "payments,applied_payments,purchase_orders,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,contact,employee,payment_term" - | "payments,applied_payments,purchase_orders,contact,payment_term" - | "payments,applied_payments,purchase_orders,employee" - | "payments,applied_payments,purchase_orders,employee,accounting_period" - | "payments,applied_payments,purchase_orders,employee,accounting_period,payment_term" - | "payments,applied_payments,purchase_orders,employee,payment_term" - | "payments,applied_payments,purchase_orders,payment_term" - | "payments,applied_payments,tracking_categories" - | "payments,applied_payments,tracking_categories,accounting_period" - | "payments,applied_payments,tracking_categories,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes" - | "payments,applied_payments,tracking_categories,applied_credit_notes,accounting_period" - | "payments,applied_payments,tracking_categories,applied_credit_notes,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,company" - | "payments,applied_payments,tracking_categories,applied_credit_notes,company,accounting_period" - | "payments,applied_payments,tracking_categories,applied_credit_notes,company,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,company,employee" - | "payments,applied_payments,tracking_categories,applied_credit_notes,company,employee,accounting_period" - | "payments,applied_payments,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,company,employee,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,company,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,contact" - | "payments,applied_payments,tracking_categories,applied_credit_notes,contact,accounting_period" - | "payments,applied_payments,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company" - | "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,accounting_period" - | "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,employee" - | "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period" - | "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,employee,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,contact,company,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,contact,employee" - | "payments,applied_payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period" - | "payments,applied_payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,contact,employee,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,contact,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,employee" - | "payments,applied_payments,tracking_categories,applied_credit_notes,employee,accounting_period" - | "payments,applied_payments,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,employee,payment_term" - | "payments,applied_payments,tracking_categories,applied_credit_notes,payment_term" - | "payments,applied_payments,tracking_categories,applied_vendor_credits" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,accounting_period" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,company" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,company,accounting_period" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,company,employee" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,company,payment_term" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,contact" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,accounting_period" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,employee" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,contact,payment_term" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,employee" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,employee,accounting_period" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,employee,payment_term" - | "payments,applied_payments,tracking_categories,applied_vendor_credits,payment_term" - | "payments,applied_payments,tracking_categories,company" - | "payments,applied_payments,tracking_categories,company,accounting_period" - | "payments,applied_payments,tracking_categories,company,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,company,employee" - | "payments,applied_payments,tracking_categories,company,employee,accounting_period" - | "payments,applied_payments,tracking_categories,company,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,company,employee,payment_term" - | "payments,applied_payments,tracking_categories,company,payment_term" - | "payments,applied_payments,tracking_categories,contact" - | "payments,applied_payments,tracking_categories,contact,accounting_period" - | "payments,applied_payments,tracking_categories,contact,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,contact,company" - | "payments,applied_payments,tracking_categories,contact,company,accounting_period" - | "payments,applied_payments,tracking_categories,contact,company,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,contact,company,employee" - | "payments,applied_payments,tracking_categories,contact,company,employee,accounting_period" - | "payments,applied_payments,tracking_categories,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,contact,company,employee,payment_term" - | "payments,applied_payments,tracking_categories,contact,company,payment_term" - | "payments,applied_payments,tracking_categories,contact,employee" - | "payments,applied_payments,tracking_categories,contact,employee,accounting_period" - | "payments,applied_payments,tracking_categories,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,contact,employee,payment_term" - | "payments,applied_payments,tracking_categories,contact,payment_term" - | "payments,applied_payments,tracking_categories,employee" - | "payments,applied_payments,tracking_categories,employee,accounting_period" - | "payments,applied_payments,tracking_categories,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,employee,payment_term" - | "payments,applied_payments,tracking_categories,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders" - | "payments,applied_payments,tracking_categories,purchase_orders,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_credit_notes,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,applied_vendor_credits,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,company" - | "payments,applied_payments,tracking_categories,purchase_orders,company,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,company,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,company,employee" - | "payments,applied_payments,tracking_categories,purchase_orders,company,employee,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,company,employee,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,company,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,contact" - | "payments,applied_payments,tracking_categories,purchase_orders,contact,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,contact,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,contact,company" - | "payments,applied_payments,tracking_categories,purchase_orders,contact,company,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,contact,company,employee" - | "payments,applied_payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,contact,company,employee,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,contact,company,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,contact,employee" - | "payments,applied_payments,tracking_categories,purchase_orders,contact,employee,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,contact,employee,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,contact,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,employee" - | "payments,applied_payments,tracking_categories,purchase_orders,employee,accounting_period" - | "payments,applied_payments,tracking_categories,purchase_orders,employee,accounting_period,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,employee,payment_term" - | "payments,applied_payments,tracking_categories,purchase_orders,payment_term" - | "payments,applied_vendor_credits" - | "payments,applied_vendor_credits,accounting_period" - | "payments,applied_vendor_credits,accounting_period,payment_term" - | "payments,applied_vendor_credits,company" - | "payments,applied_vendor_credits,company,accounting_period" - | "payments,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,applied_vendor_credits,company,employee" - | "payments,applied_vendor_credits,company,employee,accounting_period" - | "payments,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,applied_vendor_credits,company,employee,payment_term" - | "payments,applied_vendor_credits,company,payment_term" - | "payments,applied_vendor_credits,contact" - | "payments,applied_vendor_credits,contact,accounting_period" - | "payments,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,applied_vendor_credits,contact,company" - | "payments,applied_vendor_credits,contact,company,accounting_period" - | "payments,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,applied_vendor_credits,contact,company,employee" - | "payments,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,applied_vendor_credits,contact,company,payment_term" - | "payments,applied_vendor_credits,contact,employee" - | "payments,applied_vendor_credits,contact,employee,accounting_period" - | "payments,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,applied_vendor_credits,contact,employee,payment_term" - | "payments,applied_vendor_credits,contact,payment_term" - | "payments,applied_vendor_credits,employee" - | "payments,applied_vendor_credits,employee,accounting_period" - | "payments,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,applied_vendor_credits,employee,payment_term" - | "payments,applied_vendor_credits,payment_term" - | "payments,company" - | "payments,company,accounting_period" - | "payments,company,accounting_period,payment_term" - | "payments,company,employee" - | "payments,company,employee,accounting_period" - | "payments,company,employee,accounting_period,payment_term" - | "payments,company,employee,payment_term" - | "payments,company,payment_term" - | "payments,contact" - | "payments,contact,accounting_period" - | "payments,contact,accounting_period,payment_term" - | "payments,contact,company" - | "payments,contact,company,accounting_period" - | "payments,contact,company,accounting_period,payment_term" - | "payments,contact,company,employee" - | "payments,contact,company,employee,accounting_period" - | "payments,contact,company,employee,accounting_period,payment_term" - | "payments,contact,company,employee,payment_term" - | "payments,contact,company,payment_term" - | "payments,contact,employee" - | "payments,contact,employee,accounting_period" - | "payments,contact,employee,accounting_period,payment_term" - | "payments,contact,employee,payment_term" - | "payments,contact,payment_term" - | "payments,employee" - | "payments,employee,accounting_period" - | "payments,employee,accounting_period,payment_term" - | "payments,employee,payment_term" - | "payments,line_items" - | "payments,line_items,accounting_period" - | "payments,line_items,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes" - | "payments,line_items,applied_credit_notes,accounting_period" - | "payments,line_items,applied_credit_notes,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes,applied_vendor_credits" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,company" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,contact" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,employee" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "payments,line_items,applied_credit_notes,applied_vendor_credits,payment_term" - | "payments,line_items,applied_credit_notes,company" - | "payments,line_items,applied_credit_notes,company,accounting_period" - | "payments,line_items,applied_credit_notes,company,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes,company,employee" - | "payments,line_items,applied_credit_notes,company,employee,accounting_period" - | "payments,line_items,applied_credit_notes,company,employee,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes,company,employee,payment_term" - | "payments,line_items,applied_credit_notes,company,payment_term" - | "payments,line_items,applied_credit_notes,contact" - | "payments,line_items,applied_credit_notes,contact,accounting_period" - | "payments,line_items,applied_credit_notes,contact,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes,contact,company" - | "payments,line_items,applied_credit_notes,contact,company,accounting_period" - | "payments,line_items,applied_credit_notes,contact,company,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes,contact,company,employee" - | "payments,line_items,applied_credit_notes,contact,company,employee,accounting_period" - | "payments,line_items,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes,contact,company,employee,payment_term" - | "payments,line_items,applied_credit_notes,contact,company,payment_term" - | "payments,line_items,applied_credit_notes,contact,employee" - | "payments,line_items,applied_credit_notes,contact,employee,accounting_period" - | "payments,line_items,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes,contact,employee,payment_term" - | "payments,line_items,applied_credit_notes,contact,payment_term" - | "payments,line_items,applied_credit_notes,employee" - | "payments,line_items,applied_credit_notes,employee,accounting_period" - | "payments,line_items,applied_credit_notes,employee,accounting_period,payment_term" - | "payments,line_items,applied_credit_notes,employee,payment_term" - | "payments,line_items,applied_credit_notes,payment_term" - | "payments,line_items,applied_vendor_credits" - | "payments,line_items,applied_vendor_credits,accounting_period" - | "payments,line_items,applied_vendor_credits,accounting_period,payment_term" - | "payments,line_items,applied_vendor_credits,company" - | "payments,line_items,applied_vendor_credits,company,accounting_period" - | "payments,line_items,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,line_items,applied_vendor_credits,company,employee" - | "payments,line_items,applied_vendor_credits,company,employee,accounting_period" - | "payments,line_items,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,line_items,applied_vendor_credits,company,employee,payment_term" - | "payments,line_items,applied_vendor_credits,company,payment_term" - | "payments,line_items,applied_vendor_credits,contact" - | "payments,line_items,applied_vendor_credits,contact,accounting_period" - | "payments,line_items,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,line_items,applied_vendor_credits,contact,company" - | "payments,line_items,applied_vendor_credits,contact,company,accounting_period" - | "payments,line_items,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,line_items,applied_vendor_credits,contact,company,employee" - | "payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,line_items,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,line_items,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,line_items,applied_vendor_credits,contact,company,payment_term" - | "payments,line_items,applied_vendor_credits,contact,employee" - | "payments,line_items,applied_vendor_credits,contact,employee,accounting_period" - | "payments,line_items,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,line_items,applied_vendor_credits,contact,employee,payment_term" - | "payments,line_items,applied_vendor_credits,contact,payment_term" - | "payments,line_items,applied_vendor_credits,employee" - | "payments,line_items,applied_vendor_credits,employee,accounting_period" - | "payments,line_items,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,line_items,applied_vendor_credits,employee,payment_term" - | "payments,line_items,applied_vendor_credits,payment_term" - | "payments,line_items,company" - | "payments,line_items,company,accounting_period" - | "payments,line_items,company,accounting_period,payment_term" - | "payments,line_items,company,employee" - | "payments,line_items,company,employee,accounting_period" - | "payments,line_items,company,employee,accounting_period,payment_term" - | "payments,line_items,company,employee,payment_term" - | "payments,line_items,company,payment_term" - | "payments,line_items,contact" - | "payments,line_items,contact,accounting_period" - | "payments,line_items,contact,accounting_period,payment_term" - | "payments,line_items,contact,company" - | "payments,line_items,contact,company,accounting_period" - | "payments,line_items,contact,company,accounting_period,payment_term" - | "payments,line_items,contact,company,employee" - | "payments,line_items,contact,company,employee,accounting_period" - | "payments,line_items,contact,company,employee,accounting_period,payment_term" - | "payments,line_items,contact,company,employee,payment_term" - | "payments,line_items,contact,company,payment_term" - | "payments,line_items,contact,employee" - | "payments,line_items,contact,employee,accounting_period" - | "payments,line_items,contact,employee,accounting_period,payment_term" - | "payments,line_items,contact,employee,payment_term" - | "payments,line_items,contact,payment_term" - | "payments,line_items,employee" - | "payments,line_items,employee,accounting_period" - | "payments,line_items,employee,accounting_period,payment_term" - | "payments,line_items,employee,payment_term" - | "payments,line_items,payment_term" - | "payments,line_items,purchase_orders" - | "payments,line_items,purchase_orders,accounting_period" - | "payments,line_items,purchase_orders,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes" - | "payments,line_items,purchase_orders,applied_credit_notes,accounting_period" - | "payments,line_items,purchase_orders,applied_credit_notes,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,company" - | "payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period" - | "payments,line_items,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,company,employee" - | "payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period" - | "payments,line_items,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,company,employee,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,company,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,contact" - | "payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period" - | "payments,line_items,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,contact,company" - | "payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period" - | "payments,line_items,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee" - | "payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - | "payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,contact,company,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,contact,employee" - | "payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - | "payments,line_items,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,contact,employee,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,contact,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,employee" - | "payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period" - | "payments,line_items,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,employee,payment_term" - | "payments,line_items,purchase_orders,applied_credit_notes,payment_term" - | "payments,line_items,purchase_orders,applied_vendor_credits" - | "payments,line_items,purchase_orders,applied_vendor_credits,accounting_period" - | "payments,line_items,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_vendor_credits,company" - | "payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period" - | "payments,line_items,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_vendor_credits,company,employee" - | "payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - | "payments,line_items,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_vendor_credits,company,employee,payment_term" - | "payments,line_items,purchase_orders,applied_vendor_credits,company,payment_term" - | "payments,line_items,purchase_orders,applied_vendor_credits,contact" - | "payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period" - | "payments,line_items,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_vendor_credits,contact,company" - | "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - | "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee" - | "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,line_items,purchase_orders,applied_vendor_credits,contact,company,payment_term" - | "payments,line_items,purchase_orders,applied_vendor_credits,contact,employee" - | "payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - | "payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - | "payments,line_items,purchase_orders,applied_vendor_credits,contact,payment_term" - | "payments,line_items,purchase_orders,applied_vendor_credits,employee" - | "payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period" - | "payments,line_items,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,line_items,purchase_orders,applied_vendor_credits,employee,payment_term" - | "payments,line_items,purchase_orders,applied_vendor_credits,payment_term" - | "payments,line_items,purchase_orders,company" - | "payments,line_items,purchase_orders,company,accounting_period" - | "payments,line_items,purchase_orders,company,accounting_period,payment_term" - | "payments,line_items,purchase_orders,company,employee" - | "payments,line_items,purchase_orders,company,employee,accounting_period" - | "payments,line_items,purchase_orders,company,employee,accounting_period,payment_term" - | "payments,line_items,purchase_orders,company,employee,payment_term" - | "payments,line_items,purchase_orders,company,payment_term" - | "payments,line_items,purchase_orders,contact" - | "payments,line_items,purchase_orders,contact,accounting_period" - | "payments,line_items,purchase_orders,contact,accounting_period,payment_term" - | "payments,line_items,purchase_orders,contact,company" - | "payments,line_items,purchase_orders,contact,company,accounting_period" - | "payments,line_items,purchase_orders,contact,company,accounting_period,payment_term" - | "payments,line_items,purchase_orders,contact,company,employee" - | "payments,line_items,purchase_orders,contact,company,employee,accounting_period" - | "payments,line_items,purchase_orders,contact,company,employee,accounting_period,payment_term" - | "payments,line_items,purchase_orders,contact,company,employee,payment_term" - | "payments,line_items,purchase_orders,contact,company,payment_term" - | "payments,line_items,purchase_orders,contact,employee" - | "payments,line_items,purchase_orders,contact,employee,accounting_period" - | "payments,line_items,purchase_orders,contact,employee,accounting_period,payment_term" - | "payments,line_items,purchase_orders,contact,employee,payment_term" - | "payments,line_items,purchase_orders,contact,payment_term" - | "payments,line_items,purchase_orders,employee" - | "payments,line_items,purchase_orders,employee,accounting_period" - | "payments,line_items,purchase_orders,employee,accounting_period,payment_term" - | "payments,line_items,purchase_orders,employee,payment_term" - | "payments,line_items,purchase_orders,payment_term" - | "payments,line_items,tracking_categories" - | "payments,line_items,tracking_categories,accounting_period" - | "payments,line_items,tracking_categories,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes" - | "payments,line_items,tracking_categories,applied_credit_notes,accounting_period" - | "payments,line_items,tracking_categories,applied_credit_notes,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,company" - | "payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period" - | "payments,line_items,tracking_categories,applied_credit_notes,company,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,company,employee" - | "payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period" - | "payments,line_items,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,company,employee,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,company,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,contact" - | "payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period" - | "payments,line_items,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,contact,company" - | "payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period" - | "payments,line_items,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee" - | "payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period" - | "payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,contact,company,employee,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,contact,company,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,contact,employee" - | "payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period" - | "payments,line_items,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,contact,employee,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,contact,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,employee" - | "payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period" - | "payments,line_items,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,employee,payment_term" - | "payments,line_items,tracking_categories,applied_credit_notes,payment_term" - | "payments,line_items,tracking_categories,applied_vendor_credits" - | "payments,line_items,tracking_categories,applied_vendor_credits,accounting_period" - | "payments,line_items,tracking_categories,applied_vendor_credits,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_vendor_credits,company" - | "payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period" - | "payments,line_items,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_vendor_credits,company,employee" - | "payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period" - | "payments,line_items,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_vendor_credits,company,employee,payment_term" - | "payments,line_items,tracking_categories,applied_vendor_credits,company,payment_term" - | "payments,line_items,tracking_categories,applied_vendor_credits,contact" - | "payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period" - | "payments,line_items,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_vendor_credits,contact,company" - | "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period" - | "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee" - | "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,line_items,tracking_categories,applied_vendor_credits,contact,company,payment_term" - | "payments,line_items,tracking_categories,applied_vendor_credits,contact,employee" - | "payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period" - | "payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_vendor_credits,contact,employee,payment_term" - | "payments,line_items,tracking_categories,applied_vendor_credits,contact,payment_term" - | "payments,line_items,tracking_categories,applied_vendor_credits,employee" - | "payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period" - | "payments,line_items,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,applied_vendor_credits,employee,payment_term" - | "payments,line_items,tracking_categories,applied_vendor_credits,payment_term" - | "payments,line_items,tracking_categories,company" - | "payments,line_items,tracking_categories,company,accounting_period" - | "payments,line_items,tracking_categories,company,accounting_period,payment_term" - | "payments,line_items,tracking_categories,company,employee" - | "payments,line_items,tracking_categories,company,employee,accounting_period" - | "payments,line_items,tracking_categories,company,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,company,employee,payment_term" - | "payments,line_items,tracking_categories,company,payment_term" - | "payments,line_items,tracking_categories,contact" - | "payments,line_items,tracking_categories,contact,accounting_period" - | "payments,line_items,tracking_categories,contact,accounting_period,payment_term" - | "payments,line_items,tracking_categories,contact,company" - | "payments,line_items,tracking_categories,contact,company,accounting_period" - | "payments,line_items,tracking_categories,contact,company,accounting_period,payment_term" - | "payments,line_items,tracking_categories,contact,company,employee" - | "payments,line_items,tracking_categories,contact,company,employee,accounting_period" - | "payments,line_items,tracking_categories,contact,company,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,contact,company,employee,payment_term" - | "payments,line_items,tracking_categories,contact,company,payment_term" - | "payments,line_items,tracking_categories,contact,employee" - | "payments,line_items,tracking_categories,contact,employee,accounting_period" - | "payments,line_items,tracking_categories,contact,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,contact,employee,payment_term" - | "payments,line_items,tracking_categories,contact,payment_term" - | "payments,line_items,tracking_categories,employee" - | "payments,line_items,tracking_categories,employee,accounting_period" - | "payments,line_items,tracking_categories,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,employee,payment_term" - | "payments,line_items,tracking_categories,payment_term" - | "payments,line_items,tracking_categories,purchase_orders" - | "payments,line_items,tracking_categories,purchase_orders,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_credit_notes,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,applied_vendor_credits,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,company" - | "payments,line_items,tracking_categories,purchase_orders,company,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,company,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,company,employee" - | "payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,company,employee,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,company,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,contact" - | "payments,line_items,tracking_categories,purchase_orders,contact,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,contact,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,contact,company" - | "payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,contact,company,employee" - | "payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,contact,company,employee,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,contact,company,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,contact,employee" - | "payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,contact,employee,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,contact,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,employee" - | "payments,line_items,tracking_categories,purchase_orders,employee,accounting_period" - | "payments,line_items,tracking_categories,purchase_orders,employee,accounting_period,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,employee,payment_term" - | "payments,line_items,tracking_categories,purchase_orders,payment_term" - | "payments,payment_term" - | "payments,purchase_orders" - | "payments,purchase_orders,accounting_period" - | "payments,purchase_orders,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes" - | "payments,purchase_orders,applied_credit_notes,accounting_period" - | "payments,purchase_orders,applied_credit_notes,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "payments,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - | "payments,purchase_orders,applied_credit_notes,company" - | "payments,purchase_orders,applied_credit_notes,company,accounting_period" - | "payments,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes,company,employee" - | "payments,purchase_orders,applied_credit_notes,company,employee,accounting_period" - | "payments,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes,company,employee,payment_term" - | "payments,purchase_orders,applied_credit_notes,company,payment_term" - | "payments,purchase_orders,applied_credit_notes,contact" - | "payments,purchase_orders,applied_credit_notes,contact,accounting_period" - | "payments,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes,contact,company" - | "payments,purchase_orders,applied_credit_notes,contact,company,accounting_period" - | "payments,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes,contact,company,employee" - | "payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - | "payments,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - | "payments,purchase_orders,applied_credit_notes,contact,company,payment_term" - | "payments,purchase_orders,applied_credit_notes,contact,employee" - | "payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - | "payments,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes,contact,employee,payment_term" - | "payments,purchase_orders,applied_credit_notes,contact,payment_term" - | "payments,purchase_orders,applied_credit_notes,employee" - | "payments,purchase_orders,applied_credit_notes,employee,accounting_period" - | "payments,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - | "payments,purchase_orders,applied_credit_notes,employee,payment_term" - | "payments,purchase_orders,applied_credit_notes,payment_term" - | "payments,purchase_orders,applied_vendor_credits" - | "payments,purchase_orders,applied_vendor_credits,accounting_period" - | "payments,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - | "payments,purchase_orders,applied_vendor_credits,company" - | "payments,purchase_orders,applied_vendor_credits,company,accounting_period" - | "payments,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,purchase_orders,applied_vendor_credits,company,employee" - | "payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - | "payments,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,purchase_orders,applied_vendor_credits,company,employee,payment_term" - | "payments,purchase_orders,applied_vendor_credits,company,payment_term" - | "payments,purchase_orders,applied_vendor_credits,contact" - | "payments,purchase_orders,applied_vendor_credits,contact,accounting_period" - | "payments,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,purchase_orders,applied_vendor_credits,contact,company" - | "payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - | "payments,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,purchase_orders,applied_vendor_credits,contact,company,employee" - | "payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,purchase_orders,applied_vendor_credits,contact,company,payment_term" - | "payments,purchase_orders,applied_vendor_credits,contact,employee" - | "payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - | "payments,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - | "payments,purchase_orders,applied_vendor_credits,contact,payment_term" - | "payments,purchase_orders,applied_vendor_credits,employee" - | "payments,purchase_orders,applied_vendor_credits,employee,accounting_period" - | "payments,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,purchase_orders,applied_vendor_credits,employee,payment_term" - | "payments,purchase_orders,applied_vendor_credits,payment_term" - | "payments,purchase_orders,company" - | "payments,purchase_orders,company,accounting_period" - | "payments,purchase_orders,company,accounting_period,payment_term" - | "payments,purchase_orders,company,employee" - | "payments,purchase_orders,company,employee,accounting_period" - | "payments,purchase_orders,company,employee,accounting_period,payment_term" - | "payments,purchase_orders,company,employee,payment_term" - | "payments,purchase_orders,company,payment_term" - | "payments,purchase_orders,contact" - | "payments,purchase_orders,contact,accounting_period" - | "payments,purchase_orders,contact,accounting_period,payment_term" - | "payments,purchase_orders,contact,company" - | "payments,purchase_orders,contact,company,accounting_period" - | "payments,purchase_orders,contact,company,accounting_period,payment_term" - | "payments,purchase_orders,contact,company,employee" - | "payments,purchase_orders,contact,company,employee,accounting_period" - | "payments,purchase_orders,contact,company,employee,accounting_period,payment_term" - | "payments,purchase_orders,contact,company,employee,payment_term" - | "payments,purchase_orders,contact,company,payment_term" - | "payments,purchase_orders,contact,employee" - | "payments,purchase_orders,contact,employee,accounting_period" - | "payments,purchase_orders,contact,employee,accounting_period,payment_term" - | "payments,purchase_orders,contact,employee,payment_term" - | "payments,purchase_orders,contact,payment_term" - | "payments,purchase_orders,employee" - | "payments,purchase_orders,employee,accounting_period" - | "payments,purchase_orders,employee,accounting_period,payment_term" - | "payments,purchase_orders,employee,payment_term" - | "payments,purchase_orders,payment_term" - | "payments,tracking_categories" - | "payments,tracking_categories,accounting_period" - | "payments,tracking_categories,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes" - | "payments,tracking_categories,applied_credit_notes,accounting_period" - | "payments,tracking_categories,applied_credit_notes,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "payments,tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term" - | "payments,tracking_categories,applied_credit_notes,company" - | "payments,tracking_categories,applied_credit_notes,company,accounting_period" - | "payments,tracking_categories,applied_credit_notes,company,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes,company,employee" - | "payments,tracking_categories,applied_credit_notes,company,employee,accounting_period" - | "payments,tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes,company,employee,payment_term" - | "payments,tracking_categories,applied_credit_notes,company,payment_term" - | "payments,tracking_categories,applied_credit_notes,contact" - | "payments,tracking_categories,applied_credit_notes,contact,accounting_period" - | "payments,tracking_categories,applied_credit_notes,contact,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes,contact,company" - | "payments,tracking_categories,applied_credit_notes,contact,company,accounting_period" - | "payments,tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes,contact,company,employee" - | "payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period" - | "payments,tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes,contact,company,employee,payment_term" - | "payments,tracking_categories,applied_credit_notes,contact,company,payment_term" - | "payments,tracking_categories,applied_credit_notes,contact,employee" - | "payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period" - | "payments,tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes,contact,employee,payment_term" - | "payments,tracking_categories,applied_credit_notes,contact,payment_term" - | "payments,tracking_categories,applied_credit_notes,employee" - | "payments,tracking_categories,applied_credit_notes,employee,accounting_period" - | "payments,tracking_categories,applied_credit_notes,employee,accounting_period,payment_term" - | "payments,tracking_categories,applied_credit_notes,employee,payment_term" - | "payments,tracking_categories,applied_credit_notes,payment_term" - | "payments,tracking_categories,applied_vendor_credits" - | "payments,tracking_categories,applied_vendor_credits,accounting_period" - | "payments,tracking_categories,applied_vendor_credits,accounting_period,payment_term" - | "payments,tracking_categories,applied_vendor_credits,company" - | "payments,tracking_categories,applied_vendor_credits,company,accounting_period" - | "payments,tracking_categories,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,tracking_categories,applied_vendor_credits,company,employee" - | "payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period" - | "payments,tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,tracking_categories,applied_vendor_credits,company,employee,payment_term" - | "payments,tracking_categories,applied_vendor_credits,company,payment_term" - | "payments,tracking_categories,applied_vendor_credits,contact" - | "payments,tracking_categories,applied_vendor_credits,contact,accounting_period" - | "payments,tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,tracking_categories,applied_vendor_credits,contact,company" - | "payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period" - | "payments,tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,tracking_categories,applied_vendor_credits,contact,company,employee" - | "payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,tracking_categories,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,tracking_categories,applied_vendor_credits,contact,company,payment_term" - | "payments,tracking_categories,applied_vendor_credits,contact,employee" - | "payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period" - | "payments,tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,tracking_categories,applied_vendor_credits,contact,employee,payment_term" - | "payments,tracking_categories,applied_vendor_credits,contact,payment_term" - | "payments,tracking_categories,applied_vendor_credits,employee" - | "payments,tracking_categories,applied_vendor_credits,employee,accounting_period" - | "payments,tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,tracking_categories,applied_vendor_credits,employee,payment_term" - | "payments,tracking_categories,applied_vendor_credits,payment_term" - | "payments,tracking_categories,company" - | "payments,tracking_categories,company,accounting_period" - | "payments,tracking_categories,company,accounting_period,payment_term" - | "payments,tracking_categories,company,employee" - | "payments,tracking_categories,company,employee,accounting_period" - | "payments,tracking_categories,company,employee,accounting_period,payment_term" - | "payments,tracking_categories,company,employee,payment_term" - | "payments,tracking_categories,company,payment_term" - | "payments,tracking_categories,contact" - | "payments,tracking_categories,contact,accounting_period" - | "payments,tracking_categories,contact,accounting_period,payment_term" - | "payments,tracking_categories,contact,company" - | "payments,tracking_categories,contact,company,accounting_period" - | "payments,tracking_categories,contact,company,accounting_period,payment_term" - | "payments,tracking_categories,contact,company,employee" - | "payments,tracking_categories,contact,company,employee,accounting_period" - | "payments,tracking_categories,contact,company,employee,accounting_period,payment_term" - | "payments,tracking_categories,contact,company,employee,payment_term" - | "payments,tracking_categories,contact,company,payment_term" - | "payments,tracking_categories,contact,employee" - | "payments,tracking_categories,contact,employee,accounting_period" - | "payments,tracking_categories,contact,employee,accounting_period,payment_term" - | "payments,tracking_categories,contact,employee,payment_term" - | "payments,tracking_categories,contact,payment_term" - | "payments,tracking_categories,employee" - | "payments,tracking_categories,employee,accounting_period" - | "payments,tracking_categories,employee,accounting_period,payment_term" - | "payments,tracking_categories,employee,payment_term" - | "payments,tracking_categories,payment_term" - | "payments,tracking_categories,purchase_orders" - | "payments,tracking_categories,purchase_orders,accounting_period" - | "payments,tracking_categories,purchase_orders,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,company" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,company,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,contact" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,employee" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term" - | "payments,tracking_categories,purchase_orders,applied_credit_notes,payment_term" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,company" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,employee" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term" - | "payments,tracking_categories,purchase_orders,applied_vendor_credits,payment_term" - | "payments,tracking_categories,purchase_orders,company" - | "payments,tracking_categories,purchase_orders,company,accounting_period" - | "payments,tracking_categories,purchase_orders,company,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,company,employee" - | "payments,tracking_categories,purchase_orders,company,employee,accounting_period" - | "payments,tracking_categories,purchase_orders,company,employee,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,company,employee,payment_term" - | "payments,tracking_categories,purchase_orders,company,payment_term" - | "payments,tracking_categories,purchase_orders,contact" - | "payments,tracking_categories,purchase_orders,contact,accounting_period" - | "payments,tracking_categories,purchase_orders,contact,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,contact,company" - | "payments,tracking_categories,purchase_orders,contact,company,accounting_period" - | "payments,tracking_categories,purchase_orders,contact,company,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,contact,company,employee" - | "payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period" - | "payments,tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,contact,company,employee,payment_term" - | "payments,tracking_categories,purchase_orders,contact,company,payment_term" - | "payments,tracking_categories,purchase_orders,contact,employee" - | "payments,tracking_categories,purchase_orders,contact,employee,accounting_period" - | "payments,tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,contact,employee,payment_term" - | "payments,tracking_categories,purchase_orders,contact,payment_term" - | "payments,tracking_categories,purchase_orders,employee" - | "payments,tracking_categories,purchase_orders,employee,accounting_period" - | "payments,tracking_categories,purchase_orders,employee,accounting_period,payment_term" - | "payments,tracking_categories,purchase_orders,employee,payment_term" - | "payments,tracking_categories,purchase_orders,payment_term" - | "purchase_orders" - | "purchase_orders,accounting_period" - | "purchase_orders,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes" - | "purchase_orders,applied_credit_notes,accounting_period" - | "purchase_orders,applied_credit_notes,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes,applied_vendor_credits" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,company" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - | "purchase_orders,applied_credit_notes,company" - | "purchase_orders,applied_credit_notes,company,accounting_period" - | "purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes,company,employee" - | "purchase_orders,applied_credit_notes,company,employee,accounting_period" - | "purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes,company,employee,payment_term" - | "purchase_orders,applied_credit_notes,company,payment_term" - | "purchase_orders,applied_credit_notes,contact" - | "purchase_orders,applied_credit_notes,contact,accounting_period" - | "purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes,contact,company" - | "purchase_orders,applied_credit_notes,contact,company,accounting_period" - | "purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes,contact,company,employee" - | "purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - | "purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - | "purchase_orders,applied_credit_notes,contact,company,payment_term" - | "purchase_orders,applied_credit_notes,contact,employee" - | "purchase_orders,applied_credit_notes,contact,employee,accounting_period" - | "purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes,contact,employee,payment_term" - | "purchase_orders,applied_credit_notes,contact,payment_term" - | "purchase_orders,applied_credit_notes,employee" - | "purchase_orders,applied_credit_notes,employee,accounting_period" - | "purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - | "purchase_orders,applied_credit_notes,employee,payment_term" - | "purchase_orders,applied_credit_notes,payment_term" - | "purchase_orders,applied_vendor_credits" - | "purchase_orders,applied_vendor_credits,accounting_period" - | "purchase_orders,applied_vendor_credits,accounting_period,payment_term" - | "purchase_orders,applied_vendor_credits,company" - | "purchase_orders,applied_vendor_credits,company,accounting_period" - | "purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - | "purchase_orders,applied_vendor_credits,company,employee" - | "purchase_orders,applied_vendor_credits,company,employee,accounting_period" - | "purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "purchase_orders,applied_vendor_credits,company,employee,payment_term" - | "purchase_orders,applied_vendor_credits,company,payment_term" - | "purchase_orders,applied_vendor_credits,contact" - | "purchase_orders,applied_vendor_credits,contact,accounting_period" - | "purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - | "purchase_orders,applied_vendor_credits,contact,company" - | "purchase_orders,applied_vendor_credits,contact,company,accounting_period" - | "purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "purchase_orders,applied_vendor_credits,contact,company,employee" - | "purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - | "purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - | "purchase_orders,applied_vendor_credits,contact,company,payment_term" - | "purchase_orders,applied_vendor_credits,contact,employee" - | "purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - | "purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "purchase_orders,applied_vendor_credits,contact,employee,payment_term" - | "purchase_orders,applied_vendor_credits,contact,payment_term" - | "purchase_orders,applied_vendor_credits,employee" - | "purchase_orders,applied_vendor_credits,employee,accounting_period" - | "purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - | "purchase_orders,applied_vendor_credits,employee,payment_term" - | "purchase_orders,applied_vendor_credits,payment_term" - | "purchase_orders,company" - | "purchase_orders,company,accounting_period" - | "purchase_orders,company,accounting_period,payment_term" - | "purchase_orders,company,employee" - | "purchase_orders,company,employee,accounting_period" - | "purchase_orders,company,employee,accounting_period,payment_term" - | "purchase_orders,company,employee,payment_term" - | "purchase_orders,company,payment_term" - | "purchase_orders,contact" - | "purchase_orders,contact,accounting_period" - | "purchase_orders,contact,accounting_period,payment_term" - | "purchase_orders,contact,company" - | "purchase_orders,contact,company,accounting_period" - | "purchase_orders,contact,company,accounting_period,payment_term" - | "purchase_orders,contact,company,employee" - | "purchase_orders,contact,company,employee,accounting_period" - | "purchase_orders,contact,company,employee,accounting_period,payment_term" - | "purchase_orders,contact,company,employee,payment_term" - | "purchase_orders,contact,company,payment_term" - | "purchase_orders,contact,employee" - | "purchase_orders,contact,employee,accounting_period" - | "purchase_orders,contact,employee,accounting_period,payment_term" - | "purchase_orders,contact,employee,payment_term" - | "purchase_orders,contact,payment_term" - | "purchase_orders,employee" - | "purchase_orders,employee,accounting_period" - | "purchase_orders,employee,accounting_period,payment_term" - | "purchase_orders,employee,payment_term" - | "purchase_orders,payment_term" - | "tracking_categories" - | "tracking_categories,accounting_period" - | "tracking_categories,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes" - | "tracking_categories,applied_credit_notes,accounting_period" - | "tracking_categories,applied_credit_notes,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes,applied_vendor_credits" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,company" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,contact" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,employee" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "tracking_categories,applied_credit_notes,applied_vendor_credits,payment_term" - | "tracking_categories,applied_credit_notes,company" - | "tracking_categories,applied_credit_notes,company,accounting_period" - | "tracking_categories,applied_credit_notes,company,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes,company,employee" - | "tracking_categories,applied_credit_notes,company,employee,accounting_period" - | "tracking_categories,applied_credit_notes,company,employee,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes,company,employee,payment_term" - | "tracking_categories,applied_credit_notes,company,payment_term" - | "tracking_categories,applied_credit_notes,contact" - | "tracking_categories,applied_credit_notes,contact,accounting_period" - | "tracking_categories,applied_credit_notes,contact,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes,contact,company" - | "tracking_categories,applied_credit_notes,contact,company,accounting_period" - | "tracking_categories,applied_credit_notes,contact,company,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes,contact,company,employee" - | "tracking_categories,applied_credit_notes,contact,company,employee,accounting_period" - | "tracking_categories,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes,contact,company,employee,payment_term" - | "tracking_categories,applied_credit_notes,contact,company,payment_term" - | "tracking_categories,applied_credit_notes,contact,employee" - | "tracking_categories,applied_credit_notes,contact,employee,accounting_period" - | "tracking_categories,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes,contact,employee,payment_term" - | "tracking_categories,applied_credit_notes,contact,payment_term" - | "tracking_categories,applied_credit_notes,employee" - | "tracking_categories,applied_credit_notes,employee,accounting_period" - | "tracking_categories,applied_credit_notes,employee,accounting_period,payment_term" - | "tracking_categories,applied_credit_notes,employee,payment_term" - | "tracking_categories,applied_credit_notes,payment_term" - | "tracking_categories,applied_vendor_credits" - | "tracking_categories,applied_vendor_credits,accounting_period" - | "tracking_categories,applied_vendor_credits,accounting_period,payment_term" - | "tracking_categories,applied_vendor_credits,company" - | "tracking_categories,applied_vendor_credits,company,accounting_period" - | "tracking_categories,applied_vendor_credits,company,accounting_period,payment_term" - | "tracking_categories,applied_vendor_credits,company,employee" - | "tracking_categories,applied_vendor_credits,company,employee,accounting_period" - | "tracking_categories,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "tracking_categories,applied_vendor_credits,company,employee,payment_term" - | "tracking_categories,applied_vendor_credits,company,payment_term" - | "tracking_categories,applied_vendor_credits,contact" - | "tracking_categories,applied_vendor_credits,contact,accounting_period" - | "tracking_categories,applied_vendor_credits,contact,accounting_period,payment_term" - | "tracking_categories,applied_vendor_credits,contact,company" - | "tracking_categories,applied_vendor_credits,contact,company,accounting_period" - | "tracking_categories,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "tracking_categories,applied_vendor_credits,contact,company,employee" - | "tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period" - | "tracking_categories,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "tracking_categories,applied_vendor_credits,contact,company,employee,payment_term" - | "tracking_categories,applied_vendor_credits,contact,company,payment_term" - | "tracking_categories,applied_vendor_credits,contact,employee" - | "tracking_categories,applied_vendor_credits,contact,employee,accounting_period" - | "tracking_categories,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "tracking_categories,applied_vendor_credits,contact,employee,payment_term" - | "tracking_categories,applied_vendor_credits,contact,payment_term" - | "tracking_categories,applied_vendor_credits,employee" - | "tracking_categories,applied_vendor_credits,employee,accounting_period" - | "tracking_categories,applied_vendor_credits,employee,accounting_period,payment_term" - | "tracking_categories,applied_vendor_credits,employee,payment_term" - | "tracking_categories,applied_vendor_credits,payment_term" - | "tracking_categories,company" - | "tracking_categories,company,accounting_period" - | "tracking_categories,company,accounting_period,payment_term" - | "tracking_categories,company,employee" - | "tracking_categories,company,employee,accounting_period" - | "tracking_categories,company,employee,accounting_period,payment_term" - | "tracking_categories,company,employee,payment_term" - | "tracking_categories,company,payment_term" - | "tracking_categories,contact" - | "tracking_categories,contact,accounting_period" - | "tracking_categories,contact,accounting_period,payment_term" - | "tracking_categories,contact,company" - | "tracking_categories,contact,company,accounting_period" - | "tracking_categories,contact,company,accounting_period,payment_term" - | "tracking_categories,contact,company,employee" - | "tracking_categories,contact,company,employee,accounting_period" - | "tracking_categories,contact,company,employee,accounting_period,payment_term" - | "tracking_categories,contact,company,employee,payment_term" - | "tracking_categories,contact,company,payment_term" - | "tracking_categories,contact,employee" - | "tracking_categories,contact,employee,accounting_period" - | "tracking_categories,contact,employee,accounting_period,payment_term" - | "tracking_categories,contact,employee,payment_term" - | "tracking_categories,contact,payment_term" - | "tracking_categories,employee" - | "tracking_categories,employee,accounting_period" - | "tracking_categories,employee,accounting_period,payment_term" - | "tracking_categories,employee,payment_term" - | "tracking_categories,payment_term" - | "tracking_categories,purchase_orders" - | "tracking_categories,purchase_orders,accounting_period" - | "tracking_categories,purchase_orders,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes" - | "tracking_categories,purchase_orders,applied_credit_notes,accounting_period" - | "tracking_categories,purchase_orders,applied_credit_notes,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,employee,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,company,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,employee,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,company,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,employee,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,contact,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,employee,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,applied_vendor_credits,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,company" - | "tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period" - | "tracking_categories,purchase_orders,applied_credit_notes,company,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,company,employee" - | "tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period" - | "tracking_categories,purchase_orders,applied_credit_notes,company,employee,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,company,employee,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,company,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,contact" - | "tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period" - | "tracking_categories,purchase_orders,applied_credit_notes,contact,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,contact,company" - | "tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period" - | "tracking_categories,purchase_orders,applied_credit_notes,contact,company,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee" - | "tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period" - | "tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,contact,company,employee,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,contact,company,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,contact,employee" - | "tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period" - | "tracking_categories,purchase_orders,applied_credit_notes,contact,employee,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,contact,employee,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,contact,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,employee" - | "tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period" - | "tracking_categories,purchase_orders,applied_credit_notes,employee,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,employee,payment_term" - | "tracking_categories,purchase_orders,applied_credit_notes,payment_term" - | "tracking_categories,purchase_orders,applied_vendor_credits" - | "tracking_categories,purchase_orders,applied_vendor_credits,accounting_period" - | "tracking_categories,purchase_orders,applied_vendor_credits,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_vendor_credits,company" - | "tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period" - | "tracking_categories,purchase_orders,applied_vendor_credits,company,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_vendor_credits,company,employee" - | "tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period" - | "tracking_categories,purchase_orders,applied_vendor_credits,company,employee,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_vendor_credits,company,employee,payment_term" - | "tracking_categories,purchase_orders,applied_vendor_credits,company,payment_term" - | "tracking_categories,purchase_orders,applied_vendor_credits,contact" - | "tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period" - | "tracking_categories,purchase_orders,applied_vendor_credits,contact,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_vendor_credits,contact,company" - | "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period" - | "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee" - | "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period" - | "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,employee,payment_term" - | "tracking_categories,purchase_orders,applied_vendor_credits,contact,company,payment_term" - | "tracking_categories,purchase_orders,applied_vendor_credits,contact,employee" - | "tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period" - | "tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_vendor_credits,contact,employee,payment_term" - | "tracking_categories,purchase_orders,applied_vendor_credits,contact,payment_term" - | "tracking_categories,purchase_orders,applied_vendor_credits,employee" - | "tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period" - | "tracking_categories,purchase_orders,applied_vendor_credits,employee,accounting_period,payment_term" - | "tracking_categories,purchase_orders,applied_vendor_credits,employee,payment_term" - | "tracking_categories,purchase_orders,applied_vendor_credits,payment_term" - | "tracking_categories,purchase_orders,company" - | "tracking_categories,purchase_orders,company,accounting_period" - | "tracking_categories,purchase_orders,company,accounting_period,payment_term" - | "tracking_categories,purchase_orders,company,employee" - | "tracking_categories,purchase_orders,company,employee,accounting_period" - | "tracking_categories,purchase_orders,company,employee,accounting_period,payment_term" - | "tracking_categories,purchase_orders,company,employee,payment_term" - | "tracking_categories,purchase_orders,company,payment_term" - | "tracking_categories,purchase_orders,contact" - | "tracking_categories,purchase_orders,contact,accounting_period" - | "tracking_categories,purchase_orders,contact,accounting_period,payment_term" - | "tracking_categories,purchase_orders,contact,company" - | "tracking_categories,purchase_orders,contact,company,accounting_period" - | "tracking_categories,purchase_orders,contact,company,accounting_period,payment_term" - | "tracking_categories,purchase_orders,contact,company,employee" - | "tracking_categories,purchase_orders,contact,company,employee,accounting_period" - | "tracking_categories,purchase_orders,contact,company,employee,accounting_period,payment_term" - | "tracking_categories,purchase_orders,contact,company,employee,payment_term" - | "tracking_categories,purchase_orders,contact,company,payment_term" - | "tracking_categories,purchase_orders,contact,employee" - | "tracking_categories,purchase_orders,contact,employee,accounting_period" - | "tracking_categories,purchase_orders,contact,employee,accounting_period,payment_term" - | "tracking_categories,purchase_orders,contact,employee,payment_term" - | "tracking_categories,purchase_orders,contact,payment_term" - | "tracking_categories,purchase_orders,employee" - | "tracking_categories,purchase_orders,employee,accounting_period" - | "tracking_categories,purchase_orders,employee,accounting_period,payment_term" - | "tracking_categories,purchase_orders,employee,payment_term" - | "tracking_categories,purchase_orders,payment_term"; -} diff --git a/src/serialization/resources/accounting/resources/invoices/types/InvoicesRetrieveRequestExpandItem.ts b/src/serialization/resources/accounting/resources/invoices/types/InvoicesRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..5b4a09329 --- /dev/null +++ b/src/serialization/resources/accounting/resources/invoices/types/InvoicesRetrieveRequestExpandItem.ts @@ -0,0 +1,41 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const InvoicesRetrieveRequestExpandItem: core.serialization.Schema< + serializers.accounting.InvoicesRetrieveRequestExpandItem.Raw, + Merge.accounting.InvoicesRetrieveRequestExpandItem +> = core.serialization.enum_([ + "accounting_period", + "applied_credit_notes", + "applied_payments", + "applied_vendor_credits", + "company", + "contact", + "employee", + "line_items", + "payment_term", + "payments", + "purchase_orders", + "sales_orders", + "tracking_categories", +]); + +export declare namespace InvoicesRetrieveRequestExpandItem { + export type Raw = + | "accounting_period" + | "applied_credit_notes" + | "applied_payments" + | "applied_vendor_credits" + | "company" + | "contact" + | "employee" + | "line_items" + | "payment_term" + | "payments" + | "purchase_orders" + | "sales_orders" + | "tracking_categories"; +} diff --git a/src/serialization/resources/accounting/resources/invoices/types/index.ts b/src/serialization/resources/accounting/resources/invoices/types/index.ts index 6066a0bb6..d690b827a 100644 --- a/src/serialization/resources/accounting/resources/invoices/types/index.ts +++ b/src/serialization/resources/accounting/resources/invoices/types/index.ts @@ -1,4 +1,7 @@ -export * from "./InvoicesListRequestExpand"; +export * from "./InvoicesBatchObjectsListRequestExpandItem"; +export * from "./InvoicesBatchObjectsListRequestStatus"; +export * from "./InvoicesBatchObjectsListRequestType"; +export * from "./InvoicesListRequestExpandItem"; export * from "./InvoicesListRequestStatus"; export * from "./InvoicesListRequestType"; -export * from "./InvoicesRetrieveRequestExpand"; +export * from "./InvoicesRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/accounting/resources/itemFulfillments/client/index.ts b/src/serialization/resources/accounting/resources/itemFulfillments/client/index.ts new file mode 100644 index 000000000..415726b7f --- /dev/null +++ b/src/serialization/resources/accounting/resources/itemFulfillments/client/index.ts @@ -0,0 +1 @@ +export * from "./requests"; diff --git a/src/serialization/resources/accounting/resources/itemFulfillments/client/requests/ItemFulfillmentBulkRequest.ts b/src/serialization/resources/accounting/resources/itemFulfillments/client/requests/ItemFulfillmentBulkRequest.ts new file mode 100644 index 000000000..3f831bd98 --- /dev/null +++ b/src/serialization/resources/accounting/resources/itemFulfillments/client/requests/ItemFulfillmentBulkRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../../api/index"; +import * as core from "../../../../../../../core"; +import type * as serializers from "../../../../../../index"; +import { ItemFulfillmentBatchItemRequest } from "../../../../types/ItemFulfillmentBatchItemRequest"; + +export const ItemFulfillmentBulkRequest: core.serialization.Schema< + serializers.accounting.ItemFulfillmentBulkRequest.Raw, + Omit +> = core.serialization.object({ + batchItems: core.serialization.property("batch_items", core.serialization.list(ItemFulfillmentBatchItemRequest)), +}); + +export declare namespace ItemFulfillmentBulkRequest { + export interface Raw { + batch_items: ItemFulfillmentBatchItemRequest.Raw[]; + } +} diff --git a/src/serialization/resources/accounting/resources/itemFulfillments/client/requests/index.ts b/src/serialization/resources/accounting/resources/itemFulfillments/client/requests/index.ts new file mode 100644 index 000000000..e695e9064 --- /dev/null +++ b/src/serialization/resources/accounting/resources/itemFulfillments/client/requests/index.ts @@ -0,0 +1 @@ +export { ItemFulfillmentBulkRequest } from "./ItemFulfillmentBulkRequest"; diff --git a/src/serialization/resources/accounting/resources/itemFulfillments/index.ts b/src/serialization/resources/accounting/resources/itemFulfillments/index.ts new file mode 100644 index 000000000..d2ec2302c --- /dev/null +++ b/src/serialization/resources/accounting/resources/itemFulfillments/index.ts @@ -0,0 +1,2 @@ +export * from "./client"; +export * from "./types"; diff --git a/src/serialization/resources/accounting/resources/itemFulfillments/types/ItemFulfillmentsBatchObjectsListRequestExpandItem.ts b/src/serialization/resources/accounting/resources/itemFulfillments/types/ItemFulfillmentsBatchObjectsListRequestExpandItem.ts new file mode 100644 index 000000000..f81737e39 --- /dev/null +++ b/src/serialization/resources/accounting/resources/itemFulfillments/types/ItemFulfillmentsBatchObjectsListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const ItemFulfillmentsBatchObjectsListRequestExpandItem: core.serialization.Schema< + serializers.accounting.ItemFulfillmentsBatchObjectsListRequestExpandItem.Raw, + Merge.accounting.ItemFulfillmentsBatchObjectsListRequestExpandItem +> = core.serialization.enum_(["company", "customer", "lines", "sales_order"]); + +export declare namespace ItemFulfillmentsBatchObjectsListRequestExpandItem { + export type Raw = "company" | "customer" | "lines" | "sales_order"; +} diff --git a/src/serialization/resources/accounting/resources/itemFulfillments/types/ItemFulfillmentsListRequestExpandItem.ts b/src/serialization/resources/accounting/resources/itemFulfillments/types/ItemFulfillmentsListRequestExpandItem.ts new file mode 100644 index 000000000..a47d4f8a9 --- /dev/null +++ b/src/serialization/resources/accounting/resources/itemFulfillments/types/ItemFulfillmentsListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const ItemFulfillmentsListRequestExpandItem: core.serialization.Schema< + serializers.accounting.ItemFulfillmentsListRequestExpandItem.Raw, + Merge.accounting.ItemFulfillmentsListRequestExpandItem +> = core.serialization.enum_(["company", "customer", "lines", "sales_order"]); + +export declare namespace ItemFulfillmentsListRequestExpandItem { + export type Raw = "company" | "customer" | "lines" | "sales_order"; +} diff --git a/src/serialization/resources/accounting/resources/itemFulfillments/types/ItemFulfillmentsRetrieveRequestExpandItem.ts b/src/serialization/resources/accounting/resources/itemFulfillments/types/ItemFulfillmentsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..91b67cb57 --- /dev/null +++ b/src/serialization/resources/accounting/resources/itemFulfillments/types/ItemFulfillmentsRetrieveRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const ItemFulfillmentsRetrieveRequestExpandItem: core.serialization.Schema< + serializers.accounting.ItemFulfillmentsRetrieveRequestExpandItem.Raw, + Merge.accounting.ItemFulfillmentsRetrieveRequestExpandItem +> = core.serialization.enum_(["company", "customer", "lines", "sales_order"]); + +export declare namespace ItemFulfillmentsRetrieveRequestExpandItem { + export type Raw = "company" | "customer" | "lines" | "sales_order"; +} diff --git a/src/serialization/resources/accounting/resources/itemFulfillments/types/index.ts b/src/serialization/resources/accounting/resources/itemFulfillments/types/index.ts new file mode 100644 index 000000000..64e091163 --- /dev/null +++ b/src/serialization/resources/accounting/resources/itemFulfillments/types/index.ts @@ -0,0 +1,3 @@ +export * from "./ItemFulfillmentsBatchObjectsListRequestExpandItem"; +export * from "./ItemFulfillmentsListRequestExpandItem"; +export * from "./ItemFulfillmentsRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/accounting/resources/items/client/requests/ItemBulkRequest.ts b/src/serialization/resources/accounting/resources/items/client/requests/ItemBulkRequest.ts new file mode 100644 index 000000000..4b89f9719 --- /dev/null +++ b/src/serialization/resources/accounting/resources/items/client/requests/ItemBulkRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../../api/index"; +import * as core from "../../../../../../../core"; +import type * as serializers from "../../../../../../index"; +import { ItemBatchItemRequest } from "../../../../types/ItemBatchItemRequest"; + +export const ItemBulkRequest: core.serialization.Schema< + serializers.accounting.ItemBulkRequest.Raw, + Omit +> = core.serialization.object({ + batchItems: core.serialization.property("batch_items", core.serialization.list(ItemBatchItemRequest)), +}); + +export declare namespace ItemBulkRequest { + export interface Raw { + batch_items: ItemBatchItemRequest.Raw[]; + } +} diff --git a/src/serialization/resources/accounting/resources/items/client/requests/ItemEndpointRequest.ts b/src/serialization/resources/accounting/resources/items/client/requests/ItemEndpointRequest.ts deleted file mode 100644 index 29dac0adf..000000000 --- a/src/serialization/resources/accounting/resources/items/client/requests/ItemEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { ItemRequestRequest } from "../../../../types/ItemRequestRequest"; - -export const ItemEndpointRequest: core.serialization.Schema< - serializers.accounting.ItemEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: ItemRequestRequest, -}); - -export declare namespace ItemEndpointRequest { - export interface Raw { - model: ItemRequestRequest.Raw; - } -} diff --git a/src/serialization/resources/accounting/resources/items/client/requests/index.ts b/src/serialization/resources/accounting/resources/items/client/requests/index.ts index f19cc85ed..d2664b38e 100644 --- a/src/serialization/resources/accounting/resources/items/client/requests/index.ts +++ b/src/serialization/resources/accounting/resources/items/client/requests/index.ts @@ -1,2 +1,2 @@ -export { ItemEndpointRequest } from "./ItemEndpointRequest"; +export { ItemBulkRequest } from "./ItemBulkRequest"; export { PatchedItemEndpointRequest } from "./PatchedItemEndpointRequest"; diff --git a/src/serialization/resources/accounting/resources/items/types/ItemsBatchObjectsListRequestExpandItem.ts b/src/serialization/resources/accounting/resources/items/types/ItemsBatchObjectsListRequestExpandItem.ts new file mode 100644 index 000000000..cb9353711 --- /dev/null +++ b/src/serialization/resources/accounting/resources/items/types/ItemsBatchObjectsListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const ItemsBatchObjectsListRequestExpandItem: core.serialization.Schema< + serializers.accounting.ItemsBatchObjectsListRequestExpandItem.Raw, + Merge.accounting.ItemsBatchObjectsListRequestExpandItem +> = core.serialization.enum_(["company", "purchase_account", "purchase_tax_rate", "sales_account", "sales_tax_rate"]); + +export declare namespace ItemsBatchObjectsListRequestExpandItem { + export type Raw = "company" | "purchase_account" | "purchase_tax_rate" | "sales_account" | "sales_tax_rate"; +} diff --git a/src/serialization/resources/accounting/resources/items/types/ItemsListRequestExpand.ts b/src/serialization/resources/accounting/resources/items/types/ItemsListRequestExpand.ts deleted file mode 100644 index c108408b5..000000000 --- a/src/serialization/resources/accounting/resources/items/types/ItemsListRequestExpand.ts +++ /dev/null @@ -1,77 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const ItemsListRequestExpand: core.serialization.Schema< - serializers.accounting.ItemsListRequestExpand.Raw, - Merge.accounting.ItemsListRequestExpand -> = core.serialization.enum_([ - "company", - "company,purchase_tax_rate", - "company,sales_tax_rate", - "company,sales_tax_rate,purchase_tax_rate", - "purchase_account", - "purchase_account,company", - "purchase_account,company,purchase_tax_rate", - "purchase_account,company,sales_tax_rate", - "purchase_account,company,sales_tax_rate,purchase_tax_rate", - "purchase_account,purchase_tax_rate", - "purchase_account,sales_account", - "purchase_account,sales_account,company", - "purchase_account,sales_account,company,purchase_tax_rate", - "purchase_account,sales_account,company,sales_tax_rate", - "purchase_account,sales_account,company,sales_tax_rate,purchase_tax_rate", - "purchase_account,sales_account,purchase_tax_rate", - "purchase_account,sales_account,sales_tax_rate", - "purchase_account,sales_account,sales_tax_rate,purchase_tax_rate", - "purchase_account,sales_tax_rate", - "purchase_account,sales_tax_rate,purchase_tax_rate", - "purchase_tax_rate", - "sales_account", - "sales_account,company", - "sales_account,company,purchase_tax_rate", - "sales_account,company,sales_tax_rate", - "sales_account,company,sales_tax_rate,purchase_tax_rate", - "sales_account,purchase_tax_rate", - "sales_account,sales_tax_rate", - "sales_account,sales_tax_rate,purchase_tax_rate", - "sales_tax_rate", - "sales_tax_rate,purchase_tax_rate", -]); - -export declare namespace ItemsListRequestExpand { - export type Raw = - | "company" - | "company,purchase_tax_rate" - | "company,sales_tax_rate" - | "company,sales_tax_rate,purchase_tax_rate" - | "purchase_account" - | "purchase_account,company" - | "purchase_account,company,purchase_tax_rate" - | "purchase_account,company,sales_tax_rate" - | "purchase_account,company,sales_tax_rate,purchase_tax_rate" - | "purchase_account,purchase_tax_rate" - | "purchase_account,sales_account" - | "purchase_account,sales_account,company" - | "purchase_account,sales_account,company,purchase_tax_rate" - | "purchase_account,sales_account,company,sales_tax_rate" - | "purchase_account,sales_account,company,sales_tax_rate,purchase_tax_rate" - | "purchase_account,sales_account,purchase_tax_rate" - | "purchase_account,sales_account,sales_tax_rate" - | "purchase_account,sales_account,sales_tax_rate,purchase_tax_rate" - | "purchase_account,sales_tax_rate" - | "purchase_account,sales_tax_rate,purchase_tax_rate" - | "purchase_tax_rate" - | "sales_account" - | "sales_account,company" - | "sales_account,company,purchase_tax_rate" - | "sales_account,company,sales_tax_rate" - | "sales_account,company,sales_tax_rate,purchase_tax_rate" - | "sales_account,purchase_tax_rate" - | "sales_account,sales_tax_rate" - | "sales_account,sales_tax_rate,purchase_tax_rate" - | "sales_tax_rate" - | "sales_tax_rate,purchase_tax_rate"; -} diff --git a/src/serialization/resources/accounting/resources/items/types/ItemsListRequestExpandItem.ts b/src/serialization/resources/accounting/resources/items/types/ItemsListRequestExpandItem.ts new file mode 100644 index 000000000..fe89c6e81 --- /dev/null +++ b/src/serialization/resources/accounting/resources/items/types/ItemsListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const ItemsListRequestExpandItem: core.serialization.Schema< + serializers.accounting.ItemsListRequestExpandItem.Raw, + Merge.accounting.ItemsListRequestExpandItem +> = core.serialization.enum_(["company", "purchase_account", "purchase_tax_rate", "sales_account", "sales_tax_rate"]); + +export declare namespace ItemsListRequestExpandItem { + export type Raw = "company" | "purchase_account" | "purchase_tax_rate" | "sales_account" | "sales_tax_rate"; +} diff --git a/src/serialization/resources/accounting/resources/items/types/ItemsRetrieveRequestExpand.ts b/src/serialization/resources/accounting/resources/items/types/ItemsRetrieveRequestExpand.ts deleted file mode 100644 index 101698456..000000000 --- a/src/serialization/resources/accounting/resources/items/types/ItemsRetrieveRequestExpand.ts +++ /dev/null @@ -1,77 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const ItemsRetrieveRequestExpand: core.serialization.Schema< - serializers.accounting.ItemsRetrieveRequestExpand.Raw, - Merge.accounting.ItemsRetrieveRequestExpand -> = core.serialization.enum_([ - "company", - "company,purchase_tax_rate", - "company,sales_tax_rate", - "company,sales_tax_rate,purchase_tax_rate", - "purchase_account", - "purchase_account,company", - "purchase_account,company,purchase_tax_rate", - "purchase_account,company,sales_tax_rate", - "purchase_account,company,sales_tax_rate,purchase_tax_rate", - "purchase_account,purchase_tax_rate", - "purchase_account,sales_account", - "purchase_account,sales_account,company", - "purchase_account,sales_account,company,purchase_tax_rate", - "purchase_account,sales_account,company,sales_tax_rate", - "purchase_account,sales_account,company,sales_tax_rate,purchase_tax_rate", - "purchase_account,sales_account,purchase_tax_rate", - "purchase_account,sales_account,sales_tax_rate", - "purchase_account,sales_account,sales_tax_rate,purchase_tax_rate", - "purchase_account,sales_tax_rate", - "purchase_account,sales_tax_rate,purchase_tax_rate", - "purchase_tax_rate", - "sales_account", - "sales_account,company", - "sales_account,company,purchase_tax_rate", - "sales_account,company,sales_tax_rate", - "sales_account,company,sales_tax_rate,purchase_tax_rate", - "sales_account,purchase_tax_rate", - "sales_account,sales_tax_rate", - "sales_account,sales_tax_rate,purchase_tax_rate", - "sales_tax_rate", - "sales_tax_rate,purchase_tax_rate", -]); - -export declare namespace ItemsRetrieveRequestExpand { - export type Raw = - | "company" - | "company,purchase_tax_rate" - | "company,sales_tax_rate" - | "company,sales_tax_rate,purchase_tax_rate" - | "purchase_account" - | "purchase_account,company" - | "purchase_account,company,purchase_tax_rate" - | "purchase_account,company,sales_tax_rate" - | "purchase_account,company,sales_tax_rate,purchase_tax_rate" - | "purchase_account,purchase_tax_rate" - | "purchase_account,sales_account" - | "purchase_account,sales_account,company" - | "purchase_account,sales_account,company,purchase_tax_rate" - | "purchase_account,sales_account,company,sales_tax_rate" - | "purchase_account,sales_account,company,sales_tax_rate,purchase_tax_rate" - | "purchase_account,sales_account,purchase_tax_rate" - | "purchase_account,sales_account,sales_tax_rate" - | "purchase_account,sales_account,sales_tax_rate,purchase_tax_rate" - | "purchase_account,sales_tax_rate" - | "purchase_account,sales_tax_rate,purchase_tax_rate" - | "purchase_tax_rate" - | "sales_account" - | "sales_account,company" - | "sales_account,company,purchase_tax_rate" - | "sales_account,company,sales_tax_rate" - | "sales_account,company,sales_tax_rate,purchase_tax_rate" - | "sales_account,purchase_tax_rate" - | "sales_account,sales_tax_rate" - | "sales_account,sales_tax_rate,purchase_tax_rate" - | "sales_tax_rate" - | "sales_tax_rate,purchase_tax_rate"; -} diff --git a/src/serialization/resources/accounting/resources/items/types/ItemsRetrieveRequestExpandItem.ts b/src/serialization/resources/accounting/resources/items/types/ItemsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..03a242a91 --- /dev/null +++ b/src/serialization/resources/accounting/resources/items/types/ItemsRetrieveRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const ItemsRetrieveRequestExpandItem: core.serialization.Schema< + serializers.accounting.ItemsRetrieveRequestExpandItem.Raw, + Merge.accounting.ItemsRetrieveRequestExpandItem +> = core.serialization.enum_(["company", "purchase_account", "purchase_tax_rate", "sales_account", "sales_tax_rate"]); + +export declare namespace ItemsRetrieveRequestExpandItem { + export type Raw = "company" | "purchase_account" | "purchase_tax_rate" | "sales_account" | "sales_tax_rate"; +} diff --git a/src/serialization/resources/accounting/resources/items/types/index.ts b/src/serialization/resources/accounting/resources/items/types/index.ts index 2d4c475ae..0a2ceac39 100644 --- a/src/serialization/resources/accounting/resources/items/types/index.ts +++ b/src/serialization/resources/accounting/resources/items/types/index.ts @@ -1,2 +1,3 @@ -export * from "./ItemsListRequestExpand"; -export * from "./ItemsRetrieveRequestExpand"; +export * from "./ItemsBatchObjectsListRequestExpandItem"; +export * from "./ItemsListRequestExpandItem"; +export * from "./ItemsRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/accounting/resources/journalEntries/client/requests/JournalEntryBulkRequest.ts b/src/serialization/resources/accounting/resources/journalEntries/client/requests/JournalEntryBulkRequest.ts new file mode 100644 index 000000000..1324b1ca0 --- /dev/null +++ b/src/serialization/resources/accounting/resources/journalEntries/client/requests/JournalEntryBulkRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../../api/index"; +import * as core from "../../../../../../../core"; +import type * as serializers from "../../../../../../index"; +import { JournalEntryBatchItemRequest } from "../../../../types/JournalEntryBatchItemRequest"; + +export const JournalEntryBulkRequest: core.serialization.Schema< + serializers.accounting.JournalEntryBulkRequest.Raw, + Omit +> = core.serialization.object({ + batchItems: core.serialization.property("batch_items", core.serialization.list(JournalEntryBatchItemRequest)), +}); + +export declare namespace JournalEntryBulkRequest { + export interface Raw { + batch_items: JournalEntryBatchItemRequest.Raw[]; + } +} diff --git a/src/serialization/resources/accounting/resources/journalEntries/client/requests/JournalEntryEndpointRequest.ts b/src/serialization/resources/accounting/resources/journalEntries/client/requests/JournalEntryEndpointRequest.ts deleted file mode 100644 index b58476923..000000000 --- a/src/serialization/resources/accounting/resources/journalEntries/client/requests/JournalEntryEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { JournalEntryRequest } from "../../../../types/JournalEntryRequest"; - -export const JournalEntryEndpointRequest: core.serialization.Schema< - serializers.accounting.JournalEntryEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: JournalEntryRequest, -}); - -export declare namespace JournalEntryEndpointRequest { - export interface Raw { - model: JournalEntryRequest.Raw; - } -} diff --git a/src/serialization/resources/accounting/resources/journalEntries/client/requests/index.ts b/src/serialization/resources/accounting/resources/journalEntries/client/requests/index.ts index cf2069c3e..601314be6 100644 --- a/src/serialization/resources/accounting/resources/journalEntries/client/requests/index.ts +++ b/src/serialization/resources/accounting/resources/journalEntries/client/requests/index.ts @@ -1 +1 @@ -export { JournalEntryEndpointRequest } from "./JournalEntryEndpointRequest"; +export { JournalEntryBulkRequest } from "./JournalEntryBulkRequest"; diff --git a/src/serialization/resources/accounting/resources/journalEntries/types/JournalEntriesBatchObjectsListRequestExpandItem.ts b/src/serialization/resources/accounting/resources/journalEntries/types/JournalEntriesBatchObjectsListRequestExpandItem.ts new file mode 100644 index 000000000..8d2e7f67a --- /dev/null +++ b/src/serialization/resources/accounting/resources/journalEntries/types/JournalEntriesBatchObjectsListRequestExpandItem.ts @@ -0,0 +1,27 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const JournalEntriesBatchObjectsListRequestExpandItem: core.serialization.Schema< + serializers.accounting.JournalEntriesBatchObjectsListRequestExpandItem.Raw, + Merge.accounting.JournalEntriesBatchObjectsListRequestExpandItem +> = core.serialization.enum_([ + "accounting_period", + "applied_payments", + "company", + "lines", + "payments", + "tracking_categories", +]); + +export declare namespace JournalEntriesBatchObjectsListRequestExpandItem { + export type Raw = + | "accounting_period" + | "applied_payments" + | "company" + | "lines" + | "payments" + | "tracking_categories"; +} diff --git a/src/serialization/resources/accounting/resources/journalEntries/types/JournalEntriesListRequestExpand.ts b/src/serialization/resources/accounting/resources/journalEntries/types/JournalEntriesListRequestExpand.ts deleted file mode 100644 index 9053bf7ef..000000000 --- a/src/serialization/resources/accounting/resources/journalEntries/types/JournalEntriesListRequestExpand.ts +++ /dev/null @@ -1,141 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const JournalEntriesListRequestExpand: core.serialization.Schema< - serializers.accounting.JournalEntriesListRequestExpand.Raw, - Merge.accounting.JournalEntriesListRequestExpand -> = core.serialization.enum_([ - "accounting_period", - "applied_payments", - "applied_payments,accounting_period", - "applied_payments,company", - "applied_payments,company,accounting_period", - "applied_payments,tracking_categories", - "applied_payments,tracking_categories,accounting_period", - "applied_payments,tracking_categories,company", - "applied_payments,tracking_categories,company,accounting_period", - "company", - "company,accounting_period", - "lines", - "lines,accounting_period", - "lines,applied_payments", - "lines,applied_payments,accounting_period", - "lines,applied_payments,company", - "lines,applied_payments,company,accounting_period", - "lines,applied_payments,tracking_categories", - "lines,applied_payments,tracking_categories,accounting_period", - "lines,applied_payments,tracking_categories,company", - "lines,applied_payments,tracking_categories,company,accounting_period", - "lines,company", - "lines,company,accounting_period", - "lines,payments", - "lines,payments,accounting_period", - "lines,payments,applied_payments", - "lines,payments,applied_payments,accounting_period", - "lines,payments,applied_payments,company", - "lines,payments,applied_payments,company,accounting_period", - "lines,payments,applied_payments,tracking_categories", - "lines,payments,applied_payments,tracking_categories,accounting_period", - "lines,payments,applied_payments,tracking_categories,company", - "lines,payments,applied_payments,tracking_categories,company,accounting_period", - "lines,payments,company", - "lines,payments,company,accounting_period", - "lines,payments,tracking_categories", - "lines,payments,tracking_categories,accounting_period", - "lines,payments,tracking_categories,company", - "lines,payments,tracking_categories,company,accounting_period", - "lines,tracking_categories", - "lines,tracking_categories,accounting_period", - "lines,tracking_categories,company", - "lines,tracking_categories,company,accounting_period", - "payments", - "payments,accounting_period", - "payments,applied_payments", - "payments,applied_payments,accounting_period", - "payments,applied_payments,company", - "payments,applied_payments,company,accounting_period", - "payments,applied_payments,tracking_categories", - "payments,applied_payments,tracking_categories,accounting_period", - "payments,applied_payments,tracking_categories,company", - "payments,applied_payments,tracking_categories,company,accounting_period", - "payments,company", - "payments,company,accounting_period", - "payments,tracking_categories", - "payments,tracking_categories,accounting_period", - "payments,tracking_categories,company", - "payments,tracking_categories,company,accounting_period", - "tracking_categories", - "tracking_categories,accounting_period", - "tracking_categories,company", - "tracking_categories,company,accounting_period", -]); - -export declare namespace JournalEntriesListRequestExpand { - export type Raw = - | "accounting_period" - | "applied_payments" - | "applied_payments,accounting_period" - | "applied_payments,company" - | "applied_payments,company,accounting_period" - | "applied_payments,tracking_categories" - | "applied_payments,tracking_categories,accounting_period" - | "applied_payments,tracking_categories,company" - | "applied_payments,tracking_categories,company,accounting_period" - | "company" - | "company,accounting_period" - | "lines" - | "lines,accounting_period" - | "lines,applied_payments" - | "lines,applied_payments,accounting_period" - | "lines,applied_payments,company" - | "lines,applied_payments,company,accounting_period" - | "lines,applied_payments,tracking_categories" - | "lines,applied_payments,tracking_categories,accounting_period" - | "lines,applied_payments,tracking_categories,company" - | "lines,applied_payments,tracking_categories,company,accounting_period" - | "lines,company" - | "lines,company,accounting_period" - | "lines,payments" - | "lines,payments,accounting_period" - | "lines,payments,applied_payments" - | "lines,payments,applied_payments,accounting_period" - | "lines,payments,applied_payments,company" - | "lines,payments,applied_payments,company,accounting_period" - | "lines,payments,applied_payments,tracking_categories" - | "lines,payments,applied_payments,tracking_categories,accounting_period" - | "lines,payments,applied_payments,tracking_categories,company" - | "lines,payments,applied_payments,tracking_categories,company,accounting_period" - | "lines,payments,company" - | "lines,payments,company,accounting_period" - | "lines,payments,tracking_categories" - | "lines,payments,tracking_categories,accounting_period" - | "lines,payments,tracking_categories,company" - | "lines,payments,tracking_categories,company,accounting_period" - | "lines,tracking_categories" - | "lines,tracking_categories,accounting_period" - | "lines,tracking_categories,company" - | "lines,tracking_categories,company,accounting_period" - | "payments" - | "payments,accounting_period" - | "payments,applied_payments" - | "payments,applied_payments,accounting_period" - | "payments,applied_payments,company" - | "payments,applied_payments,company,accounting_period" - | "payments,applied_payments,tracking_categories" - | "payments,applied_payments,tracking_categories,accounting_period" - | "payments,applied_payments,tracking_categories,company" - | "payments,applied_payments,tracking_categories,company,accounting_period" - | "payments,company" - | "payments,company,accounting_period" - | "payments,tracking_categories" - | "payments,tracking_categories,accounting_period" - | "payments,tracking_categories,company" - | "payments,tracking_categories,company,accounting_period" - | "tracking_categories" - | "tracking_categories,accounting_period" - | "tracking_categories,company" - | "tracking_categories,company,accounting_period"; -} diff --git a/src/serialization/resources/accounting/resources/journalEntries/types/JournalEntriesListRequestExpandItem.ts b/src/serialization/resources/accounting/resources/journalEntries/types/JournalEntriesListRequestExpandItem.ts new file mode 100644 index 000000000..052975a42 --- /dev/null +++ b/src/serialization/resources/accounting/resources/journalEntries/types/JournalEntriesListRequestExpandItem.ts @@ -0,0 +1,27 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const JournalEntriesListRequestExpandItem: core.serialization.Schema< + serializers.accounting.JournalEntriesListRequestExpandItem.Raw, + Merge.accounting.JournalEntriesListRequestExpandItem +> = core.serialization.enum_([ + "accounting_period", + "applied_payments", + "company", + "lines", + "payments", + "tracking_categories", +]); + +export declare namespace JournalEntriesListRequestExpandItem { + export type Raw = + | "accounting_period" + | "applied_payments" + | "company" + | "lines" + | "payments" + | "tracking_categories"; +} diff --git a/src/serialization/resources/accounting/resources/journalEntries/types/JournalEntriesRetrieveRequestExpand.ts b/src/serialization/resources/accounting/resources/journalEntries/types/JournalEntriesRetrieveRequestExpand.ts deleted file mode 100644 index 68aaf880d..000000000 --- a/src/serialization/resources/accounting/resources/journalEntries/types/JournalEntriesRetrieveRequestExpand.ts +++ /dev/null @@ -1,141 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const JournalEntriesRetrieveRequestExpand: core.serialization.Schema< - serializers.accounting.JournalEntriesRetrieveRequestExpand.Raw, - Merge.accounting.JournalEntriesRetrieveRequestExpand -> = core.serialization.enum_([ - "accounting_period", - "applied_payments", - "applied_payments,accounting_period", - "applied_payments,company", - "applied_payments,company,accounting_period", - "applied_payments,tracking_categories", - "applied_payments,tracking_categories,accounting_period", - "applied_payments,tracking_categories,company", - "applied_payments,tracking_categories,company,accounting_period", - "company", - "company,accounting_period", - "lines", - "lines,accounting_period", - "lines,applied_payments", - "lines,applied_payments,accounting_period", - "lines,applied_payments,company", - "lines,applied_payments,company,accounting_period", - "lines,applied_payments,tracking_categories", - "lines,applied_payments,tracking_categories,accounting_period", - "lines,applied_payments,tracking_categories,company", - "lines,applied_payments,tracking_categories,company,accounting_period", - "lines,company", - "lines,company,accounting_period", - "lines,payments", - "lines,payments,accounting_period", - "lines,payments,applied_payments", - "lines,payments,applied_payments,accounting_period", - "lines,payments,applied_payments,company", - "lines,payments,applied_payments,company,accounting_period", - "lines,payments,applied_payments,tracking_categories", - "lines,payments,applied_payments,tracking_categories,accounting_period", - "lines,payments,applied_payments,tracking_categories,company", - "lines,payments,applied_payments,tracking_categories,company,accounting_period", - "lines,payments,company", - "lines,payments,company,accounting_period", - "lines,payments,tracking_categories", - "lines,payments,tracking_categories,accounting_period", - "lines,payments,tracking_categories,company", - "lines,payments,tracking_categories,company,accounting_period", - "lines,tracking_categories", - "lines,tracking_categories,accounting_period", - "lines,tracking_categories,company", - "lines,tracking_categories,company,accounting_period", - "payments", - "payments,accounting_period", - "payments,applied_payments", - "payments,applied_payments,accounting_period", - "payments,applied_payments,company", - "payments,applied_payments,company,accounting_period", - "payments,applied_payments,tracking_categories", - "payments,applied_payments,tracking_categories,accounting_period", - "payments,applied_payments,tracking_categories,company", - "payments,applied_payments,tracking_categories,company,accounting_period", - "payments,company", - "payments,company,accounting_period", - "payments,tracking_categories", - "payments,tracking_categories,accounting_period", - "payments,tracking_categories,company", - "payments,tracking_categories,company,accounting_period", - "tracking_categories", - "tracking_categories,accounting_period", - "tracking_categories,company", - "tracking_categories,company,accounting_period", -]); - -export declare namespace JournalEntriesRetrieveRequestExpand { - export type Raw = - | "accounting_period" - | "applied_payments" - | "applied_payments,accounting_period" - | "applied_payments,company" - | "applied_payments,company,accounting_period" - | "applied_payments,tracking_categories" - | "applied_payments,tracking_categories,accounting_period" - | "applied_payments,tracking_categories,company" - | "applied_payments,tracking_categories,company,accounting_period" - | "company" - | "company,accounting_period" - | "lines" - | "lines,accounting_period" - | "lines,applied_payments" - | "lines,applied_payments,accounting_period" - | "lines,applied_payments,company" - | "lines,applied_payments,company,accounting_period" - | "lines,applied_payments,tracking_categories" - | "lines,applied_payments,tracking_categories,accounting_period" - | "lines,applied_payments,tracking_categories,company" - | "lines,applied_payments,tracking_categories,company,accounting_period" - | "lines,company" - | "lines,company,accounting_period" - | "lines,payments" - | "lines,payments,accounting_period" - | "lines,payments,applied_payments" - | "lines,payments,applied_payments,accounting_period" - | "lines,payments,applied_payments,company" - | "lines,payments,applied_payments,company,accounting_period" - | "lines,payments,applied_payments,tracking_categories" - | "lines,payments,applied_payments,tracking_categories,accounting_period" - | "lines,payments,applied_payments,tracking_categories,company" - | "lines,payments,applied_payments,tracking_categories,company,accounting_period" - | "lines,payments,company" - | "lines,payments,company,accounting_period" - | "lines,payments,tracking_categories" - | "lines,payments,tracking_categories,accounting_period" - | "lines,payments,tracking_categories,company" - | "lines,payments,tracking_categories,company,accounting_period" - | "lines,tracking_categories" - | "lines,tracking_categories,accounting_period" - | "lines,tracking_categories,company" - | "lines,tracking_categories,company,accounting_period" - | "payments" - | "payments,accounting_period" - | "payments,applied_payments" - | "payments,applied_payments,accounting_period" - | "payments,applied_payments,company" - | "payments,applied_payments,company,accounting_period" - | "payments,applied_payments,tracking_categories" - | "payments,applied_payments,tracking_categories,accounting_period" - | "payments,applied_payments,tracking_categories,company" - | "payments,applied_payments,tracking_categories,company,accounting_period" - | "payments,company" - | "payments,company,accounting_period" - | "payments,tracking_categories" - | "payments,tracking_categories,accounting_period" - | "payments,tracking_categories,company" - | "payments,tracking_categories,company,accounting_period" - | "tracking_categories" - | "tracking_categories,accounting_period" - | "tracking_categories,company" - | "tracking_categories,company,accounting_period"; -} diff --git a/src/serialization/resources/accounting/resources/journalEntries/types/JournalEntriesRetrieveRequestExpandItem.ts b/src/serialization/resources/accounting/resources/journalEntries/types/JournalEntriesRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..d95e5788f --- /dev/null +++ b/src/serialization/resources/accounting/resources/journalEntries/types/JournalEntriesRetrieveRequestExpandItem.ts @@ -0,0 +1,27 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const JournalEntriesRetrieveRequestExpandItem: core.serialization.Schema< + serializers.accounting.JournalEntriesRetrieveRequestExpandItem.Raw, + Merge.accounting.JournalEntriesRetrieveRequestExpandItem +> = core.serialization.enum_([ + "accounting_period", + "applied_payments", + "company", + "lines", + "payments", + "tracking_categories", +]); + +export declare namespace JournalEntriesRetrieveRequestExpandItem { + export type Raw = + | "accounting_period" + | "applied_payments" + | "company" + | "lines" + | "payments" + | "tracking_categories"; +} diff --git a/src/serialization/resources/accounting/resources/journalEntries/types/index.ts b/src/serialization/resources/accounting/resources/journalEntries/types/index.ts index d0572d020..194e7ae6a 100644 --- a/src/serialization/resources/accounting/resources/journalEntries/types/index.ts +++ b/src/serialization/resources/accounting/resources/journalEntries/types/index.ts @@ -1,2 +1,3 @@ -export * from "./JournalEntriesListRequestExpand"; -export * from "./JournalEntriesRetrieveRequestExpand"; +export * from "./JournalEntriesBatchObjectsListRequestExpandItem"; +export * from "./JournalEntriesListRequestExpandItem"; +export * from "./JournalEntriesRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/accounting/resources/payments/client/requests/PaymentBulkRequest.ts b/src/serialization/resources/accounting/resources/payments/client/requests/PaymentBulkRequest.ts new file mode 100644 index 000000000..001866641 --- /dev/null +++ b/src/serialization/resources/accounting/resources/payments/client/requests/PaymentBulkRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../../api/index"; +import * as core from "../../../../../../../core"; +import type * as serializers from "../../../../../../index"; +import { PaymentBatchItemRequest } from "../../../../types/PaymentBatchItemRequest"; + +export const PaymentBulkRequest: core.serialization.Schema< + serializers.accounting.PaymentBulkRequest.Raw, + Omit +> = core.serialization.object({ + batchItems: core.serialization.property("batch_items", core.serialization.list(PaymentBatchItemRequest)), +}); + +export declare namespace PaymentBulkRequest { + export interface Raw { + batch_items: PaymentBatchItemRequest.Raw[]; + } +} diff --git a/src/serialization/resources/accounting/resources/payments/client/requests/PaymentEndpointRequest.ts b/src/serialization/resources/accounting/resources/payments/client/requests/PaymentEndpointRequest.ts deleted file mode 100644 index b0cafb545..000000000 --- a/src/serialization/resources/accounting/resources/payments/client/requests/PaymentEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { PaymentRequest } from "../../../../types/PaymentRequest"; - -export const PaymentEndpointRequest: core.serialization.Schema< - serializers.accounting.PaymentEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: PaymentRequest, -}); - -export declare namespace PaymentEndpointRequest { - export interface Raw { - model: PaymentRequest.Raw; - } -} diff --git a/src/serialization/resources/accounting/resources/payments/client/requests/index.ts b/src/serialization/resources/accounting/resources/payments/client/requests/index.ts index f17ce1f07..f7a5b2a1e 100644 --- a/src/serialization/resources/accounting/resources/payments/client/requests/index.ts +++ b/src/serialization/resources/accounting/resources/payments/client/requests/index.ts @@ -1,2 +1,2 @@ export { PatchedPaymentEndpointRequest } from "./PatchedPaymentEndpointRequest"; -export { PaymentEndpointRequest } from "./PaymentEndpointRequest"; +export { PaymentBulkRequest } from "./PaymentBulkRequest"; diff --git a/src/serialization/resources/accounting/resources/payments/types/PaymentsBatchObjectsListRequestExpandItem.ts b/src/serialization/resources/accounting/resources/payments/types/PaymentsBatchObjectsListRequestExpandItem.ts new file mode 100644 index 000000000..55ded8b12 --- /dev/null +++ b/src/serialization/resources/accounting/resources/payments/types/PaymentsBatchObjectsListRequestExpandItem.ts @@ -0,0 +1,29 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const PaymentsBatchObjectsListRequestExpandItem: core.serialization.Schema< + serializers.accounting.PaymentsBatchObjectsListRequestExpandItem.Raw, + Merge.accounting.PaymentsBatchObjectsListRequestExpandItem +> = core.serialization.enum_([ + "account", + "accounting_period", + "applied_to_lines", + "company", + "contact", + "payment_method", + "tracking_categories", +]); + +export declare namespace PaymentsBatchObjectsListRequestExpandItem { + export type Raw = + | "account" + | "accounting_period" + | "applied_to_lines" + | "company" + | "contact" + | "payment_method" + | "tracking_categories"; +} diff --git a/src/serialization/resources/accounting/resources/payments/types/PaymentsListRequestExpand.ts b/src/serialization/resources/accounting/resources/payments/types/PaymentsListRequestExpand.ts deleted file mode 100644 index 1b4c1b846..000000000 --- a/src/serialization/resources/accounting/resources/payments/types/PaymentsListRequestExpand.ts +++ /dev/null @@ -1,269 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const PaymentsListRequestExpand: core.serialization.Schema< - serializers.accounting.PaymentsListRequestExpand.Raw, - Merge.accounting.PaymentsListRequestExpand -> = core.serialization.enum_([ - "account", - "account,accounting_period", - "account,accounting_period,payment_method", - "account,company", - "account,company,accounting_period", - "account,company,accounting_period,payment_method", - "account,company,payment_method", - "account,payment_method", - "accounting_period", - "accounting_period,payment_method", - "applied_to_lines", - "applied_to_lines,account", - "applied_to_lines,account,accounting_period", - "applied_to_lines,account,accounting_period,payment_method", - "applied_to_lines,account,company", - "applied_to_lines,account,company,accounting_period", - "applied_to_lines,account,company,accounting_period,payment_method", - "applied_to_lines,account,company,payment_method", - "applied_to_lines,account,payment_method", - "applied_to_lines,accounting_period", - "applied_to_lines,accounting_period,payment_method", - "applied_to_lines,company", - "applied_to_lines,company,accounting_period", - "applied_to_lines,company,accounting_period,payment_method", - "applied_to_lines,company,payment_method", - "applied_to_lines,contact", - "applied_to_lines,contact,account", - "applied_to_lines,contact,account,accounting_period", - "applied_to_lines,contact,account,accounting_period,payment_method", - "applied_to_lines,contact,account,company", - "applied_to_lines,contact,account,company,accounting_period", - "applied_to_lines,contact,account,company,accounting_period,payment_method", - "applied_to_lines,contact,account,company,payment_method", - "applied_to_lines,contact,account,payment_method", - "applied_to_lines,contact,accounting_period", - "applied_to_lines,contact,accounting_period,payment_method", - "applied_to_lines,contact,company", - "applied_to_lines,contact,company,accounting_period", - "applied_to_lines,contact,company,accounting_period,payment_method", - "applied_to_lines,contact,company,payment_method", - "applied_to_lines,contact,payment_method", - "applied_to_lines,payment_method", - "company", - "company,accounting_period", - "company,accounting_period,payment_method", - "company,payment_method", - "contact", - "contact,account", - "contact,account,accounting_period", - "contact,account,accounting_period,payment_method", - "contact,account,company", - "contact,account,company,accounting_period", - "contact,account,company,accounting_period,payment_method", - "contact,account,company,payment_method", - "contact,account,payment_method", - "contact,accounting_period", - "contact,accounting_period,payment_method", - "contact,company", - "contact,company,accounting_period", - "contact,company,accounting_period,payment_method", - "contact,company,payment_method", - "contact,payment_method", - "payment_method", - "tracking_categories", - "tracking_categories,account", - "tracking_categories,account,accounting_period", - "tracking_categories,account,accounting_period,payment_method", - "tracking_categories,account,company", - "tracking_categories,account,company,accounting_period", - "tracking_categories,account,company,accounting_period,payment_method", - "tracking_categories,account,company,payment_method", - "tracking_categories,account,payment_method", - "tracking_categories,accounting_period", - "tracking_categories,accounting_period,payment_method", - "tracking_categories,applied_to_lines", - "tracking_categories,applied_to_lines,account", - "tracking_categories,applied_to_lines,account,accounting_period", - "tracking_categories,applied_to_lines,account,accounting_period,payment_method", - "tracking_categories,applied_to_lines,account,company", - "tracking_categories,applied_to_lines,account,company,accounting_period", - "tracking_categories,applied_to_lines,account,company,accounting_period,payment_method", - "tracking_categories,applied_to_lines,account,company,payment_method", - "tracking_categories,applied_to_lines,account,payment_method", - "tracking_categories,applied_to_lines,accounting_period", - "tracking_categories,applied_to_lines,accounting_period,payment_method", - "tracking_categories,applied_to_lines,company", - "tracking_categories,applied_to_lines,company,accounting_period", - "tracking_categories,applied_to_lines,company,accounting_period,payment_method", - "tracking_categories,applied_to_lines,company,payment_method", - "tracking_categories,applied_to_lines,contact", - "tracking_categories,applied_to_lines,contact,account", - "tracking_categories,applied_to_lines,contact,account,accounting_period", - "tracking_categories,applied_to_lines,contact,account,accounting_period,payment_method", - "tracking_categories,applied_to_lines,contact,account,company", - "tracking_categories,applied_to_lines,contact,account,company,accounting_period", - "tracking_categories,applied_to_lines,contact,account,company,accounting_period,payment_method", - "tracking_categories,applied_to_lines,contact,account,company,payment_method", - "tracking_categories,applied_to_lines,contact,account,payment_method", - "tracking_categories,applied_to_lines,contact,accounting_period", - "tracking_categories,applied_to_lines,contact,accounting_period,payment_method", - "tracking_categories,applied_to_lines,contact,company", - "tracking_categories,applied_to_lines,contact,company,accounting_period", - "tracking_categories,applied_to_lines,contact,company,accounting_period,payment_method", - "tracking_categories,applied_to_lines,contact,company,payment_method", - "tracking_categories,applied_to_lines,contact,payment_method", - "tracking_categories,applied_to_lines,payment_method", - "tracking_categories,company", - "tracking_categories,company,accounting_period", - "tracking_categories,company,accounting_period,payment_method", - "tracking_categories,company,payment_method", - "tracking_categories,contact", - "tracking_categories,contact,account", - "tracking_categories,contact,account,accounting_period", - "tracking_categories,contact,account,accounting_period,payment_method", - "tracking_categories,contact,account,company", - "tracking_categories,contact,account,company,accounting_period", - "tracking_categories,contact,account,company,accounting_period,payment_method", - "tracking_categories,contact,account,company,payment_method", - "tracking_categories,contact,account,payment_method", - "tracking_categories,contact,accounting_period", - "tracking_categories,contact,accounting_period,payment_method", - "tracking_categories,contact,company", - "tracking_categories,contact,company,accounting_period", - "tracking_categories,contact,company,accounting_period,payment_method", - "tracking_categories,contact,company,payment_method", - "tracking_categories,contact,payment_method", - "tracking_categories,payment_method", -]); - -export declare namespace PaymentsListRequestExpand { - export type Raw = - | "account" - | "account,accounting_period" - | "account,accounting_period,payment_method" - | "account,company" - | "account,company,accounting_period" - | "account,company,accounting_period,payment_method" - | "account,company,payment_method" - | "account,payment_method" - | "accounting_period" - | "accounting_period,payment_method" - | "applied_to_lines" - | "applied_to_lines,account" - | "applied_to_lines,account,accounting_period" - | "applied_to_lines,account,accounting_period,payment_method" - | "applied_to_lines,account,company" - | "applied_to_lines,account,company,accounting_period" - | "applied_to_lines,account,company,accounting_period,payment_method" - | "applied_to_lines,account,company,payment_method" - | "applied_to_lines,account,payment_method" - | "applied_to_lines,accounting_period" - | "applied_to_lines,accounting_period,payment_method" - | "applied_to_lines,company" - | "applied_to_lines,company,accounting_period" - | "applied_to_lines,company,accounting_period,payment_method" - | "applied_to_lines,company,payment_method" - | "applied_to_lines,contact" - | "applied_to_lines,contact,account" - | "applied_to_lines,contact,account,accounting_period" - | "applied_to_lines,contact,account,accounting_period,payment_method" - | "applied_to_lines,contact,account,company" - | "applied_to_lines,contact,account,company,accounting_period" - | "applied_to_lines,contact,account,company,accounting_period,payment_method" - | "applied_to_lines,contact,account,company,payment_method" - | "applied_to_lines,contact,account,payment_method" - | "applied_to_lines,contact,accounting_period" - | "applied_to_lines,contact,accounting_period,payment_method" - | "applied_to_lines,contact,company" - | "applied_to_lines,contact,company,accounting_period" - | "applied_to_lines,contact,company,accounting_period,payment_method" - | "applied_to_lines,contact,company,payment_method" - | "applied_to_lines,contact,payment_method" - | "applied_to_lines,payment_method" - | "company" - | "company,accounting_period" - | "company,accounting_period,payment_method" - | "company,payment_method" - | "contact" - | "contact,account" - | "contact,account,accounting_period" - | "contact,account,accounting_period,payment_method" - | "contact,account,company" - | "contact,account,company,accounting_period" - | "contact,account,company,accounting_period,payment_method" - | "contact,account,company,payment_method" - | "contact,account,payment_method" - | "contact,accounting_period" - | "contact,accounting_period,payment_method" - | "contact,company" - | "contact,company,accounting_period" - | "contact,company,accounting_period,payment_method" - | "contact,company,payment_method" - | "contact,payment_method" - | "payment_method" - | "tracking_categories" - | "tracking_categories,account" - | "tracking_categories,account,accounting_period" - | "tracking_categories,account,accounting_period,payment_method" - | "tracking_categories,account,company" - | "tracking_categories,account,company,accounting_period" - | "tracking_categories,account,company,accounting_period,payment_method" - | "tracking_categories,account,company,payment_method" - | "tracking_categories,account,payment_method" - | "tracking_categories,accounting_period" - | "tracking_categories,accounting_period,payment_method" - | "tracking_categories,applied_to_lines" - | "tracking_categories,applied_to_lines,account" - | "tracking_categories,applied_to_lines,account,accounting_period" - | "tracking_categories,applied_to_lines,account,accounting_period,payment_method" - | "tracking_categories,applied_to_lines,account,company" - | "tracking_categories,applied_to_lines,account,company,accounting_period" - | "tracking_categories,applied_to_lines,account,company,accounting_period,payment_method" - | "tracking_categories,applied_to_lines,account,company,payment_method" - | "tracking_categories,applied_to_lines,account,payment_method" - | "tracking_categories,applied_to_lines,accounting_period" - | "tracking_categories,applied_to_lines,accounting_period,payment_method" - | "tracking_categories,applied_to_lines,company" - | "tracking_categories,applied_to_lines,company,accounting_period" - | "tracking_categories,applied_to_lines,company,accounting_period,payment_method" - | "tracking_categories,applied_to_lines,company,payment_method" - | "tracking_categories,applied_to_lines,contact" - | "tracking_categories,applied_to_lines,contact,account" - | "tracking_categories,applied_to_lines,contact,account,accounting_period" - | "tracking_categories,applied_to_lines,contact,account,accounting_period,payment_method" - | "tracking_categories,applied_to_lines,contact,account,company" - | "tracking_categories,applied_to_lines,contact,account,company,accounting_period" - | "tracking_categories,applied_to_lines,contact,account,company,accounting_period,payment_method" - | "tracking_categories,applied_to_lines,contact,account,company,payment_method" - | "tracking_categories,applied_to_lines,contact,account,payment_method" - | "tracking_categories,applied_to_lines,contact,accounting_period" - | "tracking_categories,applied_to_lines,contact,accounting_period,payment_method" - | "tracking_categories,applied_to_lines,contact,company" - | "tracking_categories,applied_to_lines,contact,company,accounting_period" - | "tracking_categories,applied_to_lines,contact,company,accounting_period,payment_method" - | "tracking_categories,applied_to_lines,contact,company,payment_method" - | "tracking_categories,applied_to_lines,contact,payment_method" - | "tracking_categories,applied_to_lines,payment_method" - | "tracking_categories,company" - | "tracking_categories,company,accounting_period" - | "tracking_categories,company,accounting_period,payment_method" - | "tracking_categories,company,payment_method" - | "tracking_categories,contact" - | "tracking_categories,contact,account" - | "tracking_categories,contact,account,accounting_period" - | "tracking_categories,contact,account,accounting_period,payment_method" - | "tracking_categories,contact,account,company" - | "tracking_categories,contact,account,company,accounting_period" - | "tracking_categories,contact,account,company,accounting_period,payment_method" - | "tracking_categories,contact,account,company,payment_method" - | "tracking_categories,contact,account,payment_method" - | "tracking_categories,contact,accounting_period" - | "tracking_categories,contact,accounting_period,payment_method" - | "tracking_categories,contact,company" - | "tracking_categories,contact,company,accounting_period" - | "tracking_categories,contact,company,accounting_period,payment_method" - | "tracking_categories,contact,company,payment_method" - | "tracking_categories,contact,payment_method" - | "tracking_categories,payment_method"; -} diff --git a/src/serialization/resources/accounting/resources/payments/types/PaymentsListRequestExpandItem.ts b/src/serialization/resources/accounting/resources/payments/types/PaymentsListRequestExpandItem.ts new file mode 100644 index 000000000..8447bafc8 --- /dev/null +++ b/src/serialization/resources/accounting/resources/payments/types/PaymentsListRequestExpandItem.ts @@ -0,0 +1,29 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const PaymentsListRequestExpandItem: core.serialization.Schema< + serializers.accounting.PaymentsListRequestExpandItem.Raw, + Merge.accounting.PaymentsListRequestExpandItem +> = core.serialization.enum_([ + "account", + "accounting_period", + "applied_to_lines", + "company", + "contact", + "payment_method", + "tracking_categories", +]); + +export declare namespace PaymentsListRequestExpandItem { + export type Raw = + | "account" + | "accounting_period" + | "applied_to_lines" + | "company" + | "contact" + | "payment_method" + | "tracking_categories"; +} diff --git a/src/serialization/resources/accounting/resources/payments/types/PaymentsRetrieveRequestExpand.ts b/src/serialization/resources/accounting/resources/payments/types/PaymentsRetrieveRequestExpand.ts deleted file mode 100644 index f67386464..000000000 --- a/src/serialization/resources/accounting/resources/payments/types/PaymentsRetrieveRequestExpand.ts +++ /dev/null @@ -1,269 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const PaymentsRetrieveRequestExpand: core.serialization.Schema< - serializers.accounting.PaymentsRetrieveRequestExpand.Raw, - Merge.accounting.PaymentsRetrieveRequestExpand -> = core.serialization.enum_([ - "account", - "account,accounting_period", - "account,accounting_period,payment_method", - "account,company", - "account,company,accounting_period", - "account,company,accounting_period,payment_method", - "account,company,payment_method", - "account,payment_method", - "accounting_period", - "accounting_period,payment_method", - "applied_to_lines", - "applied_to_lines,account", - "applied_to_lines,account,accounting_period", - "applied_to_lines,account,accounting_period,payment_method", - "applied_to_lines,account,company", - "applied_to_lines,account,company,accounting_period", - "applied_to_lines,account,company,accounting_period,payment_method", - "applied_to_lines,account,company,payment_method", - "applied_to_lines,account,payment_method", - "applied_to_lines,accounting_period", - "applied_to_lines,accounting_period,payment_method", - "applied_to_lines,company", - "applied_to_lines,company,accounting_period", - "applied_to_lines,company,accounting_period,payment_method", - "applied_to_lines,company,payment_method", - "applied_to_lines,contact", - "applied_to_lines,contact,account", - "applied_to_lines,contact,account,accounting_period", - "applied_to_lines,contact,account,accounting_period,payment_method", - "applied_to_lines,contact,account,company", - "applied_to_lines,contact,account,company,accounting_period", - "applied_to_lines,contact,account,company,accounting_period,payment_method", - "applied_to_lines,contact,account,company,payment_method", - "applied_to_lines,contact,account,payment_method", - "applied_to_lines,contact,accounting_period", - "applied_to_lines,contact,accounting_period,payment_method", - "applied_to_lines,contact,company", - "applied_to_lines,contact,company,accounting_period", - "applied_to_lines,contact,company,accounting_period,payment_method", - "applied_to_lines,contact,company,payment_method", - "applied_to_lines,contact,payment_method", - "applied_to_lines,payment_method", - "company", - "company,accounting_period", - "company,accounting_period,payment_method", - "company,payment_method", - "contact", - "contact,account", - "contact,account,accounting_period", - "contact,account,accounting_period,payment_method", - "contact,account,company", - "contact,account,company,accounting_period", - "contact,account,company,accounting_period,payment_method", - "contact,account,company,payment_method", - "contact,account,payment_method", - "contact,accounting_period", - "contact,accounting_period,payment_method", - "contact,company", - "contact,company,accounting_period", - "contact,company,accounting_period,payment_method", - "contact,company,payment_method", - "contact,payment_method", - "payment_method", - "tracking_categories", - "tracking_categories,account", - "tracking_categories,account,accounting_period", - "tracking_categories,account,accounting_period,payment_method", - "tracking_categories,account,company", - "tracking_categories,account,company,accounting_period", - "tracking_categories,account,company,accounting_period,payment_method", - "tracking_categories,account,company,payment_method", - "tracking_categories,account,payment_method", - "tracking_categories,accounting_period", - "tracking_categories,accounting_period,payment_method", - "tracking_categories,applied_to_lines", - "tracking_categories,applied_to_lines,account", - "tracking_categories,applied_to_lines,account,accounting_period", - "tracking_categories,applied_to_lines,account,accounting_period,payment_method", - "tracking_categories,applied_to_lines,account,company", - "tracking_categories,applied_to_lines,account,company,accounting_period", - "tracking_categories,applied_to_lines,account,company,accounting_period,payment_method", - "tracking_categories,applied_to_lines,account,company,payment_method", - "tracking_categories,applied_to_lines,account,payment_method", - "tracking_categories,applied_to_lines,accounting_period", - "tracking_categories,applied_to_lines,accounting_period,payment_method", - "tracking_categories,applied_to_lines,company", - "tracking_categories,applied_to_lines,company,accounting_period", - "tracking_categories,applied_to_lines,company,accounting_period,payment_method", - "tracking_categories,applied_to_lines,company,payment_method", - "tracking_categories,applied_to_lines,contact", - "tracking_categories,applied_to_lines,contact,account", - "tracking_categories,applied_to_lines,contact,account,accounting_period", - "tracking_categories,applied_to_lines,contact,account,accounting_period,payment_method", - "tracking_categories,applied_to_lines,contact,account,company", - "tracking_categories,applied_to_lines,contact,account,company,accounting_period", - "tracking_categories,applied_to_lines,contact,account,company,accounting_period,payment_method", - "tracking_categories,applied_to_lines,contact,account,company,payment_method", - "tracking_categories,applied_to_lines,contact,account,payment_method", - "tracking_categories,applied_to_lines,contact,accounting_period", - "tracking_categories,applied_to_lines,contact,accounting_period,payment_method", - "tracking_categories,applied_to_lines,contact,company", - "tracking_categories,applied_to_lines,contact,company,accounting_period", - "tracking_categories,applied_to_lines,contact,company,accounting_period,payment_method", - "tracking_categories,applied_to_lines,contact,company,payment_method", - "tracking_categories,applied_to_lines,contact,payment_method", - "tracking_categories,applied_to_lines,payment_method", - "tracking_categories,company", - "tracking_categories,company,accounting_period", - "tracking_categories,company,accounting_period,payment_method", - "tracking_categories,company,payment_method", - "tracking_categories,contact", - "tracking_categories,contact,account", - "tracking_categories,contact,account,accounting_period", - "tracking_categories,contact,account,accounting_period,payment_method", - "tracking_categories,contact,account,company", - "tracking_categories,contact,account,company,accounting_period", - "tracking_categories,contact,account,company,accounting_period,payment_method", - "tracking_categories,contact,account,company,payment_method", - "tracking_categories,contact,account,payment_method", - "tracking_categories,contact,accounting_period", - "tracking_categories,contact,accounting_period,payment_method", - "tracking_categories,contact,company", - "tracking_categories,contact,company,accounting_period", - "tracking_categories,contact,company,accounting_period,payment_method", - "tracking_categories,contact,company,payment_method", - "tracking_categories,contact,payment_method", - "tracking_categories,payment_method", -]); - -export declare namespace PaymentsRetrieveRequestExpand { - export type Raw = - | "account" - | "account,accounting_period" - | "account,accounting_period,payment_method" - | "account,company" - | "account,company,accounting_period" - | "account,company,accounting_period,payment_method" - | "account,company,payment_method" - | "account,payment_method" - | "accounting_period" - | "accounting_period,payment_method" - | "applied_to_lines" - | "applied_to_lines,account" - | "applied_to_lines,account,accounting_period" - | "applied_to_lines,account,accounting_period,payment_method" - | "applied_to_lines,account,company" - | "applied_to_lines,account,company,accounting_period" - | "applied_to_lines,account,company,accounting_period,payment_method" - | "applied_to_lines,account,company,payment_method" - | "applied_to_lines,account,payment_method" - | "applied_to_lines,accounting_period" - | "applied_to_lines,accounting_period,payment_method" - | "applied_to_lines,company" - | "applied_to_lines,company,accounting_period" - | "applied_to_lines,company,accounting_period,payment_method" - | "applied_to_lines,company,payment_method" - | "applied_to_lines,contact" - | "applied_to_lines,contact,account" - | "applied_to_lines,contact,account,accounting_period" - | "applied_to_lines,contact,account,accounting_period,payment_method" - | "applied_to_lines,contact,account,company" - | "applied_to_lines,contact,account,company,accounting_period" - | "applied_to_lines,contact,account,company,accounting_period,payment_method" - | "applied_to_lines,contact,account,company,payment_method" - | "applied_to_lines,contact,account,payment_method" - | "applied_to_lines,contact,accounting_period" - | "applied_to_lines,contact,accounting_period,payment_method" - | "applied_to_lines,contact,company" - | "applied_to_lines,contact,company,accounting_period" - | "applied_to_lines,contact,company,accounting_period,payment_method" - | "applied_to_lines,contact,company,payment_method" - | "applied_to_lines,contact,payment_method" - | "applied_to_lines,payment_method" - | "company" - | "company,accounting_period" - | "company,accounting_period,payment_method" - | "company,payment_method" - | "contact" - | "contact,account" - | "contact,account,accounting_period" - | "contact,account,accounting_period,payment_method" - | "contact,account,company" - | "contact,account,company,accounting_period" - | "contact,account,company,accounting_period,payment_method" - | "contact,account,company,payment_method" - | "contact,account,payment_method" - | "contact,accounting_period" - | "contact,accounting_period,payment_method" - | "contact,company" - | "contact,company,accounting_period" - | "contact,company,accounting_period,payment_method" - | "contact,company,payment_method" - | "contact,payment_method" - | "payment_method" - | "tracking_categories" - | "tracking_categories,account" - | "tracking_categories,account,accounting_period" - | "tracking_categories,account,accounting_period,payment_method" - | "tracking_categories,account,company" - | "tracking_categories,account,company,accounting_period" - | "tracking_categories,account,company,accounting_period,payment_method" - | "tracking_categories,account,company,payment_method" - | "tracking_categories,account,payment_method" - | "tracking_categories,accounting_period" - | "tracking_categories,accounting_period,payment_method" - | "tracking_categories,applied_to_lines" - | "tracking_categories,applied_to_lines,account" - | "tracking_categories,applied_to_lines,account,accounting_period" - | "tracking_categories,applied_to_lines,account,accounting_period,payment_method" - | "tracking_categories,applied_to_lines,account,company" - | "tracking_categories,applied_to_lines,account,company,accounting_period" - | "tracking_categories,applied_to_lines,account,company,accounting_period,payment_method" - | "tracking_categories,applied_to_lines,account,company,payment_method" - | "tracking_categories,applied_to_lines,account,payment_method" - | "tracking_categories,applied_to_lines,accounting_period" - | "tracking_categories,applied_to_lines,accounting_period,payment_method" - | "tracking_categories,applied_to_lines,company" - | "tracking_categories,applied_to_lines,company,accounting_period" - | "tracking_categories,applied_to_lines,company,accounting_period,payment_method" - | "tracking_categories,applied_to_lines,company,payment_method" - | "tracking_categories,applied_to_lines,contact" - | "tracking_categories,applied_to_lines,contact,account" - | "tracking_categories,applied_to_lines,contact,account,accounting_period" - | "tracking_categories,applied_to_lines,contact,account,accounting_period,payment_method" - | "tracking_categories,applied_to_lines,contact,account,company" - | "tracking_categories,applied_to_lines,contact,account,company,accounting_period" - | "tracking_categories,applied_to_lines,contact,account,company,accounting_period,payment_method" - | "tracking_categories,applied_to_lines,contact,account,company,payment_method" - | "tracking_categories,applied_to_lines,contact,account,payment_method" - | "tracking_categories,applied_to_lines,contact,accounting_period" - | "tracking_categories,applied_to_lines,contact,accounting_period,payment_method" - | "tracking_categories,applied_to_lines,contact,company" - | "tracking_categories,applied_to_lines,contact,company,accounting_period" - | "tracking_categories,applied_to_lines,contact,company,accounting_period,payment_method" - | "tracking_categories,applied_to_lines,contact,company,payment_method" - | "tracking_categories,applied_to_lines,contact,payment_method" - | "tracking_categories,applied_to_lines,payment_method" - | "tracking_categories,company" - | "tracking_categories,company,accounting_period" - | "tracking_categories,company,accounting_period,payment_method" - | "tracking_categories,company,payment_method" - | "tracking_categories,contact" - | "tracking_categories,contact,account" - | "tracking_categories,contact,account,accounting_period" - | "tracking_categories,contact,account,accounting_period,payment_method" - | "tracking_categories,contact,account,company" - | "tracking_categories,contact,account,company,accounting_period" - | "tracking_categories,contact,account,company,accounting_period,payment_method" - | "tracking_categories,contact,account,company,payment_method" - | "tracking_categories,contact,account,payment_method" - | "tracking_categories,contact,accounting_period" - | "tracking_categories,contact,accounting_period,payment_method" - | "tracking_categories,contact,company" - | "tracking_categories,contact,company,accounting_period" - | "tracking_categories,contact,company,accounting_period,payment_method" - | "tracking_categories,contact,company,payment_method" - | "tracking_categories,contact,payment_method" - | "tracking_categories,payment_method"; -} diff --git a/src/serialization/resources/accounting/resources/payments/types/PaymentsRetrieveRequestExpandItem.ts b/src/serialization/resources/accounting/resources/payments/types/PaymentsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..9a7a32076 --- /dev/null +++ b/src/serialization/resources/accounting/resources/payments/types/PaymentsRetrieveRequestExpandItem.ts @@ -0,0 +1,29 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const PaymentsRetrieveRequestExpandItem: core.serialization.Schema< + serializers.accounting.PaymentsRetrieveRequestExpandItem.Raw, + Merge.accounting.PaymentsRetrieveRequestExpandItem +> = core.serialization.enum_([ + "account", + "accounting_period", + "applied_to_lines", + "company", + "contact", + "payment_method", + "tracking_categories", +]); + +export declare namespace PaymentsRetrieveRequestExpandItem { + export type Raw = + | "account" + | "accounting_period" + | "applied_to_lines" + | "company" + | "contact" + | "payment_method" + | "tracking_categories"; +} diff --git a/src/serialization/resources/accounting/resources/payments/types/index.ts b/src/serialization/resources/accounting/resources/payments/types/index.ts index 56e4a3693..6f44ec95a 100644 --- a/src/serialization/resources/accounting/resources/payments/types/index.ts +++ b/src/serialization/resources/accounting/resources/payments/types/index.ts @@ -1,2 +1,3 @@ -export * from "./PaymentsListRequestExpand"; -export * from "./PaymentsRetrieveRequestExpand"; +export * from "./PaymentsBatchObjectsListRequestExpandItem"; +export * from "./PaymentsListRequestExpandItem"; +export * from "./PaymentsRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/accounting/resources/projects/types/ProjectsListRequestExpand.ts b/src/serialization/resources/accounting/resources/projects/types/ProjectsListRequestExpand.ts deleted file mode 100644 index 8974879b7..000000000 --- a/src/serialization/resources/accounting/resources/projects/types/ProjectsListRequestExpand.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const ProjectsListRequestExpand: core.serialization.Schema< - serializers.accounting.ProjectsListRequestExpand.Raw, - Merge.accounting.ProjectsListRequestExpand -> = core.serialization.enum_(["company", "company,contact", "contact"]); - -export declare namespace ProjectsListRequestExpand { - export type Raw = "company" | "company,contact" | "contact"; -} diff --git a/src/serialization/resources/accounting/resources/projects/types/ProjectsListRequestExpandItem.ts b/src/serialization/resources/accounting/resources/projects/types/ProjectsListRequestExpandItem.ts new file mode 100644 index 000000000..99e15843c --- /dev/null +++ b/src/serialization/resources/accounting/resources/projects/types/ProjectsListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const ProjectsListRequestExpandItem: core.serialization.Schema< + serializers.accounting.ProjectsListRequestExpandItem.Raw, + Merge.accounting.ProjectsListRequestExpandItem +> = core.serialization.enum_(["company", "contact"]); + +export declare namespace ProjectsListRequestExpandItem { + export type Raw = "company" | "contact"; +} diff --git a/src/serialization/resources/accounting/resources/projects/types/ProjectsRetrieveRequestExpand.ts b/src/serialization/resources/accounting/resources/projects/types/ProjectsRetrieveRequestExpand.ts deleted file mode 100644 index 2d456dddc..000000000 --- a/src/serialization/resources/accounting/resources/projects/types/ProjectsRetrieveRequestExpand.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const ProjectsRetrieveRequestExpand: core.serialization.Schema< - serializers.accounting.ProjectsRetrieveRequestExpand.Raw, - Merge.accounting.ProjectsRetrieveRequestExpand -> = core.serialization.enum_(["company", "company,contact", "contact"]); - -export declare namespace ProjectsRetrieveRequestExpand { - export type Raw = "company" | "company,contact" | "contact"; -} diff --git a/src/serialization/resources/accounting/resources/projects/types/ProjectsRetrieveRequestExpandItem.ts b/src/serialization/resources/accounting/resources/projects/types/ProjectsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..71abcf14e --- /dev/null +++ b/src/serialization/resources/accounting/resources/projects/types/ProjectsRetrieveRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const ProjectsRetrieveRequestExpandItem: core.serialization.Schema< + serializers.accounting.ProjectsRetrieveRequestExpandItem.Raw, + Merge.accounting.ProjectsRetrieveRequestExpandItem +> = core.serialization.enum_(["company", "contact"]); + +export declare namespace ProjectsRetrieveRequestExpandItem { + export type Raw = "company" | "contact"; +} diff --git a/src/serialization/resources/accounting/resources/projects/types/index.ts b/src/serialization/resources/accounting/resources/projects/types/index.ts index 5ecd3d28e..ff6eb611a 100644 --- a/src/serialization/resources/accounting/resources/projects/types/index.ts +++ b/src/serialization/resources/accounting/resources/projects/types/index.ts @@ -1,2 +1,2 @@ -export * from "./ProjectsListRequestExpand"; -export * from "./ProjectsRetrieveRequestExpand"; +export * from "./ProjectsListRequestExpandItem"; +export * from "./ProjectsRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrderBulkRequest.ts b/src/serialization/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrderBulkRequest.ts new file mode 100644 index 000000000..4615b864c --- /dev/null +++ b/src/serialization/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrderBulkRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../../api/index"; +import * as core from "../../../../../../../core"; +import type * as serializers from "../../../../../../index"; +import { PurchaseOrderBatchItemRequest } from "../../../../types/PurchaseOrderBatchItemRequest"; + +export const PurchaseOrderBulkRequest: core.serialization.Schema< + serializers.accounting.PurchaseOrderBulkRequest.Raw, + Omit +> = core.serialization.object({ + batchItems: core.serialization.property("batch_items", core.serialization.list(PurchaseOrderBatchItemRequest)), +}); + +export declare namespace PurchaseOrderBulkRequest { + export interface Raw { + batch_items: PurchaseOrderBatchItemRequest.Raw[]; + } +} diff --git a/src/serialization/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrderEndpointRequest.ts b/src/serialization/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrderEndpointRequest.ts deleted file mode 100644 index 53a9813d4..000000000 --- a/src/serialization/resources/accounting/resources/purchaseOrders/client/requests/PurchaseOrderEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { PurchaseOrderRequest } from "../../../../types/PurchaseOrderRequest"; - -export const PurchaseOrderEndpointRequest: core.serialization.Schema< - serializers.accounting.PurchaseOrderEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: PurchaseOrderRequest, -}); - -export declare namespace PurchaseOrderEndpointRequest { - export interface Raw { - model: PurchaseOrderRequest.Raw; - } -} diff --git a/src/serialization/resources/accounting/resources/purchaseOrders/client/requests/index.ts b/src/serialization/resources/accounting/resources/purchaseOrders/client/requests/index.ts index 72830d645..00c83a224 100644 --- a/src/serialization/resources/accounting/resources/purchaseOrders/client/requests/index.ts +++ b/src/serialization/resources/accounting/resources/purchaseOrders/client/requests/index.ts @@ -1 +1 @@ -export { PurchaseOrderEndpointRequest } from "./PurchaseOrderEndpointRequest"; +export { PurchaseOrderBulkRequest } from "./PurchaseOrderBulkRequest"; diff --git a/src/serialization/resources/accounting/resources/purchaseOrders/types/PurchaseOrdersBatchObjectsListRequestExpandItem.ts b/src/serialization/resources/accounting/resources/purchaseOrders/types/PurchaseOrdersBatchObjectsListRequestExpandItem.ts new file mode 100644 index 000000000..88da0e277 --- /dev/null +++ b/src/serialization/resources/accounting/resources/purchaseOrders/types/PurchaseOrdersBatchObjectsListRequestExpandItem.ts @@ -0,0 +1,29 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const PurchaseOrdersBatchObjectsListRequestExpandItem: core.serialization.Schema< + serializers.accounting.PurchaseOrdersBatchObjectsListRequestExpandItem.Raw, + Merge.accounting.PurchaseOrdersBatchObjectsListRequestExpandItem +> = core.serialization.enum_([ + "accounting_period", + "company", + "delivery_address", + "line_items", + "payment_term", + "tracking_categories", + "vendor", +]); + +export declare namespace PurchaseOrdersBatchObjectsListRequestExpandItem { + export type Raw = + | "accounting_period" + | "company" + | "delivery_address" + | "line_items" + | "payment_term" + | "tracking_categories" + | "vendor"; +} diff --git a/src/serialization/resources/accounting/resources/purchaseOrders/types/PurchaseOrdersListRequestExpand.ts b/src/serialization/resources/accounting/resources/purchaseOrders/types/PurchaseOrdersListRequestExpand.ts deleted file mode 100644 index 102c0fee4..000000000 --- a/src/serialization/resources/accounting/resources/purchaseOrders/types/PurchaseOrdersListRequestExpand.ts +++ /dev/null @@ -1,269 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const PurchaseOrdersListRequestExpand: core.serialization.Schema< - serializers.accounting.PurchaseOrdersListRequestExpand.Raw, - Merge.accounting.PurchaseOrdersListRequestExpand -> = core.serialization.enum_([ - "accounting_period", - "accounting_period,payment_term", - "company", - "company,accounting_period", - "company,accounting_period,payment_term", - "company,payment_term", - "delivery_address", - "delivery_address,accounting_period", - "delivery_address,accounting_period,payment_term", - "delivery_address,company", - "delivery_address,company,accounting_period", - "delivery_address,company,accounting_period,payment_term", - "delivery_address,company,payment_term", - "delivery_address,payment_term", - "delivery_address,vendor", - "delivery_address,vendor,accounting_period", - "delivery_address,vendor,accounting_period,payment_term", - "delivery_address,vendor,company", - "delivery_address,vendor,company,accounting_period", - "delivery_address,vendor,company,accounting_period,payment_term", - "delivery_address,vendor,company,payment_term", - "delivery_address,vendor,payment_term", - "line_items", - "line_items,accounting_period", - "line_items,accounting_period,payment_term", - "line_items,company", - "line_items,company,accounting_period", - "line_items,company,accounting_period,payment_term", - "line_items,company,payment_term", - "line_items,delivery_address", - "line_items,delivery_address,accounting_period", - "line_items,delivery_address,accounting_period,payment_term", - "line_items,delivery_address,company", - "line_items,delivery_address,company,accounting_period", - "line_items,delivery_address,company,accounting_period,payment_term", - "line_items,delivery_address,company,payment_term", - "line_items,delivery_address,payment_term", - "line_items,delivery_address,vendor", - "line_items,delivery_address,vendor,accounting_period", - "line_items,delivery_address,vendor,accounting_period,payment_term", - "line_items,delivery_address,vendor,company", - "line_items,delivery_address,vendor,company,accounting_period", - "line_items,delivery_address,vendor,company,accounting_period,payment_term", - "line_items,delivery_address,vendor,company,payment_term", - "line_items,delivery_address,vendor,payment_term", - "line_items,payment_term", - "line_items,tracking_categories", - "line_items,tracking_categories,accounting_period", - "line_items,tracking_categories,accounting_period,payment_term", - "line_items,tracking_categories,company", - "line_items,tracking_categories,company,accounting_period", - "line_items,tracking_categories,company,accounting_period,payment_term", - "line_items,tracking_categories,company,payment_term", - "line_items,tracking_categories,delivery_address", - "line_items,tracking_categories,delivery_address,accounting_period", - "line_items,tracking_categories,delivery_address,accounting_period,payment_term", - "line_items,tracking_categories,delivery_address,company", - "line_items,tracking_categories,delivery_address,company,accounting_period", - "line_items,tracking_categories,delivery_address,company,accounting_period,payment_term", - "line_items,tracking_categories,delivery_address,company,payment_term", - "line_items,tracking_categories,delivery_address,payment_term", - "line_items,tracking_categories,delivery_address,vendor", - "line_items,tracking_categories,delivery_address,vendor,accounting_period", - "line_items,tracking_categories,delivery_address,vendor,accounting_period,payment_term", - "line_items,tracking_categories,delivery_address,vendor,company", - "line_items,tracking_categories,delivery_address,vendor,company,accounting_period", - "line_items,tracking_categories,delivery_address,vendor,company,accounting_period,payment_term", - "line_items,tracking_categories,delivery_address,vendor,company,payment_term", - "line_items,tracking_categories,delivery_address,vendor,payment_term", - "line_items,tracking_categories,payment_term", - "line_items,tracking_categories,vendor", - "line_items,tracking_categories,vendor,accounting_period", - "line_items,tracking_categories,vendor,accounting_period,payment_term", - "line_items,tracking_categories,vendor,company", - "line_items,tracking_categories,vendor,company,accounting_period", - "line_items,tracking_categories,vendor,company,accounting_period,payment_term", - "line_items,tracking_categories,vendor,company,payment_term", - "line_items,tracking_categories,vendor,payment_term", - "line_items,vendor", - "line_items,vendor,accounting_period", - "line_items,vendor,accounting_period,payment_term", - "line_items,vendor,company", - "line_items,vendor,company,accounting_period", - "line_items,vendor,company,accounting_period,payment_term", - "line_items,vendor,company,payment_term", - "line_items,vendor,payment_term", - "payment_term", - "tracking_categories", - "tracking_categories,accounting_period", - "tracking_categories,accounting_period,payment_term", - "tracking_categories,company", - "tracking_categories,company,accounting_period", - "tracking_categories,company,accounting_period,payment_term", - "tracking_categories,company,payment_term", - "tracking_categories,delivery_address", - "tracking_categories,delivery_address,accounting_period", - "tracking_categories,delivery_address,accounting_period,payment_term", - "tracking_categories,delivery_address,company", - "tracking_categories,delivery_address,company,accounting_period", - "tracking_categories,delivery_address,company,accounting_period,payment_term", - "tracking_categories,delivery_address,company,payment_term", - "tracking_categories,delivery_address,payment_term", - "tracking_categories,delivery_address,vendor", - "tracking_categories,delivery_address,vendor,accounting_period", - "tracking_categories,delivery_address,vendor,accounting_period,payment_term", - "tracking_categories,delivery_address,vendor,company", - "tracking_categories,delivery_address,vendor,company,accounting_period", - "tracking_categories,delivery_address,vendor,company,accounting_period,payment_term", - "tracking_categories,delivery_address,vendor,company,payment_term", - "tracking_categories,delivery_address,vendor,payment_term", - "tracking_categories,payment_term", - "tracking_categories,vendor", - "tracking_categories,vendor,accounting_period", - "tracking_categories,vendor,accounting_period,payment_term", - "tracking_categories,vendor,company", - "tracking_categories,vendor,company,accounting_period", - "tracking_categories,vendor,company,accounting_period,payment_term", - "tracking_categories,vendor,company,payment_term", - "tracking_categories,vendor,payment_term", - "vendor", - "vendor,accounting_period", - "vendor,accounting_period,payment_term", - "vendor,company", - "vendor,company,accounting_period", - "vendor,company,accounting_period,payment_term", - "vendor,company,payment_term", - "vendor,payment_term", -]); - -export declare namespace PurchaseOrdersListRequestExpand { - export type Raw = - | "accounting_period" - | "accounting_period,payment_term" - | "company" - | "company,accounting_period" - | "company,accounting_period,payment_term" - | "company,payment_term" - | "delivery_address" - | "delivery_address,accounting_period" - | "delivery_address,accounting_period,payment_term" - | "delivery_address,company" - | "delivery_address,company,accounting_period" - | "delivery_address,company,accounting_period,payment_term" - | "delivery_address,company,payment_term" - | "delivery_address,payment_term" - | "delivery_address,vendor" - | "delivery_address,vendor,accounting_period" - | "delivery_address,vendor,accounting_period,payment_term" - | "delivery_address,vendor,company" - | "delivery_address,vendor,company,accounting_period" - | "delivery_address,vendor,company,accounting_period,payment_term" - | "delivery_address,vendor,company,payment_term" - | "delivery_address,vendor,payment_term" - | "line_items" - | "line_items,accounting_period" - | "line_items,accounting_period,payment_term" - | "line_items,company" - | "line_items,company,accounting_period" - | "line_items,company,accounting_period,payment_term" - | "line_items,company,payment_term" - | "line_items,delivery_address" - | "line_items,delivery_address,accounting_period" - | "line_items,delivery_address,accounting_period,payment_term" - | "line_items,delivery_address,company" - | "line_items,delivery_address,company,accounting_period" - | "line_items,delivery_address,company,accounting_period,payment_term" - | "line_items,delivery_address,company,payment_term" - | "line_items,delivery_address,payment_term" - | "line_items,delivery_address,vendor" - | "line_items,delivery_address,vendor,accounting_period" - | "line_items,delivery_address,vendor,accounting_period,payment_term" - | "line_items,delivery_address,vendor,company" - | "line_items,delivery_address,vendor,company,accounting_period" - | "line_items,delivery_address,vendor,company,accounting_period,payment_term" - | "line_items,delivery_address,vendor,company,payment_term" - | "line_items,delivery_address,vendor,payment_term" - | "line_items,payment_term" - | "line_items,tracking_categories" - | "line_items,tracking_categories,accounting_period" - | "line_items,tracking_categories,accounting_period,payment_term" - | "line_items,tracking_categories,company" - | "line_items,tracking_categories,company,accounting_period" - | "line_items,tracking_categories,company,accounting_period,payment_term" - | "line_items,tracking_categories,company,payment_term" - | "line_items,tracking_categories,delivery_address" - | "line_items,tracking_categories,delivery_address,accounting_period" - | "line_items,tracking_categories,delivery_address,accounting_period,payment_term" - | "line_items,tracking_categories,delivery_address,company" - | "line_items,tracking_categories,delivery_address,company,accounting_period" - | "line_items,tracking_categories,delivery_address,company,accounting_period,payment_term" - | "line_items,tracking_categories,delivery_address,company,payment_term" - | "line_items,tracking_categories,delivery_address,payment_term" - | "line_items,tracking_categories,delivery_address,vendor" - | "line_items,tracking_categories,delivery_address,vendor,accounting_period" - | "line_items,tracking_categories,delivery_address,vendor,accounting_period,payment_term" - | "line_items,tracking_categories,delivery_address,vendor,company" - | "line_items,tracking_categories,delivery_address,vendor,company,accounting_period" - | "line_items,tracking_categories,delivery_address,vendor,company,accounting_period,payment_term" - | "line_items,tracking_categories,delivery_address,vendor,company,payment_term" - | "line_items,tracking_categories,delivery_address,vendor,payment_term" - | "line_items,tracking_categories,payment_term" - | "line_items,tracking_categories,vendor" - | "line_items,tracking_categories,vendor,accounting_period" - | "line_items,tracking_categories,vendor,accounting_period,payment_term" - | "line_items,tracking_categories,vendor,company" - | "line_items,tracking_categories,vendor,company,accounting_period" - | "line_items,tracking_categories,vendor,company,accounting_period,payment_term" - | "line_items,tracking_categories,vendor,company,payment_term" - | "line_items,tracking_categories,vendor,payment_term" - | "line_items,vendor" - | "line_items,vendor,accounting_period" - | "line_items,vendor,accounting_period,payment_term" - | "line_items,vendor,company" - | "line_items,vendor,company,accounting_period" - | "line_items,vendor,company,accounting_period,payment_term" - | "line_items,vendor,company,payment_term" - | "line_items,vendor,payment_term" - | "payment_term" - | "tracking_categories" - | "tracking_categories,accounting_period" - | "tracking_categories,accounting_period,payment_term" - | "tracking_categories,company" - | "tracking_categories,company,accounting_period" - | "tracking_categories,company,accounting_period,payment_term" - | "tracking_categories,company,payment_term" - | "tracking_categories,delivery_address" - | "tracking_categories,delivery_address,accounting_period" - | "tracking_categories,delivery_address,accounting_period,payment_term" - | "tracking_categories,delivery_address,company" - | "tracking_categories,delivery_address,company,accounting_period" - | "tracking_categories,delivery_address,company,accounting_period,payment_term" - | "tracking_categories,delivery_address,company,payment_term" - | "tracking_categories,delivery_address,payment_term" - | "tracking_categories,delivery_address,vendor" - | "tracking_categories,delivery_address,vendor,accounting_period" - | "tracking_categories,delivery_address,vendor,accounting_period,payment_term" - | "tracking_categories,delivery_address,vendor,company" - | "tracking_categories,delivery_address,vendor,company,accounting_period" - | "tracking_categories,delivery_address,vendor,company,accounting_period,payment_term" - | "tracking_categories,delivery_address,vendor,company,payment_term" - | "tracking_categories,delivery_address,vendor,payment_term" - | "tracking_categories,payment_term" - | "tracking_categories,vendor" - | "tracking_categories,vendor,accounting_period" - | "tracking_categories,vendor,accounting_period,payment_term" - | "tracking_categories,vendor,company" - | "tracking_categories,vendor,company,accounting_period" - | "tracking_categories,vendor,company,accounting_period,payment_term" - | "tracking_categories,vendor,company,payment_term" - | "tracking_categories,vendor,payment_term" - | "vendor" - | "vendor,accounting_period" - | "vendor,accounting_period,payment_term" - | "vendor,company" - | "vendor,company,accounting_period" - | "vendor,company,accounting_period,payment_term" - | "vendor,company,payment_term" - | "vendor,payment_term"; -} diff --git a/src/serialization/resources/accounting/resources/purchaseOrders/types/PurchaseOrdersListRequestExpandItem.ts b/src/serialization/resources/accounting/resources/purchaseOrders/types/PurchaseOrdersListRequestExpandItem.ts new file mode 100644 index 000000000..7b568ae7d --- /dev/null +++ b/src/serialization/resources/accounting/resources/purchaseOrders/types/PurchaseOrdersListRequestExpandItem.ts @@ -0,0 +1,29 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const PurchaseOrdersListRequestExpandItem: core.serialization.Schema< + serializers.accounting.PurchaseOrdersListRequestExpandItem.Raw, + Merge.accounting.PurchaseOrdersListRequestExpandItem +> = core.serialization.enum_([ + "accounting_period", + "company", + "delivery_address", + "line_items", + "payment_term", + "tracking_categories", + "vendor", +]); + +export declare namespace PurchaseOrdersListRequestExpandItem { + export type Raw = + | "accounting_period" + | "company" + | "delivery_address" + | "line_items" + | "payment_term" + | "tracking_categories" + | "vendor"; +} diff --git a/src/serialization/resources/accounting/resources/purchaseOrders/types/PurchaseOrdersRetrieveRequestExpand.ts b/src/serialization/resources/accounting/resources/purchaseOrders/types/PurchaseOrdersRetrieveRequestExpand.ts deleted file mode 100644 index e40c86533..000000000 --- a/src/serialization/resources/accounting/resources/purchaseOrders/types/PurchaseOrdersRetrieveRequestExpand.ts +++ /dev/null @@ -1,269 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const PurchaseOrdersRetrieveRequestExpand: core.serialization.Schema< - serializers.accounting.PurchaseOrdersRetrieveRequestExpand.Raw, - Merge.accounting.PurchaseOrdersRetrieveRequestExpand -> = core.serialization.enum_([ - "accounting_period", - "accounting_period,payment_term", - "company", - "company,accounting_period", - "company,accounting_period,payment_term", - "company,payment_term", - "delivery_address", - "delivery_address,accounting_period", - "delivery_address,accounting_period,payment_term", - "delivery_address,company", - "delivery_address,company,accounting_period", - "delivery_address,company,accounting_period,payment_term", - "delivery_address,company,payment_term", - "delivery_address,payment_term", - "delivery_address,vendor", - "delivery_address,vendor,accounting_period", - "delivery_address,vendor,accounting_period,payment_term", - "delivery_address,vendor,company", - "delivery_address,vendor,company,accounting_period", - "delivery_address,vendor,company,accounting_period,payment_term", - "delivery_address,vendor,company,payment_term", - "delivery_address,vendor,payment_term", - "line_items", - "line_items,accounting_period", - "line_items,accounting_period,payment_term", - "line_items,company", - "line_items,company,accounting_period", - "line_items,company,accounting_period,payment_term", - "line_items,company,payment_term", - "line_items,delivery_address", - "line_items,delivery_address,accounting_period", - "line_items,delivery_address,accounting_period,payment_term", - "line_items,delivery_address,company", - "line_items,delivery_address,company,accounting_period", - "line_items,delivery_address,company,accounting_period,payment_term", - "line_items,delivery_address,company,payment_term", - "line_items,delivery_address,payment_term", - "line_items,delivery_address,vendor", - "line_items,delivery_address,vendor,accounting_period", - "line_items,delivery_address,vendor,accounting_period,payment_term", - "line_items,delivery_address,vendor,company", - "line_items,delivery_address,vendor,company,accounting_period", - "line_items,delivery_address,vendor,company,accounting_period,payment_term", - "line_items,delivery_address,vendor,company,payment_term", - "line_items,delivery_address,vendor,payment_term", - "line_items,payment_term", - "line_items,tracking_categories", - "line_items,tracking_categories,accounting_period", - "line_items,tracking_categories,accounting_period,payment_term", - "line_items,tracking_categories,company", - "line_items,tracking_categories,company,accounting_period", - "line_items,tracking_categories,company,accounting_period,payment_term", - "line_items,tracking_categories,company,payment_term", - "line_items,tracking_categories,delivery_address", - "line_items,tracking_categories,delivery_address,accounting_period", - "line_items,tracking_categories,delivery_address,accounting_period,payment_term", - "line_items,tracking_categories,delivery_address,company", - "line_items,tracking_categories,delivery_address,company,accounting_period", - "line_items,tracking_categories,delivery_address,company,accounting_period,payment_term", - "line_items,tracking_categories,delivery_address,company,payment_term", - "line_items,tracking_categories,delivery_address,payment_term", - "line_items,tracking_categories,delivery_address,vendor", - "line_items,tracking_categories,delivery_address,vendor,accounting_period", - "line_items,tracking_categories,delivery_address,vendor,accounting_period,payment_term", - "line_items,tracking_categories,delivery_address,vendor,company", - "line_items,tracking_categories,delivery_address,vendor,company,accounting_period", - "line_items,tracking_categories,delivery_address,vendor,company,accounting_period,payment_term", - "line_items,tracking_categories,delivery_address,vendor,company,payment_term", - "line_items,tracking_categories,delivery_address,vendor,payment_term", - "line_items,tracking_categories,payment_term", - "line_items,tracking_categories,vendor", - "line_items,tracking_categories,vendor,accounting_period", - "line_items,tracking_categories,vendor,accounting_period,payment_term", - "line_items,tracking_categories,vendor,company", - "line_items,tracking_categories,vendor,company,accounting_period", - "line_items,tracking_categories,vendor,company,accounting_period,payment_term", - "line_items,tracking_categories,vendor,company,payment_term", - "line_items,tracking_categories,vendor,payment_term", - "line_items,vendor", - "line_items,vendor,accounting_period", - "line_items,vendor,accounting_period,payment_term", - "line_items,vendor,company", - "line_items,vendor,company,accounting_period", - "line_items,vendor,company,accounting_period,payment_term", - "line_items,vendor,company,payment_term", - "line_items,vendor,payment_term", - "payment_term", - "tracking_categories", - "tracking_categories,accounting_period", - "tracking_categories,accounting_period,payment_term", - "tracking_categories,company", - "tracking_categories,company,accounting_period", - "tracking_categories,company,accounting_period,payment_term", - "tracking_categories,company,payment_term", - "tracking_categories,delivery_address", - "tracking_categories,delivery_address,accounting_period", - "tracking_categories,delivery_address,accounting_period,payment_term", - "tracking_categories,delivery_address,company", - "tracking_categories,delivery_address,company,accounting_period", - "tracking_categories,delivery_address,company,accounting_period,payment_term", - "tracking_categories,delivery_address,company,payment_term", - "tracking_categories,delivery_address,payment_term", - "tracking_categories,delivery_address,vendor", - "tracking_categories,delivery_address,vendor,accounting_period", - "tracking_categories,delivery_address,vendor,accounting_period,payment_term", - "tracking_categories,delivery_address,vendor,company", - "tracking_categories,delivery_address,vendor,company,accounting_period", - "tracking_categories,delivery_address,vendor,company,accounting_period,payment_term", - "tracking_categories,delivery_address,vendor,company,payment_term", - "tracking_categories,delivery_address,vendor,payment_term", - "tracking_categories,payment_term", - "tracking_categories,vendor", - "tracking_categories,vendor,accounting_period", - "tracking_categories,vendor,accounting_period,payment_term", - "tracking_categories,vendor,company", - "tracking_categories,vendor,company,accounting_period", - "tracking_categories,vendor,company,accounting_period,payment_term", - "tracking_categories,vendor,company,payment_term", - "tracking_categories,vendor,payment_term", - "vendor", - "vendor,accounting_period", - "vendor,accounting_period,payment_term", - "vendor,company", - "vendor,company,accounting_period", - "vendor,company,accounting_period,payment_term", - "vendor,company,payment_term", - "vendor,payment_term", -]); - -export declare namespace PurchaseOrdersRetrieveRequestExpand { - export type Raw = - | "accounting_period" - | "accounting_period,payment_term" - | "company" - | "company,accounting_period" - | "company,accounting_period,payment_term" - | "company,payment_term" - | "delivery_address" - | "delivery_address,accounting_period" - | "delivery_address,accounting_period,payment_term" - | "delivery_address,company" - | "delivery_address,company,accounting_period" - | "delivery_address,company,accounting_period,payment_term" - | "delivery_address,company,payment_term" - | "delivery_address,payment_term" - | "delivery_address,vendor" - | "delivery_address,vendor,accounting_period" - | "delivery_address,vendor,accounting_period,payment_term" - | "delivery_address,vendor,company" - | "delivery_address,vendor,company,accounting_period" - | "delivery_address,vendor,company,accounting_period,payment_term" - | "delivery_address,vendor,company,payment_term" - | "delivery_address,vendor,payment_term" - | "line_items" - | "line_items,accounting_period" - | "line_items,accounting_period,payment_term" - | "line_items,company" - | "line_items,company,accounting_period" - | "line_items,company,accounting_period,payment_term" - | "line_items,company,payment_term" - | "line_items,delivery_address" - | "line_items,delivery_address,accounting_period" - | "line_items,delivery_address,accounting_period,payment_term" - | "line_items,delivery_address,company" - | "line_items,delivery_address,company,accounting_period" - | "line_items,delivery_address,company,accounting_period,payment_term" - | "line_items,delivery_address,company,payment_term" - | "line_items,delivery_address,payment_term" - | "line_items,delivery_address,vendor" - | "line_items,delivery_address,vendor,accounting_period" - | "line_items,delivery_address,vendor,accounting_period,payment_term" - | "line_items,delivery_address,vendor,company" - | "line_items,delivery_address,vendor,company,accounting_period" - | "line_items,delivery_address,vendor,company,accounting_period,payment_term" - | "line_items,delivery_address,vendor,company,payment_term" - | "line_items,delivery_address,vendor,payment_term" - | "line_items,payment_term" - | "line_items,tracking_categories" - | "line_items,tracking_categories,accounting_period" - | "line_items,tracking_categories,accounting_period,payment_term" - | "line_items,tracking_categories,company" - | "line_items,tracking_categories,company,accounting_period" - | "line_items,tracking_categories,company,accounting_period,payment_term" - | "line_items,tracking_categories,company,payment_term" - | "line_items,tracking_categories,delivery_address" - | "line_items,tracking_categories,delivery_address,accounting_period" - | "line_items,tracking_categories,delivery_address,accounting_period,payment_term" - | "line_items,tracking_categories,delivery_address,company" - | "line_items,tracking_categories,delivery_address,company,accounting_period" - | "line_items,tracking_categories,delivery_address,company,accounting_period,payment_term" - | "line_items,tracking_categories,delivery_address,company,payment_term" - | "line_items,tracking_categories,delivery_address,payment_term" - | "line_items,tracking_categories,delivery_address,vendor" - | "line_items,tracking_categories,delivery_address,vendor,accounting_period" - | "line_items,tracking_categories,delivery_address,vendor,accounting_period,payment_term" - | "line_items,tracking_categories,delivery_address,vendor,company" - | "line_items,tracking_categories,delivery_address,vendor,company,accounting_period" - | "line_items,tracking_categories,delivery_address,vendor,company,accounting_period,payment_term" - | "line_items,tracking_categories,delivery_address,vendor,company,payment_term" - | "line_items,tracking_categories,delivery_address,vendor,payment_term" - | "line_items,tracking_categories,payment_term" - | "line_items,tracking_categories,vendor" - | "line_items,tracking_categories,vendor,accounting_period" - | "line_items,tracking_categories,vendor,accounting_period,payment_term" - | "line_items,tracking_categories,vendor,company" - | "line_items,tracking_categories,vendor,company,accounting_period" - | "line_items,tracking_categories,vendor,company,accounting_period,payment_term" - | "line_items,tracking_categories,vendor,company,payment_term" - | "line_items,tracking_categories,vendor,payment_term" - | "line_items,vendor" - | "line_items,vendor,accounting_period" - | "line_items,vendor,accounting_period,payment_term" - | "line_items,vendor,company" - | "line_items,vendor,company,accounting_period" - | "line_items,vendor,company,accounting_period,payment_term" - | "line_items,vendor,company,payment_term" - | "line_items,vendor,payment_term" - | "payment_term" - | "tracking_categories" - | "tracking_categories,accounting_period" - | "tracking_categories,accounting_period,payment_term" - | "tracking_categories,company" - | "tracking_categories,company,accounting_period" - | "tracking_categories,company,accounting_period,payment_term" - | "tracking_categories,company,payment_term" - | "tracking_categories,delivery_address" - | "tracking_categories,delivery_address,accounting_period" - | "tracking_categories,delivery_address,accounting_period,payment_term" - | "tracking_categories,delivery_address,company" - | "tracking_categories,delivery_address,company,accounting_period" - | "tracking_categories,delivery_address,company,accounting_period,payment_term" - | "tracking_categories,delivery_address,company,payment_term" - | "tracking_categories,delivery_address,payment_term" - | "tracking_categories,delivery_address,vendor" - | "tracking_categories,delivery_address,vendor,accounting_period" - | "tracking_categories,delivery_address,vendor,accounting_period,payment_term" - | "tracking_categories,delivery_address,vendor,company" - | "tracking_categories,delivery_address,vendor,company,accounting_period" - | "tracking_categories,delivery_address,vendor,company,accounting_period,payment_term" - | "tracking_categories,delivery_address,vendor,company,payment_term" - | "tracking_categories,delivery_address,vendor,payment_term" - | "tracking_categories,payment_term" - | "tracking_categories,vendor" - | "tracking_categories,vendor,accounting_period" - | "tracking_categories,vendor,accounting_period,payment_term" - | "tracking_categories,vendor,company" - | "tracking_categories,vendor,company,accounting_period" - | "tracking_categories,vendor,company,accounting_period,payment_term" - | "tracking_categories,vendor,company,payment_term" - | "tracking_categories,vendor,payment_term" - | "vendor" - | "vendor,accounting_period" - | "vendor,accounting_period,payment_term" - | "vendor,company" - | "vendor,company,accounting_period" - | "vendor,company,accounting_period,payment_term" - | "vendor,company,payment_term" - | "vendor,payment_term"; -} diff --git a/src/serialization/resources/accounting/resources/purchaseOrders/types/PurchaseOrdersRetrieveRequestExpandItem.ts b/src/serialization/resources/accounting/resources/purchaseOrders/types/PurchaseOrdersRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..1d116c432 --- /dev/null +++ b/src/serialization/resources/accounting/resources/purchaseOrders/types/PurchaseOrdersRetrieveRequestExpandItem.ts @@ -0,0 +1,29 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const PurchaseOrdersRetrieveRequestExpandItem: core.serialization.Schema< + serializers.accounting.PurchaseOrdersRetrieveRequestExpandItem.Raw, + Merge.accounting.PurchaseOrdersRetrieveRequestExpandItem +> = core.serialization.enum_([ + "accounting_period", + "company", + "delivery_address", + "line_items", + "payment_term", + "tracking_categories", + "vendor", +]); + +export declare namespace PurchaseOrdersRetrieveRequestExpandItem { + export type Raw = + | "accounting_period" + | "company" + | "delivery_address" + | "line_items" + | "payment_term" + | "tracking_categories" + | "vendor"; +} diff --git a/src/serialization/resources/accounting/resources/purchaseOrders/types/index.ts b/src/serialization/resources/accounting/resources/purchaseOrders/types/index.ts index fd510edde..ec095dff3 100644 --- a/src/serialization/resources/accounting/resources/purchaseOrders/types/index.ts +++ b/src/serialization/resources/accounting/resources/purchaseOrders/types/index.ts @@ -1,2 +1,3 @@ -export * from "./PurchaseOrdersListRequestExpand"; -export * from "./PurchaseOrdersRetrieveRequestExpand"; +export * from "./PurchaseOrdersBatchObjectsListRequestExpandItem"; +export * from "./PurchaseOrdersListRequestExpandItem"; +export * from "./PurchaseOrdersRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/accounting/resources/salesOrders/client/index.ts b/src/serialization/resources/accounting/resources/salesOrders/client/index.ts new file mode 100644 index 000000000..415726b7f --- /dev/null +++ b/src/serialization/resources/accounting/resources/salesOrders/client/index.ts @@ -0,0 +1 @@ +export * from "./requests"; diff --git a/src/serialization/resources/accounting/resources/salesOrders/client/requests/SalesOrderBulkRequest.ts b/src/serialization/resources/accounting/resources/salesOrders/client/requests/SalesOrderBulkRequest.ts new file mode 100644 index 000000000..dfd4d7b56 --- /dev/null +++ b/src/serialization/resources/accounting/resources/salesOrders/client/requests/SalesOrderBulkRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../../api/index"; +import * as core from "../../../../../../../core"; +import type * as serializers from "../../../../../../index"; +import { SalesOrderBatchItemRequest } from "../../../../types/SalesOrderBatchItemRequest"; + +export const SalesOrderBulkRequest: core.serialization.Schema< + serializers.accounting.SalesOrderBulkRequest.Raw, + Omit +> = core.serialization.object({ + batchItems: core.serialization.property("batch_items", core.serialization.list(SalesOrderBatchItemRequest)), +}); + +export declare namespace SalesOrderBulkRequest { + export interface Raw { + batch_items: SalesOrderBatchItemRequest.Raw[]; + } +} diff --git a/src/serialization/resources/accounting/resources/salesOrders/client/requests/index.ts b/src/serialization/resources/accounting/resources/salesOrders/client/requests/index.ts new file mode 100644 index 000000000..fba83ad2a --- /dev/null +++ b/src/serialization/resources/accounting/resources/salesOrders/client/requests/index.ts @@ -0,0 +1 @@ +export { SalesOrderBulkRequest } from "./SalesOrderBulkRequest"; diff --git a/src/serialization/resources/accounting/resources/salesOrders/index.ts b/src/serialization/resources/accounting/resources/salesOrders/index.ts new file mode 100644 index 000000000..d2ec2302c --- /dev/null +++ b/src/serialization/resources/accounting/resources/salesOrders/index.ts @@ -0,0 +1,2 @@ +export * from "./client"; +export * from "./types"; diff --git a/src/serialization/resources/accounting/resources/salesOrders/types/SalesOrdersBatchObjectsListRequestExpandItem.ts b/src/serialization/resources/accounting/resources/salesOrders/types/SalesOrdersBatchObjectsListRequestExpandItem.ts new file mode 100644 index 000000000..f1a6268b6 --- /dev/null +++ b/src/serialization/resources/accounting/resources/salesOrders/types/SalesOrdersBatchObjectsListRequestExpandItem.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const SalesOrdersBatchObjectsListRequestExpandItem: core.serialization.Schema< + serializers.accounting.SalesOrdersBatchObjectsListRequestExpandItem.Raw, + Merge.accounting.SalesOrdersBatchObjectsListRequestExpandItem +> = core.serialization.enum_([ + "company", + "customer", + "lines", + "payment_term", + "shipping_address", + "tracking_categories", +]); + +export declare namespace SalesOrdersBatchObjectsListRequestExpandItem { + export type Raw = "company" | "customer" | "lines" | "payment_term" | "shipping_address" | "tracking_categories"; +} diff --git a/src/serialization/resources/accounting/resources/salesOrders/types/SalesOrdersListRequestExpandItem.ts b/src/serialization/resources/accounting/resources/salesOrders/types/SalesOrdersListRequestExpandItem.ts new file mode 100644 index 000000000..26af7190f --- /dev/null +++ b/src/serialization/resources/accounting/resources/salesOrders/types/SalesOrdersListRequestExpandItem.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const SalesOrdersListRequestExpandItem: core.serialization.Schema< + serializers.accounting.SalesOrdersListRequestExpandItem.Raw, + Merge.accounting.SalesOrdersListRequestExpandItem +> = core.serialization.enum_([ + "company", + "customer", + "lines", + "payment_term", + "shipping_address", + "tracking_categories", +]); + +export declare namespace SalesOrdersListRequestExpandItem { + export type Raw = "company" | "customer" | "lines" | "payment_term" | "shipping_address" | "tracking_categories"; +} diff --git a/src/serialization/resources/accounting/resources/salesOrders/types/SalesOrdersRetrieveRequestExpandItem.ts b/src/serialization/resources/accounting/resources/salesOrders/types/SalesOrdersRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..5cf965c72 --- /dev/null +++ b/src/serialization/resources/accounting/resources/salesOrders/types/SalesOrdersRetrieveRequestExpandItem.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const SalesOrdersRetrieveRequestExpandItem: core.serialization.Schema< + serializers.accounting.SalesOrdersRetrieveRequestExpandItem.Raw, + Merge.accounting.SalesOrdersRetrieveRequestExpandItem +> = core.serialization.enum_([ + "company", + "customer", + "lines", + "payment_term", + "shipping_address", + "tracking_categories", +]); + +export declare namespace SalesOrdersRetrieveRequestExpandItem { + export type Raw = "company" | "customer" | "lines" | "payment_term" | "shipping_address" | "tracking_categories"; +} diff --git a/src/serialization/resources/accounting/resources/salesOrders/types/index.ts b/src/serialization/resources/accounting/resources/salesOrders/types/index.ts new file mode 100644 index 000000000..df5f74cbe --- /dev/null +++ b/src/serialization/resources/accounting/resources/salesOrders/types/index.ts @@ -0,0 +1,3 @@ +export * from "./SalesOrdersBatchObjectsListRequestExpandItem"; +export * from "./SalesOrdersListRequestExpandItem"; +export * from "./SalesOrdersRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/accounting/resources/transactions/types/TransactionsListRequestExpand.ts b/src/serialization/resources/accounting/resources/transactions/types/TransactionsListRequestExpand.ts deleted file mode 100644 index a808a6b10..000000000 --- a/src/serialization/resources/accounting/resources/transactions/types/TransactionsListRequestExpand.ts +++ /dev/null @@ -1,141 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const TransactionsListRequestExpand: core.serialization.Schema< - serializers.accounting.TransactionsListRequestExpand.Raw, - Merge.accounting.TransactionsListRequestExpand -> = core.serialization.enum_([ - "account", - "account,accounting_period", - "account,company", - "account,company,accounting_period", - "accounting_period", - "company", - "company,accounting_period", - "contact", - "contact,account", - "contact,account,accounting_period", - "contact,account,company", - "contact,account,company,accounting_period", - "contact,accounting_period", - "contact,company", - "contact,company,accounting_period", - "line_items", - "line_items,account", - "line_items,account,accounting_period", - "line_items,account,company", - "line_items,account,company,accounting_period", - "line_items,accounting_period", - "line_items,company", - "line_items,company,accounting_period", - "line_items,contact", - "line_items,contact,account", - "line_items,contact,account,accounting_period", - "line_items,contact,account,company", - "line_items,contact,account,company,accounting_period", - "line_items,contact,accounting_period", - "line_items,contact,company", - "line_items,contact,company,accounting_period", - "line_items,tracking_categories", - "line_items,tracking_categories,account", - "line_items,tracking_categories,account,accounting_period", - "line_items,tracking_categories,account,company", - "line_items,tracking_categories,account,company,accounting_period", - "line_items,tracking_categories,accounting_period", - "line_items,tracking_categories,company", - "line_items,tracking_categories,company,accounting_period", - "line_items,tracking_categories,contact", - "line_items,tracking_categories,contact,account", - "line_items,tracking_categories,contact,account,accounting_period", - "line_items,tracking_categories,contact,account,company", - "line_items,tracking_categories,contact,account,company,accounting_period", - "line_items,tracking_categories,contact,accounting_period", - "line_items,tracking_categories,contact,company", - "line_items,tracking_categories,contact,company,accounting_period", - "tracking_categories", - "tracking_categories,account", - "tracking_categories,account,accounting_period", - "tracking_categories,account,company", - "tracking_categories,account,company,accounting_period", - "tracking_categories,accounting_period", - "tracking_categories,company", - "tracking_categories,company,accounting_period", - "tracking_categories,contact", - "tracking_categories,contact,account", - "tracking_categories,contact,account,accounting_period", - "tracking_categories,contact,account,company", - "tracking_categories,contact,account,company,accounting_period", - "tracking_categories,contact,accounting_period", - "tracking_categories,contact,company", - "tracking_categories,contact,company,accounting_period", -]); - -export declare namespace TransactionsListRequestExpand { - export type Raw = - | "account" - | "account,accounting_period" - | "account,company" - | "account,company,accounting_period" - | "accounting_period" - | "company" - | "company,accounting_period" - | "contact" - | "contact,account" - | "contact,account,accounting_period" - | "contact,account,company" - | "contact,account,company,accounting_period" - | "contact,accounting_period" - | "contact,company" - | "contact,company,accounting_period" - | "line_items" - | "line_items,account" - | "line_items,account,accounting_period" - | "line_items,account,company" - | "line_items,account,company,accounting_period" - | "line_items,accounting_period" - | "line_items,company" - | "line_items,company,accounting_period" - | "line_items,contact" - | "line_items,contact,account" - | "line_items,contact,account,accounting_period" - | "line_items,contact,account,company" - | "line_items,contact,account,company,accounting_period" - | "line_items,contact,accounting_period" - | "line_items,contact,company" - | "line_items,contact,company,accounting_period" - | "line_items,tracking_categories" - | "line_items,tracking_categories,account" - | "line_items,tracking_categories,account,accounting_period" - | "line_items,tracking_categories,account,company" - | "line_items,tracking_categories,account,company,accounting_period" - | "line_items,tracking_categories,accounting_period" - | "line_items,tracking_categories,company" - | "line_items,tracking_categories,company,accounting_period" - | "line_items,tracking_categories,contact" - | "line_items,tracking_categories,contact,account" - | "line_items,tracking_categories,contact,account,accounting_period" - | "line_items,tracking_categories,contact,account,company" - | "line_items,tracking_categories,contact,account,company,accounting_period" - | "line_items,tracking_categories,contact,accounting_period" - | "line_items,tracking_categories,contact,company" - | "line_items,tracking_categories,contact,company,accounting_period" - | "tracking_categories" - | "tracking_categories,account" - | "tracking_categories,account,accounting_period" - | "tracking_categories,account,company" - | "tracking_categories,account,company,accounting_period" - | "tracking_categories,accounting_period" - | "tracking_categories,company" - | "tracking_categories,company,accounting_period" - | "tracking_categories,contact" - | "tracking_categories,contact,account" - | "tracking_categories,contact,account,accounting_period" - | "tracking_categories,contact,account,company" - | "tracking_categories,contact,account,company,accounting_period" - | "tracking_categories,contact,accounting_period" - | "tracking_categories,contact,company" - | "tracking_categories,contact,company,accounting_period"; -} diff --git a/src/serialization/resources/accounting/resources/transactions/types/TransactionsListRequestExpandItem.ts b/src/serialization/resources/accounting/resources/transactions/types/TransactionsListRequestExpandItem.ts new file mode 100644 index 000000000..fdbe7e3ea --- /dev/null +++ b/src/serialization/resources/accounting/resources/transactions/types/TransactionsListRequestExpandItem.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const TransactionsListRequestExpandItem: core.serialization.Schema< + serializers.accounting.TransactionsListRequestExpandItem.Raw, + Merge.accounting.TransactionsListRequestExpandItem +> = core.serialization.enum_([ + "account", + "accounting_period", + "company", + "contact", + "line_items", + "tracking_categories", +]); + +export declare namespace TransactionsListRequestExpandItem { + export type Raw = "account" | "accounting_period" | "company" | "contact" | "line_items" | "tracking_categories"; +} diff --git a/src/serialization/resources/accounting/resources/transactions/types/TransactionsRetrieveRequestExpand.ts b/src/serialization/resources/accounting/resources/transactions/types/TransactionsRetrieveRequestExpand.ts deleted file mode 100644 index f5aac3ea8..000000000 --- a/src/serialization/resources/accounting/resources/transactions/types/TransactionsRetrieveRequestExpand.ts +++ /dev/null @@ -1,141 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const TransactionsRetrieveRequestExpand: core.serialization.Schema< - serializers.accounting.TransactionsRetrieveRequestExpand.Raw, - Merge.accounting.TransactionsRetrieveRequestExpand -> = core.serialization.enum_([ - "account", - "account,accounting_period", - "account,company", - "account,company,accounting_period", - "accounting_period", - "company", - "company,accounting_period", - "contact", - "contact,account", - "contact,account,accounting_period", - "contact,account,company", - "contact,account,company,accounting_period", - "contact,accounting_period", - "contact,company", - "contact,company,accounting_period", - "line_items", - "line_items,account", - "line_items,account,accounting_period", - "line_items,account,company", - "line_items,account,company,accounting_period", - "line_items,accounting_period", - "line_items,company", - "line_items,company,accounting_period", - "line_items,contact", - "line_items,contact,account", - "line_items,contact,account,accounting_period", - "line_items,contact,account,company", - "line_items,contact,account,company,accounting_period", - "line_items,contact,accounting_period", - "line_items,contact,company", - "line_items,contact,company,accounting_period", - "line_items,tracking_categories", - "line_items,tracking_categories,account", - "line_items,tracking_categories,account,accounting_period", - "line_items,tracking_categories,account,company", - "line_items,tracking_categories,account,company,accounting_period", - "line_items,tracking_categories,accounting_period", - "line_items,tracking_categories,company", - "line_items,tracking_categories,company,accounting_period", - "line_items,tracking_categories,contact", - "line_items,tracking_categories,contact,account", - "line_items,tracking_categories,contact,account,accounting_period", - "line_items,tracking_categories,contact,account,company", - "line_items,tracking_categories,contact,account,company,accounting_period", - "line_items,tracking_categories,contact,accounting_period", - "line_items,tracking_categories,contact,company", - "line_items,tracking_categories,contact,company,accounting_period", - "tracking_categories", - "tracking_categories,account", - "tracking_categories,account,accounting_period", - "tracking_categories,account,company", - "tracking_categories,account,company,accounting_period", - "tracking_categories,accounting_period", - "tracking_categories,company", - "tracking_categories,company,accounting_period", - "tracking_categories,contact", - "tracking_categories,contact,account", - "tracking_categories,contact,account,accounting_period", - "tracking_categories,contact,account,company", - "tracking_categories,contact,account,company,accounting_period", - "tracking_categories,contact,accounting_period", - "tracking_categories,contact,company", - "tracking_categories,contact,company,accounting_period", -]); - -export declare namespace TransactionsRetrieveRequestExpand { - export type Raw = - | "account" - | "account,accounting_period" - | "account,company" - | "account,company,accounting_period" - | "accounting_period" - | "company" - | "company,accounting_period" - | "contact" - | "contact,account" - | "contact,account,accounting_period" - | "contact,account,company" - | "contact,account,company,accounting_period" - | "contact,accounting_period" - | "contact,company" - | "contact,company,accounting_period" - | "line_items" - | "line_items,account" - | "line_items,account,accounting_period" - | "line_items,account,company" - | "line_items,account,company,accounting_period" - | "line_items,accounting_period" - | "line_items,company" - | "line_items,company,accounting_period" - | "line_items,contact" - | "line_items,contact,account" - | "line_items,contact,account,accounting_period" - | "line_items,contact,account,company" - | "line_items,contact,account,company,accounting_period" - | "line_items,contact,accounting_period" - | "line_items,contact,company" - | "line_items,contact,company,accounting_period" - | "line_items,tracking_categories" - | "line_items,tracking_categories,account" - | "line_items,tracking_categories,account,accounting_period" - | "line_items,tracking_categories,account,company" - | "line_items,tracking_categories,account,company,accounting_period" - | "line_items,tracking_categories,accounting_period" - | "line_items,tracking_categories,company" - | "line_items,tracking_categories,company,accounting_period" - | "line_items,tracking_categories,contact" - | "line_items,tracking_categories,contact,account" - | "line_items,tracking_categories,contact,account,accounting_period" - | "line_items,tracking_categories,contact,account,company" - | "line_items,tracking_categories,contact,account,company,accounting_period" - | "line_items,tracking_categories,contact,accounting_period" - | "line_items,tracking_categories,contact,company" - | "line_items,tracking_categories,contact,company,accounting_period" - | "tracking_categories" - | "tracking_categories,account" - | "tracking_categories,account,accounting_period" - | "tracking_categories,account,company" - | "tracking_categories,account,company,accounting_period" - | "tracking_categories,accounting_period" - | "tracking_categories,company" - | "tracking_categories,company,accounting_period" - | "tracking_categories,contact" - | "tracking_categories,contact,account" - | "tracking_categories,contact,account,accounting_period" - | "tracking_categories,contact,account,company" - | "tracking_categories,contact,account,company,accounting_period" - | "tracking_categories,contact,accounting_period" - | "tracking_categories,contact,company" - | "tracking_categories,contact,company,accounting_period"; -} diff --git a/src/serialization/resources/accounting/resources/transactions/types/TransactionsRetrieveRequestExpandItem.ts b/src/serialization/resources/accounting/resources/transactions/types/TransactionsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..26a47bdc8 --- /dev/null +++ b/src/serialization/resources/accounting/resources/transactions/types/TransactionsRetrieveRequestExpandItem.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const TransactionsRetrieveRequestExpandItem: core.serialization.Schema< + serializers.accounting.TransactionsRetrieveRequestExpandItem.Raw, + Merge.accounting.TransactionsRetrieveRequestExpandItem +> = core.serialization.enum_([ + "account", + "accounting_period", + "company", + "contact", + "line_items", + "tracking_categories", +]); + +export declare namespace TransactionsRetrieveRequestExpandItem { + export type Raw = "account" | "accounting_period" | "company" | "contact" | "line_items" | "tracking_categories"; +} diff --git a/src/serialization/resources/accounting/resources/transactions/types/index.ts b/src/serialization/resources/accounting/resources/transactions/types/index.ts index d40b559e9..4c27ccfe5 100644 --- a/src/serialization/resources/accounting/resources/transactions/types/index.ts +++ b/src/serialization/resources/accounting/resources/transactions/types/index.ts @@ -1,2 +1,2 @@ -export * from "./TransactionsListRequestExpand"; -export * from "./TransactionsRetrieveRequestExpand"; +export * from "./TransactionsListRequestExpandItem"; +export * from "./TransactionsRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/accounting/resources/vendorCredits/client/requests/ApplyVendorCreditRequest.ts b/src/serialization/resources/accounting/resources/vendorCredits/client/requests/ApplyVendorCreditRequest.ts new file mode 100644 index 000000000..aea3def14 --- /dev/null +++ b/src/serialization/resources/accounting/resources/vendorCredits/client/requests/ApplyVendorCreditRequest.ts @@ -0,0 +1,22 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../../api/index"; +import * as core from "../../../../../../../core"; +import type * as serializers from "../../../../../../index"; + +export const ApplyVendorCreditRequest: core.serialization.Schema< + serializers.accounting.ApplyVendorCreditRequest.Raw, + Omit +> = core.serialization.object({ + invoice: core.serialization.string().optional(), + appliedDate: core.serialization.property("applied_date", core.serialization.date()), + appliedAmount: core.serialization.property("applied_amount", core.serialization.string()), +}); + +export declare namespace ApplyVendorCreditRequest { + export interface Raw { + invoice?: string | null; + applied_date: string; + applied_amount: string; + } +} diff --git a/src/serialization/resources/accounting/resources/vendorCredits/client/requests/PatchedVendorCreditEndpointRequest.ts b/src/serialization/resources/accounting/resources/vendorCredits/client/requests/PatchedVendorCreditEndpointRequest.ts new file mode 100644 index 000000000..e563df6dd --- /dev/null +++ b/src/serialization/resources/accounting/resources/vendorCredits/client/requests/PatchedVendorCreditEndpointRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../../api/index"; +import * as core from "../../../../../../../core"; +import type * as serializers from "../../../../../../index"; +import { PatchedVendorCreditRequest } from "../../../../types/PatchedVendorCreditRequest"; + +export const PatchedVendorCreditEndpointRequest: core.serialization.Schema< + serializers.accounting.PatchedVendorCreditEndpointRequest.Raw, + Omit +> = core.serialization.object({ + model: PatchedVendorCreditRequest, +}); + +export declare namespace PatchedVendorCreditEndpointRequest { + export interface Raw { + model: PatchedVendorCreditRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/resources/vendorCredits/client/requests/VendorCreditBulkRequest.ts b/src/serialization/resources/accounting/resources/vendorCredits/client/requests/VendorCreditBulkRequest.ts new file mode 100644 index 000000000..cafdafc9e --- /dev/null +++ b/src/serialization/resources/accounting/resources/vendorCredits/client/requests/VendorCreditBulkRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../../api/index"; +import * as core from "../../../../../../../core"; +import type * as serializers from "../../../../../../index"; +import { VendorCreditBatchItemRequest } from "../../../../types/VendorCreditBatchItemRequest"; + +export const VendorCreditBulkRequest: core.serialization.Schema< + serializers.accounting.VendorCreditBulkRequest.Raw, + Omit +> = core.serialization.object({ + batchItems: core.serialization.property("batch_items", core.serialization.list(VendorCreditBatchItemRequest)), +}); + +export declare namespace VendorCreditBulkRequest { + export interface Raw { + batch_items: VendorCreditBatchItemRequest.Raw[]; + } +} diff --git a/src/serialization/resources/accounting/resources/vendorCredits/client/requests/VendorCreditEndpointRequest.ts b/src/serialization/resources/accounting/resources/vendorCredits/client/requests/VendorCreditEndpointRequest.ts deleted file mode 100644 index 3f72a5ccc..000000000 --- a/src/serialization/resources/accounting/resources/vendorCredits/client/requests/VendorCreditEndpointRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { VendorCreditRequest } from "../../../../types/VendorCreditRequest"; - -export const VendorCreditEndpointRequest: core.serialization.Schema< - serializers.accounting.VendorCreditEndpointRequest.Raw, - Omit -> = core.serialization.object({ - model: VendorCreditRequest, -}); - -export declare namespace VendorCreditEndpointRequest { - export interface Raw { - model: VendorCreditRequest.Raw; - } -} diff --git a/src/serialization/resources/accounting/resources/vendorCredits/client/requests/index.ts b/src/serialization/resources/accounting/resources/vendorCredits/client/requests/index.ts index be42ee1ac..d3fd57fdf 100644 --- a/src/serialization/resources/accounting/resources/vendorCredits/client/requests/index.ts +++ b/src/serialization/resources/accounting/resources/vendorCredits/client/requests/index.ts @@ -1 +1,3 @@ -export { VendorCreditEndpointRequest } from "./VendorCreditEndpointRequest"; +export { ApplyVendorCreditRequest } from "./ApplyVendorCreditRequest"; +export { PatchedVendorCreditEndpointRequest } from "./PatchedVendorCreditEndpointRequest"; +export { VendorCreditBulkRequest } from "./VendorCreditBulkRequest"; diff --git a/src/serialization/resources/accounting/resources/vendorCredits/types/VendorCreditsBatchObjectsListRequestExpandItem.ts b/src/serialization/resources/accounting/resources/vendorCredits/types/VendorCreditsBatchObjectsListRequestExpandItem.ts new file mode 100644 index 000000000..30f9b07bc --- /dev/null +++ b/src/serialization/resources/accounting/resources/vendorCredits/types/VendorCreditsBatchObjectsListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const VendorCreditsBatchObjectsListRequestExpandItem: core.serialization.Schema< + serializers.accounting.VendorCreditsBatchObjectsListRequestExpandItem.Raw, + Merge.accounting.VendorCreditsBatchObjectsListRequestExpandItem +> = core.serialization.enum_(["accounting_period", "company", "lines", "tracking_categories", "vendor"]); + +export declare namespace VendorCreditsBatchObjectsListRequestExpandItem { + export type Raw = "accounting_period" | "company" | "lines" | "tracking_categories" | "vendor"; +} diff --git a/src/serialization/resources/accounting/resources/vendorCredits/types/VendorCreditsListRequestExpand.ts b/src/serialization/resources/accounting/resources/vendorCredits/types/VendorCreditsListRequestExpand.ts deleted file mode 100644 index 8764857c7..000000000 --- a/src/serialization/resources/accounting/resources/vendorCredits/types/VendorCreditsListRequestExpand.ts +++ /dev/null @@ -1,77 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const VendorCreditsListRequestExpand: core.serialization.Schema< - serializers.accounting.VendorCreditsListRequestExpand.Raw, - Merge.accounting.VendorCreditsListRequestExpand -> = core.serialization.enum_([ - "accounting_period", - "company", - "company,accounting_period", - "lines", - "lines,accounting_period", - "lines,company", - "lines,company,accounting_period", - "lines,tracking_categories", - "lines,tracking_categories,accounting_period", - "lines,tracking_categories,company", - "lines,tracking_categories,company,accounting_period", - "lines,tracking_categories,vendor", - "lines,tracking_categories,vendor,accounting_period", - "lines,tracking_categories,vendor,company", - "lines,tracking_categories,vendor,company,accounting_period", - "lines,vendor", - "lines,vendor,accounting_period", - "lines,vendor,company", - "lines,vendor,company,accounting_period", - "tracking_categories", - "tracking_categories,accounting_period", - "tracking_categories,company", - "tracking_categories,company,accounting_period", - "tracking_categories,vendor", - "tracking_categories,vendor,accounting_period", - "tracking_categories,vendor,company", - "tracking_categories,vendor,company,accounting_period", - "vendor", - "vendor,accounting_period", - "vendor,company", - "vendor,company,accounting_period", -]); - -export declare namespace VendorCreditsListRequestExpand { - export type Raw = - | "accounting_period" - | "company" - | "company,accounting_period" - | "lines" - | "lines,accounting_period" - | "lines,company" - | "lines,company,accounting_period" - | "lines,tracking_categories" - | "lines,tracking_categories,accounting_period" - | "lines,tracking_categories,company" - | "lines,tracking_categories,company,accounting_period" - | "lines,tracking_categories,vendor" - | "lines,tracking_categories,vendor,accounting_period" - | "lines,tracking_categories,vendor,company" - | "lines,tracking_categories,vendor,company,accounting_period" - | "lines,vendor" - | "lines,vendor,accounting_period" - | "lines,vendor,company" - | "lines,vendor,company,accounting_period" - | "tracking_categories" - | "tracking_categories,accounting_period" - | "tracking_categories,company" - | "tracking_categories,company,accounting_period" - | "tracking_categories,vendor" - | "tracking_categories,vendor,accounting_period" - | "tracking_categories,vendor,company" - | "tracking_categories,vendor,company,accounting_period" - | "vendor" - | "vendor,accounting_period" - | "vendor,company" - | "vendor,company,accounting_period"; -} diff --git a/src/serialization/resources/accounting/resources/vendorCredits/types/VendorCreditsListRequestExpandItem.ts b/src/serialization/resources/accounting/resources/vendorCredits/types/VendorCreditsListRequestExpandItem.ts new file mode 100644 index 000000000..91f8494cd --- /dev/null +++ b/src/serialization/resources/accounting/resources/vendorCredits/types/VendorCreditsListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const VendorCreditsListRequestExpandItem: core.serialization.Schema< + serializers.accounting.VendorCreditsListRequestExpandItem.Raw, + Merge.accounting.VendorCreditsListRequestExpandItem +> = core.serialization.enum_(["accounting_period", "company", "lines", "tracking_categories", "vendor"]); + +export declare namespace VendorCreditsListRequestExpandItem { + export type Raw = "accounting_period" | "company" | "lines" | "tracking_categories" | "vendor"; +} diff --git a/src/serialization/resources/accounting/resources/vendorCredits/types/VendorCreditsRetrieveRequestExpand.ts b/src/serialization/resources/accounting/resources/vendorCredits/types/VendorCreditsRetrieveRequestExpand.ts deleted file mode 100644 index 569108e3f..000000000 --- a/src/serialization/resources/accounting/resources/vendorCredits/types/VendorCreditsRetrieveRequestExpand.ts +++ /dev/null @@ -1,77 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const VendorCreditsRetrieveRequestExpand: core.serialization.Schema< - serializers.accounting.VendorCreditsRetrieveRequestExpand.Raw, - Merge.accounting.VendorCreditsRetrieveRequestExpand -> = core.serialization.enum_([ - "accounting_period", - "company", - "company,accounting_period", - "lines", - "lines,accounting_period", - "lines,company", - "lines,company,accounting_period", - "lines,tracking_categories", - "lines,tracking_categories,accounting_period", - "lines,tracking_categories,company", - "lines,tracking_categories,company,accounting_period", - "lines,tracking_categories,vendor", - "lines,tracking_categories,vendor,accounting_period", - "lines,tracking_categories,vendor,company", - "lines,tracking_categories,vendor,company,accounting_period", - "lines,vendor", - "lines,vendor,accounting_period", - "lines,vendor,company", - "lines,vendor,company,accounting_period", - "tracking_categories", - "tracking_categories,accounting_period", - "tracking_categories,company", - "tracking_categories,company,accounting_period", - "tracking_categories,vendor", - "tracking_categories,vendor,accounting_period", - "tracking_categories,vendor,company", - "tracking_categories,vendor,company,accounting_period", - "vendor", - "vendor,accounting_period", - "vendor,company", - "vendor,company,accounting_period", -]); - -export declare namespace VendorCreditsRetrieveRequestExpand { - export type Raw = - | "accounting_period" - | "company" - | "company,accounting_period" - | "lines" - | "lines,accounting_period" - | "lines,company" - | "lines,company,accounting_period" - | "lines,tracking_categories" - | "lines,tracking_categories,accounting_period" - | "lines,tracking_categories,company" - | "lines,tracking_categories,company,accounting_period" - | "lines,tracking_categories,vendor" - | "lines,tracking_categories,vendor,accounting_period" - | "lines,tracking_categories,vendor,company" - | "lines,tracking_categories,vendor,company,accounting_period" - | "lines,vendor" - | "lines,vendor,accounting_period" - | "lines,vendor,company" - | "lines,vendor,company,accounting_period" - | "tracking_categories" - | "tracking_categories,accounting_period" - | "tracking_categories,company" - | "tracking_categories,company,accounting_period" - | "tracking_categories,vendor" - | "tracking_categories,vendor,accounting_period" - | "tracking_categories,vendor,company" - | "tracking_categories,vendor,company,accounting_period" - | "vendor" - | "vendor,accounting_period" - | "vendor,company" - | "vendor,company,accounting_period"; -} diff --git a/src/serialization/resources/accounting/resources/vendorCredits/types/VendorCreditsRetrieveRequestExpandItem.ts b/src/serialization/resources/accounting/resources/vendorCredits/types/VendorCreditsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..adeb05bcb --- /dev/null +++ b/src/serialization/resources/accounting/resources/vendorCredits/types/VendorCreditsRetrieveRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const VendorCreditsRetrieveRequestExpandItem: core.serialization.Schema< + serializers.accounting.VendorCreditsRetrieveRequestExpandItem.Raw, + Merge.accounting.VendorCreditsRetrieveRequestExpandItem +> = core.serialization.enum_(["accounting_period", "company", "lines", "tracking_categories", "vendor"]); + +export declare namespace VendorCreditsRetrieveRequestExpandItem { + export type Raw = "accounting_period" | "company" | "lines" | "tracking_categories" | "vendor"; +} diff --git a/src/serialization/resources/accounting/resources/vendorCredits/types/index.ts b/src/serialization/resources/accounting/resources/vendorCredits/types/index.ts index 23d33b551..3a98c56d2 100644 --- a/src/serialization/resources/accounting/resources/vendorCredits/types/index.ts +++ b/src/serialization/resources/accounting/resources/vendorCredits/types/index.ts @@ -1,2 +1,3 @@ -export * from "./VendorCreditsListRequestExpand"; -export * from "./VendorCreditsRetrieveRequestExpand"; +export * from "./VendorCreditsBatchObjectsListRequestExpandItem"; +export * from "./VendorCreditsListRequestExpandItem"; +export * from "./VendorCreditsRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/accounting/types/Account.ts b/src/serialization/resources/accounting/types/Account.ts index 774c8223b..5cd8d3181 100644 --- a/src/serialization/resources/accounting/types/Account.ts +++ b/src/serialization/resources/accounting/types/Account.ts @@ -5,6 +5,7 @@ import * as core from "../../../../core"; import type * as serializers from "../../../index"; import { AccountAccountType } from "./AccountAccountType"; import { AccountClassification } from "./AccountClassification"; +import { AccountCompany } from "./AccountCompany"; import { AccountCurrency } from "./AccountCurrency"; import { AccountStatus } from "./AccountStatus"; import { RemoteData } from "./RemoteData"; @@ -25,7 +26,7 @@ export const Account: core.serialization.ObjectSchema | null; remote_data?: RemoteData.Raw[] | null; diff --git a/src/serialization/resources/accounting/types/AccountBatchItemRequest.ts b/src/serialization/resources/accounting/types/AccountBatchItemRequest.ts new file mode 100644 index 000000000..dfad20c29 --- /dev/null +++ b/src/serialization/resources/accounting/types/AccountBatchItemRequest.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { AccountEndpointRequest } from "./AccountEndpointRequest"; + +export const AccountBatchItemRequest: core.serialization.ObjectSchema< + serializers.accounting.AccountBatchItemRequest.Raw, + Merge.accounting.AccountBatchItemRequest +> = core.serialization.object({ + itemId: core.serialization.property("item_id", core.serialization.string()), + payload: AccountEndpointRequest, +}); + +export declare namespace AccountBatchItemRequest { + export interface Raw { + item_id: string; + payload: AccountEndpointRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/AccountCompany.ts b/src/serialization/resources/accounting/types/AccountCompany.ts new file mode 100644 index 000000000..6d778c26e --- /dev/null +++ b/src/serialization/resources/accounting/types/AccountCompany.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { CompanyInfo } from "./CompanyInfo"; + +export const AccountCompany: core.serialization.Schema< + serializers.accounting.AccountCompany.Raw, + Merge.accounting.AccountCompany +> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); + +export declare namespace AccountCompany { + export type Raw = string | CompanyInfo.Raw; +} diff --git a/src/serialization/resources/accounting/types/AccountDetails.ts b/src/serialization/resources/accounting/types/AccountDetails.ts index e28389812..df9fea105 100644 --- a/src/serialization/resources/accounting/types/AccountDetails.ts +++ b/src/serialization/resources/accounting/types/AccountDetails.ts @@ -3,7 +3,7 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; -import { AccountDetailsCategory } from "./AccountDetailsCategory"; +import { CategoryEnum } from "./CategoryEnum"; export const AccountDetails: core.serialization.ObjectSchema< serializers.accounting.AccountDetails.Raw, @@ -12,7 +12,7 @@ export const AccountDetails: core.serialization.ObjectSchema< id: core.serialization.string().optional(), integration: core.serialization.string().optional(), integrationSlug: core.serialization.property("integration_slug", core.serialization.string().optional()), - category: AccountDetailsCategory.optional(), + category: CategoryEnum.optional(), endUserOriginId: core.serialization.property("end_user_origin_id", core.serialization.string().optional()), endUserOrganizationName: core.serialization.property( "end_user_organization_name", @@ -31,7 +31,7 @@ export declare namespace AccountDetails { id?: string | null; integration?: string | null; integration_slug?: string | null; - category?: AccountDetailsCategory.Raw | null; + category?: CategoryEnum.Raw | null; end_user_origin_id?: string | null; end_user_organization_name?: string | null; end_user_email_address?: string | null; diff --git a/src/serialization/resources/accounting/types/AccountDetailsCategory.ts b/src/serialization/resources/accounting/types/AccountDetailsCategory.ts deleted file mode 100644 index a811f2f0a..000000000 --- a/src/serialization/resources/accounting/types/AccountDetailsCategory.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { CategoryEnum } from "./CategoryEnum"; - -export const AccountDetailsCategory: core.serialization.Schema< - serializers.accounting.AccountDetailsCategory.Raw, - Merge.accounting.AccountDetailsCategory -> = core.serialization.undiscriminatedUnion([CategoryEnum, core.serialization.string()]); - -export declare namespace AccountDetailsCategory { - export type Raw = CategoryEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/AccountEndpointRequest.ts b/src/serialization/resources/accounting/types/AccountEndpointRequest.ts new file mode 100644 index 000000000..f8bcee832 --- /dev/null +++ b/src/serialization/resources/accounting/types/AccountEndpointRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { AccountRequest } from "./AccountRequest"; + +export const AccountEndpointRequest: core.serialization.ObjectSchema< + serializers.accounting.AccountEndpointRequest.Raw, + Merge.accounting.AccountEndpointRequest +> = core.serialization.object({ + model: AccountRequest, +}); + +export declare namespace AccountEndpointRequest { + export interface Raw { + model: AccountRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/AccountRequest.ts b/src/serialization/resources/accounting/types/AccountRequest.ts index 04cca9176..9dcad586a 100644 --- a/src/serialization/resources/accounting/types/AccountRequest.ts +++ b/src/serialization/resources/accounting/types/AccountRequest.ts @@ -5,6 +5,7 @@ import * as core from "../../../../core"; import type * as serializers from "../../../index"; import { AccountRequestAccountType } from "./AccountRequestAccountType"; import { AccountRequestClassification } from "./AccountRequestClassification"; +import { AccountRequestCompany } from "./AccountRequestCompany"; import { AccountRequestCurrency } from "./AccountRequestCurrency"; import { AccountRequestStatus } from "./AccountRequestStatus"; @@ -22,7 +23,7 @@ export const AccountRequest: core.serialization.ObjectSchema< currency: AccountRequestCurrency.optional(), accountNumber: core.serialization.property("account_number", core.serialization.string().optional()), parentAccount: core.serialization.property("parent_account", core.serialization.string().optional()), - company: core.serialization.string().optional(), + company: AccountRequestCompany.optional(), integrationParams: core.serialization.property( "integration_params", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), @@ -45,7 +46,7 @@ export declare namespace AccountRequest { currency?: AccountRequestCurrency.Raw | null; account_number?: string | null; parent_account?: string | null; - company?: string | null; + company?: AccountRequestCompany.Raw | null; integration_params?: Record | null; linked_account_params?: Record | null; } diff --git a/src/serialization/resources/accounting/types/AccountRequestCompany.ts b/src/serialization/resources/accounting/types/AccountRequestCompany.ts new file mode 100644 index 000000000..7d547d867 --- /dev/null +++ b/src/serialization/resources/accounting/types/AccountRequestCompany.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { CompanyInfo } from "./CompanyInfo"; + +export const AccountRequestCompany: core.serialization.Schema< + serializers.accounting.AccountRequestCompany.Raw, + Merge.accounting.AccountRequestCompany +> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); + +export declare namespace AccountRequestCompany { + export type Raw = string | CompanyInfo.Raw; +} diff --git a/src/serialization/resources/accounting/types/AccountingAttachmentBatchItemRequest.ts b/src/serialization/resources/accounting/types/AccountingAttachmentBatchItemRequest.ts new file mode 100644 index 000000000..0b2ac1b77 --- /dev/null +++ b/src/serialization/resources/accounting/types/AccountingAttachmentBatchItemRequest.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { AccountingAttachmentEndpointRequest } from "./AccountingAttachmentEndpointRequest"; + +export const AccountingAttachmentBatchItemRequest: core.serialization.ObjectSchema< + serializers.accounting.AccountingAttachmentBatchItemRequest.Raw, + Merge.accounting.AccountingAttachmentBatchItemRequest +> = core.serialization.object({ + itemId: core.serialization.property("item_id", core.serialization.string()), + payload: AccountingAttachmentEndpointRequest, +}); + +export declare namespace AccountingAttachmentBatchItemRequest { + export interface Raw { + item_id: string; + payload: AccountingAttachmentEndpointRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/AccountingAttachmentEndpointRequest.ts b/src/serialization/resources/accounting/types/AccountingAttachmentEndpointRequest.ts new file mode 100644 index 000000000..baeca7165 --- /dev/null +++ b/src/serialization/resources/accounting/types/AccountingAttachmentEndpointRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { AccountingAttachmentRequest } from "./AccountingAttachmentRequest"; + +export const AccountingAttachmentEndpointRequest: core.serialization.ObjectSchema< + serializers.accounting.AccountingAttachmentEndpointRequest.Raw, + Merge.accounting.AccountingAttachmentEndpointRequest +> = core.serialization.object({ + model: AccountingAttachmentRequest, +}); + +export declare namespace AccountingAttachmentEndpointRequest { + export interface Raw { + model: AccountingAttachmentRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/BankFeedAccountBatchItemRequest.ts b/src/serialization/resources/accounting/types/BankFeedAccountBatchItemRequest.ts new file mode 100644 index 000000000..4a7643bc7 --- /dev/null +++ b/src/serialization/resources/accounting/types/BankFeedAccountBatchItemRequest.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { BankFeedAccountEndpointRequest } from "./BankFeedAccountEndpointRequest"; + +export const BankFeedAccountBatchItemRequest: core.serialization.ObjectSchema< + serializers.accounting.BankFeedAccountBatchItemRequest.Raw, + Merge.accounting.BankFeedAccountBatchItemRequest +> = core.serialization.object({ + itemId: core.serialization.property("item_id", core.serialization.string()), + payload: BankFeedAccountEndpointRequest, +}); + +export declare namespace BankFeedAccountBatchItemRequest { + export interface Raw { + item_id: string; + payload: BankFeedAccountEndpointRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/BankFeedAccountEndpointRequest.ts b/src/serialization/resources/accounting/types/BankFeedAccountEndpointRequest.ts new file mode 100644 index 000000000..75f2306cb --- /dev/null +++ b/src/serialization/resources/accounting/types/BankFeedAccountEndpointRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { BankFeedAccountRequest } from "./BankFeedAccountRequest"; + +export const BankFeedAccountEndpointRequest: core.serialization.ObjectSchema< + serializers.accounting.BankFeedAccountEndpointRequest.Raw, + Merge.accounting.BankFeedAccountEndpointRequest +> = core.serialization.object({ + model: BankFeedAccountRequest, +}); + +export declare namespace BankFeedAccountEndpointRequest { + export interface Raw { + model: BankFeedAccountRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/BankFeedTransactionBatchItemRequest.ts b/src/serialization/resources/accounting/types/BankFeedTransactionBatchItemRequest.ts new file mode 100644 index 000000000..fab9ad3d0 --- /dev/null +++ b/src/serialization/resources/accounting/types/BankFeedTransactionBatchItemRequest.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { BankFeedTransactionEndpointRequest } from "./BankFeedTransactionEndpointRequest"; + +export const BankFeedTransactionBatchItemRequest: core.serialization.ObjectSchema< + serializers.accounting.BankFeedTransactionBatchItemRequest.Raw, + Merge.accounting.BankFeedTransactionBatchItemRequest +> = core.serialization.object({ + itemId: core.serialization.property("item_id", core.serialization.string()), + payload: BankFeedTransactionEndpointRequest, +}); + +export declare namespace BankFeedTransactionBatchItemRequest { + export interface Raw { + item_id: string; + payload: BankFeedTransactionEndpointRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/BankFeedTransactionEndpointRequest.ts b/src/serialization/resources/accounting/types/BankFeedTransactionEndpointRequest.ts new file mode 100644 index 000000000..12258cdda --- /dev/null +++ b/src/serialization/resources/accounting/types/BankFeedTransactionEndpointRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { BankFeedTransactionRequestRequest } from "./BankFeedTransactionRequestRequest"; + +export const BankFeedTransactionEndpointRequest: core.serialization.ObjectSchema< + serializers.accounting.BankFeedTransactionEndpointRequest.Raw, + Merge.accounting.BankFeedTransactionEndpointRequest +> = core.serialization.object({ + model: BankFeedTransactionRequestRequest, +}); + +export declare namespace BankFeedTransactionEndpointRequest { + export interface Raw { + model: BankFeedTransactionRequestRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/ContactBatchItemRequest.ts b/src/serialization/resources/accounting/types/ContactBatchItemRequest.ts new file mode 100644 index 000000000..655321836 --- /dev/null +++ b/src/serialization/resources/accounting/types/ContactBatchItemRequest.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { ContactEndpointRequest } from "./ContactEndpointRequest"; + +export const ContactBatchItemRequest: core.serialization.ObjectSchema< + serializers.accounting.ContactBatchItemRequest.Raw, + Merge.accounting.ContactBatchItemRequest +> = core.serialization.object({ + itemId: core.serialization.property("item_id", core.serialization.string()), + payload: ContactEndpointRequest, +}); + +export declare namespace ContactBatchItemRequest { + export interface Raw { + item_id: string; + payload: ContactEndpointRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/ContactEndpointRequest.ts b/src/serialization/resources/accounting/types/ContactEndpointRequest.ts new file mode 100644 index 000000000..5aa75979a --- /dev/null +++ b/src/serialization/resources/accounting/types/ContactEndpointRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { ContactRequest } from "./ContactRequest"; + +export const ContactEndpointRequest: core.serialization.ObjectSchema< + serializers.accounting.ContactEndpointRequest.Raw, + Merge.accounting.ContactEndpointRequest +> = core.serialization.object({ + model: ContactRequest, +}); + +export declare namespace ContactEndpointRequest { + export interface Raw { + model: ContactRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/CreditNoteBatchItemRequest.ts b/src/serialization/resources/accounting/types/CreditNoteBatchItemRequest.ts new file mode 100644 index 000000000..36f5a7296 --- /dev/null +++ b/src/serialization/resources/accounting/types/CreditNoteBatchItemRequest.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { CreditNoteEndpointRequest } from "./CreditNoteEndpointRequest"; + +export const CreditNoteBatchItemRequest: core.serialization.ObjectSchema< + serializers.accounting.CreditNoteBatchItemRequest.Raw, + Merge.accounting.CreditNoteBatchItemRequest +> = core.serialization.object({ + itemId: core.serialization.property("item_id", core.serialization.string()), + payload: CreditNoteEndpointRequest, +}); + +export declare namespace CreditNoteBatchItemRequest { + export interface Raw { + item_id: string; + payload: CreditNoteEndpointRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/CreditNoteEndpointRequest.ts b/src/serialization/resources/accounting/types/CreditNoteEndpointRequest.ts new file mode 100644 index 000000000..f2949ed2b --- /dev/null +++ b/src/serialization/resources/accounting/types/CreditNoteEndpointRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { CreditNoteRequest } from "./CreditNoteRequest"; + +export const CreditNoteEndpointRequest: core.serialization.ObjectSchema< + serializers.accounting.CreditNoteEndpointRequest.Raw, + Merge.accounting.CreditNoteEndpointRequest +> = core.serialization.object({ + model: CreditNoteRequest, +}); + +export declare namespace CreditNoteEndpointRequest { + export interface Raw { + model: CreditNoteRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/CreditNoteLineItemRequestProject.ts b/src/serialization/resources/accounting/types/CreditNoteLineItemRequestProject.ts index 29458087a..8977763ae 100644 --- a/src/serialization/resources/accounting/types/CreditNoteLineItemRequestProject.ts +++ b/src/serialization/resources/accounting/types/CreditNoteLineItemRequestProject.ts @@ -3,13 +3,13 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; -import { Contact } from "./Contact"; +import { Project } from "./Project"; export const CreditNoteLineItemRequestProject: core.serialization.Schema< serializers.accounting.CreditNoteLineItemRequestProject.Raw, Merge.accounting.CreditNoteLineItemRequestProject -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), Project]); export declare namespace CreditNoteLineItemRequestProject { - export type Raw = string | Contact.Raw; + export type Raw = string | Project.Raw; } diff --git a/src/serialization/resources/accounting/types/DataPassthroughRequest.ts b/src/serialization/resources/accounting/types/DataPassthroughRequest.ts index f7b6734c9..bea54e42d 100644 --- a/src/serialization/resources/accounting/types/DataPassthroughRequest.ts +++ b/src/serialization/resources/accounting/types/DataPassthroughRequest.ts @@ -3,7 +3,7 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; -import { DataPassthroughRequestMethod } from "./DataPassthroughRequestMethod"; +import { MethodEnum } from "./MethodEnum"; import { MultipartFormFieldRequest } from "./MultipartFormFieldRequest"; import { RequestFormatEnum } from "./RequestFormatEnum"; @@ -11,7 +11,7 @@ export const DataPassthroughRequest: core.serialization.ObjectSchema< serializers.accounting.DataPassthroughRequest.Raw, Merge.accounting.DataPassthroughRequest > = core.serialization.object({ - method: DataPassthroughRequestMethod, + method: MethodEnum, path: core.serialization.string(), baseUrlOverride: core.serialization.property("base_url_override", core.serialization.string().optional()), data: core.serialization.string().optional(), @@ -26,7 +26,7 @@ export const DataPassthroughRequest: core.serialization.ObjectSchema< export declare namespace DataPassthroughRequest { export interface Raw { - method: DataPassthroughRequestMethod.Raw; + method: MethodEnum.Raw; path: string; base_url_override?: string | null; data?: string | null; diff --git a/src/serialization/resources/accounting/types/DataPassthroughRequestMethod.ts b/src/serialization/resources/accounting/types/DataPassthroughRequestMethod.ts deleted file mode 100644 index 137a96e09..000000000 --- a/src/serialization/resources/accounting/types/DataPassthroughRequestMethod.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { MethodEnum } from "./MethodEnum"; - -export const DataPassthroughRequestMethod: core.serialization.Schema< - serializers.accounting.DataPassthroughRequestMethod.Raw, - Merge.accounting.DataPassthroughRequestMethod -> = core.serialization.undiscriminatedUnion([MethodEnum, core.serialization.string()]); - -export declare namespace DataPassthroughRequestMethod { - export type Raw = MethodEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/ExpenseBatchItemRequest.ts b/src/serialization/resources/accounting/types/ExpenseBatchItemRequest.ts new file mode 100644 index 000000000..595bac9cf --- /dev/null +++ b/src/serialization/resources/accounting/types/ExpenseBatchItemRequest.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { ExpenseEndpointRequest } from "./ExpenseEndpointRequest"; + +export const ExpenseBatchItemRequest: core.serialization.ObjectSchema< + serializers.accounting.ExpenseBatchItemRequest.Raw, + Merge.accounting.ExpenseBatchItemRequest +> = core.serialization.object({ + itemId: core.serialization.property("item_id", core.serialization.string()), + payload: ExpenseEndpointRequest, +}); + +export declare namespace ExpenseBatchItemRequest { + export interface Raw { + item_id: string; + payload: ExpenseEndpointRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/ExpenseEndpointRequest.ts b/src/serialization/resources/accounting/types/ExpenseEndpointRequest.ts new file mode 100644 index 000000000..b99b5b393 --- /dev/null +++ b/src/serialization/resources/accounting/types/ExpenseEndpointRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { ExpenseRequest } from "./ExpenseRequest"; + +export const ExpenseEndpointRequest: core.serialization.ObjectSchema< + serializers.accounting.ExpenseEndpointRequest.Raw, + Merge.accounting.ExpenseEndpointRequest +> = core.serialization.object({ + model: ExpenseRequest, +}); + +export declare namespace ExpenseEndpointRequest { + export interface Raw { + model: ExpenseRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/ExpenseLineRequestProject.ts b/src/serialization/resources/accounting/types/ExpenseLineRequestProject.ts index 10a989f23..27a197e5b 100644 --- a/src/serialization/resources/accounting/types/ExpenseLineRequestProject.ts +++ b/src/serialization/resources/accounting/types/ExpenseLineRequestProject.ts @@ -3,13 +3,13 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; -import { Contact } from "./Contact"; +import { Project } from "./Project"; export const ExpenseLineRequestProject: core.serialization.Schema< serializers.accounting.ExpenseLineRequestProject.Raw, Merge.accounting.ExpenseLineRequestProject -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), Project]); export declare namespace ExpenseLineRequestProject { - export type Raw = string | Contact.Raw; + export type Raw = string | Project.Raw; } diff --git a/src/serialization/resources/accounting/types/ExpenseReport.ts b/src/serialization/resources/accounting/types/ExpenseReport.ts index 6c1899c0a..72ee735d4 100644 --- a/src/serialization/resources/accounting/types/ExpenseReport.ts +++ b/src/serialization/resources/accounting/types/ExpenseReport.ts @@ -3,12 +3,14 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; +import { ExpenseReportAccountingPeriod } from "./ExpenseReportAccountingPeriod"; import { ExpenseReportCompany } from "./ExpenseReportCompany"; -import { ExpenseReportLine } from "./ExpenseReportLine"; +import { ExpenseReportCurrency } from "./ExpenseReportCurrency"; +import { ExpenseReportEmployee } from "./ExpenseReportEmployee"; +import { ExpenseReportLinesItem } from "./ExpenseReportLinesItem"; import { ExpenseReportStatus } from "./ExpenseReportStatus"; import { RemoteData } from "./RemoteData"; import { RemoteField } from "./RemoteField"; -import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const ExpenseReport: core.serialization.ObjectSchema< serializers.accounting.ExpenseReport.Raw, @@ -20,13 +22,13 @@ export const ExpenseReport: core.serialization.ObjectSchema< modifiedAt: core.serialization.property("modified_at", core.serialization.date().optional()), reportDate: core.serialization.property("report_date", core.serialization.date().optional()), reportIdentifier: core.serialization.property("report_identifier", core.serialization.string().optional()), - employee: core.serialization.string().optional(), + employee: ExpenseReportEmployee.optional(), status: ExpenseReportStatus.optional(), totalAmount: core.serialization.property("total_amount", core.serialization.number().optional()), - lines: core.serialization.list(ExpenseReportLine).optional(), - currency: TransactionCurrencyEnum.optional(), + lines: core.serialization.list(ExpenseReportLinesItem).optional(), + currency: ExpenseReportCurrency.optional(), description: core.serialization.string().optional(), - accountingPeriod: core.serialization.property("accounting_period", core.serialization.string().optional()), + accountingPeriod: core.serialization.property("accounting_period", ExpenseReportAccountingPeriod.optional()), company: ExpenseReportCompany.optional(), trackingCategories: core.serialization.property( "tracking_categories", @@ -49,13 +51,13 @@ export declare namespace ExpenseReport { modified_at?: string | null; report_date?: string | null; report_identifier?: string | null; - employee?: string | null; + employee?: ExpenseReportEmployee.Raw | null; status?: ExpenseReportStatus.Raw | null; total_amount?: number | null; - lines?: ExpenseReportLine.Raw[] | null; - currency?: TransactionCurrencyEnum.Raw | null; + lines?: ExpenseReportLinesItem.Raw[] | null; + currency?: ExpenseReportCurrency.Raw | null; description?: string | null; - accounting_period?: string | null; + accounting_period?: ExpenseReportAccountingPeriod.Raw | null; company?: ExpenseReportCompany.Raw | null; tracking_categories: string[]; remote_was_deleted?: boolean | null; diff --git a/src/serialization/resources/accounting/types/ExpenseReportAccountingPeriod.ts b/src/serialization/resources/accounting/types/ExpenseReportAccountingPeriod.ts new file mode 100644 index 000000000..bf1801b3c --- /dev/null +++ b/src/serialization/resources/accounting/types/ExpenseReportAccountingPeriod.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { AccountingPeriod } from "./AccountingPeriod"; + +export const ExpenseReportAccountingPeriod: core.serialization.Schema< + serializers.accounting.ExpenseReportAccountingPeriod.Raw, + Merge.accounting.ExpenseReportAccountingPeriod +> = core.serialization.undiscriminatedUnion([core.serialization.string(), AccountingPeriod]); + +export declare namespace ExpenseReportAccountingPeriod { + export type Raw = string | AccountingPeriod.Raw; +} diff --git a/src/serialization/resources/accounting/types/ExpenseReportBatchItemRequest.ts b/src/serialization/resources/accounting/types/ExpenseReportBatchItemRequest.ts new file mode 100644 index 000000000..04c9c4b5c --- /dev/null +++ b/src/serialization/resources/accounting/types/ExpenseReportBatchItemRequest.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { ExpenseReportEndpointRequest } from "./ExpenseReportEndpointRequest"; + +export const ExpenseReportBatchItemRequest: core.serialization.ObjectSchema< + serializers.accounting.ExpenseReportBatchItemRequest.Raw, + Merge.accounting.ExpenseReportBatchItemRequest +> = core.serialization.object({ + itemId: core.serialization.property("item_id", core.serialization.string()), + payload: ExpenseReportEndpointRequest, +}); + +export declare namespace ExpenseReportBatchItemRequest { + export interface Raw { + item_id: string; + payload: ExpenseReportEndpointRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/ExpenseReportCurrency.ts b/src/serialization/resources/accounting/types/ExpenseReportCurrency.ts new file mode 100644 index 000000000..cfec40b4c --- /dev/null +++ b/src/serialization/resources/accounting/types/ExpenseReportCurrency.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; + +export const ExpenseReportCurrency: core.serialization.Schema< + serializers.accounting.ExpenseReportCurrency.Raw, + Merge.accounting.ExpenseReportCurrency +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); + +export declare namespace ExpenseReportCurrency { + export type Raw = TransactionCurrencyEnum.Raw | string; +} diff --git a/src/serialization/resources/accounting/types/ExpenseReportEmployee.ts b/src/serialization/resources/accounting/types/ExpenseReportEmployee.ts new file mode 100644 index 000000000..8f239b729 --- /dev/null +++ b/src/serialization/resources/accounting/types/ExpenseReportEmployee.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { Employee } from "./Employee"; + +export const ExpenseReportEmployee: core.serialization.Schema< + serializers.accounting.ExpenseReportEmployee.Raw, + Merge.accounting.ExpenseReportEmployee +> = core.serialization.undiscriminatedUnion([core.serialization.string(), Employee]); + +export declare namespace ExpenseReportEmployee { + export type Raw = string | Employee.Raw; +} diff --git a/src/serialization/resources/accounting/types/ExpenseReportEndpointRequest.ts b/src/serialization/resources/accounting/types/ExpenseReportEndpointRequest.ts new file mode 100644 index 000000000..2db816ebd --- /dev/null +++ b/src/serialization/resources/accounting/types/ExpenseReportEndpointRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { ExpenseReportRequest } from "./ExpenseReportRequest"; + +export const ExpenseReportEndpointRequest: core.serialization.ObjectSchema< + serializers.accounting.ExpenseReportEndpointRequest.Raw, + Merge.accounting.ExpenseReportEndpointRequest +> = core.serialization.object({ + model: ExpenseReportRequest, +}); + +export declare namespace ExpenseReportEndpointRequest { + export interface Raw { + model: ExpenseReportRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/ExpenseReportLine.ts b/src/serialization/resources/accounting/types/ExpenseReportLine.ts index 13c09c188..a92e56a8c 100644 --- a/src/serialization/resources/accounting/types/ExpenseReportLine.ts +++ b/src/serialization/resources/accounting/types/ExpenseReportLine.ts @@ -6,11 +6,11 @@ import type * as serializers from "../../../index"; import { ExpenseReportLineAccount } from "./ExpenseReportLineAccount"; import { ExpenseReportLineCompany } from "./ExpenseReportLineCompany"; import { ExpenseReportLineContact } from "./ExpenseReportLineContact"; +import { ExpenseReportLineCurrency } from "./ExpenseReportLineCurrency"; import { ExpenseReportLineEmployee } from "./ExpenseReportLineEmployee"; import { ExpenseReportLineProject } from "./ExpenseReportLineProject"; import { ExpenseReportLineTaxRate } from "./ExpenseReportLineTaxRate"; import { RemoteField } from "./RemoteField"; -import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const ExpenseReportLine: core.serialization.ObjectSchema< serializers.accounting.ExpenseReportLine.Raw, @@ -24,7 +24,7 @@ export const ExpenseReportLine: core.serialization.ObjectSchema< description: core.serialization.string().optional(), expenseDate: core.serialization.property("expense_date", core.serialization.date().optional()), amount: core.serialization.number().optional(), - currency: TransactionCurrencyEnum.optional(), + currency: ExpenseReportLineCurrency.optional(), exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), isBillable: core.serialization.property("is_billable", core.serialization.boolean().optional()), trackingCategories: core.serialization.property( @@ -55,7 +55,7 @@ export declare namespace ExpenseReportLine { description?: string | null; expense_date?: string | null; amount?: number | null; - currency?: TransactionCurrencyEnum.Raw | null; + currency?: ExpenseReportLineCurrency.Raw | null; exchange_rate?: string | null; is_billable?: boolean | null; tracking_categories: string[]; diff --git a/src/serialization/resources/accounting/types/ExpenseReportLineCurrency.ts b/src/serialization/resources/accounting/types/ExpenseReportLineCurrency.ts new file mode 100644 index 000000000..5d046272f --- /dev/null +++ b/src/serialization/resources/accounting/types/ExpenseReportLineCurrency.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; + +export const ExpenseReportLineCurrency: core.serialization.Schema< + serializers.accounting.ExpenseReportLineCurrency.Raw, + Merge.accounting.ExpenseReportLineCurrency +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); + +export declare namespace ExpenseReportLineCurrency { + export type Raw = TransactionCurrencyEnum.Raw | string; +} diff --git a/src/serialization/resources/accounting/types/ExpenseReportLineRequest.ts b/src/serialization/resources/accounting/types/ExpenseReportLineRequest.ts index b7b4d0696..aa0548e98 100644 --- a/src/serialization/resources/accounting/types/ExpenseReportLineRequest.ts +++ b/src/serialization/resources/accounting/types/ExpenseReportLineRequest.ts @@ -6,11 +6,11 @@ import type * as serializers from "../../../index"; import { ExpenseReportLineRequestAccount } from "./ExpenseReportLineRequestAccount"; import { ExpenseReportLineRequestCompany } from "./ExpenseReportLineRequestCompany"; import { ExpenseReportLineRequestContact } from "./ExpenseReportLineRequestContact"; +import { ExpenseReportLineRequestCurrency } from "./ExpenseReportLineRequestCurrency"; import { ExpenseReportLineRequestEmployee } from "./ExpenseReportLineRequestEmployee"; import { ExpenseReportLineRequestProject } from "./ExpenseReportLineRequestProject"; import { ExpenseReportLineRequestTaxRate } from "./ExpenseReportLineRequestTaxRate"; import { RemoteFieldRequest } from "./RemoteFieldRequest"; -import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const ExpenseReportLineRequest: core.serialization.ObjectSchema< serializers.accounting.ExpenseReportLineRequest.Raw, @@ -21,7 +21,7 @@ export const ExpenseReportLineRequest: core.serialization.ObjectSchema< description: core.serialization.string().optional(), expenseDate: core.serialization.property("expense_date", core.serialization.date().optional()), amount: core.serialization.number().optional(), - currency: TransactionCurrencyEnum.optional(), + currency: ExpenseReportLineRequestCurrency.optional(), exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), isBillable: core.serialization.property("is_billable", core.serialization.boolean().optional()), trackingCategories: core.serialization.property( @@ -56,7 +56,7 @@ export declare namespace ExpenseReportLineRequest { description?: string | null; expense_date?: string | null; amount?: number | null; - currency?: TransactionCurrencyEnum.Raw | null; + currency?: ExpenseReportLineRequestCurrency.Raw | null; exchange_rate?: string | null; is_billable?: boolean | null; tracking_categories: string[]; diff --git a/src/serialization/resources/accounting/types/ExpenseReportLineRequestCurrency.ts b/src/serialization/resources/accounting/types/ExpenseReportLineRequestCurrency.ts new file mode 100644 index 000000000..d32561736 --- /dev/null +++ b/src/serialization/resources/accounting/types/ExpenseReportLineRequestCurrency.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; + +export const ExpenseReportLineRequestCurrency: core.serialization.Schema< + serializers.accounting.ExpenseReportLineRequestCurrency.Raw, + Merge.accounting.ExpenseReportLineRequestCurrency +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); + +export declare namespace ExpenseReportLineRequestCurrency { + export type Raw = TransactionCurrencyEnum.Raw | string; +} diff --git a/src/serialization/resources/accounting/types/ExpenseReportLinesItem.ts b/src/serialization/resources/accounting/types/ExpenseReportLinesItem.ts new file mode 100644 index 000000000..f6ff3486c --- /dev/null +++ b/src/serialization/resources/accounting/types/ExpenseReportLinesItem.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { ExpenseReportLine } from "./ExpenseReportLine"; + +export const ExpenseReportLinesItem: core.serialization.Schema< + serializers.accounting.ExpenseReportLinesItem.Raw, + Merge.accounting.ExpenseReportLinesItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), ExpenseReportLine]); + +export declare namespace ExpenseReportLinesItem { + export type Raw = string | ExpenseReportLine.Raw; +} diff --git a/src/serialization/resources/accounting/types/ExpenseReportRequest.ts b/src/serialization/resources/accounting/types/ExpenseReportRequest.ts index 1bda9470d..74bb95a10 100644 --- a/src/serialization/resources/accounting/types/ExpenseReportRequest.ts +++ b/src/serialization/resources/accounting/types/ExpenseReportRequest.ts @@ -5,10 +5,10 @@ import * as core from "../../../../core"; import type * as serializers from "../../../index"; import { ExpenseReportRequestAccountingPeriod } from "./ExpenseReportRequestAccountingPeriod"; import { ExpenseReportRequestCompany } from "./ExpenseReportRequestCompany"; +import { ExpenseReportRequestCurrency } from "./ExpenseReportRequestCurrency"; import { ExpenseReportRequestEmployee } from "./ExpenseReportRequestEmployee"; -import { ExpenseReportStatusEnum } from "./ExpenseReportStatusEnum"; +import { ExpenseReportRequestStatus } from "./ExpenseReportRequestStatus"; import { RemoteFieldRequest } from "./RemoteFieldRequest"; -import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const ExpenseReportRequest: core.serialization.ObjectSchema< serializers.accounting.ExpenseReportRequest.Raw, @@ -17,9 +17,9 @@ export const ExpenseReportRequest: core.serialization.ObjectSchema< reportDate: core.serialization.property("report_date", core.serialization.date().optional()), reportIdentifier: core.serialization.property("report_identifier", core.serialization.string().optional()), employee: ExpenseReportRequestEmployee.optional(), - status: ExpenseReportStatusEnum.optional(), + status: ExpenseReportRequestStatus.optional(), totalAmount: core.serialization.property("total_amount", core.serialization.number().optional()), - currency: TransactionCurrencyEnum.optional(), + currency: ExpenseReportRequestCurrency.optional(), description: core.serialization.string().optional(), accountingPeriod: core.serialization.property("accounting_period", ExpenseReportRequestAccountingPeriod.optional()), company: ExpenseReportRequestCompany.optional(), @@ -43,9 +43,9 @@ export declare namespace ExpenseReportRequest { report_date?: string | null; report_identifier?: string | null; employee?: ExpenseReportRequestEmployee.Raw | null; - status?: ExpenseReportStatusEnum.Raw | null; + status?: ExpenseReportRequestStatus.Raw | null; total_amount?: number | null; - currency?: TransactionCurrencyEnum.Raw | null; + currency?: ExpenseReportRequestCurrency.Raw | null; description?: string | null; accounting_period?: ExpenseReportRequestAccountingPeriod.Raw | null; company?: ExpenseReportRequestCompany.Raw | null; diff --git a/src/serialization/resources/accounting/types/ExpenseReportRequestCurrency.ts b/src/serialization/resources/accounting/types/ExpenseReportRequestCurrency.ts new file mode 100644 index 000000000..48866faec --- /dev/null +++ b/src/serialization/resources/accounting/types/ExpenseReportRequestCurrency.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; + +export const ExpenseReportRequestCurrency: core.serialization.Schema< + serializers.accounting.ExpenseReportRequestCurrency.Raw, + Merge.accounting.ExpenseReportRequestCurrency +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); + +export declare namespace ExpenseReportRequestCurrency { + export type Raw = TransactionCurrencyEnum.Raw | string; +} diff --git a/src/serialization/resources/accounting/types/ExpenseReportRequestStatus.ts b/src/serialization/resources/accounting/types/ExpenseReportRequestStatus.ts new file mode 100644 index 000000000..ae1d13a9f --- /dev/null +++ b/src/serialization/resources/accounting/types/ExpenseReportRequestStatus.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { ExpenseReportStatusEnum } from "./ExpenseReportStatusEnum"; + +export const ExpenseReportRequestStatus: core.serialization.Schema< + serializers.accounting.ExpenseReportRequestStatus.Raw, + Merge.accounting.ExpenseReportRequestStatus +> = core.serialization.undiscriminatedUnion([ExpenseReportStatusEnum, core.serialization.string()]); + +export declare namespace ExpenseReportRequestStatus { + export type Raw = ExpenseReportStatusEnum.Raw | string; +} diff --git a/src/serialization/resources/accounting/types/ExternalTargetFieldApiResponse.ts b/src/serialization/resources/accounting/types/ExternalTargetFieldApiResponse.ts index 7a5a88cf3..8962fa691 100644 --- a/src/serialization/resources/accounting/types/ExternalTargetFieldApiResponse.ts +++ b/src/serialization/resources/accounting/types/ExternalTargetFieldApiResponse.ts @@ -34,6 +34,11 @@ export const ExternalTargetFieldApiResponse: core.serialization.ObjectSchema< "PurchaseOrder", core.serialization.list(ExternalTargetFieldApi).optional(), ), + salesOrder: core.serialization.property("SalesOrder", core.serialization.list(ExternalTargetFieldApi).optional()), + itemFulfillment: core.serialization.property( + "ItemFulfillment", + core.serialization.list(ExternalTargetFieldApi).optional(), + ), expenseReport: core.serialization.property( "ExpenseReport", core.serialization.list(ExternalTargetFieldApi).optional(), @@ -88,6 +93,8 @@ export declare namespace ExternalTargetFieldApiResponse { CreditNote?: ExternalTargetFieldApi.Raw[] | null; Item?: ExternalTargetFieldApi.Raw[] | null; PurchaseOrder?: ExternalTargetFieldApi.Raw[] | null; + SalesOrder?: ExternalTargetFieldApi.Raw[] | null; + ItemFulfillment?: ExternalTargetFieldApi.Raw[] | null; ExpenseReport?: ExternalTargetFieldApi.Raw[] | null; TrackingCategory?: ExternalTargetFieldApi.Raw[] | null; JournalEntry?: ExternalTargetFieldApi.Raw[] | null; diff --git a/src/serialization/resources/accounting/types/FieldMappingApiInstance.ts b/src/serialization/resources/accounting/types/FieldMappingApiInstance.ts index 15eb7e9dd..5c9382fad 100644 --- a/src/serialization/resources/accounting/types/FieldMappingApiInstance.ts +++ b/src/serialization/resources/accounting/types/FieldMappingApiInstance.ts @@ -14,6 +14,7 @@ export const FieldMappingApiInstance: core.serialization.ObjectSchema< isIntegrationWide: core.serialization.property("is_integration_wide", core.serialization.boolean().optional()), targetField: core.serialization.property("target_field", FieldMappingApiInstanceTargetField.optional()), remoteField: core.serialization.property("remote_field", FieldMappingApiInstanceRemoteField.optional()), + jmesPath: core.serialization.property("jmes_path", core.serialization.string().optional()), }); export declare namespace FieldMappingApiInstance { @@ -22,5 +23,6 @@ export declare namespace FieldMappingApiInstance { is_integration_wide?: boolean | null; target_field?: FieldMappingApiInstanceTargetField.Raw | null; remote_field?: FieldMappingApiInstanceRemoteField.Raw | null; + jmes_path?: string | null; } } diff --git a/src/serialization/resources/accounting/types/FieldMappingApiInstanceResponse.ts b/src/serialization/resources/accounting/types/FieldMappingApiInstanceResponse.ts index 736070bd8..1bba14229 100644 --- a/src/serialization/resources/accounting/types/FieldMappingApiInstanceResponse.ts +++ b/src/serialization/resources/accounting/types/FieldMappingApiInstanceResponse.ts @@ -37,6 +37,11 @@ export const FieldMappingApiInstanceResponse: core.serialization.ObjectSchema< "PurchaseOrder", core.serialization.list(FieldMappingApiInstance).optional(), ), + salesOrder: core.serialization.property("SalesOrder", core.serialization.list(FieldMappingApiInstance).optional()), + itemFulfillment: core.serialization.property( + "ItemFulfillment", + core.serialization.list(FieldMappingApiInstance).optional(), + ), expenseReport: core.serialization.property( "ExpenseReport", core.serialization.list(FieldMappingApiInstance).optional(), @@ -97,6 +102,8 @@ export declare namespace FieldMappingApiInstanceResponse { CreditNote?: FieldMappingApiInstance.Raw[] | null; Item?: FieldMappingApiInstance.Raw[] | null; PurchaseOrder?: FieldMappingApiInstance.Raw[] | null; + SalesOrder?: FieldMappingApiInstance.Raw[] | null; + ItemFulfillment?: FieldMappingApiInstance.Raw[] | null; ExpenseReport?: FieldMappingApiInstance.Raw[] | null; TrackingCategory?: FieldMappingApiInstance.Raw[] | null; JournalEntry?: FieldMappingApiInstance.Raw[] | null; diff --git a/src/serialization/resources/accounting/types/Invoice.ts b/src/serialization/resources/accounting/types/Invoice.ts index 9a9405c23..f9fe7cdf4 100644 --- a/src/serialization/resources/accounting/types/Invoice.ts +++ b/src/serialization/resources/accounting/types/Invoice.ts @@ -13,6 +13,7 @@ import { InvoiceLineItem } from "./InvoiceLineItem"; import { InvoicePaymentsItem } from "./InvoicePaymentsItem"; import { InvoicePaymentTerm } from "./InvoicePaymentTerm"; import { InvoicePurchaseOrdersItem } from "./InvoicePurchaseOrdersItem"; +import { InvoiceSalesOrdersItem } from "./InvoiceSalesOrdersItem"; import { InvoiceStatus } from "./InvoiceStatus"; import { InvoiceTrackingCategoriesItem } from "./InvoiceTrackingCategoriesItem"; import { InvoiceType } from "./InvoiceType"; @@ -53,6 +54,10 @@ export const Invoice: core.serialization.ObjectSchema = core.serialization.object({ + itemId: core.serialization.property("item_id", core.serialization.string()), + payload: InvoiceEndpointRequest, +}); + +export declare namespace InvoiceBatchItemRequest { + export interface Raw { + item_id: string; + payload: InvoiceEndpointRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/InvoiceEndpointRequest.ts b/src/serialization/resources/accounting/types/InvoiceEndpointRequest.ts new file mode 100644 index 000000000..9d8005c3b --- /dev/null +++ b/src/serialization/resources/accounting/types/InvoiceEndpointRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { InvoiceRequest } from "./InvoiceRequest"; + +export const InvoiceEndpointRequest: core.serialization.ObjectSchema< + serializers.accounting.InvoiceEndpointRequest.Raw, + Merge.accounting.InvoiceEndpointRequest +> = core.serialization.object({ + model: InvoiceRequest, +}); + +export declare namespace InvoiceEndpointRequest { + export interface Raw { + model: InvoiceRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/InvoiceSalesOrdersItem.ts b/src/serialization/resources/accounting/types/InvoiceSalesOrdersItem.ts new file mode 100644 index 000000000..6b393d5be --- /dev/null +++ b/src/serialization/resources/accounting/types/InvoiceSalesOrdersItem.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { SalesOrder } from "./SalesOrder"; + +export const InvoiceSalesOrdersItem: core.serialization.Schema< + serializers.accounting.InvoiceSalesOrdersItem.Raw, + Merge.accounting.InvoiceSalesOrdersItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), SalesOrder]); + +export declare namespace InvoiceSalesOrdersItem { + export type Raw = string | SalesOrder.Raw; +} diff --git a/src/serialization/resources/accounting/types/ItemBatchItemRequest.ts b/src/serialization/resources/accounting/types/ItemBatchItemRequest.ts new file mode 100644 index 000000000..06e0ab355 --- /dev/null +++ b/src/serialization/resources/accounting/types/ItemBatchItemRequest.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { ItemEndpointRequest } from "./ItemEndpointRequest"; + +export const ItemBatchItemRequest: core.serialization.ObjectSchema< + serializers.accounting.ItemBatchItemRequest.Raw, + Merge.accounting.ItemBatchItemRequest +> = core.serialization.object({ + itemId: core.serialization.property("item_id", core.serialization.string()), + payload: ItemEndpointRequest, +}); + +export declare namespace ItemBatchItemRequest { + export interface Raw { + item_id: string; + payload: ItemEndpointRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/ItemEndpointRequest.ts b/src/serialization/resources/accounting/types/ItemEndpointRequest.ts new file mode 100644 index 000000000..4bd509b95 --- /dev/null +++ b/src/serialization/resources/accounting/types/ItemEndpointRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { ItemRequestRequest } from "./ItemRequestRequest"; + +export const ItemEndpointRequest: core.serialization.ObjectSchema< + serializers.accounting.ItemEndpointRequest.Raw, + Merge.accounting.ItemEndpointRequest +> = core.serialization.object({ + model: ItemRequestRequest, +}); + +export declare namespace ItemEndpointRequest { + export interface Raw { + model: ItemRequestRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/ItemFulfillment.ts b/src/serialization/resources/accounting/types/ItemFulfillment.ts new file mode 100644 index 000000000..c3bc313ce --- /dev/null +++ b/src/serialization/resources/accounting/types/ItemFulfillment.ts @@ -0,0 +1,60 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { ItemFulfillmentCompany } from "./ItemFulfillmentCompany"; +import { ItemFulfillmentCustomer } from "./ItemFulfillmentCustomer"; +import { ItemFulfillmentLinesItem } from "./ItemFulfillmentLinesItem"; +import { ItemFulfillmentSalesOrder } from "./ItemFulfillmentSalesOrder"; +import { ItemFulfillmentStatus } from "./ItemFulfillmentStatus"; +import { RemoteData } from "./RemoteData"; +import { RemoteField } from "./RemoteField"; + +export const ItemFulfillment: core.serialization.ObjectSchema< + serializers.accounting.ItemFulfillment.Raw, + Merge.accounting.ItemFulfillment +> = core.serialization.object({ + id: core.serialization.string().optional(), + remoteId: core.serialization.property("remote_id", core.serialization.string().optional()), + createdAt: core.serialization.property("created_at", core.serialization.date().optional()), + modifiedAt: core.serialization.property("modified_at", core.serialization.date().optional()), + salesOrder: core.serialization.property("sales_order", ItemFulfillmentSalesOrder.optional()), + fulfillmentDate: core.serialization.property("fulfillment_date", core.serialization.date().optional()), + customer: ItemFulfillmentCustomer.optional(), + company: ItemFulfillmentCompany.optional(), + status: ItemFulfillmentStatus.optional(), + memo: core.serialization.string().optional(), + lines: core.serialization.list(ItemFulfillmentLinesItem).optional(), + remoteCreatedAt: core.serialization.property("remote_created_at", core.serialization.date().optional()), + remoteUpdatedAt: core.serialization.property("remote_updated_at", core.serialization.date().optional()), + remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), + fieldMappings: core.serialization.property( + "field_mappings", + core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), + ), + remoteData: core.serialization.property("remote_data", core.serialization.list(RemoteData).optional()), + remoteFields: core.serialization.property("remote_fields", core.serialization.list(RemoteField).optional()), +}); + +export declare namespace ItemFulfillment { + export interface Raw { + id?: string | null; + remote_id?: string | null; + created_at?: string | null; + modified_at?: string | null; + sales_order?: ItemFulfillmentSalesOrder.Raw | null; + fulfillment_date?: string | null; + customer?: ItemFulfillmentCustomer.Raw | null; + company?: ItemFulfillmentCompany.Raw | null; + status?: ItemFulfillmentStatus.Raw | null; + memo?: string | null; + lines?: ItemFulfillmentLinesItem.Raw[] | null; + remote_created_at?: string | null; + remote_updated_at?: string | null; + remote_was_deleted?: boolean | null; + field_mappings?: Record | null; + remote_data?: RemoteData.Raw[] | null; + remote_fields?: RemoteField.Raw[] | null; + } +} diff --git a/src/serialization/resources/accounting/types/ItemFulfillmentBatchItemRequest.ts b/src/serialization/resources/accounting/types/ItemFulfillmentBatchItemRequest.ts new file mode 100644 index 000000000..9abbaffec --- /dev/null +++ b/src/serialization/resources/accounting/types/ItemFulfillmentBatchItemRequest.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { ItemFulfillmentEndpointRequest } from "./ItemFulfillmentEndpointRequest"; + +export const ItemFulfillmentBatchItemRequest: core.serialization.ObjectSchema< + serializers.accounting.ItemFulfillmentBatchItemRequest.Raw, + Merge.accounting.ItemFulfillmentBatchItemRequest +> = core.serialization.object({ + itemId: core.serialization.property("item_id", core.serialization.string()), + payload: ItemFulfillmentEndpointRequest, +}); + +export declare namespace ItemFulfillmentBatchItemRequest { + export interface Raw { + item_id: string; + payload: ItemFulfillmentEndpointRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/ItemFulfillmentCompany.ts b/src/serialization/resources/accounting/types/ItemFulfillmentCompany.ts new file mode 100644 index 000000000..5071efe75 --- /dev/null +++ b/src/serialization/resources/accounting/types/ItemFulfillmentCompany.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { CompanyInfo } from "./CompanyInfo"; + +export const ItemFulfillmentCompany: core.serialization.Schema< + serializers.accounting.ItemFulfillmentCompany.Raw, + Merge.accounting.ItemFulfillmentCompany +> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); + +export declare namespace ItemFulfillmentCompany { + export type Raw = string | CompanyInfo.Raw; +} diff --git a/src/serialization/resources/accounting/types/ItemFulfillmentCustomer.ts b/src/serialization/resources/accounting/types/ItemFulfillmentCustomer.ts new file mode 100644 index 000000000..b5d9f970b --- /dev/null +++ b/src/serialization/resources/accounting/types/ItemFulfillmentCustomer.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { Contact } from "./Contact"; + +export const ItemFulfillmentCustomer: core.serialization.Schema< + serializers.accounting.ItemFulfillmentCustomer.Raw, + Merge.accounting.ItemFulfillmentCustomer +> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); + +export declare namespace ItemFulfillmentCustomer { + export type Raw = string | Contact.Raw; +} diff --git a/src/serialization/resources/accounting/types/ItemFulfillmentEndpointRequest.ts b/src/serialization/resources/accounting/types/ItemFulfillmentEndpointRequest.ts new file mode 100644 index 000000000..77ebad958 --- /dev/null +++ b/src/serialization/resources/accounting/types/ItemFulfillmentEndpointRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { ItemFulfillmentRequest } from "./ItemFulfillmentRequest"; + +export const ItemFulfillmentEndpointRequest: core.serialization.ObjectSchema< + serializers.accounting.ItemFulfillmentEndpointRequest.Raw, + Merge.accounting.ItemFulfillmentEndpointRequest +> = core.serialization.object({ + model: ItemFulfillmentRequest, +}); + +export declare namespace ItemFulfillmentEndpointRequest { + export interface Raw { + model: ItemFulfillmentRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/ItemFulfillmentLine.ts b/src/serialization/resources/accounting/types/ItemFulfillmentLine.ts new file mode 100644 index 000000000..037a2b2aa --- /dev/null +++ b/src/serialization/resources/accounting/types/ItemFulfillmentLine.ts @@ -0,0 +1,47 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { ItemFulfillmentLineItem } from "./ItemFulfillmentLineItem"; +import { ItemFulfillmentLineSalesOrderLine } from "./ItemFulfillmentLineSalesOrderLine"; +import { ItemFulfillmentLineTrackingCategoriesItem } from "./ItemFulfillmentLineTrackingCategoriesItem"; +import { RemoteField } from "./RemoteField"; + +export const ItemFulfillmentLine: core.serialization.ObjectSchema< + serializers.accounting.ItemFulfillmentLine.Raw, + Merge.accounting.ItemFulfillmentLine +> = core.serialization.object({ + id: core.serialization.string().optional(), + remoteId: core.serialization.property("remote_id", core.serialization.string().optional()), + createdAt: core.serialization.property("created_at", core.serialization.date().optional()), + modifiedAt: core.serialization.property("modified_at", core.serialization.date().optional()), + item: ItemFulfillmentLineItem.optional(), + salesOrderLine: core.serialization.property("sales_order_line", ItemFulfillmentLineSalesOrderLine.optional()), + quantity: core.serialization.string().optional(), + trackingCategories: core.serialization.property( + "tracking_categories", + core.serialization.list(ItemFulfillmentLineTrackingCategoriesItem.optional()).optional(), + ), + remoteCreatedAt: core.serialization.property("remote_created_at", core.serialization.date().optional()), + remoteUpdatedAt: core.serialization.property("remote_updated_at", core.serialization.date().optional()), + remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), + remoteFields: core.serialization.property("remote_fields", core.serialization.list(RemoteField).optional()), +}); + +export declare namespace ItemFulfillmentLine { + export interface Raw { + id?: string | null; + remote_id?: string | null; + created_at?: string | null; + modified_at?: string | null; + item?: ItemFulfillmentLineItem.Raw | null; + sales_order_line?: ItemFulfillmentLineSalesOrderLine.Raw | null; + quantity?: string | null; + tracking_categories?: (ItemFulfillmentLineTrackingCategoriesItem.Raw | null | undefined)[] | null; + remote_created_at?: string | null; + remote_updated_at?: string | null; + remote_was_deleted?: boolean | null; + remote_fields?: RemoteField.Raw[] | null; + } +} diff --git a/src/serialization/resources/accounting/types/ItemFulfillmentLineItem.ts b/src/serialization/resources/accounting/types/ItemFulfillmentLineItem.ts new file mode 100644 index 000000000..736faeaae --- /dev/null +++ b/src/serialization/resources/accounting/types/ItemFulfillmentLineItem.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { Item } from "./Item"; + +export const ItemFulfillmentLineItem: core.serialization.Schema< + serializers.accounting.ItemFulfillmentLineItem.Raw, + Merge.accounting.ItemFulfillmentLineItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), Item]); + +export declare namespace ItemFulfillmentLineItem { + export type Raw = string | Item.Raw; +} diff --git a/src/serialization/resources/accounting/types/ItemFulfillmentLineRequest.ts b/src/serialization/resources/accounting/types/ItemFulfillmentLineRequest.ts new file mode 100644 index 000000000..f63124df4 --- /dev/null +++ b/src/serialization/resources/accounting/types/ItemFulfillmentLineRequest.ts @@ -0,0 +1,52 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { ItemFulfillmentLineRequestItem } from "./ItemFulfillmentLineRequestItem"; +import { ItemFulfillmentLineRequestSalesOrderLine } from "./ItemFulfillmentLineRequestSalesOrderLine"; +import { ItemFulfillmentLineRequestTrackingCategoriesItem } from "./ItemFulfillmentLineRequestTrackingCategoriesItem"; +import { RemoteFieldRequest } from "./RemoteFieldRequest"; + +export const ItemFulfillmentLineRequest: core.serialization.ObjectSchema< + serializers.accounting.ItemFulfillmentLineRequest.Raw, + Merge.accounting.ItemFulfillmentLineRequest +> = core.serialization.object({ + remoteId: core.serialization.property("remote_id", core.serialization.string().optional()), + item: ItemFulfillmentLineRequestItem.optional(), + salesOrderLine: core.serialization.property( + "sales_order_line", + ItemFulfillmentLineRequestSalesOrderLine.optional(), + ), + quantity: core.serialization.string().optional(), + trackingCategories: core.serialization.property( + "tracking_categories", + core.serialization.list(ItemFulfillmentLineRequestTrackingCategoriesItem.optional()).optional(), + ), + remoteCreatedAt: core.serialization.property("remote_created_at", core.serialization.date().optional()), + remoteUpdatedAt: core.serialization.property("remote_updated_at", core.serialization.date().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(), + ), + remoteFields: core.serialization.property("remote_fields", core.serialization.list(RemoteFieldRequest).optional()), +}); + +export declare namespace ItemFulfillmentLineRequest { + export interface Raw { + remote_id?: string | null; + item?: ItemFulfillmentLineRequestItem.Raw | null; + sales_order_line?: ItemFulfillmentLineRequestSalesOrderLine.Raw | null; + quantity?: string | null; + tracking_categories?: (ItemFulfillmentLineRequestTrackingCategoriesItem.Raw | null | undefined)[] | null; + remote_created_at?: string | null; + remote_updated_at?: string | null; + integration_params?: Record | null; + linked_account_params?: Record | null; + remote_fields?: RemoteFieldRequest.Raw[] | null; + } +} diff --git a/src/serialization/resources/accounting/types/ItemFulfillmentLineRequestItem.ts b/src/serialization/resources/accounting/types/ItemFulfillmentLineRequestItem.ts new file mode 100644 index 000000000..6abec2198 --- /dev/null +++ b/src/serialization/resources/accounting/types/ItemFulfillmentLineRequestItem.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { Item } from "./Item"; + +export const ItemFulfillmentLineRequestItem: core.serialization.Schema< + serializers.accounting.ItemFulfillmentLineRequestItem.Raw, + Merge.accounting.ItemFulfillmentLineRequestItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), Item]); + +export declare namespace ItemFulfillmentLineRequestItem { + export type Raw = string | Item.Raw; +} diff --git a/src/serialization/resources/accounting/types/ItemFulfillmentLineRequestSalesOrderLine.ts b/src/serialization/resources/accounting/types/ItemFulfillmentLineRequestSalesOrderLine.ts new file mode 100644 index 000000000..b73366448 --- /dev/null +++ b/src/serialization/resources/accounting/types/ItemFulfillmentLineRequestSalesOrderLine.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { SalesOrderLine } from "./SalesOrderLine"; + +export const ItemFulfillmentLineRequestSalesOrderLine: core.serialization.Schema< + serializers.accounting.ItemFulfillmentLineRequestSalesOrderLine.Raw, + Merge.accounting.ItemFulfillmentLineRequestSalesOrderLine +> = core.serialization.undiscriminatedUnion([core.serialization.string(), SalesOrderLine]); + +export declare namespace ItemFulfillmentLineRequestSalesOrderLine { + export type Raw = string | SalesOrderLine.Raw; +} diff --git a/src/serialization/resources/accounting/types/ItemFulfillmentLineRequestTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/ItemFulfillmentLineRequestTrackingCategoriesItem.ts new file mode 100644 index 000000000..940a04e1b --- /dev/null +++ b/src/serialization/resources/accounting/types/ItemFulfillmentLineRequestTrackingCategoriesItem.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { TrackingCategory } from "./TrackingCategory"; + +export const ItemFulfillmentLineRequestTrackingCategoriesItem: core.serialization.Schema< + serializers.accounting.ItemFulfillmentLineRequestTrackingCategoriesItem.Raw, + Merge.accounting.ItemFulfillmentLineRequestTrackingCategoriesItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); + +export declare namespace ItemFulfillmentLineRequestTrackingCategoriesItem { + export type Raw = string | TrackingCategory.Raw; +} diff --git a/src/serialization/resources/accounting/types/ItemFulfillmentLineSalesOrderLine.ts b/src/serialization/resources/accounting/types/ItemFulfillmentLineSalesOrderLine.ts new file mode 100644 index 000000000..bcddcef17 --- /dev/null +++ b/src/serialization/resources/accounting/types/ItemFulfillmentLineSalesOrderLine.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { SalesOrderLine } from "./SalesOrderLine"; + +export const ItemFulfillmentLineSalesOrderLine: core.serialization.Schema< + serializers.accounting.ItemFulfillmentLineSalesOrderLine.Raw, + Merge.accounting.ItemFulfillmentLineSalesOrderLine +> = core.serialization.undiscriminatedUnion([core.serialization.string(), SalesOrderLine]); + +export declare namespace ItemFulfillmentLineSalesOrderLine { + export type Raw = string | SalesOrderLine.Raw; +} diff --git a/src/serialization/resources/accounting/types/ItemFulfillmentLineTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/ItemFulfillmentLineTrackingCategoriesItem.ts new file mode 100644 index 000000000..0cfcde07e --- /dev/null +++ b/src/serialization/resources/accounting/types/ItemFulfillmentLineTrackingCategoriesItem.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { TrackingCategory } from "./TrackingCategory"; + +export const ItemFulfillmentLineTrackingCategoriesItem: core.serialization.Schema< + serializers.accounting.ItemFulfillmentLineTrackingCategoriesItem.Raw, + Merge.accounting.ItemFulfillmentLineTrackingCategoriesItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); + +export declare namespace ItemFulfillmentLineTrackingCategoriesItem { + export type Raw = string | TrackingCategory.Raw; +} diff --git a/src/serialization/resources/accounting/types/ItemFulfillmentLinesItem.ts b/src/serialization/resources/accounting/types/ItemFulfillmentLinesItem.ts new file mode 100644 index 000000000..f6f4b42a2 --- /dev/null +++ b/src/serialization/resources/accounting/types/ItemFulfillmentLinesItem.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { ItemFulfillmentLine } from "./ItemFulfillmentLine"; + +export const ItemFulfillmentLinesItem: core.serialization.Schema< + serializers.accounting.ItemFulfillmentLinesItem.Raw, + Merge.accounting.ItemFulfillmentLinesItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), ItemFulfillmentLine]); + +export declare namespace ItemFulfillmentLinesItem { + export type Raw = string | ItemFulfillmentLine.Raw; +} diff --git a/src/serialization/resources/accounting/types/ItemFulfillmentRequest.ts b/src/serialization/resources/accounting/types/ItemFulfillmentRequest.ts new file mode 100644 index 000000000..b8fc1dbae --- /dev/null +++ b/src/serialization/resources/accounting/types/ItemFulfillmentRequest.ts @@ -0,0 +1,45 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { ItemFulfillmentRequestCompany } from "./ItemFulfillmentRequestCompany"; +import { ItemFulfillmentRequestCustomer } from "./ItemFulfillmentRequestCustomer"; +import { ItemFulfillmentRequestSalesOrder } from "./ItemFulfillmentRequestSalesOrder"; +import { ItemFulfillmentRequestStatus } from "./ItemFulfillmentRequestStatus"; +import { RemoteFieldRequest } from "./RemoteFieldRequest"; + +export const ItemFulfillmentRequest: core.serialization.ObjectSchema< + serializers.accounting.ItemFulfillmentRequest.Raw, + Merge.accounting.ItemFulfillmentRequest +> = core.serialization.object({ + salesOrder: core.serialization.property("sales_order", ItemFulfillmentRequestSalesOrder.optional()), + fulfillmentDate: core.serialization.property("fulfillment_date", core.serialization.date().optional()), + customer: ItemFulfillmentRequestCustomer.optional(), + company: ItemFulfillmentRequestCompany.optional(), + status: ItemFulfillmentRequestStatus.optional(), + memo: core.serialization.string().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(), + ), + remoteFields: core.serialization.property("remote_fields", core.serialization.list(RemoteFieldRequest).optional()), +}); + +export declare namespace ItemFulfillmentRequest { + export interface Raw { + sales_order?: ItemFulfillmentRequestSalesOrder.Raw | null; + fulfillment_date?: string | null; + customer?: ItemFulfillmentRequestCustomer.Raw | null; + company?: ItemFulfillmentRequestCompany.Raw | null; + status?: ItemFulfillmentRequestStatus.Raw | null; + memo?: string | null; + integration_params?: Record | null; + linked_account_params?: Record | null; + remote_fields?: RemoteFieldRequest.Raw[] | null; + } +} diff --git a/src/serialization/resources/accounting/types/ItemFulfillmentRequestCompany.ts b/src/serialization/resources/accounting/types/ItemFulfillmentRequestCompany.ts new file mode 100644 index 000000000..b6c491700 --- /dev/null +++ b/src/serialization/resources/accounting/types/ItemFulfillmentRequestCompany.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { CompanyInfo } from "./CompanyInfo"; + +export const ItemFulfillmentRequestCompany: core.serialization.Schema< + serializers.accounting.ItemFulfillmentRequestCompany.Raw, + Merge.accounting.ItemFulfillmentRequestCompany +> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); + +export declare namespace ItemFulfillmentRequestCompany { + export type Raw = string | CompanyInfo.Raw; +} diff --git a/src/serialization/resources/accounting/types/ItemFulfillmentRequestCustomer.ts b/src/serialization/resources/accounting/types/ItemFulfillmentRequestCustomer.ts new file mode 100644 index 000000000..1ffca7858 --- /dev/null +++ b/src/serialization/resources/accounting/types/ItemFulfillmentRequestCustomer.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { Contact } from "./Contact"; + +export const ItemFulfillmentRequestCustomer: core.serialization.Schema< + serializers.accounting.ItemFulfillmentRequestCustomer.Raw, + Merge.accounting.ItemFulfillmentRequestCustomer +> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); + +export declare namespace ItemFulfillmentRequestCustomer { + export type Raw = string | Contact.Raw; +} diff --git a/src/serialization/resources/accounting/types/ItemFulfillmentRequestSalesOrder.ts b/src/serialization/resources/accounting/types/ItemFulfillmentRequestSalesOrder.ts new file mode 100644 index 000000000..772cc199f --- /dev/null +++ b/src/serialization/resources/accounting/types/ItemFulfillmentRequestSalesOrder.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { SalesOrder } from "./SalesOrder"; + +export const ItemFulfillmentRequestSalesOrder: core.serialization.Schema< + serializers.accounting.ItemFulfillmentRequestSalesOrder.Raw, + Merge.accounting.ItemFulfillmentRequestSalesOrder +> = core.serialization.undiscriminatedUnion([core.serialization.string(), SalesOrder]); + +export declare namespace ItemFulfillmentRequestSalesOrder { + export type Raw = string | SalesOrder.Raw; +} diff --git a/src/serialization/resources/accounting/types/ItemFulfillmentRequestStatus.ts b/src/serialization/resources/accounting/types/ItemFulfillmentRequestStatus.ts new file mode 100644 index 000000000..47fb3029f --- /dev/null +++ b/src/serialization/resources/accounting/types/ItemFulfillmentRequestStatus.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { ItemFulfillmentStatusEnum } from "./ItemFulfillmentStatusEnum"; + +export const ItemFulfillmentRequestStatus: core.serialization.Schema< + serializers.accounting.ItemFulfillmentRequestStatus.Raw, + Merge.accounting.ItemFulfillmentRequestStatus +> = core.serialization.undiscriminatedUnion([ItemFulfillmentStatusEnum, core.serialization.string()]); + +export declare namespace ItemFulfillmentRequestStatus { + export type Raw = ItemFulfillmentStatusEnum.Raw | string; +} diff --git a/src/serialization/resources/accounting/types/ItemFulfillmentResponse.ts b/src/serialization/resources/accounting/types/ItemFulfillmentResponse.ts new file mode 100644 index 000000000..2bb432b21 --- /dev/null +++ b/src/serialization/resources/accounting/types/ItemFulfillmentResponse.ts @@ -0,0 +1,28 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { DebugModeLog } from "./DebugModeLog"; +import { ErrorValidationProblem } from "./ErrorValidationProblem"; +import { ItemFulfillment } from "./ItemFulfillment"; +import { WarningValidationProblem } from "./WarningValidationProblem"; + +export const ItemFulfillmentResponse: core.serialization.ObjectSchema< + serializers.accounting.ItemFulfillmentResponse.Raw, + Merge.accounting.ItemFulfillmentResponse +> = core.serialization.object({ + model: ItemFulfillment, + warnings: core.serialization.list(WarningValidationProblem), + errors: core.serialization.list(ErrorValidationProblem), + logs: core.serialization.list(DebugModeLog).optional(), +}); + +export declare namespace ItemFulfillmentResponse { + export interface Raw { + model: ItemFulfillment.Raw; + warnings: WarningValidationProblem.Raw[]; + errors: ErrorValidationProblem.Raw[]; + logs?: DebugModeLog.Raw[] | null; + } +} diff --git a/src/serialization/resources/accounting/types/ItemFulfillmentSalesOrder.ts b/src/serialization/resources/accounting/types/ItemFulfillmentSalesOrder.ts new file mode 100644 index 000000000..2f23397be --- /dev/null +++ b/src/serialization/resources/accounting/types/ItemFulfillmentSalesOrder.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { SalesOrder } from "./SalesOrder"; + +export const ItemFulfillmentSalesOrder: core.serialization.Schema< + serializers.accounting.ItemFulfillmentSalesOrder.Raw, + Merge.accounting.ItemFulfillmentSalesOrder +> = core.serialization.undiscriminatedUnion([core.serialization.string(), SalesOrder]); + +export declare namespace ItemFulfillmentSalesOrder { + export type Raw = string | SalesOrder.Raw; +} diff --git a/src/serialization/resources/accounting/types/ItemFulfillmentStatus.ts b/src/serialization/resources/accounting/types/ItemFulfillmentStatus.ts new file mode 100644 index 000000000..39f936e76 --- /dev/null +++ b/src/serialization/resources/accounting/types/ItemFulfillmentStatus.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { ItemFulfillmentStatusEnum } from "./ItemFulfillmentStatusEnum"; + +export const ItemFulfillmentStatus: core.serialization.Schema< + serializers.accounting.ItemFulfillmentStatus.Raw, + Merge.accounting.ItemFulfillmentStatus +> = core.serialization.undiscriminatedUnion([ItemFulfillmentStatusEnum, core.serialization.string()]); + +export declare namespace ItemFulfillmentStatus { + export type Raw = ItemFulfillmentStatusEnum.Raw | string; +} diff --git a/src/serialization/resources/accounting/types/ItemFulfillmentStatusEnum.ts b/src/serialization/resources/accounting/types/ItemFulfillmentStatusEnum.ts new file mode 100644 index 000000000..f24d53c5b --- /dev/null +++ b/src/serialization/resources/accounting/types/ItemFulfillmentStatusEnum.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; + +export const ItemFulfillmentStatusEnum: core.serialization.Schema< + serializers.accounting.ItemFulfillmentStatusEnum.Raw, + Merge.accounting.ItemFulfillmentStatusEnum +> = core.serialization.enum_(["DRAFT", "IN_PROGRESS", "SHIPPED", "CANCELLED"]); + +export declare namespace ItemFulfillmentStatusEnum { + export type Raw = "DRAFT" | "IN_PROGRESS" | "SHIPPED" | "CANCELLED"; +} diff --git a/src/serialization/resources/accounting/types/JournalEntryBatchItemRequest.ts b/src/serialization/resources/accounting/types/JournalEntryBatchItemRequest.ts new file mode 100644 index 000000000..7868e6a3f --- /dev/null +++ b/src/serialization/resources/accounting/types/JournalEntryBatchItemRequest.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { JournalEntryEndpointRequest } from "./JournalEntryEndpointRequest"; + +export const JournalEntryBatchItemRequest: core.serialization.ObjectSchema< + serializers.accounting.JournalEntryBatchItemRequest.Raw, + Merge.accounting.JournalEntryBatchItemRequest +> = core.serialization.object({ + itemId: core.serialization.property("item_id", core.serialization.string()), + payload: JournalEntryEndpointRequest, +}); + +export declare namespace JournalEntryBatchItemRequest { + export interface Raw { + item_id: string; + payload: JournalEntryEndpointRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/JournalEntryEndpointRequest.ts b/src/serialization/resources/accounting/types/JournalEntryEndpointRequest.ts new file mode 100644 index 000000000..53e584f74 --- /dev/null +++ b/src/serialization/resources/accounting/types/JournalEntryEndpointRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { JournalEntryRequest } from "./JournalEntryRequest"; + +export const JournalEntryEndpointRequest: core.serialization.ObjectSchema< + serializers.accounting.JournalEntryEndpointRequest.Raw, + Merge.accounting.JournalEntryEndpointRequest +> = core.serialization.object({ + model: JournalEntryRequest, +}); + +export declare namespace JournalEntryEndpointRequest { + export interface Raw { + model: JournalEntryRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/PaginatedItemFulfillmentList.ts b/src/serialization/resources/accounting/types/PaginatedItemFulfillmentList.ts new file mode 100644 index 000000000..9e53e3d59 --- /dev/null +++ b/src/serialization/resources/accounting/types/PaginatedItemFulfillmentList.ts @@ -0,0 +1,23 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { ItemFulfillment } from "./ItemFulfillment"; + +export const PaginatedItemFulfillmentList: core.serialization.ObjectSchema< + serializers.accounting.PaginatedItemFulfillmentList.Raw, + Merge.accounting.PaginatedItemFulfillmentList +> = core.serialization.object({ + next: core.serialization.string().optional(), + previous: core.serialization.string().optional(), + results: core.serialization.list(ItemFulfillment).optional(), +}); + +export declare namespace PaginatedItemFulfillmentList { + export interface Raw { + next?: string | null; + previous?: string | null; + results?: ItemFulfillment.Raw[] | null; + } +} diff --git a/src/serialization/resources/accounting/types/PaginatedSalesOrderList.ts b/src/serialization/resources/accounting/types/PaginatedSalesOrderList.ts new file mode 100644 index 000000000..074dc2f3b --- /dev/null +++ b/src/serialization/resources/accounting/types/PaginatedSalesOrderList.ts @@ -0,0 +1,23 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { SalesOrder } from "./SalesOrder"; + +export const PaginatedSalesOrderList: core.serialization.ObjectSchema< + serializers.accounting.PaginatedSalesOrderList.Raw, + Merge.accounting.PaginatedSalesOrderList +> = core.serialization.object({ + next: core.serialization.string().optional(), + previous: core.serialization.string().optional(), + results: core.serialization.list(SalesOrder).optional(), +}); + +export declare namespace PaginatedSalesOrderList { + export interface Raw { + next?: string | null; + previous?: string | null; + results?: SalesOrder.Raw[] | null; + } +} diff --git a/src/serialization/resources/accounting/types/PatchedContactRequest.ts b/src/serialization/resources/accounting/types/PatchedContactRequest.ts index 0c62524ed..c49e6691c 100644 --- a/src/serialization/resources/accounting/types/PatchedContactRequest.ts +++ b/src/serialization/resources/accounting/types/PatchedContactRequest.ts @@ -4,7 +4,8 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; import { AccountingPhoneNumberRequest } from "./AccountingPhoneNumberRequest"; -import { PatchedContactRequestAddressesItem } from "./PatchedContactRequestAddressesItem"; +import { AddressRequest } from "./AddressRequest"; +import { PatchedContactRequestStatus } from "./PatchedContactRequestStatus"; import { RemoteFieldRequest } from "./RemoteFieldRequest"; export const PatchedContactRequest: core.serialization.ObjectSchema< @@ -16,10 +17,10 @@ export const PatchedContactRequest: core.serialization.ObjectSchema< isCustomer: core.serialization.property("is_customer", core.serialization.boolean().optional()), emailAddress: core.serialization.property("email_address", core.serialization.string().optional()), taxNumber: core.serialization.property("tax_number", core.serialization.string().optional()), - status: core.serialization.string().optional(), + status: PatchedContactRequestStatus.optional(), currency: core.serialization.string().optional(), company: core.serialization.string().optional(), - addresses: core.serialization.list(PatchedContactRequestAddressesItem.optional()).optional(), + addresses: core.serialization.list(AddressRequest).optional(), phoneNumbers: core.serialization.property( "phone_numbers", core.serialization.list(AccountingPhoneNumberRequest).optional(), @@ -42,10 +43,10 @@ export declare namespace PatchedContactRequest { is_customer?: boolean | null; email_address?: string | null; tax_number?: string | null; - status?: string | null; + status?: PatchedContactRequestStatus.Raw | null; currency?: string | null; company?: string | null; - addresses?: (PatchedContactRequestAddressesItem.Raw | null | undefined)[] | null; + addresses?: AddressRequest.Raw[] | null; phone_numbers?: AccountingPhoneNumberRequest.Raw[] | null; integration_params?: Record | null; linked_account_params?: Record | null; diff --git a/src/serialization/resources/accounting/types/PatchedContactRequestAddressesItem.ts b/src/serialization/resources/accounting/types/PatchedContactRequestAddressesItem.ts deleted file mode 100644 index d3f4d429e..000000000 --- a/src/serialization/resources/accounting/types/PatchedContactRequestAddressesItem.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { Address } from "./Address"; - -export const PatchedContactRequestAddressesItem: core.serialization.Schema< - serializers.accounting.PatchedContactRequestAddressesItem.Raw, - Merge.accounting.PatchedContactRequestAddressesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Address]); - -export declare namespace PatchedContactRequestAddressesItem { - export type Raw = string | Address.Raw; -} diff --git a/src/serialization/resources/accounting/types/PatchedContactRequestStatus.ts b/src/serialization/resources/accounting/types/PatchedContactRequestStatus.ts new file mode 100644 index 000000000..23f5693c8 --- /dev/null +++ b/src/serialization/resources/accounting/types/PatchedContactRequestStatus.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { Status7D1Enum } from "./Status7D1Enum"; + +export const PatchedContactRequestStatus: core.serialization.Schema< + serializers.accounting.PatchedContactRequestStatus.Raw, + Merge.accounting.PatchedContactRequestStatus +> = core.serialization.undiscriminatedUnion([Status7D1Enum, core.serialization.string()]); + +export declare namespace PatchedContactRequestStatus { + export type Raw = Status7D1Enum.Raw | string; +} diff --git a/src/serialization/resources/accounting/types/PatchedVendorCreditRequest.ts b/src/serialization/resources/accounting/types/PatchedVendorCreditRequest.ts new file mode 100644 index 000000000..662519935 --- /dev/null +++ b/src/serialization/resources/accounting/types/PatchedVendorCreditRequest.ts @@ -0,0 +1,46 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { PatchedVendorCreditRequestCurrency } from "./PatchedVendorCreditRequestCurrency"; + +export const PatchedVendorCreditRequest: core.serialization.ObjectSchema< + serializers.accounting.PatchedVendorCreditRequest.Raw, + Merge.accounting.PatchedVendorCreditRequest +> = core.serialization.object({ + number: core.serialization.string().optional(), + transactionDate: core.serialization.property("transaction_date", core.serialization.date().optional()), + vendor: core.serialization.string().optional(), + currency: PatchedVendorCreditRequestCurrency.optional(), + exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), + inclusiveOfTax: core.serialization.property("inclusive_of_tax", core.serialization.boolean().optional()), + company: core.serialization.string().optional(), + trackingCategories: core.serialization.property( + "tracking_categories", + core.serialization.list(core.serialization.string().optional()).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 PatchedVendorCreditRequest { + export interface Raw { + number?: string | null; + transaction_date?: string | null; + vendor?: string | null; + currency?: PatchedVendorCreditRequestCurrency.Raw | null; + exchange_rate?: string | null; + inclusive_of_tax?: boolean | null; + company?: string | null; + tracking_categories?: (string | null | undefined)[] | null; + integration_params?: Record | null; + linked_account_params?: Record | null; + } +} diff --git a/src/serialization/resources/accounting/types/PatchedVendorCreditRequestCurrency.ts b/src/serialization/resources/accounting/types/PatchedVendorCreditRequestCurrency.ts new file mode 100644 index 000000000..0c573d481 --- /dev/null +++ b/src/serialization/resources/accounting/types/PatchedVendorCreditRequestCurrency.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; + +export const PatchedVendorCreditRequestCurrency: core.serialization.Schema< + serializers.accounting.PatchedVendorCreditRequestCurrency.Raw, + Merge.accounting.PatchedVendorCreditRequestCurrency +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); + +export declare namespace PatchedVendorCreditRequestCurrency { + export type Raw = TransactionCurrencyEnum.Raw | string; +} diff --git a/src/serialization/resources/accounting/types/PaymentBatchItemRequest.ts b/src/serialization/resources/accounting/types/PaymentBatchItemRequest.ts new file mode 100644 index 000000000..941a78f78 --- /dev/null +++ b/src/serialization/resources/accounting/types/PaymentBatchItemRequest.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { PaymentEndpointRequest } from "./PaymentEndpointRequest"; + +export const PaymentBatchItemRequest: core.serialization.ObjectSchema< + serializers.accounting.PaymentBatchItemRequest.Raw, + Merge.accounting.PaymentBatchItemRequest +> = core.serialization.object({ + itemId: core.serialization.property("item_id", core.serialization.string()), + payload: PaymentEndpointRequest, +}); + +export declare namespace PaymentBatchItemRequest { + export interface Raw { + item_id: string; + payload: PaymentEndpointRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/PaymentEndpointRequest.ts b/src/serialization/resources/accounting/types/PaymentEndpointRequest.ts new file mode 100644 index 000000000..77fedb27d --- /dev/null +++ b/src/serialization/resources/accounting/types/PaymentEndpointRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { PaymentRequest } from "./PaymentRequest"; + +export const PaymentEndpointRequest: core.serialization.ObjectSchema< + serializers.accounting.PaymentEndpointRequest.Raw, + Merge.accounting.PaymentEndpointRequest +> = core.serialization.object({ + model: PaymentRequest, +}); + +export declare namespace PaymentEndpointRequest { + export interface Raw { + model: PaymentRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/PaymentMethod.ts b/src/serialization/resources/accounting/types/PaymentMethod.ts index d949c5a1d..92ecab385 100644 --- a/src/serialization/resources/accounting/types/PaymentMethod.ts +++ b/src/serialization/resources/accounting/types/PaymentMethod.ts @@ -14,7 +14,7 @@ export const PaymentMethod: core.serialization.ObjectSchema< remoteId: core.serialization.property("remote_id", core.serialization.string().optional()), createdAt: core.serialization.property("created_at", core.serialization.date().optional()), modifiedAt: core.serialization.property("modified_at", core.serialization.date().optional()), - methodType: core.serialization.property("method_type", PaymentMethodMethodType), + methodType: core.serialization.property("method_type", PaymentMethodMethodType.optional()), name: core.serialization.string(), isActive: core.serialization.property("is_active", core.serialization.boolean().optional()), remoteUpdatedAt: core.serialization.property("remote_updated_at", core.serialization.date().optional()), @@ -31,7 +31,7 @@ export declare namespace PaymentMethod { remote_id?: string | null; created_at?: string | null; modified_at?: string | null; - method_type: PaymentMethodMethodType.Raw; + method_type?: PaymentMethodMethodType.Raw | null; name: string; is_active?: boolean | null; remote_updated_at?: string | null; diff --git a/src/serialization/resources/accounting/types/PurchaseOrderBatchItemRequest.ts b/src/serialization/resources/accounting/types/PurchaseOrderBatchItemRequest.ts new file mode 100644 index 000000000..3c783ce72 --- /dev/null +++ b/src/serialization/resources/accounting/types/PurchaseOrderBatchItemRequest.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { PurchaseOrderEndpointRequest } from "./PurchaseOrderEndpointRequest"; + +export const PurchaseOrderBatchItemRequest: core.serialization.ObjectSchema< + serializers.accounting.PurchaseOrderBatchItemRequest.Raw, + Merge.accounting.PurchaseOrderBatchItemRequest +> = core.serialization.object({ + itemId: core.serialization.property("item_id", core.serialization.string()), + payload: PurchaseOrderEndpointRequest, +}); + +export declare namespace PurchaseOrderBatchItemRequest { + export interface Raw { + item_id: string; + payload: PurchaseOrderEndpointRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/PurchaseOrderEndpointRequest.ts b/src/serialization/resources/accounting/types/PurchaseOrderEndpointRequest.ts new file mode 100644 index 000000000..4c04d1139 --- /dev/null +++ b/src/serialization/resources/accounting/types/PurchaseOrderEndpointRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { PurchaseOrderRequest } from "./PurchaseOrderRequest"; + +export const PurchaseOrderEndpointRequest: core.serialization.ObjectSchema< + serializers.accounting.PurchaseOrderEndpointRequest.Raw, + Merge.accounting.PurchaseOrderEndpointRequest +> = core.serialization.object({ + model: PurchaseOrderRequest, +}); + +export declare namespace PurchaseOrderEndpointRequest { + export interface Raw { + model: PurchaseOrderRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/RegenerateAccountToken.ts b/src/serialization/resources/accounting/types/RegenerateAccountToken.ts new file mode 100644 index 000000000..a141066c1 --- /dev/null +++ b/src/serialization/resources/accounting/types/RegenerateAccountToken.ts @@ -0,0 +1,20 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; + +export const RegenerateAccountToken: core.serialization.ObjectSchema< + serializers.accounting.RegenerateAccountToken.Raw, + Merge.accounting.RegenerateAccountToken +> = core.serialization.object({ + linkedAccountId: core.serialization.property("linked_account_id", core.serialization.string()), + accountToken: core.serialization.property("account_token", core.serialization.string()), +}); + +export declare namespace RegenerateAccountToken { + export interface Raw { + linked_account_id: string; + account_token: string; + } +} diff --git a/src/serialization/resources/accounting/types/RemoteFieldApiResponse.ts b/src/serialization/resources/accounting/types/RemoteFieldApiResponse.ts index 8b1acd25b..05ef21148 100644 --- a/src/serialization/resources/accounting/types/RemoteFieldApiResponse.ts +++ b/src/serialization/resources/accounting/types/RemoteFieldApiResponse.ts @@ -25,6 +25,9 @@ export const RemoteFieldApiResponse: core.serialization.ObjectSchema< creditNote: core.serialization.property("CreditNote", core.serialization.list(RemoteFieldApi).optional()), item: core.serialization.property("Item", core.serialization.list(RemoteFieldApi).optional()), purchaseOrder: core.serialization.property("PurchaseOrder", core.serialization.list(RemoteFieldApi).optional()), + salesOrder: core.serialization.property("SalesOrder", core.serialization.list(RemoteFieldApi).optional()), + itemFulfillment: core.serialization.property("ItemFulfillment", core.serialization.list(RemoteFieldApi).optional()), + expenseReport: core.serialization.property("ExpenseReport", core.serialization.list(RemoteFieldApi).optional()), trackingCategory: core.serialization.property( "TrackingCategory", core.serialization.list(RemoteFieldApi).optional(), @@ -63,6 +66,9 @@ export declare namespace RemoteFieldApiResponse { CreditNote?: RemoteFieldApi.Raw[] | null; Item?: RemoteFieldApi.Raw[] | null; PurchaseOrder?: RemoteFieldApi.Raw[] | null; + SalesOrder?: RemoteFieldApi.Raw[] | null; + ItemFulfillment?: RemoteFieldApi.Raw[] | null; + ExpenseReport?: RemoteFieldApi.Raw[] | null; TrackingCategory?: RemoteFieldApi.Raw[] | null; JournalEntry?: RemoteFieldApi.Raw[] | null; TaxRate?: RemoteFieldApi.Raw[] | null; diff --git a/src/serialization/resources/accounting/types/RoleEnum.ts b/src/serialization/resources/accounting/types/RoleEnum.ts index 20190f6cc..47dae14f1 100644 --- a/src/serialization/resources/accounting/types/RoleEnum.ts +++ b/src/serialization/resources/accounting/types/RoleEnum.ts @@ -5,8 +5,8 @@ import * as core from "../../../../core"; import type * as serializers from "../../../index"; export const RoleEnum: core.serialization.Schema = - core.serialization.enum_(["ADMIN", "DEVELOPER", "MEMBER", "API", "SYSTEM", "MERGE_TEAM"]); + core.serialization.enum_(["ADMIN", "DEVELOPER", "MEMBER", "API", "SYSTEM", "MERGE_TEAM", "SUPPORT"]); export declare namespace RoleEnum { - export type Raw = "ADMIN" | "DEVELOPER" | "MEMBER" | "API" | "SYSTEM" | "MERGE_TEAM"; + export type Raw = "ADMIN" | "DEVELOPER" | "MEMBER" | "API" | "SYSTEM" | "MERGE_TEAM" | "SUPPORT"; } diff --git a/src/serialization/resources/accounting/types/SalesOrder.ts b/src/serialization/resources/accounting/types/SalesOrder.ts new file mode 100644 index 000000000..5e1a9f1c7 --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrder.ts @@ -0,0 +1,78 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { RemoteData } from "./RemoteData"; +import { RemoteField } from "./RemoteField"; +import { SalesOrderCompany } from "./SalesOrderCompany"; +import { SalesOrderCurrency } from "./SalesOrderCurrency"; +import { SalesOrderCustomer } from "./SalesOrderCustomer"; +import { SalesOrderLinesItem } from "./SalesOrderLinesItem"; +import { SalesOrderPaymentTerm } from "./SalesOrderPaymentTerm"; +import { SalesOrderShippingAddress } from "./SalesOrderShippingAddress"; +import { SalesOrderStatus } from "./SalesOrderStatus"; +import { SalesOrderTrackingCategoriesItem } from "./SalesOrderTrackingCategoriesItem"; + +export const SalesOrder: core.serialization.ObjectSchema< + serializers.accounting.SalesOrder.Raw, + Merge.accounting.SalesOrder +> = core.serialization.object({ + id: core.serialization.string().optional(), + remoteId: core.serialization.property("remote_id", core.serialization.string().optional()), + createdAt: core.serialization.property("created_at", core.serialization.date().optional()), + modifiedAt: core.serialization.property("modified_at", core.serialization.date().optional()), + customer: SalesOrderCustomer.optional(), + currency: SalesOrderCurrency.optional(), + exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), + company: SalesOrderCompany.optional(), + status: SalesOrderStatus.optional(), + paymentTerm: core.serialization.property("payment_term", SalesOrderPaymentTerm.optional()), + memo: core.serialization.string().optional(), + shippingAddress: core.serialization.property("shipping_address", SalesOrderShippingAddress.optional()), + trackingCategories: core.serialization.property( + "tracking_categories", + core.serialization.list(SalesOrderTrackingCategoriesItem.optional()).optional(), + ), + issueDate: core.serialization.property("issue_date", core.serialization.date().optional()), + transactionNumber: core.serialization.property("transaction_number", core.serialization.string().optional()), + total: core.serialization.number().optional(), + lines: core.serialization.list(SalesOrderLinesItem).optional(), + remoteCreatedAt: core.serialization.property("remote_created_at", core.serialization.date().optional()), + remoteUpdatedAt: core.serialization.property("remote_updated_at", core.serialization.date().optional()), + remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), + fieldMappings: core.serialization.property( + "field_mappings", + core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), + ), + remoteData: core.serialization.property("remote_data", core.serialization.list(RemoteData).optional()), + remoteFields: core.serialization.property("remote_fields", core.serialization.list(RemoteField).optional()), +}); + +export declare namespace SalesOrder { + export interface Raw { + id?: string | null; + remote_id?: string | null; + created_at?: string | null; + modified_at?: string | null; + customer?: SalesOrderCustomer.Raw | null; + currency?: SalesOrderCurrency.Raw | null; + exchange_rate?: string | null; + company?: SalesOrderCompany.Raw | null; + status?: SalesOrderStatus.Raw | null; + payment_term?: SalesOrderPaymentTerm.Raw | null; + memo?: string | null; + shipping_address?: SalesOrderShippingAddress.Raw | null; + tracking_categories?: (SalesOrderTrackingCategoriesItem.Raw | null | undefined)[] | null; + issue_date?: string | null; + transaction_number?: string | null; + total?: number | null; + lines?: SalesOrderLinesItem.Raw[] | null; + remote_created_at?: string | null; + remote_updated_at?: string | null; + remote_was_deleted?: boolean | null; + field_mappings?: Record | null; + remote_data?: RemoteData.Raw[] | null; + remote_fields?: RemoteField.Raw[] | null; + } +} diff --git a/src/serialization/resources/accounting/types/SalesOrderBatchItemRequest.ts b/src/serialization/resources/accounting/types/SalesOrderBatchItemRequest.ts new file mode 100644 index 000000000..6557352a0 --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderBatchItemRequest.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { SalesOrderEndpointRequest } from "./SalesOrderEndpointRequest"; + +export const SalesOrderBatchItemRequest: core.serialization.ObjectSchema< + serializers.accounting.SalesOrderBatchItemRequest.Raw, + Merge.accounting.SalesOrderBatchItemRequest +> = core.serialization.object({ + itemId: core.serialization.property("item_id", core.serialization.string()), + payload: SalesOrderEndpointRequest, +}); + +export declare namespace SalesOrderBatchItemRequest { + export interface Raw { + item_id: string; + payload: SalesOrderEndpointRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/SalesOrderCompany.ts b/src/serialization/resources/accounting/types/SalesOrderCompany.ts new file mode 100644 index 000000000..d59662941 --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderCompany.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { CompanyInfo } from "./CompanyInfo"; + +export const SalesOrderCompany: core.serialization.Schema< + serializers.accounting.SalesOrderCompany.Raw, + Merge.accounting.SalesOrderCompany +> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); + +export declare namespace SalesOrderCompany { + export type Raw = string | CompanyInfo.Raw; +} diff --git a/src/serialization/resources/accounting/types/SalesOrderCurrency.ts b/src/serialization/resources/accounting/types/SalesOrderCurrency.ts new file mode 100644 index 000000000..ce33ac42b --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderCurrency.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; + +export const SalesOrderCurrency: core.serialization.Schema< + serializers.accounting.SalesOrderCurrency.Raw, + Merge.accounting.SalesOrderCurrency +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); + +export declare namespace SalesOrderCurrency { + export type Raw = TransactionCurrencyEnum.Raw | string; +} diff --git a/src/serialization/resources/accounting/types/SalesOrderCustomer.ts b/src/serialization/resources/accounting/types/SalesOrderCustomer.ts new file mode 100644 index 000000000..9fbfad47e --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderCustomer.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { Contact } from "./Contact"; + +export const SalesOrderCustomer: core.serialization.Schema< + serializers.accounting.SalesOrderCustomer.Raw, + Merge.accounting.SalesOrderCustomer +> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); + +export declare namespace SalesOrderCustomer { + export type Raw = string | Contact.Raw; +} diff --git a/src/serialization/resources/accounting/types/SalesOrderEndpointRequest.ts b/src/serialization/resources/accounting/types/SalesOrderEndpointRequest.ts new file mode 100644 index 000000000..6b1fb5e02 --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderEndpointRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { SalesOrderRequest } from "./SalesOrderRequest"; + +export const SalesOrderEndpointRequest: core.serialization.ObjectSchema< + serializers.accounting.SalesOrderEndpointRequest.Raw, + Merge.accounting.SalesOrderEndpointRequest +> = core.serialization.object({ + model: SalesOrderRequest, +}); + +export declare namespace SalesOrderEndpointRequest { + export interface Raw { + model: SalesOrderRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/SalesOrderLine.ts b/src/serialization/resources/accounting/types/SalesOrderLine.ts new file mode 100644 index 000000000..266327165 --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderLine.ts @@ -0,0 +1,54 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { RemoteField } from "./RemoteField"; +import { SalesOrderLineCompany } from "./SalesOrderLineCompany"; +import { SalesOrderLineItem } from "./SalesOrderLineItem"; +import { SalesOrderLineTaxRate } from "./SalesOrderLineTaxRate"; +import { SalesOrderLineTrackingCategoriesItem } from "./SalesOrderLineTrackingCategoriesItem"; + +export const SalesOrderLine: core.serialization.ObjectSchema< + serializers.accounting.SalesOrderLine.Raw, + Merge.accounting.SalesOrderLine +> = core.serialization.object({ + id: core.serialization.string().optional(), + remoteId: core.serialization.property("remote_id", core.serialization.string().optional()), + createdAt: core.serialization.property("created_at", core.serialization.date().optional()), + modifiedAt: core.serialization.property("modified_at", core.serialization.date().optional()), + description: core.serialization.string().optional(), + unitPrice: core.serialization.property("unit_price", core.serialization.string().optional()), + quantity: core.serialization.string().optional(), + item: SalesOrderLineItem.optional(), + taxRate: core.serialization.property("tax_rate", SalesOrderLineTaxRate.optional()), + trackingCategories: core.serialization.property( + "tracking_categories", + core.serialization.list(SalesOrderLineTrackingCategoriesItem.optional()).optional(), + ), + company: SalesOrderLineCompany.optional(), + remoteCreatedAt: core.serialization.property("remote_created_at", core.serialization.date().optional()), + remoteUpdatedAt: core.serialization.property("remote_updated_at", core.serialization.date().optional()), + remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), + remoteFields: core.serialization.property("remote_fields", core.serialization.list(RemoteField).optional()), +}); + +export declare namespace SalesOrderLine { + export interface Raw { + id?: string | null; + remote_id?: string | null; + created_at?: string | null; + modified_at?: string | null; + description?: string | null; + unit_price?: string | null; + quantity?: string | null; + item?: SalesOrderLineItem.Raw | null; + tax_rate?: SalesOrderLineTaxRate.Raw | null; + tracking_categories?: (SalesOrderLineTrackingCategoriesItem.Raw | null | undefined)[] | null; + company?: SalesOrderLineCompany.Raw | null; + remote_created_at?: string | null; + remote_updated_at?: string | null; + remote_was_deleted?: boolean | null; + remote_fields?: RemoteField.Raw[] | null; + } +} diff --git a/src/serialization/resources/accounting/types/SalesOrderLineCompany.ts b/src/serialization/resources/accounting/types/SalesOrderLineCompany.ts new file mode 100644 index 000000000..fa803c7b7 --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderLineCompany.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { CompanyInfo } from "./CompanyInfo"; + +export const SalesOrderLineCompany: core.serialization.Schema< + serializers.accounting.SalesOrderLineCompany.Raw, + Merge.accounting.SalesOrderLineCompany +> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); + +export declare namespace SalesOrderLineCompany { + export type Raw = string | CompanyInfo.Raw; +} diff --git a/src/serialization/resources/accounting/types/SalesOrderLineItem.ts b/src/serialization/resources/accounting/types/SalesOrderLineItem.ts new file mode 100644 index 000000000..0c12bd5bb --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderLineItem.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { Item } from "./Item"; + +export const SalesOrderLineItem: core.serialization.Schema< + serializers.accounting.SalesOrderLineItem.Raw, + Merge.accounting.SalesOrderLineItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), Item]); + +export declare namespace SalesOrderLineItem { + export type Raw = string | Item.Raw; +} diff --git a/src/serialization/resources/accounting/types/SalesOrderLineRequest.ts b/src/serialization/resources/accounting/types/SalesOrderLineRequest.ts new file mode 100644 index 000000000..f0c983b4e --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderLineRequest.ts @@ -0,0 +1,56 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { RemoteFieldRequest } from "./RemoteFieldRequest"; +import { SalesOrderLineRequestCompany } from "./SalesOrderLineRequestCompany"; +import { SalesOrderLineRequestItem } from "./SalesOrderLineRequestItem"; +import { SalesOrderLineRequestTaxRate } from "./SalesOrderLineRequestTaxRate"; +import { SalesOrderLineRequestTrackingCategoriesItem } from "./SalesOrderLineRequestTrackingCategoriesItem"; + +export const SalesOrderLineRequest: core.serialization.ObjectSchema< + serializers.accounting.SalesOrderLineRequest.Raw, + Merge.accounting.SalesOrderLineRequest +> = core.serialization.object({ + remoteId: core.serialization.property("remote_id", core.serialization.string().optional()), + description: core.serialization.string().optional(), + unitPrice: core.serialization.property("unit_price", core.serialization.string().optional()), + quantity: core.serialization.string().optional(), + item: SalesOrderLineRequestItem.optional(), + taxRate: core.serialization.property("tax_rate", SalesOrderLineRequestTaxRate.optional()), + trackingCategories: core.serialization.property( + "tracking_categories", + core.serialization.list(SalesOrderLineRequestTrackingCategoriesItem.optional()).optional(), + ), + company: SalesOrderLineRequestCompany.optional(), + remoteCreatedAt: core.serialization.property("remote_created_at", core.serialization.date().optional()), + remoteUpdatedAt: core.serialization.property("remote_updated_at", core.serialization.date().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(), + ), + remoteFields: core.serialization.property("remote_fields", core.serialization.list(RemoteFieldRequest).optional()), +}); + +export declare namespace SalesOrderLineRequest { + export interface Raw { + remote_id?: string | null; + description?: string | null; + unit_price?: string | null; + quantity?: string | null; + item?: SalesOrderLineRequestItem.Raw | null; + tax_rate?: SalesOrderLineRequestTaxRate.Raw | null; + tracking_categories?: (SalesOrderLineRequestTrackingCategoriesItem.Raw | null | undefined)[] | null; + company?: SalesOrderLineRequestCompany.Raw | null; + remote_created_at?: string | null; + remote_updated_at?: string | null; + integration_params?: Record | null; + linked_account_params?: Record | null; + remote_fields?: RemoteFieldRequest.Raw[] | null; + } +} diff --git a/src/serialization/resources/accounting/types/SalesOrderLineRequestCompany.ts b/src/serialization/resources/accounting/types/SalesOrderLineRequestCompany.ts new file mode 100644 index 000000000..74c5b3fad --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderLineRequestCompany.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { CompanyInfo } from "./CompanyInfo"; + +export const SalesOrderLineRequestCompany: core.serialization.Schema< + serializers.accounting.SalesOrderLineRequestCompany.Raw, + Merge.accounting.SalesOrderLineRequestCompany +> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); + +export declare namespace SalesOrderLineRequestCompany { + export type Raw = string | CompanyInfo.Raw; +} diff --git a/src/serialization/resources/accounting/types/SalesOrderLineRequestItem.ts b/src/serialization/resources/accounting/types/SalesOrderLineRequestItem.ts new file mode 100644 index 000000000..42f26da95 --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderLineRequestItem.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { Item } from "./Item"; + +export const SalesOrderLineRequestItem: core.serialization.Schema< + serializers.accounting.SalesOrderLineRequestItem.Raw, + Merge.accounting.SalesOrderLineRequestItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), Item]); + +export declare namespace SalesOrderLineRequestItem { + export type Raw = string | Item.Raw; +} diff --git a/src/serialization/resources/accounting/types/SalesOrderLineRequestTaxRate.ts b/src/serialization/resources/accounting/types/SalesOrderLineRequestTaxRate.ts new file mode 100644 index 000000000..f9bf89720 --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderLineRequestTaxRate.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { TaxRate } from "./TaxRate"; + +export const SalesOrderLineRequestTaxRate: core.serialization.Schema< + serializers.accounting.SalesOrderLineRequestTaxRate.Raw, + Merge.accounting.SalesOrderLineRequestTaxRate +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TaxRate]); + +export declare namespace SalesOrderLineRequestTaxRate { + export type Raw = string | TaxRate.Raw; +} diff --git a/src/serialization/resources/accounting/types/SalesOrderLineRequestTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/SalesOrderLineRequestTrackingCategoriesItem.ts new file mode 100644 index 000000000..ac5a8350b --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderLineRequestTrackingCategoriesItem.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { TrackingCategory } from "./TrackingCategory"; + +export const SalesOrderLineRequestTrackingCategoriesItem: core.serialization.Schema< + serializers.accounting.SalesOrderLineRequestTrackingCategoriesItem.Raw, + Merge.accounting.SalesOrderLineRequestTrackingCategoriesItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); + +export declare namespace SalesOrderLineRequestTrackingCategoriesItem { + export type Raw = string | TrackingCategory.Raw; +} diff --git a/src/serialization/resources/accounting/types/SalesOrderLineTaxRate.ts b/src/serialization/resources/accounting/types/SalesOrderLineTaxRate.ts new file mode 100644 index 000000000..fb887a8bb --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderLineTaxRate.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { TaxRate } from "./TaxRate"; + +export const SalesOrderLineTaxRate: core.serialization.Schema< + serializers.accounting.SalesOrderLineTaxRate.Raw, + Merge.accounting.SalesOrderLineTaxRate +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TaxRate]); + +export declare namespace SalesOrderLineTaxRate { + export type Raw = string | TaxRate.Raw; +} diff --git a/src/serialization/resources/accounting/types/SalesOrderLineTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/SalesOrderLineTrackingCategoriesItem.ts new file mode 100644 index 000000000..3627d8106 --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderLineTrackingCategoriesItem.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { TrackingCategory } from "./TrackingCategory"; + +export const SalesOrderLineTrackingCategoriesItem: core.serialization.Schema< + serializers.accounting.SalesOrderLineTrackingCategoriesItem.Raw, + Merge.accounting.SalesOrderLineTrackingCategoriesItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); + +export declare namespace SalesOrderLineTrackingCategoriesItem { + export type Raw = string | TrackingCategory.Raw; +} diff --git a/src/serialization/resources/accounting/types/SalesOrderLinesItem.ts b/src/serialization/resources/accounting/types/SalesOrderLinesItem.ts new file mode 100644 index 000000000..0494db907 --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderLinesItem.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { SalesOrderLine } from "./SalesOrderLine"; + +export const SalesOrderLinesItem: core.serialization.Schema< + serializers.accounting.SalesOrderLinesItem.Raw, + Merge.accounting.SalesOrderLinesItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), SalesOrderLine]); + +export declare namespace SalesOrderLinesItem { + export type Raw = string | SalesOrderLine.Raw; +} diff --git a/src/serialization/resources/accounting/types/SalesOrderPaymentTerm.ts b/src/serialization/resources/accounting/types/SalesOrderPaymentTerm.ts new file mode 100644 index 000000000..788da28c4 --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderPaymentTerm.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { PaymentTerm } from "./PaymentTerm"; + +export const SalesOrderPaymentTerm: core.serialization.Schema< + serializers.accounting.SalesOrderPaymentTerm.Raw, + Merge.accounting.SalesOrderPaymentTerm +> = core.serialization.undiscriminatedUnion([core.serialization.string(), PaymentTerm]); + +export declare namespace SalesOrderPaymentTerm { + export type Raw = string | PaymentTerm.Raw; +} diff --git a/src/serialization/resources/accounting/types/SalesOrderRequest.ts b/src/serialization/resources/accounting/types/SalesOrderRequest.ts new file mode 100644 index 000000000..65ccbeca5 --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderRequest.ts @@ -0,0 +1,63 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { RemoteFieldRequest } from "./RemoteFieldRequest"; +import { SalesOrderRequestCompany } from "./SalesOrderRequestCompany"; +import { SalesOrderRequestCurrency } from "./SalesOrderRequestCurrency"; +import { SalesOrderRequestCustomer } from "./SalesOrderRequestCustomer"; +import { SalesOrderRequestPaymentTerm } from "./SalesOrderRequestPaymentTerm"; +import { SalesOrderRequestShippingAddress } from "./SalesOrderRequestShippingAddress"; +import { SalesOrderRequestStatus } from "./SalesOrderRequestStatus"; +import { SalesOrderRequestTrackingCategoriesItem } from "./SalesOrderRequestTrackingCategoriesItem"; + +export const SalesOrderRequest: core.serialization.ObjectSchema< + serializers.accounting.SalesOrderRequest.Raw, + Merge.accounting.SalesOrderRequest +> = core.serialization.object({ + customer: SalesOrderRequestCustomer.optional(), + currency: SalesOrderRequestCurrency.optional(), + exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), + company: SalesOrderRequestCompany.optional(), + status: SalesOrderRequestStatus.optional(), + paymentTerm: core.serialization.property("payment_term", SalesOrderRequestPaymentTerm.optional()), + memo: core.serialization.string().optional(), + shippingAddress: core.serialization.property("shipping_address", SalesOrderRequestShippingAddress.optional()), + trackingCategories: core.serialization.property( + "tracking_categories", + core.serialization.list(SalesOrderRequestTrackingCategoriesItem.optional()).optional(), + ), + issueDate: core.serialization.property("issue_date", core.serialization.date().optional()), + transactionNumber: core.serialization.property("transaction_number", core.serialization.string().optional()), + total: core.serialization.number().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(), + ), + remoteFields: core.serialization.property("remote_fields", core.serialization.list(RemoteFieldRequest).optional()), +}); + +export declare namespace SalesOrderRequest { + export interface Raw { + customer?: SalesOrderRequestCustomer.Raw | null; + currency?: SalesOrderRequestCurrency.Raw | null; + exchange_rate?: string | null; + company?: SalesOrderRequestCompany.Raw | null; + status?: SalesOrderRequestStatus.Raw | null; + payment_term?: SalesOrderRequestPaymentTerm.Raw | null; + memo?: string | null; + shipping_address?: SalesOrderRequestShippingAddress.Raw | null; + tracking_categories?: (SalesOrderRequestTrackingCategoriesItem.Raw | null | undefined)[] | null; + issue_date?: string | null; + transaction_number?: string | null; + total?: number | null; + integration_params?: Record | null; + linked_account_params?: Record | null; + remote_fields?: RemoteFieldRequest.Raw[] | null; + } +} diff --git a/src/serialization/resources/accounting/types/SalesOrderRequestCompany.ts b/src/serialization/resources/accounting/types/SalesOrderRequestCompany.ts new file mode 100644 index 000000000..f075fd11c --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderRequestCompany.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { CompanyInfo } from "./CompanyInfo"; + +export const SalesOrderRequestCompany: core.serialization.Schema< + serializers.accounting.SalesOrderRequestCompany.Raw, + Merge.accounting.SalesOrderRequestCompany +> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); + +export declare namespace SalesOrderRequestCompany { + export type Raw = string | CompanyInfo.Raw; +} diff --git a/src/serialization/resources/accounting/types/SalesOrderRequestCurrency.ts b/src/serialization/resources/accounting/types/SalesOrderRequestCurrency.ts new file mode 100644 index 000000000..4eca5688d --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderRequestCurrency.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; + +export const SalesOrderRequestCurrency: core.serialization.Schema< + serializers.accounting.SalesOrderRequestCurrency.Raw, + Merge.accounting.SalesOrderRequestCurrency +> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); + +export declare namespace SalesOrderRequestCurrency { + export type Raw = TransactionCurrencyEnum.Raw | string; +} diff --git a/src/serialization/resources/accounting/types/SalesOrderRequestCustomer.ts b/src/serialization/resources/accounting/types/SalesOrderRequestCustomer.ts new file mode 100644 index 000000000..1eeb651ab --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderRequestCustomer.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { Contact } from "./Contact"; + +export const SalesOrderRequestCustomer: core.serialization.Schema< + serializers.accounting.SalesOrderRequestCustomer.Raw, + Merge.accounting.SalesOrderRequestCustomer +> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); + +export declare namespace SalesOrderRequestCustomer { + export type Raw = string | Contact.Raw; +} diff --git a/src/serialization/resources/accounting/types/SalesOrderRequestPaymentTerm.ts b/src/serialization/resources/accounting/types/SalesOrderRequestPaymentTerm.ts new file mode 100644 index 000000000..4dfe2b555 --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderRequestPaymentTerm.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { PaymentTerm } from "./PaymentTerm"; + +export const SalesOrderRequestPaymentTerm: core.serialization.Schema< + serializers.accounting.SalesOrderRequestPaymentTerm.Raw, + Merge.accounting.SalesOrderRequestPaymentTerm +> = core.serialization.undiscriminatedUnion([core.serialization.string(), PaymentTerm]); + +export declare namespace SalesOrderRequestPaymentTerm { + export type Raw = string | PaymentTerm.Raw; +} diff --git a/src/serialization/resources/accounting/types/SalesOrderRequestShippingAddress.ts b/src/serialization/resources/accounting/types/SalesOrderRequestShippingAddress.ts new file mode 100644 index 000000000..8874a4e27 --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderRequestShippingAddress.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { Address } from "./Address"; + +export const SalesOrderRequestShippingAddress: core.serialization.Schema< + serializers.accounting.SalesOrderRequestShippingAddress.Raw, + Merge.accounting.SalesOrderRequestShippingAddress +> = core.serialization.undiscriminatedUnion([core.serialization.string(), Address]); + +export declare namespace SalesOrderRequestShippingAddress { + export type Raw = string | Address.Raw; +} diff --git a/src/serialization/resources/accounting/types/SalesOrderRequestStatus.ts b/src/serialization/resources/accounting/types/SalesOrderRequestStatus.ts new file mode 100644 index 000000000..3bed6d8b1 --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderRequestStatus.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { SalesOrderStatusEnum } from "./SalesOrderStatusEnum"; + +export const SalesOrderRequestStatus: core.serialization.Schema< + serializers.accounting.SalesOrderRequestStatus.Raw, + Merge.accounting.SalesOrderRequestStatus +> = core.serialization.undiscriminatedUnion([SalesOrderStatusEnum, core.serialization.string()]); + +export declare namespace SalesOrderRequestStatus { + export type Raw = SalesOrderStatusEnum.Raw | string; +} diff --git a/src/serialization/resources/accounting/types/SalesOrderRequestTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/SalesOrderRequestTrackingCategoriesItem.ts new file mode 100644 index 000000000..40d892711 --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderRequestTrackingCategoriesItem.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { TrackingCategory } from "./TrackingCategory"; + +export const SalesOrderRequestTrackingCategoriesItem: core.serialization.Schema< + serializers.accounting.SalesOrderRequestTrackingCategoriesItem.Raw, + Merge.accounting.SalesOrderRequestTrackingCategoriesItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); + +export declare namespace SalesOrderRequestTrackingCategoriesItem { + export type Raw = string | TrackingCategory.Raw; +} diff --git a/src/serialization/resources/accounting/types/SalesOrderResponse.ts b/src/serialization/resources/accounting/types/SalesOrderResponse.ts new file mode 100644 index 000000000..35dd47ece --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderResponse.ts @@ -0,0 +1,28 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { DebugModeLog } from "./DebugModeLog"; +import { ErrorValidationProblem } from "./ErrorValidationProblem"; +import { SalesOrder } from "./SalesOrder"; +import { WarningValidationProblem } from "./WarningValidationProblem"; + +export const SalesOrderResponse: core.serialization.ObjectSchema< + serializers.accounting.SalesOrderResponse.Raw, + Merge.accounting.SalesOrderResponse +> = core.serialization.object({ + model: SalesOrder, + warnings: core.serialization.list(WarningValidationProblem), + errors: core.serialization.list(ErrorValidationProblem), + logs: core.serialization.list(DebugModeLog).optional(), +}); + +export declare namespace SalesOrderResponse { + export interface Raw { + model: SalesOrder.Raw; + warnings: WarningValidationProblem.Raw[]; + errors: ErrorValidationProblem.Raw[]; + logs?: DebugModeLog.Raw[] | null; + } +} diff --git a/src/serialization/resources/accounting/types/SalesOrderShippingAddress.ts b/src/serialization/resources/accounting/types/SalesOrderShippingAddress.ts new file mode 100644 index 000000000..f53082fc5 --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderShippingAddress.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { Address } from "./Address"; + +export const SalesOrderShippingAddress: core.serialization.Schema< + serializers.accounting.SalesOrderShippingAddress.Raw, + Merge.accounting.SalesOrderShippingAddress +> = core.serialization.undiscriminatedUnion([core.serialization.string(), Address]); + +export declare namespace SalesOrderShippingAddress { + export type Raw = string | Address.Raw; +} diff --git a/src/serialization/resources/accounting/types/SalesOrderStatus.ts b/src/serialization/resources/accounting/types/SalesOrderStatus.ts new file mode 100644 index 000000000..110c0f2e4 --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderStatus.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { SalesOrderStatusEnum } from "./SalesOrderStatusEnum"; + +export const SalesOrderStatus: core.serialization.Schema< + serializers.accounting.SalesOrderStatus.Raw, + Merge.accounting.SalesOrderStatus +> = core.serialization.undiscriminatedUnion([SalesOrderStatusEnum, core.serialization.string()]); + +export declare namespace SalesOrderStatus { + export type Raw = SalesOrderStatusEnum.Raw | string; +} diff --git a/src/serialization/resources/accounting/types/SalesOrderStatusEnum.ts b/src/serialization/resources/accounting/types/SalesOrderStatusEnum.ts new file mode 100644 index 000000000..6c1c7b0d8 --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderStatusEnum.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; + +export const SalesOrderStatusEnum: core.serialization.Schema< + serializers.accounting.SalesOrderStatusEnum.Raw, + Merge.accounting.SalesOrderStatusEnum +> = core.serialization.enum_(["DRAFT", "PENDING_APPROVAL", "OPEN", "PARTIALLY_COMPLETED", "COMPLETED", "CLOSED"]); + +export declare namespace SalesOrderStatusEnum { + export type Raw = "DRAFT" | "PENDING_APPROVAL" | "OPEN" | "PARTIALLY_COMPLETED" | "COMPLETED" | "CLOSED"; +} diff --git a/src/serialization/resources/accounting/types/SalesOrderTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/SalesOrderTrackingCategoriesItem.ts new file mode 100644 index 000000000..97a30479a --- /dev/null +++ b/src/serialization/resources/accounting/types/SalesOrderTrackingCategoriesItem.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { TrackingCategory } from "./TrackingCategory"; + +export const SalesOrderTrackingCategoriesItem: core.serialization.Schema< + serializers.accounting.SalesOrderTrackingCategoriesItem.Raw, + Merge.accounting.SalesOrderTrackingCategoriesItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); + +export declare namespace SalesOrderTrackingCategoriesItem { + export type Raw = string | TrackingCategory.Raw; +} diff --git a/src/serialization/resources/accounting/types/SyncStatus.ts b/src/serialization/resources/accounting/types/SyncStatus.ts index 8e1575ef1..b9cb3be3d 100644 --- a/src/serialization/resources/accounting/types/SyncStatus.ts +++ b/src/serialization/resources/accounting/types/SyncStatus.ts @@ -3,8 +3,8 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; -import { LastSyncResultEnum } from "./LastSyncResultEnum"; import { SelectiveSyncConfigurationsUsageEnum } from "./SelectiveSyncConfigurationsUsageEnum"; +import { SyncStatusLastSyncResult } from "./SyncStatusLastSyncResult"; import { SyncStatusStatus } from "./SyncStatusStatus"; export const SyncStatus: core.serialization.ObjectSchema< @@ -15,7 +15,7 @@ export const SyncStatus: core.serialization.ObjectSchema< modelId: core.serialization.property("model_id", core.serialization.string()), lastSyncStart: core.serialization.property("last_sync_start", core.serialization.date().optional()), nextSyncStart: core.serialization.property("next_sync_start", core.serialization.date().optional()), - lastSyncResult: core.serialization.property("last_sync_result", LastSyncResultEnum.optional()), + lastSyncResult: core.serialization.property("last_sync_result", SyncStatusLastSyncResult.optional()), lastSyncFinished: core.serialization.property("last_sync_finished", core.serialization.date().optional()), status: SyncStatusStatus, isInitialSync: core.serialization.property("is_initial_sync", core.serialization.boolean()), @@ -31,7 +31,7 @@ export declare namespace SyncStatus { model_id: string; last_sync_start?: string | null; next_sync_start?: string | null; - last_sync_result?: LastSyncResultEnum.Raw | null; + last_sync_result?: SyncStatusLastSyncResult.Raw | null; last_sync_finished?: string | null; status: SyncStatusStatus.Raw; is_initial_sync: boolean; diff --git a/src/serialization/resources/accounting/types/SyncStatusLastSyncResult.ts b/src/serialization/resources/accounting/types/SyncStatusLastSyncResult.ts new file mode 100644 index 000000000..dfba1a763 --- /dev/null +++ b/src/serialization/resources/accounting/types/SyncStatusLastSyncResult.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { LastSyncResultEnum } from "./LastSyncResultEnum"; + +export const SyncStatusLastSyncResult: core.serialization.Schema< + serializers.accounting.SyncStatusLastSyncResult.Raw, + Merge.accounting.SyncStatusLastSyncResult +> = core.serialization.undiscriminatedUnion([LastSyncResultEnum, core.serialization.string()]); + +export declare namespace SyncStatusLastSyncResult { + export type Raw = LastSyncResultEnum.Raw | string; +} diff --git a/src/serialization/resources/accounting/types/Transaction.ts b/src/serialization/resources/accounting/types/Transaction.ts index f1fb2fe4a..146a38ff9 100644 --- a/src/serialization/resources/accounting/types/Transaction.ts +++ b/src/serialization/resources/accounting/types/Transaction.ts @@ -6,6 +6,7 @@ import type * as serializers from "../../../index"; import { RemoteData } from "./RemoteData"; import { TransactionAccount } from "./TransactionAccount"; import { TransactionAccountingPeriod } from "./TransactionAccountingPeriod"; +import { TransactionCompany } from "./TransactionCompany"; import { TransactionContact } from "./TransactionContact"; import { TransactionCurrency } from "./TransactionCurrency"; import { TransactionLineItem } from "./TransactionLineItem"; @@ -28,7 +29,7 @@ export const Transaction: core.serialization.ObjectSchema< totalAmount: core.serialization.property("total_amount", core.serialization.string().optional()), currency: TransactionCurrency.optional(), exchangeRate: core.serialization.property("exchange_rate", core.serialization.string().optional()), - company: core.serialization.string().optional(), + company: TransactionCompany.optional(), trackingCategories: core.serialization.property( "tracking_categories", core.serialization.list(TransactionTrackingCategoriesItem.optional()).optional(), @@ -58,7 +59,7 @@ export declare namespace Transaction { total_amount?: string | null; currency?: TransactionCurrency.Raw | null; exchange_rate?: string | null; - company?: string | null; + company?: TransactionCompany.Raw | null; tracking_categories?: (TransactionTrackingCategoriesItem.Raw | null | undefined)[] | null; line_items?: TransactionLineItem.Raw[] | null; remote_was_deleted?: boolean | null; diff --git a/src/serialization/resources/accounting/types/TransactionCompany.ts b/src/serialization/resources/accounting/types/TransactionCompany.ts new file mode 100644 index 000000000..7a42ae462 --- /dev/null +++ b/src/serialization/resources/accounting/types/TransactionCompany.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { CompanyInfo } from "./CompanyInfo"; + +export const TransactionCompany: core.serialization.Schema< + serializers.accounting.TransactionCompany.Raw, + Merge.accounting.TransactionCompany +> = core.serialization.undiscriminatedUnion([core.serialization.string(), CompanyInfo]); + +export declare namespace TransactionCompany { + export type Raw = string | CompanyInfo.Raw; +} diff --git a/src/serialization/resources/accounting/types/VendorCreditBatchItemRequest.ts b/src/serialization/resources/accounting/types/VendorCreditBatchItemRequest.ts new file mode 100644 index 000000000..fd7f3ba31 --- /dev/null +++ b/src/serialization/resources/accounting/types/VendorCreditBatchItemRequest.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { VendorCreditEndpointRequest } from "./VendorCreditEndpointRequest"; + +export const VendorCreditBatchItemRequest: core.serialization.ObjectSchema< + serializers.accounting.VendorCreditBatchItemRequest.Raw, + Merge.accounting.VendorCreditBatchItemRequest +> = core.serialization.object({ + itemId: core.serialization.property("item_id", core.serialization.string()), + payload: VendorCreditEndpointRequest, +}); + +export declare namespace VendorCreditBatchItemRequest { + export interface Raw { + item_id: string; + payload: VendorCreditEndpointRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/VendorCreditEndpointRequest.ts b/src/serialization/resources/accounting/types/VendorCreditEndpointRequest.ts new file mode 100644 index 000000000..cb5c54bb1 --- /dev/null +++ b/src/serialization/resources/accounting/types/VendorCreditEndpointRequest.ts @@ -0,0 +1,19 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { VendorCreditRequest } from "./VendorCreditRequest"; + +export const VendorCreditEndpointRequest: core.serialization.ObjectSchema< + serializers.accounting.VendorCreditEndpointRequest.Raw, + Merge.accounting.VendorCreditEndpointRequest +> = core.serialization.object({ + model: VendorCreditRequest, +}); + +export declare namespace VendorCreditEndpointRequest { + export interface Raw { + model: VendorCreditRequest.Raw; + } +} diff --git a/src/serialization/resources/accounting/types/index.ts b/src/serialization/resources/accounting/types/index.ts index 22194d0a9..1ae5d0851 100644 --- a/src/serialization/resources/accounting/types/index.ts +++ b/src/serialization/resources/accounting/types/index.ts @@ -1,7 +1,9 @@ export * from "./Account"; export * from "./AccountAccountType"; export * from "./AccountAccountTypeEnum"; +export * from "./AccountBatchItemRequest"; export * from "./AccountClassification"; +export * from "./AccountCompany"; export * from "./AccountCurrency"; export * from "./AccountDetails"; export * from "./AccountDetailsAndActions"; @@ -9,9 +11,11 @@ export * from "./AccountDetailsAndActionsCategory"; export * from "./AccountDetailsAndActionsIntegration"; export * from "./AccountDetailsAndActionsStatus"; export * from "./AccountDetailsAndActionsStatusEnum"; -export * from "./AccountDetailsCategory"; +export * from "./AccountEndpointRequest"; export * from "./AccountIntegration"; export * from "./AccountingAttachment"; +export * from "./AccountingAttachmentBatchItemRequest"; +export * from "./AccountingAttachmentEndpointRequest"; export * from "./AccountingAttachmentRequest"; export * from "./AccountingAttachmentResponse"; export * from "./AccountingPeriod"; @@ -21,6 +25,7 @@ export * from "./AccountingPhoneNumberRequest"; export * from "./AccountRequest"; export * from "./AccountRequestAccountType"; export * from "./AccountRequestClassification"; +export * from "./AccountRequestCompany"; export * from "./AccountRequestCurrency"; export * from "./AccountRequestStatus"; export * from "./AccountResponse"; @@ -50,7 +55,9 @@ export * from "./BalanceSheetCurrency"; export * from "./BankFeedAccount"; export * from "./BankFeedAccountAccountType"; export * from "./BankFeedAccountAccountTypeEnum"; +export * from "./BankFeedAccountBatchItemRequest"; export * from "./BankFeedAccountCurrency"; +export * from "./BankFeedAccountEndpointRequest"; export * from "./BankFeedAccountFeedStatus"; export * from "./BankFeedAccountRequest"; export * from "./BankFeedAccountRequestAccountType"; @@ -59,7 +66,9 @@ export * from "./BankFeedAccountRequestFeedStatus"; export * from "./BankFeedAccountResponse"; export * from "./BankFeedTransaction"; export * from "./BankFeedTransactionBankFeedAccount"; +export * from "./BankFeedTransactionBatchItemRequest"; export * from "./BankFeedTransactionCreditOrDebit"; +export * from "./BankFeedTransactionEndpointRequest"; export * from "./BankFeedTransactionRequestRequest"; export * from "./BankFeedTransactionRequestRequestBankFeedAccount"; export * from "./BankFeedTransactionRequestRequestCreditOrDebit"; @@ -78,6 +87,8 @@ export * from "./CompanyInfoCurrency"; export * from "./ComponentTypeEnum"; export * from "./Contact"; export * from "./ContactAddressesItem"; +export * from "./ContactBatchItemRequest"; +export * from "./ContactEndpointRequest"; export * from "./ContactRequest"; export * from "./ContactRequestAddressesItem"; export * from "./ContactRequestStatus"; @@ -93,9 +104,11 @@ export * from "./CreditNoteApplyLineForCreditNoteRequest"; export * from "./CreditNoteApplyLineForCreditNoteRequestInvoice"; export * from "./CreditNoteApplyLineForInvoice"; export * from "./CreditNoteApplyLineForInvoiceCreditNote"; +export * from "./CreditNoteBatchItemRequest"; export * from "./CreditNoteCompany"; export * from "./CreditNoteContact"; export * from "./CreditNoteCurrency"; +export * from "./CreditNoteEndpointRequest"; export * from "./CreditNoteLineItem"; export * from "./CreditNoteLineItemCompany"; export * from "./CreditNoteLineItemContact"; @@ -123,7 +136,6 @@ export * from "./CreditNoteStatusEnum"; export * from "./CreditNoteTrackingCategoriesItem"; export * from "./CreditOrDebitEnum"; export * from "./DataPassthroughRequest"; -export * from "./DataPassthroughRequestMethod"; export * from "./DebugModeLog"; export * from "./DebugModelLogSummary"; export * from "./Employee"; @@ -136,10 +148,12 @@ export * from "./EventTypeEnum"; export * from "./Expense"; export * from "./ExpenseAccount"; export * from "./ExpenseAccountingPeriod"; +export * from "./ExpenseBatchItemRequest"; export * from "./ExpenseCompany"; export * from "./ExpenseContact"; export * from "./ExpenseCurrency"; export * from "./ExpenseEmployee"; +export * from "./ExpenseEndpointRequest"; export * from "./ExpenseLine"; export * from "./ExpenseLineAccount"; export * from "./ExpenseLineContact"; @@ -159,25 +173,35 @@ export * from "./ExpenseLineRequestTrackingCategory"; export * from "./ExpenseLineTrackingCategoriesItem"; export * from "./ExpenseLineTrackingCategory"; export * from "./ExpenseReport"; +export * from "./ExpenseReportAccountingPeriod"; +export * from "./ExpenseReportBatchItemRequest"; export * from "./ExpenseReportCompany"; +export * from "./ExpenseReportCurrency"; +export * from "./ExpenseReportEmployee"; +export * from "./ExpenseReportEndpointRequest"; export * from "./ExpenseReportLine"; export * from "./ExpenseReportLineAccount"; export * from "./ExpenseReportLineCompany"; export * from "./ExpenseReportLineContact"; +export * from "./ExpenseReportLineCurrency"; export * from "./ExpenseReportLineEmployee"; export * from "./ExpenseReportLineProject"; export * from "./ExpenseReportLineRequest"; export * from "./ExpenseReportLineRequestAccount"; export * from "./ExpenseReportLineRequestCompany"; export * from "./ExpenseReportLineRequestContact"; +export * from "./ExpenseReportLineRequestCurrency"; export * from "./ExpenseReportLineRequestEmployee"; export * from "./ExpenseReportLineRequestProject"; export * from "./ExpenseReportLineRequestTaxRate"; +export * from "./ExpenseReportLinesItem"; export * from "./ExpenseReportLineTaxRate"; export * from "./ExpenseReportRequest"; export * from "./ExpenseReportRequestAccountingPeriod"; export * from "./ExpenseReportRequestCompany"; +export * from "./ExpenseReportRequestCurrency"; export * from "./ExpenseReportRequestEmployee"; +export * from "./ExpenseReportRequestStatus"; export * from "./ExpenseReportResponse"; export * from "./ExpenseReportStatus"; export * from "./ExpenseReportStatusEnum"; @@ -230,10 +254,12 @@ export * from "./InvoiceAccountingPeriod"; export * from "./InvoiceAppliedCreditNotesItem"; export * from "./InvoiceAppliedPaymentsItem"; export * from "./InvoiceAppliedVendorCreditsItem"; +export * from "./InvoiceBatchItemRequest"; export * from "./InvoiceCompany"; export * from "./InvoiceContact"; export * from "./InvoiceCurrency"; export * from "./InvoiceEmployee"; +export * from "./InvoiceEndpointRequest"; export * from "./InvoiceLineItem"; export * from "./InvoiceLineItemAccount"; export * from "./InvoiceLineItemContact"; @@ -267,6 +293,7 @@ export * from "./InvoiceRequestStatus"; export * from "./InvoiceRequestTrackingCategoriesItem"; export * from "./InvoiceRequestType"; export * from "./InvoiceResponse"; +export * from "./InvoiceSalesOrdersItem"; export * from "./InvoiceStatus"; export * from "./InvoiceStatusEnum"; export * from "./InvoiceTrackingCategoriesItem"; @@ -276,8 +303,33 @@ export * from "./Issue"; export * from "./IssueStatus"; export * from "./IssueStatusEnum"; export * from "./Item"; +export * from "./ItemBatchItemRequest"; export * from "./ItemCompany"; +export * from "./ItemEndpointRequest"; export * from "./ItemFormatEnum"; +export * from "./ItemFulfillment"; +export * from "./ItemFulfillmentBatchItemRequest"; +export * from "./ItemFulfillmentCompany"; +export * from "./ItemFulfillmentCustomer"; +export * from "./ItemFulfillmentEndpointRequest"; +export * from "./ItemFulfillmentLine"; +export * from "./ItemFulfillmentLineItem"; +export * from "./ItemFulfillmentLineRequest"; +export * from "./ItemFulfillmentLineRequestItem"; +export * from "./ItemFulfillmentLineRequestSalesOrderLine"; +export * from "./ItemFulfillmentLineRequestTrackingCategoriesItem"; +export * from "./ItemFulfillmentLineSalesOrderLine"; +export * from "./ItemFulfillmentLinesItem"; +export * from "./ItemFulfillmentLineTrackingCategoriesItem"; +export * from "./ItemFulfillmentRequest"; +export * from "./ItemFulfillmentRequestCompany"; +export * from "./ItemFulfillmentRequestCustomer"; +export * from "./ItemFulfillmentRequestSalesOrder"; +export * from "./ItemFulfillmentRequestStatus"; +export * from "./ItemFulfillmentResponse"; +export * from "./ItemFulfillmentSalesOrder"; +export * from "./ItemFulfillmentStatus"; +export * from "./ItemFulfillmentStatusEnum"; export * from "./ItemPurchaseAccount"; export * from "./ItemPurchaseTaxRate"; export * from "./ItemRequestRequest"; @@ -298,8 +350,10 @@ export * from "./ItemTypeEnum"; export * from "./JournalEntry"; export * from "./JournalEntryAccountingPeriod"; export * from "./JournalEntryAppliedPaymentsItem"; +export * from "./JournalEntryBatchItemRequest"; export * from "./JournalEntryCompany"; export * from "./JournalEntryCurrency"; +export * from "./JournalEntryEndpointRequest"; export * from "./JournalEntryPaymentsItem"; export * from "./JournalEntryPostingStatus"; export * from "./JournalEntryRequest"; @@ -354,6 +408,7 @@ export * from "./PaginatedGeneralLedgerTransactionList"; export * from "./PaginatedIncomeStatementList"; export * from "./PaginatedInvoiceList"; export * from "./PaginatedIssueList"; +export * from "./PaginatedItemFulfillmentList"; export * from "./PaginatedItemList"; export * from "./PaginatedJournalEntryList"; export * from "./PaginatedPaymentList"; @@ -362,13 +417,14 @@ export * from "./PaginatedPaymentTermList"; export * from "./PaginatedProjectList"; export * from "./PaginatedPurchaseOrderList"; export * from "./PaginatedRemoteFieldClassList"; +export * from "./PaginatedSalesOrderList"; export * from "./PaginatedSyncStatusList"; export * from "./PaginatedTaxRateList"; export * from "./PaginatedTrackingCategoryList"; export * from "./PaginatedTransactionList"; export * from "./PaginatedVendorCreditList"; export * from "./PatchedContactRequest"; -export * from "./PatchedContactRequestAddressesItem"; +export * from "./PatchedContactRequestStatus"; export * from "./PatchedItemRequestRequest"; export * from "./PatchedItemRequestRequestStatus"; export * from "./PatchedItemRequestRequestType"; @@ -382,13 +438,17 @@ export * from "./PatchedPaymentRequestCurrency"; export * from "./PatchedPaymentRequestPaymentMethod"; export * from "./PatchedPaymentRequestTrackingCategoriesItem"; export * from "./PatchedPaymentRequestType"; +export * from "./PatchedVendorCreditRequest"; +export * from "./PatchedVendorCreditRequestCurrency"; export * from "./Payment"; export * from "./PaymentAccount"; export * from "./PaymentAccountingPeriod"; export * from "./PaymentAppliedToLinesItem"; +export * from "./PaymentBatchItemRequest"; export * from "./PaymentCompany"; export * from "./PaymentContact"; export * from "./PaymentCurrency"; +export * from "./PaymentEndpointRequest"; export * from "./PaymentLineItem"; export * from "./PaymentLineItemRequest"; export * from "./PaymentMethod"; @@ -416,9 +476,11 @@ export * from "./ProjectCompany"; export * from "./ProjectContact"; export * from "./PurchaseOrder"; export * from "./PurchaseOrderAccountingPeriod"; +export * from "./PurchaseOrderBatchItemRequest"; export * from "./PurchaseOrderCompany"; export * from "./PurchaseOrderCurrency"; export * from "./PurchaseOrderDeliveryAddress"; +export * from "./PurchaseOrderEndpointRequest"; export * from "./PurchaseOrderLineItem"; export * from "./PurchaseOrderLineItemCurrency"; export * from "./PurchaseOrderLineItemItem"; @@ -439,6 +501,7 @@ export * from "./PurchaseOrderStatus"; export * from "./PurchaseOrderStatusEnum"; export * from "./PurchaseOrderTrackingCategoriesItem"; export * from "./PurchaseOrderVendor"; +export * from "./RegenerateAccountToken"; export * from "./RemoteData"; export * from "./RemoteEndpointInfo"; export * from "./RemoteField"; @@ -455,11 +518,43 @@ export * from "./ReportItem"; export * from "./RequestFormatEnum"; export * from "./ResponseTypeEnum"; export * from "./RoleEnum"; +export * from "./SalesOrder"; +export * from "./SalesOrderBatchItemRequest"; +export * from "./SalesOrderCompany"; +export * from "./SalesOrderCurrency"; +export * from "./SalesOrderCustomer"; +export * from "./SalesOrderEndpointRequest"; +export * from "./SalesOrderLine"; +export * from "./SalesOrderLineCompany"; +export * from "./SalesOrderLineItem"; +export * from "./SalesOrderLineRequest"; +export * from "./SalesOrderLineRequestCompany"; +export * from "./SalesOrderLineRequestItem"; +export * from "./SalesOrderLineRequestTaxRate"; +export * from "./SalesOrderLineRequestTrackingCategoriesItem"; +export * from "./SalesOrderLinesItem"; +export * from "./SalesOrderLineTaxRate"; +export * from "./SalesOrderLineTrackingCategoriesItem"; +export * from "./SalesOrderPaymentTerm"; +export * from "./SalesOrderRequest"; +export * from "./SalesOrderRequestCompany"; +export * from "./SalesOrderRequestCurrency"; +export * from "./SalesOrderRequestCustomer"; +export * from "./SalesOrderRequestPaymentTerm"; +export * from "./SalesOrderRequestShippingAddress"; +export * from "./SalesOrderRequestStatus"; +export * from "./SalesOrderRequestTrackingCategoriesItem"; +export * from "./SalesOrderResponse"; +export * from "./SalesOrderShippingAddress"; +export * from "./SalesOrderStatus"; +export * from "./SalesOrderStatusEnum"; +export * from "./SalesOrderTrackingCategoriesItem"; export * from "./SelectiveSyncConfigurationsUsageEnum"; export * from "./Status7D1Enum"; export * from "./Status895Enum"; export * from "./StatusFd5Enum"; export * from "./SyncStatus"; +export * from "./SyncStatusLastSyncResult"; export * from "./SyncStatusStatus"; export * from "./TaxComponent"; export * from "./TaxComponentComponentType"; @@ -474,6 +569,7 @@ export * from "./TrackingCategoryStatus"; export * from "./Transaction"; export * from "./TransactionAccount"; export * from "./TransactionAccountingPeriod"; +export * from "./TransactionCompany"; export * from "./TransactionContact"; export * from "./TransactionCurrency"; export * from "./TransactionCurrencyEnum"; @@ -492,8 +588,10 @@ export * from "./VendorCreditApplyLineForVendorCredit"; export * from "./VendorCreditApplyLineForVendorCreditInvoice"; export * from "./VendorCreditApplyLineForVendorCreditRequest"; export * from "./VendorCreditApplyLineForVendorCreditRequestInvoice"; +export * from "./VendorCreditBatchItemRequest"; export * from "./VendorCreditCompany"; export * from "./VendorCreditCurrency"; +export * from "./VendorCreditEndpointRequest"; export * from "./VendorCreditLine"; export * from "./VendorCreditLineAccount"; export * from "./VendorCreditLineContact"; diff --git a/src/serialization/resources/ats/resources/applications/types/ApplicationsListRequestExpand.ts b/src/serialization/resources/ats/resources/applications/types/ApplicationsListRequestExpand.ts deleted file mode 100644 index 4b19a866a..000000000 --- a/src/serialization/resources/ats/resources/applications/types/ApplicationsListRequestExpand.ts +++ /dev/null @@ -1,525 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const ApplicationsListRequestExpand: core.serialization.Schema< - serializers.ats.ApplicationsListRequestExpand.Raw, - Merge.ats.ApplicationsListRequestExpand -> = core.serialization.enum_([ - "candidate", - "candidate,credited_to", - "candidate,credited_to,current_stage", - "candidate,credited_to,current_stage,reject_reason", - "candidate,credited_to,reject_reason", - "candidate,current_stage", - "candidate,current_stage,reject_reason", - "candidate,job", - "candidate,job,credited_to", - "candidate,job,credited_to,current_stage", - "candidate,job,credited_to,current_stage,reject_reason", - "candidate,job,credited_to,reject_reason", - "candidate,job,current_stage", - "candidate,job,current_stage,reject_reason", - "candidate,job,reject_reason", - "candidate,reject_reason", - "credited_to", - "credited_to,current_stage", - "credited_to,current_stage,reject_reason", - "credited_to,reject_reason", - "current_stage", - "current_stage,reject_reason", - "job", - "job,credited_to", - "job,credited_to,current_stage", - "job,credited_to,current_stage,reject_reason", - "job,credited_to,reject_reason", - "job,current_stage", - "job,current_stage,reject_reason", - "job,reject_reason", - "offers", - "offers,candidate", - "offers,candidate,credited_to", - "offers,candidate,credited_to,current_stage", - "offers,candidate,credited_to,current_stage,reject_reason", - "offers,candidate,credited_to,reject_reason", - "offers,candidate,current_stage", - "offers,candidate,current_stage,reject_reason", - "offers,candidate,job", - "offers,candidate,job,credited_to", - "offers,candidate,job,credited_to,current_stage", - "offers,candidate,job,credited_to,current_stage,reject_reason", - "offers,candidate,job,credited_to,reject_reason", - "offers,candidate,job,current_stage", - "offers,candidate,job,current_stage,reject_reason", - "offers,candidate,job,reject_reason", - "offers,candidate,reject_reason", - "offers,credited_to", - "offers,credited_to,current_stage", - "offers,credited_to,current_stage,reject_reason", - "offers,credited_to,reject_reason", - "offers,current_stage", - "offers,current_stage,reject_reason", - "offers,job", - "offers,job,credited_to", - "offers,job,credited_to,current_stage", - "offers,job,credited_to,current_stage,reject_reason", - "offers,job,credited_to,reject_reason", - "offers,job,current_stage", - "offers,job,current_stage,reject_reason", - "offers,job,reject_reason", - "offers,reject_reason", - "offers,screening_question_answers", - "offers,screening_question_answers,candidate", - "offers,screening_question_answers,candidate,credited_to", - "offers,screening_question_answers,candidate,credited_to,current_stage", - "offers,screening_question_answers,candidate,credited_to,current_stage,reject_reason", - "offers,screening_question_answers,candidate,credited_to,reject_reason", - "offers,screening_question_answers,candidate,current_stage", - "offers,screening_question_answers,candidate,current_stage,reject_reason", - "offers,screening_question_answers,candidate,job", - "offers,screening_question_answers,candidate,job,credited_to", - "offers,screening_question_answers,candidate,job,credited_to,current_stage", - "offers,screening_question_answers,candidate,job,credited_to,current_stage,reject_reason", - "offers,screening_question_answers,candidate,job,credited_to,reject_reason", - "offers,screening_question_answers,candidate,job,current_stage", - "offers,screening_question_answers,candidate,job,current_stage,reject_reason", - "offers,screening_question_answers,candidate,job,reject_reason", - "offers,screening_question_answers,candidate,reject_reason", - "offers,screening_question_answers,credited_to", - "offers,screening_question_answers,credited_to,current_stage", - "offers,screening_question_answers,credited_to,current_stage,reject_reason", - "offers,screening_question_answers,credited_to,reject_reason", - "offers,screening_question_answers,current_stage", - "offers,screening_question_answers,current_stage,reject_reason", - "offers,screening_question_answers,job", - "offers,screening_question_answers,job,credited_to", - "offers,screening_question_answers,job,credited_to,current_stage", - "offers,screening_question_answers,job,credited_to,current_stage,reject_reason", - "offers,screening_question_answers,job,credited_to,reject_reason", - "offers,screening_question_answers,job,current_stage", - "offers,screening_question_answers,job,current_stage,reject_reason", - "offers,screening_question_answers,job,reject_reason", - "offers,screening_question_answers,reject_reason", - "offers,screening_question_answers,screening_question_answers.question", - "offers,screening_question_answers,screening_question_answers.question,candidate", - "offers,screening_question_answers,screening_question_answers.question,candidate,credited_to", - "offers,screening_question_answers,screening_question_answers.question,candidate,credited_to,current_stage", - "offers,screening_question_answers,screening_question_answers.question,candidate,credited_to,current_stage,reject_reason", - "offers,screening_question_answers,screening_question_answers.question,candidate,credited_to,reject_reason", - "offers,screening_question_answers,screening_question_answers.question,candidate,current_stage", - "offers,screening_question_answers,screening_question_answers.question,candidate,current_stage,reject_reason", - "offers,screening_question_answers,screening_question_answers.question,candidate,job", - "offers,screening_question_answers,screening_question_answers.question,candidate,job,credited_to", - "offers,screening_question_answers,screening_question_answers.question,candidate,job,credited_to,current_stage", - "offers,screening_question_answers,screening_question_answers.question,candidate,job,credited_to,current_stage,reject_reason", - "offers,screening_question_answers,screening_question_answers.question,candidate,job,credited_to,reject_reason", - "offers,screening_question_answers,screening_question_answers.question,candidate,job,current_stage", - "offers,screening_question_answers,screening_question_answers.question,candidate,job,current_stage,reject_reason", - "offers,screening_question_answers,screening_question_answers.question,candidate,job,reject_reason", - "offers,screening_question_answers,screening_question_answers.question,candidate,reject_reason", - "offers,screening_question_answers,screening_question_answers.question,credited_to", - "offers,screening_question_answers,screening_question_answers.question,credited_to,current_stage", - "offers,screening_question_answers,screening_question_answers.question,credited_to,current_stage,reject_reason", - "offers,screening_question_answers,screening_question_answers.question,credited_to,reject_reason", - "offers,screening_question_answers,screening_question_answers.question,current_stage", - "offers,screening_question_answers,screening_question_answers.question,current_stage,reject_reason", - "offers,screening_question_answers,screening_question_answers.question,job", - "offers,screening_question_answers,screening_question_answers.question,job,credited_to", - "offers,screening_question_answers,screening_question_answers.question,job,credited_to,current_stage", - "offers,screening_question_answers,screening_question_answers.question,job,credited_to,current_stage,reject_reason", - "offers,screening_question_answers,screening_question_answers.question,job,credited_to,reject_reason", - "offers,screening_question_answers,screening_question_answers.question,job,current_stage", - "offers,screening_question_answers,screening_question_answers.question,job,current_stage,reject_reason", - "offers,screening_question_answers,screening_question_answers.question,job,reject_reason", - "offers,screening_question_answers,screening_question_answers.question,reject_reason", - "offers,screening_question_answers.question", - "offers,screening_question_answers.question,candidate", - "offers,screening_question_answers.question,candidate,credited_to", - "offers,screening_question_answers.question,candidate,credited_to,current_stage", - "offers,screening_question_answers.question,candidate,credited_to,current_stage,reject_reason", - "offers,screening_question_answers.question,candidate,credited_to,reject_reason", - "offers,screening_question_answers.question,candidate,current_stage", - "offers,screening_question_answers.question,candidate,current_stage,reject_reason", - "offers,screening_question_answers.question,candidate,job", - "offers,screening_question_answers.question,candidate,job,credited_to", - "offers,screening_question_answers.question,candidate,job,credited_to,current_stage", - "offers,screening_question_answers.question,candidate,job,credited_to,current_stage,reject_reason", - "offers,screening_question_answers.question,candidate,job,credited_to,reject_reason", - "offers,screening_question_answers.question,candidate,job,current_stage", - "offers,screening_question_answers.question,candidate,job,current_stage,reject_reason", - "offers,screening_question_answers.question,candidate,job,reject_reason", - "offers,screening_question_answers.question,candidate,reject_reason", - "offers,screening_question_answers.question,credited_to", - "offers,screening_question_answers.question,credited_to,current_stage", - "offers,screening_question_answers.question,credited_to,current_stage,reject_reason", - "offers,screening_question_answers.question,credited_to,reject_reason", - "offers,screening_question_answers.question,current_stage", - "offers,screening_question_answers.question,current_stage,reject_reason", - "offers,screening_question_answers.question,job", - "offers,screening_question_answers.question,job,credited_to", - "offers,screening_question_answers.question,job,credited_to,current_stage", - "offers,screening_question_answers.question,job,credited_to,current_stage,reject_reason", - "offers,screening_question_answers.question,job,credited_to,reject_reason", - "offers,screening_question_answers.question,job,current_stage", - "offers,screening_question_answers.question,job,current_stage,reject_reason", - "offers,screening_question_answers.question,job,reject_reason", - "offers,screening_question_answers.question,reject_reason", - "reject_reason", - "screening_question_answers", - "screening_question_answers,candidate", - "screening_question_answers,candidate,credited_to", - "screening_question_answers,candidate,credited_to,current_stage", - "screening_question_answers,candidate,credited_to,current_stage,reject_reason", - "screening_question_answers,candidate,credited_to,reject_reason", - "screening_question_answers,candidate,current_stage", - "screening_question_answers,candidate,current_stage,reject_reason", - "screening_question_answers,candidate,job", - "screening_question_answers,candidate,job,credited_to", - "screening_question_answers,candidate,job,credited_to,current_stage", - "screening_question_answers,candidate,job,credited_to,current_stage,reject_reason", - "screening_question_answers,candidate,job,credited_to,reject_reason", - "screening_question_answers,candidate,job,current_stage", - "screening_question_answers,candidate,job,current_stage,reject_reason", - "screening_question_answers,candidate,job,reject_reason", - "screening_question_answers,candidate,reject_reason", - "screening_question_answers,credited_to", - "screening_question_answers,credited_to,current_stage", - "screening_question_answers,credited_to,current_stage,reject_reason", - "screening_question_answers,credited_to,reject_reason", - "screening_question_answers,current_stage", - "screening_question_answers,current_stage,reject_reason", - "screening_question_answers,job", - "screening_question_answers,job,credited_to", - "screening_question_answers,job,credited_to,current_stage", - "screening_question_answers,job,credited_to,current_stage,reject_reason", - "screening_question_answers,job,credited_to,reject_reason", - "screening_question_answers,job,current_stage", - "screening_question_answers,job,current_stage,reject_reason", - "screening_question_answers,job,reject_reason", - "screening_question_answers,reject_reason", - "screening_question_answers,screening_question_answers.question", - "screening_question_answers,screening_question_answers.question,candidate", - "screening_question_answers,screening_question_answers.question,candidate,credited_to", - "screening_question_answers,screening_question_answers.question,candidate,credited_to,current_stage", - "screening_question_answers,screening_question_answers.question,candidate,credited_to,current_stage,reject_reason", - "screening_question_answers,screening_question_answers.question,candidate,credited_to,reject_reason", - "screening_question_answers,screening_question_answers.question,candidate,current_stage", - "screening_question_answers,screening_question_answers.question,candidate,current_stage,reject_reason", - "screening_question_answers,screening_question_answers.question,candidate,job", - "screening_question_answers,screening_question_answers.question,candidate,job,credited_to", - "screening_question_answers,screening_question_answers.question,candidate,job,credited_to,current_stage", - "screening_question_answers,screening_question_answers.question,candidate,job,credited_to,current_stage,reject_reason", - "screening_question_answers,screening_question_answers.question,candidate,job,credited_to,reject_reason", - "screening_question_answers,screening_question_answers.question,candidate,job,current_stage", - "screening_question_answers,screening_question_answers.question,candidate,job,current_stage,reject_reason", - "screening_question_answers,screening_question_answers.question,candidate,job,reject_reason", - "screening_question_answers,screening_question_answers.question,candidate,reject_reason", - "screening_question_answers,screening_question_answers.question,credited_to", - "screening_question_answers,screening_question_answers.question,credited_to,current_stage", - "screening_question_answers,screening_question_answers.question,credited_to,current_stage,reject_reason", - "screening_question_answers,screening_question_answers.question,credited_to,reject_reason", - "screening_question_answers,screening_question_answers.question,current_stage", - "screening_question_answers,screening_question_answers.question,current_stage,reject_reason", - "screening_question_answers,screening_question_answers.question,job", - "screening_question_answers,screening_question_answers.question,job,credited_to", - "screening_question_answers,screening_question_answers.question,job,credited_to,current_stage", - "screening_question_answers,screening_question_answers.question,job,credited_to,current_stage,reject_reason", - "screening_question_answers,screening_question_answers.question,job,credited_to,reject_reason", - "screening_question_answers,screening_question_answers.question,job,current_stage", - "screening_question_answers,screening_question_answers.question,job,current_stage,reject_reason", - "screening_question_answers,screening_question_answers.question,job,reject_reason", - "screening_question_answers,screening_question_answers.question,reject_reason", - "screening_question_answers.question", - "screening_question_answers.question,candidate", - "screening_question_answers.question,candidate,credited_to", - "screening_question_answers.question,candidate,credited_to,current_stage", - "screening_question_answers.question,candidate,credited_to,current_stage,reject_reason", - "screening_question_answers.question,candidate,credited_to,reject_reason", - "screening_question_answers.question,candidate,current_stage", - "screening_question_answers.question,candidate,current_stage,reject_reason", - "screening_question_answers.question,candidate,job", - "screening_question_answers.question,candidate,job,credited_to", - "screening_question_answers.question,candidate,job,credited_to,current_stage", - "screening_question_answers.question,candidate,job,credited_to,current_stage,reject_reason", - "screening_question_answers.question,candidate,job,credited_to,reject_reason", - "screening_question_answers.question,candidate,job,current_stage", - "screening_question_answers.question,candidate,job,current_stage,reject_reason", - "screening_question_answers.question,candidate,job,reject_reason", - "screening_question_answers.question,candidate,reject_reason", - "screening_question_answers.question,credited_to", - "screening_question_answers.question,credited_to,current_stage", - "screening_question_answers.question,credited_to,current_stage,reject_reason", - "screening_question_answers.question,credited_to,reject_reason", - "screening_question_answers.question,current_stage", - "screening_question_answers.question,current_stage,reject_reason", - "screening_question_answers.question,job", - "screening_question_answers.question,job,credited_to", - "screening_question_answers.question,job,credited_to,current_stage", - "screening_question_answers.question,job,credited_to,current_stage,reject_reason", - "screening_question_answers.question,job,credited_to,reject_reason", - "screening_question_answers.question,job,current_stage", - "screening_question_answers.question,job,current_stage,reject_reason", - "screening_question_answers.question,job,reject_reason", - "screening_question_answers.question,reject_reason", -]); - -export declare namespace ApplicationsListRequestExpand { - export type Raw = - | "candidate" - | "candidate,credited_to" - | "candidate,credited_to,current_stage" - | "candidate,credited_to,current_stage,reject_reason" - | "candidate,credited_to,reject_reason" - | "candidate,current_stage" - | "candidate,current_stage,reject_reason" - | "candidate,job" - | "candidate,job,credited_to" - | "candidate,job,credited_to,current_stage" - | "candidate,job,credited_to,current_stage,reject_reason" - | "candidate,job,credited_to,reject_reason" - | "candidate,job,current_stage" - | "candidate,job,current_stage,reject_reason" - | "candidate,job,reject_reason" - | "candidate,reject_reason" - | "credited_to" - | "credited_to,current_stage" - | "credited_to,current_stage,reject_reason" - | "credited_to,reject_reason" - | "current_stage" - | "current_stage,reject_reason" - | "job" - | "job,credited_to" - | "job,credited_to,current_stage" - | "job,credited_to,current_stage,reject_reason" - | "job,credited_to,reject_reason" - | "job,current_stage" - | "job,current_stage,reject_reason" - | "job,reject_reason" - | "offers" - | "offers,candidate" - | "offers,candidate,credited_to" - | "offers,candidate,credited_to,current_stage" - | "offers,candidate,credited_to,current_stage,reject_reason" - | "offers,candidate,credited_to,reject_reason" - | "offers,candidate,current_stage" - | "offers,candidate,current_stage,reject_reason" - | "offers,candidate,job" - | "offers,candidate,job,credited_to" - | "offers,candidate,job,credited_to,current_stage" - | "offers,candidate,job,credited_to,current_stage,reject_reason" - | "offers,candidate,job,credited_to,reject_reason" - | "offers,candidate,job,current_stage" - | "offers,candidate,job,current_stage,reject_reason" - | "offers,candidate,job,reject_reason" - | "offers,candidate,reject_reason" - | "offers,credited_to" - | "offers,credited_to,current_stage" - | "offers,credited_to,current_stage,reject_reason" - | "offers,credited_to,reject_reason" - | "offers,current_stage" - | "offers,current_stage,reject_reason" - | "offers,job" - | "offers,job,credited_to" - | "offers,job,credited_to,current_stage" - | "offers,job,credited_to,current_stage,reject_reason" - | "offers,job,credited_to,reject_reason" - | "offers,job,current_stage" - | "offers,job,current_stage,reject_reason" - | "offers,job,reject_reason" - | "offers,reject_reason" - | "offers,screening_question_answers" - | "offers,screening_question_answers,candidate" - | "offers,screening_question_answers,candidate,credited_to" - | "offers,screening_question_answers,candidate,credited_to,current_stage" - | "offers,screening_question_answers,candidate,credited_to,current_stage,reject_reason" - | "offers,screening_question_answers,candidate,credited_to,reject_reason" - | "offers,screening_question_answers,candidate,current_stage" - | "offers,screening_question_answers,candidate,current_stage,reject_reason" - | "offers,screening_question_answers,candidate,job" - | "offers,screening_question_answers,candidate,job,credited_to" - | "offers,screening_question_answers,candidate,job,credited_to,current_stage" - | "offers,screening_question_answers,candidate,job,credited_to,current_stage,reject_reason" - | "offers,screening_question_answers,candidate,job,credited_to,reject_reason" - | "offers,screening_question_answers,candidate,job,current_stage" - | "offers,screening_question_answers,candidate,job,current_stage,reject_reason" - | "offers,screening_question_answers,candidate,job,reject_reason" - | "offers,screening_question_answers,candidate,reject_reason" - | "offers,screening_question_answers,credited_to" - | "offers,screening_question_answers,credited_to,current_stage" - | "offers,screening_question_answers,credited_to,current_stage,reject_reason" - | "offers,screening_question_answers,credited_to,reject_reason" - | "offers,screening_question_answers,current_stage" - | "offers,screening_question_answers,current_stage,reject_reason" - | "offers,screening_question_answers,job" - | "offers,screening_question_answers,job,credited_to" - | "offers,screening_question_answers,job,credited_to,current_stage" - | "offers,screening_question_answers,job,credited_to,current_stage,reject_reason" - | "offers,screening_question_answers,job,credited_to,reject_reason" - | "offers,screening_question_answers,job,current_stage" - | "offers,screening_question_answers,job,current_stage,reject_reason" - | "offers,screening_question_answers,job,reject_reason" - | "offers,screening_question_answers,reject_reason" - | "offers,screening_question_answers,screening_question_answers.question" - | "offers,screening_question_answers,screening_question_answers.question,candidate" - | "offers,screening_question_answers,screening_question_answers.question,candidate,credited_to" - | "offers,screening_question_answers,screening_question_answers.question,candidate,credited_to,current_stage" - | "offers,screening_question_answers,screening_question_answers.question,candidate,credited_to,current_stage,reject_reason" - | "offers,screening_question_answers,screening_question_answers.question,candidate,credited_to,reject_reason" - | "offers,screening_question_answers,screening_question_answers.question,candidate,current_stage" - | "offers,screening_question_answers,screening_question_answers.question,candidate,current_stage,reject_reason" - | "offers,screening_question_answers,screening_question_answers.question,candidate,job" - | "offers,screening_question_answers,screening_question_answers.question,candidate,job,credited_to" - | "offers,screening_question_answers,screening_question_answers.question,candidate,job,credited_to,current_stage" - | "offers,screening_question_answers,screening_question_answers.question,candidate,job,credited_to,current_stage,reject_reason" - | "offers,screening_question_answers,screening_question_answers.question,candidate,job,credited_to,reject_reason" - | "offers,screening_question_answers,screening_question_answers.question,candidate,job,current_stage" - | "offers,screening_question_answers,screening_question_answers.question,candidate,job,current_stage,reject_reason" - | "offers,screening_question_answers,screening_question_answers.question,candidate,job,reject_reason" - | "offers,screening_question_answers,screening_question_answers.question,candidate,reject_reason" - | "offers,screening_question_answers,screening_question_answers.question,credited_to" - | "offers,screening_question_answers,screening_question_answers.question,credited_to,current_stage" - | "offers,screening_question_answers,screening_question_answers.question,credited_to,current_stage,reject_reason" - | "offers,screening_question_answers,screening_question_answers.question,credited_to,reject_reason" - | "offers,screening_question_answers,screening_question_answers.question,current_stage" - | "offers,screening_question_answers,screening_question_answers.question,current_stage,reject_reason" - | "offers,screening_question_answers,screening_question_answers.question,job" - | "offers,screening_question_answers,screening_question_answers.question,job,credited_to" - | "offers,screening_question_answers,screening_question_answers.question,job,credited_to,current_stage" - | "offers,screening_question_answers,screening_question_answers.question,job,credited_to,current_stage,reject_reason" - | "offers,screening_question_answers,screening_question_answers.question,job,credited_to,reject_reason" - | "offers,screening_question_answers,screening_question_answers.question,job,current_stage" - | "offers,screening_question_answers,screening_question_answers.question,job,current_stage,reject_reason" - | "offers,screening_question_answers,screening_question_answers.question,job,reject_reason" - | "offers,screening_question_answers,screening_question_answers.question,reject_reason" - | "offers,screening_question_answers.question" - | "offers,screening_question_answers.question,candidate" - | "offers,screening_question_answers.question,candidate,credited_to" - | "offers,screening_question_answers.question,candidate,credited_to,current_stage" - | "offers,screening_question_answers.question,candidate,credited_to,current_stage,reject_reason" - | "offers,screening_question_answers.question,candidate,credited_to,reject_reason" - | "offers,screening_question_answers.question,candidate,current_stage" - | "offers,screening_question_answers.question,candidate,current_stage,reject_reason" - | "offers,screening_question_answers.question,candidate,job" - | "offers,screening_question_answers.question,candidate,job,credited_to" - | "offers,screening_question_answers.question,candidate,job,credited_to,current_stage" - | "offers,screening_question_answers.question,candidate,job,credited_to,current_stage,reject_reason" - | "offers,screening_question_answers.question,candidate,job,credited_to,reject_reason" - | "offers,screening_question_answers.question,candidate,job,current_stage" - | "offers,screening_question_answers.question,candidate,job,current_stage,reject_reason" - | "offers,screening_question_answers.question,candidate,job,reject_reason" - | "offers,screening_question_answers.question,candidate,reject_reason" - | "offers,screening_question_answers.question,credited_to" - | "offers,screening_question_answers.question,credited_to,current_stage" - | "offers,screening_question_answers.question,credited_to,current_stage,reject_reason" - | "offers,screening_question_answers.question,credited_to,reject_reason" - | "offers,screening_question_answers.question,current_stage" - | "offers,screening_question_answers.question,current_stage,reject_reason" - | "offers,screening_question_answers.question,job" - | "offers,screening_question_answers.question,job,credited_to" - | "offers,screening_question_answers.question,job,credited_to,current_stage" - | "offers,screening_question_answers.question,job,credited_to,current_stage,reject_reason" - | "offers,screening_question_answers.question,job,credited_to,reject_reason" - | "offers,screening_question_answers.question,job,current_stage" - | "offers,screening_question_answers.question,job,current_stage,reject_reason" - | "offers,screening_question_answers.question,job,reject_reason" - | "offers,screening_question_answers.question,reject_reason" - | "reject_reason" - | "screening_question_answers" - | "screening_question_answers,candidate" - | "screening_question_answers,candidate,credited_to" - | "screening_question_answers,candidate,credited_to,current_stage" - | "screening_question_answers,candidate,credited_to,current_stage,reject_reason" - | "screening_question_answers,candidate,credited_to,reject_reason" - | "screening_question_answers,candidate,current_stage" - | "screening_question_answers,candidate,current_stage,reject_reason" - | "screening_question_answers,candidate,job" - | "screening_question_answers,candidate,job,credited_to" - | "screening_question_answers,candidate,job,credited_to,current_stage" - | "screening_question_answers,candidate,job,credited_to,current_stage,reject_reason" - | "screening_question_answers,candidate,job,credited_to,reject_reason" - | "screening_question_answers,candidate,job,current_stage" - | "screening_question_answers,candidate,job,current_stage,reject_reason" - | "screening_question_answers,candidate,job,reject_reason" - | "screening_question_answers,candidate,reject_reason" - | "screening_question_answers,credited_to" - | "screening_question_answers,credited_to,current_stage" - | "screening_question_answers,credited_to,current_stage,reject_reason" - | "screening_question_answers,credited_to,reject_reason" - | "screening_question_answers,current_stage" - | "screening_question_answers,current_stage,reject_reason" - | "screening_question_answers,job" - | "screening_question_answers,job,credited_to" - | "screening_question_answers,job,credited_to,current_stage" - | "screening_question_answers,job,credited_to,current_stage,reject_reason" - | "screening_question_answers,job,credited_to,reject_reason" - | "screening_question_answers,job,current_stage" - | "screening_question_answers,job,current_stage,reject_reason" - | "screening_question_answers,job,reject_reason" - | "screening_question_answers,reject_reason" - | "screening_question_answers,screening_question_answers.question" - | "screening_question_answers,screening_question_answers.question,candidate" - | "screening_question_answers,screening_question_answers.question,candidate,credited_to" - | "screening_question_answers,screening_question_answers.question,candidate,credited_to,current_stage" - | "screening_question_answers,screening_question_answers.question,candidate,credited_to,current_stage,reject_reason" - | "screening_question_answers,screening_question_answers.question,candidate,credited_to,reject_reason" - | "screening_question_answers,screening_question_answers.question,candidate,current_stage" - | "screening_question_answers,screening_question_answers.question,candidate,current_stage,reject_reason" - | "screening_question_answers,screening_question_answers.question,candidate,job" - | "screening_question_answers,screening_question_answers.question,candidate,job,credited_to" - | "screening_question_answers,screening_question_answers.question,candidate,job,credited_to,current_stage" - | "screening_question_answers,screening_question_answers.question,candidate,job,credited_to,current_stage,reject_reason" - | "screening_question_answers,screening_question_answers.question,candidate,job,credited_to,reject_reason" - | "screening_question_answers,screening_question_answers.question,candidate,job,current_stage" - | "screening_question_answers,screening_question_answers.question,candidate,job,current_stage,reject_reason" - | "screening_question_answers,screening_question_answers.question,candidate,job,reject_reason" - | "screening_question_answers,screening_question_answers.question,candidate,reject_reason" - | "screening_question_answers,screening_question_answers.question,credited_to" - | "screening_question_answers,screening_question_answers.question,credited_to,current_stage" - | "screening_question_answers,screening_question_answers.question,credited_to,current_stage,reject_reason" - | "screening_question_answers,screening_question_answers.question,credited_to,reject_reason" - | "screening_question_answers,screening_question_answers.question,current_stage" - | "screening_question_answers,screening_question_answers.question,current_stage,reject_reason" - | "screening_question_answers,screening_question_answers.question,job" - | "screening_question_answers,screening_question_answers.question,job,credited_to" - | "screening_question_answers,screening_question_answers.question,job,credited_to,current_stage" - | "screening_question_answers,screening_question_answers.question,job,credited_to,current_stage,reject_reason" - | "screening_question_answers,screening_question_answers.question,job,credited_to,reject_reason" - | "screening_question_answers,screening_question_answers.question,job,current_stage" - | "screening_question_answers,screening_question_answers.question,job,current_stage,reject_reason" - | "screening_question_answers,screening_question_answers.question,job,reject_reason" - | "screening_question_answers,screening_question_answers.question,reject_reason" - | "screening_question_answers.question" - | "screening_question_answers.question,candidate" - | "screening_question_answers.question,candidate,credited_to" - | "screening_question_answers.question,candidate,credited_to,current_stage" - | "screening_question_answers.question,candidate,credited_to,current_stage,reject_reason" - | "screening_question_answers.question,candidate,credited_to,reject_reason" - | "screening_question_answers.question,candidate,current_stage" - | "screening_question_answers.question,candidate,current_stage,reject_reason" - | "screening_question_answers.question,candidate,job" - | "screening_question_answers.question,candidate,job,credited_to" - | "screening_question_answers.question,candidate,job,credited_to,current_stage" - | "screening_question_answers.question,candidate,job,credited_to,current_stage,reject_reason" - | "screening_question_answers.question,candidate,job,credited_to,reject_reason" - | "screening_question_answers.question,candidate,job,current_stage" - | "screening_question_answers.question,candidate,job,current_stage,reject_reason" - | "screening_question_answers.question,candidate,job,reject_reason" - | "screening_question_answers.question,candidate,reject_reason" - | "screening_question_answers.question,credited_to" - | "screening_question_answers.question,credited_to,current_stage" - | "screening_question_answers.question,credited_to,current_stage,reject_reason" - | "screening_question_answers.question,credited_to,reject_reason" - | "screening_question_answers.question,current_stage" - | "screening_question_answers.question,current_stage,reject_reason" - | "screening_question_answers.question,job" - | "screening_question_answers.question,job,credited_to" - | "screening_question_answers.question,job,credited_to,current_stage" - | "screening_question_answers.question,job,credited_to,current_stage,reject_reason" - | "screening_question_answers.question,job,credited_to,reject_reason" - | "screening_question_answers.question,job,current_stage" - | "screening_question_answers.question,job,current_stage,reject_reason" - | "screening_question_answers.question,job,reject_reason" - | "screening_question_answers.question,reject_reason"; -} diff --git a/src/serialization/resources/ats/resources/applications/types/ApplicationsListRequestExpandItem.ts b/src/serialization/resources/ats/resources/applications/types/ApplicationsListRequestExpandItem.ts new file mode 100644 index 000000000..f6d70f6aa --- /dev/null +++ b/src/serialization/resources/ats/resources/applications/types/ApplicationsListRequestExpandItem.ts @@ -0,0 +1,31 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const ApplicationsListRequestExpandItem: core.serialization.Schema< + serializers.ats.ApplicationsListRequestExpandItem.Raw, + Merge.ats.ApplicationsListRequestExpandItem +> = core.serialization.enum_([ + "candidate", + "credited_to", + "current_stage", + "job", + "offers", + "reject_reason", + "screening_question_answers", + "screening_question_answers.question", +]); + +export declare namespace ApplicationsListRequestExpandItem { + export type Raw = + | "candidate" + | "credited_to" + | "current_stage" + | "job" + | "offers" + | "reject_reason" + | "screening_question_answers" + | "screening_question_answers.question"; +} diff --git a/src/serialization/resources/ats/resources/applications/types/ApplicationsRetrieveRequestExpand.ts b/src/serialization/resources/ats/resources/applications/types/ApplicationsRetrieveRequestExpand.ts deleted file mode 100644 index a61f635cb..000000000 --- a/src/serialization/resources/ats/resources/applications/types/ApplicationsRetrieveRequestExpand.ts +++ /dev/null @@ -1,525 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const ApplicationsRetrieveRequestExpand: core.serialization.Schema< - serializers.ats.ApplicationsRetrieveRequestExpand.Raw, - Merge.ats.ApplicationsRetrieveRequestExpand -> = core.serialization.enum_([ - "candidate", - "candidate,credited_to", - "candidate,credited_to,current_stage", - "candidate,credited_to,current_stage,reject_reason", - "candidate,credited_to,reject_reason", - "candidate,current_stage", - "candidate,current_stage,reject_reason", - "candidate,job", - "candidate,job,credited_to", - "candidate,job,credited_to,current_stage", - "candidate,job,credited_to,current_stage,reject_reason", - "candidate,job,credited_to,reject_reason", - "candidate,job,current_stage", - "candidate,job,current_stage,reject_reason", - "candidate,job,reject_reason", - "candidate,reject_reason", - "credited_to", - "credited_to,current_stage", - "credited_to,current_stage,reject_reason", - "credited_to,reject_reason", - "current_stage", - "current_stage,reject_reason", - "job", - "job,credited_to", - "job,credited_to,current_stage", - "job,credited_to,current_stage,reject_reason", - "job,credited_to,reject_reason", - "job,current_stage", - "job,current_stage,reject_reason", - "job,reject_reason", - "offers", - "offers,candidate", - "offers,candidate,credited_to", - "offers,candidate,credited_to,current_stage", - "offers,candidate,credited_to,current_stage,reject_reason", - "offers,candidate,credited_to,reject_reason", - "offers,candidate,current_stage", - "offers,candidate,current_stage,reject_reason", - "offers,candidate,job", - "offers,candidate,job,credited_to", - "offers,candidate,job,credited_to,current_stage", - "offers,candidate,job,credited_to,current_stage,reject_reason", - "offers,candidate,job,credited_to,reject_reason", - "offers,candidate,job,current_stage", - "offers,candidate,job,current_stage,reject_reason", - "offers,candidate,job,reject_reason", - "offers,candidate,reject_reason", - "offers,credited_to", - "offers,credited_to,current_stage", - "offers,credited_to,current_stage,reject_reason", - "offers,credited_to,reject_reason", - "offers,current_stage", - "offers,current_stage,reject_reason", - "offers,job", - "offers,job,credited_to", - "offers,job,credited_to,current_stage", - "offers,job,credited_to,current_stage,reject_reason", - "offers,job,credited_to,reject_reason", - "offers,job,current_stage", - "offers,job,current_stage,reject_reason", - "offers,job,reject_reason", - "offers,reject_reason", - "offers,screening_question_answers", - "offers,screening_question_answers,candidate", - "offers,screening_question_answers,candidate,credited_to", - "offers,screening_question_answers,candidate,credited_to,current_stage", - "offers,screening_question_answers,candidate,credited_to,current_stage,reject_reason", - "offers,screening_question_answers,candidate,credited_to,reject_reason", - "offers,screening_question_answers,candidate,current_stage", - "offers,screening_question_answers,candidate,current_stage,reject_reason", - "offers,screening_question_answers,candidate,job", - "offers,screening_question_answers,candidate,job,credited_to", - "offers,screening_question_answers,candidate,job,credited_to,current_stage", - "offers,screening_question_answers,candidate,job,credited_to,current_stage,reject_reason", - "offers,screening_question_answers,candidate,job,credited_to,reject_reason", - "offers,screening_question_answers,candidate,job,current_stage", - "offers,screening_question_answers,candidate,job,current_stage,reject_reason", - "offers,screening_question_answers,candidate,job,reject_reason", - "offers,screening_question_answers,candidate,reject_reason", - "offers,screening_question_answers,credited_to", - "offers,screening_question_answers,credited_to,current_stage", - "offers,screening_question_answers,credited_to,current_stage,reject_reason", - "offers,screening_question_answers,credited_to,reject_reason", - "offers,screening_question_answers,current_stage", - "offers,screening_question_answers,current_stage,reject_reason", - "offers,screening_question_answers,job", - "offers,screening_question_answers,job,credited_to", - "offers,screening_question_answers,job,credited_to,current_stage", - "offers,screening_question_answers,job,credited_to,current_stage,reject_reason", - "offers,screening_question_answers,job,credited_to,reject_reason", - "offers,screening_question_answers,job,current_stage", - "offers,screening_question_answers,job,current_stage,reject_reason", - "offers,screening_question_answers,job,reject_reason", - "offers,screening_question_answers,reject_reason", - "offers,screening_question_answers,screening_question_answers.question", - "offers,screening_question_answers,screening_question_answers.question,candidate", - "offers,screening_question_answers,screening_question_answers.question,candidate,credited_to", - "offers,screening_question_answers,screening_question_answers.question,candidate,credited_to,current_stage", - "offers,screening_question_answers,screening_question_answers.question,candidate,credited_to,current_stage,reject_reason", - "offers,screening_question_answers,screening_question_answers.question,candidate,credited_to,reject_reason", - "offers,screening_question_answers,screening_question_answers.question,candidate,current_stage", - "offers,screening_question_answers,screening_question_answers.question,candidate,current_stage,reject_reason", - "offers,screening_question_answers,screening_question_answers.question,candidate,job", - "offers,screening_question_answers,screening_question_answers.question,candidate,job,credited_to", - "offers,screening_question_answers,screening_question_answers.question,candidate,job,credited_to,current_stage", - "offers,screening_question_answers,screening_question_answers.question,candidate,job,credited_to,current_stage,reject_reason", - "offers,screening_question_answers,screening_question_answers.question,candidate,job,credited_to,reject_reason", - "offers,screening_question_answers,screening_question_answers.question,candidate,job,current_stage", - "offers,screening_question_answers,screening_question_answers.question,candidate,job,current_stage,reject_reason", - "offers,screening_question_answers,screening_question_answers.question,candidate,job,reject_reason", - "offers,screening_question_answers,screening_question_answers.question,candidate,reject_reason", - "offers,screening_question_answers,screening_question_answers.question,credited_to", - "offers,screening_question_answers,screening_question_answers.question,credited_to,current_stage", - "offers,screening_question_answers,screening_question_answers.question,credited_to,current_stage,reject_reason", - "offers,screening_question_answers,screening_question_answers.question,credited_to,reject_reason", - "offers,screening_question_answers,screening_question_answers.question,current_stage", - "offers,screening_question_answers,screening_question_answers.question,current_stage,reject_reason", - "offers,screening_question_answers,screening_question_answers.question,job", - "offers,screening_question_answers,screening_question_answers.question,job,credited_to", - "offers,screening_question_answers,screening_question_answers.question,job,credited_to,current_stage", - "offers,screening_question_answers,screening_question_answers.question,job,credited_to,current_stage,reject_reason", - "offers,screening_question_answers,screening_question_answers.question,job,credited_to,reject_reason", - "offers,screening_question_answers,screening_question_answers.question,job,current_stage", - "offers,screening_question_answers,screening_question_answers.question,job,current_stage,reject_reason", - "offers,screening_question_answers,screening_question_answers.question,job,reject_reason", - "offers,screening_question_answers,screening_question_answers.question,reject_reason", - "offers,screening_question_answers.question", - "offers,screening_question_answers.question,candidate", - "offers,screening_question_answers.question,candidate,credited_to", - "offers,screening_question_answers.question,candidate,credited_to,current_stage", - "offers,screening_question_answers.question,candidate,credited_to,current_stage,reject_reason", - "offers,screening_question_answers.question,candidate,credited_to,reject_reason", - "offers,screening_question_answers.question,candidate,current_stage", - "offers,screening_question_answers.question,candidate,current_stage,reject_reason", - "offers,screening_question_answers.question,candidate,job", - "offers,screening_question_answers.question,candidate,job,credited_to", - "offers,screening_question_answers.question,candidate,job,credited_to,current_stage", - "offers,screening_question_answers.question,candidate,job,credited_to,current_stage,reject_reason", - "offers,screening_question_answers.question,candidate,job,credited_to,reject_reason", - "offers,screening_question_answers.question,candidate,job,current_stage", - "offers,screening_question_answers.question,candidate,job,current_stage,reject_reason", - "offers,screening_question_answers.question,candidate,job,reject_reason", - "offers,screening_question_answers.question,candidate,reject_reason", - "offers,screening_question_answers.question,credited_to", - "offers,screening_question_answers.question,credited_to,current_stage", - "offers,screening_question_answers.question,credited_to,current_stage,reject_reason", - "offers,screening_question_answers.question,credited_to,reject_reason", - "offers,screening_question_answers.question,current_stage", - "offers,screening_question_answers.question,current_stage,reject_reason", - "offers,screening_question_answers.question,job", - "offers,screening_question_answers.question,job,credited_to", - "offers,screening_question_answers.question,job,credited_to,current_stage", - "offers,screening_question_answers.question,job,credited_to,current_stage,reject_reason", - "offers,screening_question_answers.question,job,credited_to,reject_reason", - "offers,screening_question_answers.question,job,current_stage", - "offers,screening_question_answers.question,job,current_stage,reject_reason", - "offers,screening_question_answers.question,job,reject_reason", - "offers,screening_question_answers.question,reject_reason", - "reject_reason", - "screening_question_answers", - "screening_question_answers,candidate", - "screening_question_answers,candidate,credited_to", - "screening_question_answers,candidate,credited_to,current_stage", - "screening_question_answers,candidate,credited_to,current_stage,reject_reason", - "screening_question_answers,candidate,credited_to,reject_reason", - "screening_question_answers,candidate,current_stage", - "screening_question_answers,candidate,current_stage,reject_reason", - "screening_question_answers,candidate,job", - "screening_question_answers,candidate,job,credited_to", - "screening_question_answers,candidate,job,credited_to,current_stage", - "screening_question_answers,candidate,job,credited_to,current_stage,reject_reason", - "screening_question_answers,candidate,job,credited_to,reject_reason", - "screening_question_answers,candidate,job,current_stage", - "screening_question_answers,candidate,job,current_stage,reject_reason", - "screening_question_answers,candidate,job,reject_reason", - "screening_question_answers,candidate,reject_reason", - "screening_question_answers,credited_to", - "screening_question_answers,credited_to,current_stage", - "screening_question_answers,credited_to,current_stage,reject_reason", - "screening_question_answers,credited_to,reject_reason", - "screening_question_answers,current_stage", - "screening_question_answers,current_stage,reject_reason", - "screening_question_answers,job", - "screening_question_answers,job,credited_to", - "screening_question_answers,job,credited_to,current_stage", - "screening_question_answers,job,credited_to,current_stage,reject_reason", - "screening_question_answers,job,credited_to,reject_reason", - "screening_question_answers,job,current_stage", - "screening_question_answers,job,current_stage,reject_reason", - "screening_question_answers,job,reject_reason", - "screening_question_answers,reject_reason", - "screening_question_answers,screening_question_answers.question", - "screening_question_answers,screening_question_answers.question,candidate", - "screening_question_answers,screening_question_answers.question,candidate,credited_to", - "screening_question_answers,screening_question_answers.question,candidate,credited_to,current_stage", - "screening_question_answers,screening_question_answers.question,candidate,credited_to,current_stage,reject_reason", - "screening_question_answers,screening_question_answers.question,candidate,credited_to,reject_reason", - "screening_question_answers,screening_question_answers.question,candidate,current_stage", - "screening_question_answers,screening_question_answers.question,candidate,current_stage,reject_reason", - "screening_question_answers,screening_question_answers.question,candidate,job", - "screening_question_answers,screening_question_answers.question,candidate,job,credited_to", - "screening_question_answers,screening_question_answers.question,candidate,job,credited_to,current_stage", - "screening_question_answers,screening_question_answers.question,candidate,job,credited_to,current_stage,reject_reason", - "screening_question_answers,screening_question_answers.question,candidate,job,credited_to,reject_reason", - "screening_question_answers,screening_question_answers.question,candidate,job,current_stage", - "screening_question_answers,screening_question_answers.question,candidate,job,current_stage,reject_reason", - "screening_question_answers,screening_question_answers.question,candidate,job,reject_reason", - "screening_question_answers,screening_question_answers.question,candidate,reject_reason", - "screening_question_answers,screening_question_answers.question,credited_to", - "screening_question_answers,screening_question_answers.question,credited_to,current_stage", - "screening_question_answers,screening_question_answers.question,credited_to,current_stage,reject_reason", - "screening_question_answers,screening_question_answers.question,credited_to,reject_reason", - "screening_question_answers,screening_question_answers.question,current_stage", - "screening_question_answers,screening_question_answers.question,current_stage,reject_reason", - "screening_question_answers,screening_question_answers.question,job", - "screening_question_answers,screening_question_answers.question,job,credited_to", - "screening_question_answers,screening_question_answers.question,job,credited_to,current_stage", - "screening_question_answers,screening_question_answers.question,job,credited_to,current_stage,reject_reason", - "screening_question_answers,screening_question_answers.question,job,credited_to,reject_reason", - "screening_question_answers,screening_question_answers.question,job,current_stage", - "screening_question_answers,screening_question_answers.question,job,current_stage,reject_reason", - "screening_question_answers,screening_question_answers.question,job,reject_reason", - "screening_question_answers,screening_question_answers.question,reject_reason", - "screening_question_answers.question", - "screening_question_answers.question,candidate", - "screening_question_answers.question,candidate,credited_to", - "screening_question_answers.question,candidate,credited_to,current_stage", - "screening_question_answers.question,candidate,credited_to,current_stage,reject_reason", - "screening_question_answers.question,candidate,credited_to,reject_reason", - "screening_question_answers.question,candidate,current_stage", - "screening_question_answers.question,candidate,current_stage,reject_reason", - "screening_question_answers.question,candidate,job", - "screening_question_answers.question,candidate,job,credited_to", - "screening_question_answers.question,candidate,job,credited_to,current_stage", - "screening_question_answers.question,candidate,job,credited_to,current_stage,reject_reason", - "screening_question_answers.question,candidate,job,credited_to,reject_reason", - "screening_question_answers.question,candidate,job,current_stage", - "screening_question_answers.question,candidate,job,current_stage,reject_reason", - "screening_question_answers.question,candidate,job,reject_reason", - "screening_question_answers.question,candidate,reject_reason", - "screening_question_answers.question,credited_to", - "screening_question_answers.question,credited_to,current_stage", - "screening_question_answers.question,credited_to,current_stage,reject_reason", - "screening_question_answers.question,credited_to,reject_reason", - "screening_question_answers.question,current_stage", - "screening_question_answers.question,current_stage,reject_reason", - "screening_question_answers.question,job", - "screening_question_answers.question,job,credited_to", - "screening_question_answers.question,job,credited_to,current_stage", - "screening_question_answers.question,job,credited_to,current_stage,reject_reason", - "screening_question_answers.question,job,credited_to,reject_reason", - "screening_question_answers.question,job,current_stage", - "screening_question_answers.question,job,current_stage,reject_reason", - "screening_question_answers.question,job,reject_reason", - "screening_question_answers.question,reject_reason", -]); - -export declare namespace ApplicationsRetrieveRequestExpand { - export type Raw = - | "candidate" - | "candidate,credited_to" - | "candidate,credited_to,current_stage" - | "candidate,credited_to,current_stage,reject_reason" - | "candidate,credited_to,reject_reason" - | "candidate,current_stage" - | "candidate,current_stage,reject_reason" - | "candidate,job" - | "candidate,job,credited_to" - | "candidate,job,credited_to,current_stage" - | "candidate,job,credited_to,current_stage,reject_reason" - | "candidate,job,credited_to,reject_reason" - | "candidate,job,current_stage" - | "candidate,job,current_stage,reject_reason" - | "candidate,job,reject_reason" - | "candidate,reject_reason" - | "credited_to" - | "credited_to,current_stage" - | "credited_to,current_stage,reject_reason" - | "credited_to,reject_reason" - | "current_stage" - | "current_stage,reject_reason" - | "job" - | "job,credited_to" - | "job,credited_to,current_stage" - | "job,credited_to,current_stage,reject_reason" - | "job,credited_to,reject_reason" - | "job,current_stage" - | "job,current_stage,reject_reason" - | "job,reject_reason" - | "offers" - | "offers,candidate" - | "offers,candidate,credited_to" - | "offers,candidate,credited_to,current_stage" - | "offers,candidate,credited_to,current_stage,reject_reason" - | "offers,candidate,credited_to,reject_reason" - | "offers,candidate,current_stage" - | "offers,candidate,current_stage,reject_reason" - | "offers,candidate,job" - | "offers,candidate,job,credited_to" - | "offers,candidate,job,credited_to,current_stage" - | "offers,candidate,job,credited_to,current_stage,reject_reason" - | "offers,candidate,job,credited_to,reject_reason" - | "offers,candidate,job,current_stage" - | "offers,candidate,job,current_stage,reject_reason" - | "offers,candidate,job,reject_reason" - | "offers,candidate,reject_reason" - | "offers,credited_to" - | "offers,credited_to,current_stage" - | "offers,credited_to,current_stage,reject_reason" - | "offers,credited_to,reject_reason" - | "offers,current_stage" - | "offers,current_stage,reject_reason" - | "offers,job" - | "offers,job,credited_to" - | "offers,job,credited_to,current_stage" - | "offers,job,credited_to,current_stage,reject_reason" - | "offers,job,credited_to,reject_reason" - | "offers,job,current_stage" - | "offers,job,current_stage,reject_reason" - | "offers,job,reject_reason" - | "offers,reject_reason" - | "offers,screening_question_answers" - | "offers,screening_question_answers,candidate" - | "offers,screening_question_answers,candidate,credited_to" - | "offers,screening_question_answers,candidate,credited_to,current_stage" - | "offers,screening_question_answers,candidate,credited_to,current_stage,reject_reason" - | "offers,screening_question_answers,candidate,credited_to,reject_reason" - | "offers,screening_question_answers,candidate,current_stage" - | "offers,screening_question_answers,candidate,current_stage,reject_reason" - | "offers,screening_question_answers,candidate,job" - | "offers,screening_question_answers,candidate,job,credited_to" - | "offers,screening_question_answers,candidate,job,credited_to,current_stage" - | "offers,screening_question_answers,candidate,job,credited_to,current_stage,reject_reason" - | "offers,screening_question_answers,candidate,job,credited_to,reject_reason" - | "offers,screening_question_answers,candidate,job,current_stage" - | "offers,screening_question_answers,candidate,job,current_stage,reject_reason" - | "offers,screening_question_answers,candidate,job,reject_reason" - | "offers,screening_question_answers,candidate,reject_reason" - | "offers,screening_question_answers,credited_to" - | "offers,screening_question_answers,credited_to,current_stage" - | "offers,screening_question_answers,credited_to,current_stage,reject_reason" - | "offers,screening_question_answers,credited_to,reject_reason" - | "offers,screening_question_answers,current_stage" - | "offers,screening_question_answers,current_stage,reject_reason" - | "offers,screening_question_answers,job" - | "offers,screening_question_answers,job,credited_to" - | "offers,screening_question_answers,job,credited_to,current_stage" - | "offers,screening_question_answers,job,credited_to,current_stage,reject_reason" - | "offers,screening_question_answers,job,credited_to,reject_reason" - | "offers,screening_question_answers,job,current_stage" - | "offers,screening_question_answers,job,current_stage,reject_reason" - | "offers,screening_question_answers,job,reject_reason" - | "offers,screening_question_answers,reject_reason" - | "offers,screening_question_answers,screening_question_answers.question" - | "offers,screening_question_answers,screening_question_answers.question,candidate" - | "offers,screening_question_answers,screening_question_answers.question,candidate,credited_to" - | "offers,screening_question_answers,screening_question_answers.question,candidate,credited_to,current_stage" - | "offers,screening_question_answers,screening_question_answers.question,candidate,credited_to,current_stage,reject_reason" - | "offers,screening_question_answers,screening_question_answers.question,candidate,credited_to,reject_reason" - | "offers,screening_question_answers,screening_question_answers.question,candidate,current_stage" - | "offers,screening_question_answers,screening_question_answers.question,candidate,current_stage,reject_reason" - | "offers,screening_question_answers,screening_question_answers.question,candidate,job" - | "offers,screening_question_answers,screening_question_answers.question,candidate,job,credited_to" - | "offers,screening_question_answers,screening_question_answers.question,candidate,job,credited_to,current_stage" - | "offers,screening_question_answers,screening_question_answers.question,candidate,job,credited_to,current_stage,reject_reason" - | "offers,screening_question_answers,screening_question_answers.question,candidate,job,credited_to,reject_reason" - | "offers,screening_question_answers,screening_question_answers.question,candidate,job,current_stage" - | "offers,screening_question_answers,screening_question_answers.question,candidate,job,current_stage,reject_reason" - | "offers,screening_question_answers,screening_question_answers.question,candidate,job,reject_reason" - | "offers,screening_question_answers,screening_question_answers.question,candidate,reject_reason" - | "offers,screening_question_answers,screening_question_answers.question,credited_to" - | "offers,screening_question_answers,screening_question_answers.question,credited_to,current_stage" - | "offers,screening_question_answers,screening_question_answers.question,credited_to,current_stage,reject_reason" - | "offers,screening_question_answers,screening_question_answers.question,credited_to,reject_reason" - | "offers,screening_question_answers,screening_question_answers.question,current_stage" - | "offers,screening_question_answers,screening_question_answers.question,current_stage,reject_reason" - | "offers,screening_question_answers,screening_question_answers.question,job" - | "offers,screening_question_answers,screening_question_answers.question,job,credited_to" - | "offers,screening_question_answers,screening_question_answers.question,job,credited_to,current_stage" - | "offers,screening_question_answers,screening_question_answers.question,job,credited_to,current_stage,reject_reason" - | "offers,screening_question_answers,screening_question_answers.question,job,credited_to,reject_reason" - | "offers,screening_question_answers,screening_question_answers.question,job,current_stage" - | "offers,screening_question_answers,screening_question_answers.question,job,current_stage,reject_reason" - | "offers,screening_question_answers,screening_question_answers.question,job,reject_reason" - | "offers,screening_question_answers,screening_question_answers.question,reject_reason" - | "offers,screening_question_answers.question" - | "offers,screening_question_answers.question,candidate" - | "offers,screening_question_answers.question,candidate,credited_to" - | "offers,screening_question_answers.question,candidate,credited_to,current_stage" - | "offers,screening_question_answers.question,candidate,credited_to,current_stage,reject_reason" - | "offers,screening_question_answers.question,candidate,credited_to,reject_reason" - | "offers,screening_question_answers.question,candidate,current_stage" - | "offers,screening_question_answers.question,candidate,current_stage,reject_reason" - | "offers,screening_question_answers.question,candidate,job" - | "offers,screening_question_answers.question,candidate,job,credited_to" - | "offers,screening_question_answers.question,candidate,job,credited_to,current_stage" - | "offers,screening_question_answers.question,candidate,job,credited_to,current_stage,reject_reason" - | "offers,screening_question_answers.question,candidate,job,credited_to,reject_reason" - | "offers,screening_question_answers.question,candidate,job,current_stage" - | "offers,screening_question_answers.question,candidate,job,current_stage,reject_reason" - | "offers,screening_question_answers.question,candidate,job,reject_reason" - | "offers,screening_question_answers.question,candidate,reject_reason" - | "offers,screening_question_answers.question,credited_to" - | "offers,screening_question_answers.question,credited_to,current_stage" - | "offers,screening_question_answers.question,credited_to,current_stage,reject_reason" - | "offers,screening_question_answers.question,credited_to,reject_reason" - | "offers,screening_question_answers.question,current_stage" - | "offers,screening_question_answers.question,current_stage,reject_reason" - | "offers,screening_question_answers.question,job" - | "offers,screening_question_answers.question,job,credited_to" - | "offers,screening_question_answers.question,job,credited_to,current_stage" - | "offers,screening_question_answers.question,job,credited_to,current_stage,reject_reason" - | "offers,screening_question_answers.question,job,credited_to,reject_reason" - | "offers,screening_question_answers.question,job,current_stage" - | "offers,screening_question_answers.question,job,current_stage,reject_reason" - | "offers,screening_question_answers.question,job,reject_reason" - | "offers,screening_question_answers.question,reject_reason" - | "reject_reason" - | "screening_question_answers" - | "screening_question_answers,candidate" - | "screening_question_answers,candidate,credited_to" - | "screening_question_answers,candidate,credited_to,current_stage" - | "screening_question_answers,candidate,credited_to,current_stage,reject_reason" - | "screening_question_answers,candidate,credited_to,reject_reason" - | "screening_question_answers,candidate,current_stage" - | "screening_question_answers,candidate,current_stage,reject_reason" - | "screening_question_answers,candidate,job" - | "screening_question_answers,candidate,job,credited_to" - | "screening_question_answers,candidate,job,credited_to,current_stage" - | "screening_question_answers,candidate,job,credited_to,current_stage,reject_reason" - | "screening_question_answers,candidate,job,credited_to,reject_reason" - | "screening_question_answers,candidate,job,current_stage" - | "screening_question_answers,candidate,job,current_stage,reject_reason" - | "screening_question_answers,candidate,job,reject_reason" - | "screening_question_answers,candidate,reject_reason" - | "screening_question_answers,credited_to" - | "screening_question_answers,credited_to,current_stage" - | "screening_question_answers,credited_to,current_stage,reject_reason" - | "screening_question_answers,credited_to,reject_reason" - | "screening_question_answers,current_stage" - | "screening_question_answers,current_stage,reject_reason" - | "screening_question_answers,job" - | "screening_question_answers,job,credited_to" - | "screening_question_answers,job,credited_to,current_stage" - | "screening_question_answers,job,credited_to,current_stage,reject_reason" - | "screening_question_answers,job,credited_to,reject_reason" - | "screening_question_answers,job,current_stage" - | "screening_question_answers,job,current_stage,reject_reason" - | "screening_question_answers,job,reject_reason" - | "screening_question_answers,reject_reason" - | "screening_question_answers,screening_question_answers.question" - | "screening_question_answers,screening_question_answers.question,candidate" - | "screening_question_answers,screening_question_answers.question,candidate,credited_to" - | "screening_question_answers,screening_question_answers.question,candidate,credited_to,current_stage" - | "screening_question_answers,screening_question_answers.question,candidate,credited_to,current_stage,reject_reason" - | "screening_question_answers,screening_question_answers.question,candidate,credited_to,reject_reason" - | "screening_question_answers,screening_question_answers.question,candidate,current_stage" - | "screening_question_answers,screening_question_answers.question,candidate,current_stage,reject_reason" - | "screening_question_answers,screening_question_answers.question,candidate,job" - | "screening_question_answers,screening_question_answers.question,candidate,job,credited_to" - | "screening_question_answers,screening_question_answers.question,candidate,job,credited_to,current_stage" - | "screening_question_answers,screening_question_answers.question,candidate,job,credited_to,current_stage,reject_reason" - | "screening_question_answers,screening_question_answers.question,candidate,job,credited_to,reject_reason" - | "screening_question_answers,screening_question_answers.question,candidate,job,current_stage" - | "screening_question_answers,screening_question_answers.question,candidate,job,current_stage,reject_reason" - | "screening_question_answers,screening_question_answers.question,candidate,job,reject_reason" - | "screening_question_answers,screening_question_answers.question,candidate,reject_reason" - | "screening_question_answers,screening_question_answers.question,credited_to" - | "screening_question_answers,screening_question_answers.question,credited_to,current_stage" - | "screening_question_answers,screening_question_answers.question,credited_to,current_stage,reject_reason" - | "screening_question_answers,screening_question_answers.question,credited_to,reject_reason" - | "screening_question_answers,screening_question_answers.question,current_stage" - | "screening_question_answers,screening_question_answers.question,current_stage,reject_reason" - | "screening_question_answers,screening_question_answers.question,job" - | "screening_question_answers,screening_question_answers.question,job,credited_to" - | "screening_question_answers,screening_question_answers.question,job,credited_to,current_stage" - | "screening_question_answers,screening_question_answers.question,job,credited_to,current_stage,reject_reason" - | "screening_question_answers,screening_question_answers.question,job,credited_to,reject_reason" - | "screening_question_answers,screening_question_answers.question,job,current_stage" - | "screening_question_answers,screening_question_answers.question,job,current_stage,reject_reason" - | "screening_question_answers,screening_question_answers.question,job,reject_reason" - | "screening_question_answers,screening_question_answers.question,reject_reason" - | "screening_question_answers.question" - | "screening_question_answers.question,candidate" - | "screening_question_answers.question,candidate,credited_to" - | "screening_question_answers.question,candidate,credited_to,current_stage" - | "screening_question_answers.question,candidate,credited_to,current_stage,reject_reason" - | "screening_question_answers.question,candidate,credited_to,reject_reason" - | "screening_question_answers.question,candidate,current_stage" - | "screening_question_answers.question,candidate,current_stage,reject_reason" - | "screening_question_answers.question,candidate,job" - | "screening_question_answers.question,candidate,job,credited_to" - | "screening_question_answers.question,candidate,job,credited_to,current_stage" - | "screening_question_answers.question,candidate,job,credited_to,current_stage,reject_reason" - | "screening_question_answers.question,candidate,job,credited_to,reject_reason" - | "screening_question_answers.question,candidate,job,current_stage" - | "screening_question_answers.question,candidate,job,current_stage,reject_reason" - | "screening_question_answers.question,candidate,job,reject_reason" - | "screening_question_answers.question,candidate,reject_reason" - | "screening_question_answers.question,credited_to" - | "screening_question_answers.question,credited_to,current_stage" - | "screening_question_answers.question,credited_to,current_stage,reject_reason" - | "screening_question_answers.question,credited_to,reject_reason" - | "screening_question_answers.question,current_stage" - | "screening_question_answers.question,current_stage,reject_reason" - | "screening_question_answers.question,job" - | "screening_question_answers.question,job,credited_to" - | "screening_question_answers.question,job,credited_to,current_stage" - | "screening_question_answers.question,job,credited_to,current_stage,reject_reason" - | "screening_question_answers.question,job,credited_to,reject_reason" - | "screening_question_answers.question,job,current_stage" - | "screening_question_answers.question,job,current_stage,reject_reason" - | "screening_question_answers.question,job,reject_reason" - | "screening_question_answers.question,reject_reason"; -} diff --git a/src/serialization/resources/ats/resources/applications/types/ApplicationsRetrieveRequestExpandItem.ts b/src/serialization/resources/ats/resources/applications/types/ApplicationsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..e7843e5e0 --- /dev/null +++ b/src/serialization/resources/ats/resources/applications/types/ApplicationsRetrieveRequestExpandItem.ts @@ -0,0 +1,31 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const ApplicationsRetrieveRequestExpandItem: core.serialization.Schema< + serializers.ats.ApplicationsRetrieveRequestExpandItem.Raw, + Merge.ats.ApplicationsRetrieveRequestExpandItem +> = core.serialization.enum_([ + "candidate", + "credited_to", + "current_stage", + "job", + "offers", + "reject_reason", + "screening_question_answers", + "screening_question_answers.question", +]); + +export declare namespace ApplicationsRetrieveRequestExpandItem { + export type Raw = + | "candidate" + | "credited_to" + | "current_stage" + | "job" + | "offers" + | "reject_reason" + | "screening_question_answers" + | "screening_question_answers.question"; +} diff --git a/src/serialization/resources/ats/resources/applications/types/index.ts b/src/serialization/resources/ats/resources/applications/types/index.ts index 10d68b6c6..61c840207 100644 --- a/src/serialization/resources/ats/resources/applications/types/index.ts +++ b/src/serialization/resources/ats/resources/applications/types/index.ts @@ -1,2 +1,2 @@ -export * from "./ApplicationsListRequestExpand"; -export * from "./ApplicationsRetrieveRequestExpand"; +export * from "./ApplicationsListRequestExpandItem"; +export * from "./ApplicationsRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/ats/resources/candidates/client/requests/IgnoreCommonModelRequest.ts b/src/serialization/resources/ats/resources/candidates/client/requests/IgnoreCommonModelRequest.ts deleted file mode 100644 index 946c7153b..000000000 --- a/src/serialization/resources/ats/resources/candidates/client/requests/IgnoreCommonModelRequest.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { IgnoreCommonModelRequestReason } from "../../types/IgnoreCommonModelRequestReason"; - -export const IgnoreCommonModelRequest: core.serialization.Schema< - serializers.ats.IgnoreCommonModelRequest.Raw, - Merge.ats.IgnoreCommonModelRequest -> = core.serialization.object({ - reason: IgnoreCommonModelRequestReason, - message: core.serialization.string().optional(), -}); - -export declare namespace IgnoreCommonModelRequest { - export interface Raw { - reason: IgnoreCommonModelRequestReason.Raw; - message?: string | null; - } -} diff --git a/src/serialization/resources/ats/resources/candidates/client/requests/index.ts b/src/serialization/resources/ats/resources/candidates/client/requests/index.ts index 00a1be6c8..145401b2c 100644 --- a/src/serialization/resources/ats/resources/candidates/client/requests/index.ts +++ b/src/serialization/resources/ats/resources/candidates/client/requests/index.ts @@ -1,3 +1,2 @@ export { CandidateEndpointRequest } from "./CandidateEndpointRequest"; -export { IgnoreCommonModelRequest } from "./IgnoreCommonModelRequest"; export { PatchedCandidateEndpointRequest } from "./PatchedCandidateEndpointRequest"; diff --git a/src/serialization/resources/ats/resources/candidates/types/CandidatesListRequestExpand.ts b/src/serialization/resources/ats/resources/candidates/types/CandidatesListRequestExpand.ts deleted file mode 100644 index 45bd22adb..000000000 --- a/src/serialization/resources/ats/resources/candidates/types/CandidatesListRequestExpand.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const CandidatesListRequestExpand: core.serialization.Schema< - serializers.ats.CandidatesListRequestExpand.Raw, - Merge.ats.CandidatesListRequestExpand -> = core.serialization.enum_(["applications", "applications,attachments", "attachments"]); - -export declare namespace CandidatesListRequestExpand { - export type Raw = "applications" | "applications,attachments" | "attachments"; -} diff --git a/src/serialization/resources/ats/resources/candidates/types/CandidatesListRequestExpandItem.ts b/src/serialization/resources/ats/resources/candidates/types/CandidatesListRequestExpandItem.ts new file mode 100644 index 000000000..d9ff155a9 --- /dev/null +++ b/src/serialization/resources/ats/resources/candidates/types/CandidatesListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const CandidatesListRequestExpandItem: core.serialization.Schema< + serializers.ats.CandidatesListRequestExpandItem.Raw, + Merge.ats.CandidatesListRequestExpandItem +> = core.serialization.enum_(["applications", "attachments"]); + +export declare namespace CandidatesListRequestExpandItem { + export type Raw = "applications" | "attachments"; +} diff --git a/src/serialization/resources/ats/resources/candidates/types/CandidatesRetrieveRequestExpand.ts b/src/serialization/resources/ats/resources/candidates/types/CandidatesRetrieveRequestExpand.ts deleted file mode 100644 index 3ee5c9184..000000000 --- a/src/serialization/resources/ats/resources/candidates/types/CandidatesRetrieveRequestExpand.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const CandidatesRetrieveRequestExpand: core.serialization.Schema< - serializers.ats.CandidatesRetrieveRequestExpand.Raw, - Merge.ats.CandidatesRetrieveRequestExpand -> = core.serialization.enum_(["applications", "applications,attachments", "attachments"]); - -export declare namespace CandidatesRetrieveRequestExpand { - export type Raw = "applications" | "applications,attachments" | "attachments"; -} diff --git a/src/serialization/resources/ats/resources/candidates/types/CandidatesRetrieveRequestExpandItem.ts b/src/serialization/resources/ats/resources/candidates/types/CandidatesRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..4b0d3b709 --- /dev/null +++ b/src/serialization/resources/ats/resources/candidates/types/CandidatesRetrieveRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const CandidatesRetrieveRequestExpandItem: core.serialization.Schema< + serializers.ats.CandidatesRetrieveRequestExpandItem.Raw, + Merge.ats.CandidatesRetrieveRequestExpandItem +> = core.serialization.enum_(["applications", "attachments"]); + +export declare namespace CandidatesRetrieveRequestExpandItem { + export type Raw = "applications" | "attachments"; +} diff --git a/src/serialization/resources/ats/resources/candidates/types/IgnoreCommonModelRequestReason.ts b/src/serialization/resources/ats/resources/candidates/types/IgnoreCommonModelRequestReason.ts deleted file mode 100644 index e03a87c4a..000000000 --- a/src/serialization/resources/ats/resources/candidates/types/IgnoreCommonModelRequestReason.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; -import { ReasonEnum } from "../../../types/ReasonEnum"; - -export const IgnoreCommonModelRequestReason: core.serialization.Schema< - serializers.ats.IgnoreCommonModelRequestReason.Raw, - Merge.ats.IgnoreCommonModelRequestReason -> = core.serialization.undiscriminatedUnion([ReasonEnum, core.serialization.string()]); - -export declare namespace IgnoreCommonModelRequestReason { - export type Raw = ReasonEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/resources/candidates/types/index.ts b/src/serialization/resources/ats/resources/candidates/types/index.ts index 36e0b3d6e..354754a74 100644 --- a/src/serialization/resources/ats/resources/candidates/types/index.ts +++ b/src/serialization/resources/ats/resources/candidates/types/index.ts @@ -1,3 +1,2 @@ -export * from "./CandidatesListRequestExpand"; -export * from "./CandidatesRetrieveRequestExpand"; -export * from "./IgnoreCommonModelRequestReason"; +export * from "./CandidatesListRequestExpandItem"; +export * from "./CandidatesRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/ats/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts b/src/serialization/resources/ats/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts index 250ad76df..eb3a1429d 100644 --- a/src/serialization/resources/ats/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts +++ b/src/serialization/resources/ats/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts @@ -17,6 +17,7 @@ export const CreateFieldMappingRequest: core.serialization.Schema< remoteMethod: core.serialization.property("remote_method", core.serialization.string()), remoteUrlPath: core.serialization.property("remote_url_path", core.serialization.string()), commonModelName: core.serialization.property("common_model_name", core.serialization.string()), + jmesPath: core.serialization.property("jmes_path", core.serialization.string().optional()), }); export declare namespace CreateFieldMappingRequest { @@ -27,5 +28,6 @@ export declare namespace CreateFieldMappingRequest { remote_method: string; remote_url_path: string; common_model_name: string; + jmes_path?: string | null; } } diff --git a/src/serialization/resources/ats/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts b/src/serialization/resources/ats/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts index b11356a01..91db071bb 100644 --- a/src/serialization/resources/ats/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts +++ b/src/serialization/resources/ats/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts @@ -6,7 +6,7 @@ import type * as serializers from "../../../../../../index"; export const PatchedEditFieldMappingRequest: core.serialization.Schema< serializers.ats.PatchedEditFieldMappingRequest.Raw, - Merge.ats.PatchedEditFieldMappingRequest + Omit > = core.serialization.object({ remoteFieldTraversalPath: core.serialization.property( "remote_field_traversal_path", @@ -14,6 +14,7 @@ export const PatchedEditFieldMappingRequest: core.serialization.Schema< ), remoteMethod: core.serialization.property("remote_method", core.serialization.string().optional()), remoteUrlPath: core.serialization.property("remote_url_path", core.serialization.string().optional()), + jmesPath: core.serialization.property("jmes_path", core.serialization.string().optional()), }); export declare namespace PatchedEditFieldMappingRequest { @@ -21,5 +22,6 @@ export declare namespace PatchedEditFieldMappingRequest { remote_field_traversal_path?: unknown[] | null; remote_method?: string | null; remote_url_path?: string | null; + jmes_path?: string | null; } } diff --git a/src/serialization/resources/ats/resources/interviews/types/InterviewsListRequestExpand.ts b/src/serialization/resources/ats/resources/interviews/types/InterviewsListRequestExpand.ts deleted file mode 100644 index e7fcdca84..000000000 --- a/src/serialization/resources/ats/resources/interviews/types/InterviewsListRequestExpand.ts +++ /dev/null @@ -1,45 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const InterviewsListRequestExpand: core.serialization.Schema< - serializers.ats.InterviewsListRequestExpand.Raw, - Merge.ats.InterviewsListRequestExpand -> = core.serialization.enum_([ - "application", - "application,job_interview_stage", - "interviewers", - "interviewers,application", - "interviewers,application,job_interview_stage", - "interviewers,job_interview_stage", - "interviewers,organizer", - "interviewers,organizer,application", - "interviewers,organizer,application,job_interview_stage", - "interviewers,organizer,job_interview_stage", - "job_interview_stage", - "organizer", - "organizer,application", - "organizer,application,job_interview_stage", - "organizer,job_interview_stage", -]); - -export declare namespace InterviewsListRequestExpand { - export type Raw = - | "application" - | "application,job_interview_stage" - | "interviewers" - | "interviewers,application" - | "interviewers,application,job_interview_stage" - | "interviewers,job_interview_stage" - | "interviewers,organizer" - | "interviewers,organizer,application" - | "interviewers,organizer,application,job_interview_stage" - | "interviewers,organizer,job_interview_stage" - | "job_interview_stage" - | "organizer" - | "organizer,application" - | "organizer,application,job_interview_stage" - | "organizer,job_interview_stage"; -} diff --git a/src/serialization/resources/ats/resources/interviews/types/InterviewsListRequestExpandItem.ts b/src/serialization/resources/ats/resources/interviews/types/InterviewsListRequestExpandItem.ts new file mode 100644 index 000000000..7a983f6fd --- /dev/null +++ b/src/serialization/resources/ats/resources/interviews/types/InterviewsListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const InterviewsListRequestExpandItem: core.serialization.Schema< + serializers.ats.InterviewsListRequestExpandItem.Raw, + Merge.ats.InterviewsListRequestExpandItem +> = core.serialization.enum_(["application", "interviewers", "job_interview_stage", "organizer"]); + +export declare namespace InterviewsListRequestExpandItem { + export type Raw = "application" | "interviewers" | "job_interview_stage" | "organizer"; +} diff --git a/src/serialization/resources/ats/resources/interviews/types/InterviewsRetrieveRequestExpand.ts b/src/serialization/resources/ats/resources/interviews/types/InterviewsRetrieveRequestExpand.ts deleted file mode 100644 index c30328c15..000000000 --- a/src/serialization/resources/ats/resources/interviews/types/InterviewsRetrieveRequestExpand.ts +++ /dev/null @@ -1,45 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const InterviewsRetrieveRequestExpand: core.serialization.Schema< - serializers.ats.InterviewsRetrieveRequestExpand.Raw, - Merge.ats.InterviewsRetrieveRequestExpand -> = core.serialization.enum_([ - "application", - "application,job_interview_stage", - "interviewers", - "interviewers,application", - "interviewers,application,job_interview_stage", - "interviewers,job_interview_stage", - "interviewers,organizer", - "interviewers,organizer,application", - "interviewers,organizer,application,job_interview_stage", - "interviewers,organizer,job_interview_stage", - "job_interview_stage", - "organizer", - "organizer,application", - "organizer,application,job_interview_stage", - "organizer,job_interview_stage", -]); - -export declare namespace InterviewsRetrieveRequestExpand { - export type Raw = - | "application" - | "application,job_interview_stage" - | "interviewers" - | "interviewers,application" - | "interviewers,application,job_interview_stage" - | "interviewers,job_interview_stage" - | "interviewers,organizer" - | "interviewers,organizer,application" - | "interviewers,organizer,application,job_interview_stage" - | "interviewers,organizer,job_interview_stage" - | "job_interview_stage" - | "organizer" - | "organizer,application" - | "organizer,application,job_interview_stage" - | "organizer,job_interview_stage"; -} diff --git a/src/serialization/resources/ats/resources/interviews/types/InterviewsRetrieveRequestExpandItem.ts b/src/serialization/resources/ats/resources/interviews/types/InterviewsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..4f8fa5be6 --- /dev/null +++ b/src/serialization/resources/ats/resources/interviews/types/InterviewsRetrieveRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const InterviewsRetrieveRequestExpandItem: core.serialization.Schema< + serializers.ats.InterviewsRetrieveRequestExpandItem.Raw, + Merge.ats.InterviewsRetrieveRequestExpandItem +> = core.serialization.enum_(["application", "interviewers", "job_interview_stage", "organizer"]); + +export declare namespace InterviewsRetrieveRequestExpandItem { + export type Raw = "application" | "interviewers" | "job_interview_stage" | "organizer"; +} diff --git a/src/serialization/resources/ats/resources/interviews/types/index.ts b/src/serialization/resources/ats/resources/interviews/types/index.ts index 51b55d6c2..93e139549 100644 --- a/src/serialization/resources/ats/resources/interviews/types/index.ts +++ b/src/serialization/resources/ats/resources/interviews/types/index.ts @@ -1,2 +1,2 @@ -export * from "./InterviewsListRequestExpand"; -export * from "./InterviewsRetrieveRequestExpand"; +export * from "./InterviewsListRequestExpandItem"; +export * from "./InterviewsRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/ats/resources/jobs/types/JobsListRequestExpand.ts b/src/serialization/resources/ats/resources/jobs/types/JobsListRequestExpand.ts deleted file mode 100644 index e8408e582..000000000 --- a/src/serialization/resources/ats/resources/jobs/types/JobsListRequestExpand.ts +++ /dev/null @@ -1,77 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const JobsListRequestExpand: core.serialization.Schema< - serializers.ats.JobsListRequestExpand.Raw, - Merge.ats.JobsListRequestExpand -> = core.serialization.enum_([ - "departments", - "departments,hiring_managers", - "departments,hiring_managers,job_postings", - "departments,hiring_managers,job_postings,recruiters", - "departments,hiring_managers,recruiters", - "departments,job_postings", - "departments,job_postings,recruiters", - "departments,offices", - "departments,offices,hiring_managers", - "departments,offices,hiring_managers,job_postings", - "departments,offices,hiring_managers,job_postings,recruiters", - "departments,offices,hiring_managers,recruiters", - "departments,offices,job_postings", - "departments,offices,job_postings,recruiters", - "departments,offices,recruiters", - "departments,recruiters", - "hiring_managers", - "hiring_managers,job_postings", - "hiring_managers,job_postings,recruiters", - "hiring_managers,recruiters", - "job_postings", - "job_postings,recruiters", - "offices", - "offices,hiring_managers", - "offices,hiring_managers,job_postings", - "offices,hiring_managers,job_postings,recruiters", - "offices,hiring_managers,recruiters", - "offices,job_postings", - "offices,job_postings,recruiters", - "offices,recruiters", - "recruiters", -]); - -export declare namespace JobsListRequestExpand { - export type Raw = - | "departments" - | "departments,hiring_managers" - | "departments,hiring_managers,job_postings" - | "departments,hiring_managers,job_postings,recruiters" - | "departments,hiring_managers,recruiters" - | "departments,job_postings" - | "departments,job_postings,recruiters" - | "departments,offices" - | "departments,offices,hiring_managers" - | "departments,offices,hiring_managers,job_postings" - | "departments,offices,hiring_managers,job_postings,recruiters" - | "departments,offices,hiring_managers,recruiters" - | "departments,offices,job_postings" - | "departments,offices,job_postings,recruiters" - | "departments,offices,recruiters" - | "departments,recruiters" - | "hiring_managers" - | "hiring_managers,job_postings" - | "hiring_managers,job_postings,recruiters" - | "hiring_managers,recruiters" - | "job_postings" - | "job_postings,recruiters" - | "offices" - | "offices,hiring_managers" - | "offices,hiring_managers,job_postings" - | "offices,hiring_managers,job_postings,recruiters" - | "offices,hiring_managers,recruiters" - | "offices,job_postings" - | "offices,job_postings,recruiters" - | "offices,recruiters" - | "recruiters"; -} diff --git a/src/serialization/resources/ats/resources/jobs/types/JobsListRequestExpandItem.ts b/src/serialization/resources/ats/resources/jobs/types/JobsListRequestExpandItem.ts new file mode 100644 index 000000000..6f4cffdba --- /dev/null +++ b/src/serialization/resources/ats/resources/jobs/types/JobsListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const JobsListRequestExpandItem: core.serialization.Schema< + serializers.ats.JobsListRequestExpandItem.Raw, + Merge.ats.JobsListRequestExpandItem +> = core.serialization.enum_(["departments", "hiring_managers", "job_postings", "offices", "recruiters"]); + +export declare namespace JobsListRequestExpandItem { + export type Raw = "departments" | "hiring_managers" | "job_postings" | "offices" | "recruiters"; +} diff --git a/src/serialization/resources/ats/resources/jobs/types/JobsRetrieveRequestExpand.ts b/src/serialization/resources/ats/resources/jobs/types/JobsRetrieveRequestExpand.ts deleted file mode 100644 index 8161a58b7..000000000 --- a/src/serialization/resources/ats/resources/jobs/types/JobsRetrieveRequestExpand.ts +++ /dev/null @@ -1,77 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const JobsRetrieveRequestExpand: core.serialization.Schema< - serializers.ats.JobsRetrieveRequestExpand.Raw, - Merge.ats.JobsRetrieveRequestExpand -> = core.serialization.enum_([ - "departments", - "departments,hiring_managers", - "departments,hiring_managers,job_postings", - "departments,hiring_managers,job_postings,recruiters", - "departments,hiring_managers,recruiters", - "departments,job_postings", - "departments,job_postings,recruiters", - "departments,offices", - "departments,offices,hiring_managers", - "departments,offices,hiring_managers,job_postings", - "departments,offices,hiring_managers,job_postings,recruiters", - "departments,offices,hiring_managers,recruiters", - "departments,offices,job_postings", - "departments,offices,job_postings,recruiters", - "departments,offices,recruiters", - "departments,recruiters", - "hiring_managers", - "hiring_managers,job_postings", - "hiring_managers,job_postings,recruiters", - "hiring_managers,recruiters", - "job_postings", - "job_postings,recruiters", - "offices", - "offices,hiring_managers", - "offices,hiring_managers,job_postings", - "offices,hiring_managers,job_postings,recruiters", - "offices,hiring_managers,recruiters", - "offices,job_postings", - "offices,job_postings,recruiters", - "offices,recruiters", - "recruiters", -]); - -export declare namespace JobsRetrieveRequestExpand { - export type Raw = - | "departments" - | "departments,hiring_managers" - | "departments,hiring_managers,job_postings" - | "departments,hiring_managers,job_postings,recruiters" - | "departments,hiring_managers,recruiters" - | "departments,job_postings" - | "departments,job_postings,recruiters" - | "departments,offices" - | "departments,offices,hiring_managers" - | "departments,offices,hiring_managers,job_postings" - | "departments,offices,hiring_managers,job_postings,recruiters" - | "departments,offices,hiring_managers,recruiters" - | "departments,offices,job_postings" - | "departments,offices,job_postings,recruiters" - | "departments,offices,recruiters" - | "departments,recruiters" - | "hiring_managers" - | "hiring_managers,job_postings" - | "hiring_managers,job_postings,recruiters" - | "hiring_managers,recruiters" - | "job_postings" - | "job_postings,recruiters" - | "offices" - | "offices,hiring_managers" - | "offices,hiring_managers,job_postings" - | "offices,hiring_managers,job_postings,recruiters" - | "offices,hiring_managers,recruiters" - | "offices,job_postings" - | "offices,job_postings,recruiters" - | "offices,recruiters" - | "recruiters"; -} diff --git a/src/serialization/resources/ats/resources/jobs/types/JobsRetrieveRequestExpandItem.ts b/src/serialization/resources/ats/resources/jobs/types/JobsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..cbff7d91a --- /dev/null +++ b/src/serialization/resources/ats/resources/jobs/types/JobsRetrieveRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const JobsRetrieveRequestExpandItem: core.serialization.Schema< + serializers.ats.JobsRetrieveRequestExpandItem.Raw, + Merge.ats.JobsRetrieveRequestExpandItem +> = core.serialization.enum_(["departments", "hiring_managers", "job_postings", "offices", "recruiters"]); + +export declare namespace JobsRetrieveRequestExpandItem { + export type Raw = "departments" | "hiring_managers" | "job_postings" | "offices" | "recruiters"; +} diff --git a/src/serialization/resources/ats/resources/jobs/types/JobsScreeningQuestionsListRequestExpand.ts b/src/serialization/resources/ats/resources/jobs/types/JobsScreeningQuestionsListRequestExpand.ts deleted file mode 100644 index 33482fba2..000000000 --- a/src/serialization/resources/ats/resources/jobs/types/JobsScreeningQuestionsListRequestExpand.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const JobsScreeningQuestionsListRequestExpand: core.serialization.Schema< - serializers.ats.JobsScreeningQuestionsListRequestExpand.Raw, - Merge.ats.JobsScreeningQuestionsListRequestExpand -> = core.serialization.enum_(["job", "options", "options,job"]); - -export declare namespace JobsScreeningQuestionsListRequestExpand { - export type Raw = "job" | "options" | "options,job"; -} diff --git a/src/serialization/resources/ats/resources/jobs/types/JobsScreeningQuestionsListRequestExpandItem.ts b/src/serialization/resources/ats/resources/jobs/types/JobsScreeningQuestionsListRequestExpandItem.ts new file mode 100644 index 000000000..47b1d3247 --- /dev/null +++ b/src/serialization/resources/ats/resources/jobs/types/JobsScreeningQuestionsListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const JobsScreeningQuestionsListRequestExpandItem: core.serialization.Schema< + serializers.ats.JobsScreeningQuestionsListRequestExpandItem.Raw, + Merge.ats.JobsScreeningQuestionsListRequestExpandItem +> = core.serialization.enum_(["job", "options"]); + +export declare namespace JobsScreeningQuestionsListRequestExpandItem { + export type Raw = "job" | "options"; +} diff --git a/src/serialization/resources/ats/resources/jobs/types/index.ts b/src/serialization/resources/ats/resources/jobs/types/index.ts index ebb23b639..2e02930d1 100644 --- a/src/serialization/resources/ats/resources/jobs/types/index.ts +++ b/src/serialization/resources/ats/resources/jobs/types/index.ts @@ -1,4 +1,4 @@ -export * from "./JobsListRequestExpand"; +export * from "./JobsListRequestExpandItem"; export * from "./JobsListRequestStatus"; -export * from "./JobsRetrieveRequestExpand"; -export * from "./JobsScreeningQuestionsListRequestExpand"; +export * from "./JobsRetrieveRequestExpandItem"; +export * from "./JobsScreeningQuestionsListRequestExpandItem"; diff --git a/src/serialization/resources/ats/resources/offers/types/OffersListRequestExpand.ts b/src/serialization/resources/ats/resources/offers/types/OffersListRequestExpand.ts deleted file mode 100644 index 6e3465a5e..000000000 --- a/src/serialization/resources/ats/resources/offers/types/OffersListRequestExpand.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const OffersListRequestExpand: core.serialization.Schema< - serializers.ats.OffersListRequestExpand.Raw, - Merge.ats.OffersListRequestExpand -> = core.serialization.enum_(["application", "application,creator", "creator"]); - -export declare namespace OffersListRequestExpand { - export type Raw = "application" | "application,creator" | "creator"; -} diff --git a/src/serialization/resources/ats/resources/offers/types/OffersListRequestExpandItem.ts b/src/serialization/resources/ats/resources/offers/types/OffersListRequestExpandItem.ts new file mode 100644 index 000000000..6cdd12146 --- /dev/null +++ b/src/serialization/resources/ats/resources/offers/types/OffersListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const OffersListRequestExpandItem: core.serialization.Schema< + serializers.ats.OffersListRequestExpandItem.Raw, + Merge.ats.OffersListRequestExpandItem +> = core.serialization.enum_(["application", "creator"]); + +export declare namespace OffersListRequestExpandItem { + export type Raw = "application" | "creator"; +} diff --git a/src/serialization/resources/ats/resources/offers/types/OffersListRequestStatus.ts b/src/serialization/resources/ats/resources/offers/types/OffersListRequestStatus.ts new file mode 100644 index 000000000..df8215436 --- /dev/null +++ b/src/serialization/resources/ats/resources/offers/types/OffersListRequestStatus.ts @@ -0,0 +1,33 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const OffersListRequestStatus: core.serialization.Schema< + serializers.ats.OffersListRequestStatus.Raw, + Merge.ats.OffersListRequestStatus +> = core.serialization.enum_([ + "APPROVAL-SENT", + "APPROVED", + "DENIED", + "DEPRECATED", + "DRAFT", + "OPENED", + "SENT", + "SENT-MANUALLY", + "SIGNED", +]); + +export declare namespace OffersListRequestStatus { + export type Raw = + | "APPROVAL-SENT" + | "APPROVED" + | "DENIED" + | "DEPRECATED" + | "DRAFT" + | "OPENED" + | "SENT" + | "SENT-MANUALLY" + | "SIGNED"; +} diff --git a/src/serialization/resources/ats/resources/offers/types/OffersRetrieveRequestExpand.ts b/src/serialization/resources/ats/resources/offers/types/OffersRetrieveRequestExpand.ts deleted file mode 100644 index 228ca1827..000000000 --- a/src/serialization/resources/ats/resources/offers/types/OffersRetrieveRequestExpand.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const OffersRetrieveRequestExpand: core.serialization.Schema< - serializers.ats.OffersRetrieveRequestExpand.Raw, - Merge.ats.OffersRetrieveRequestExpand -> = core.serialization.enum_(["application", "application,creator", "creator"]); - -export declare namespace OffersRetrieveRequestExpand { - export type Raw = "application" | "application,creator" | "creator"; -} diff --git a/src/serialization/resources/ats/resources/offers/types/OffersRetrieveRequestExpandItem.ts b/src/serialization/resources/ats/resources/offers/types/OffersRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..8714298fd --- /dev/null +++ b/src/serialization/resources/ats/resources/offers/types/OffersRetrieveRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const OffersRetrieveRequestExpandItem: core.serialization.Schema< + serializers.ats.OffersRetrieveRequestExpandItem.Raw, + Merge.ats.OffersRetrieveRequestExpandItem +> = core.serialization.enum_(["application", "creator"]); + +export declare namespace OffersRetrieveRequestExpandItem { + export type Raw = "application" | "creator"; +} diff --git a/src/serialization/resources/ats/resources/offers/types/index.ts b/src/serialization/resources/ats/resources/offers/types/index.ts index 4b81bcdb5..593f93074 100644 --- a/src/serialization/resources/ats/resources/offers/types/index.ts +++ b/src/serialization/resources/ats/resources/offers/types/index.ts @@ -1,2 +1,3 @@ -export * from "./OffersListRequestExpand"; -export * from "./OffersRetrieveRequestExpand"; +export * from "./OffersListRequestExpandItem"; +export * from "./OffersListRequestStatus"; +export * from "./OffersRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/ats/resources/scorecards/types/ScorecardsListRequestExpand.ts b/src/serialization/resources/ats/resources/scorecards/types/ScorecardsListRequestExpand.ts deleted file mode 100644 index 995e1fece..000000000 --- a/src/serialization/resources/ats/resources/scorecards/types/ScorecardsListRequestExpand.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const ScorecardsListRequestExpand: core.serialization.Schema< - serializers.ats.ScorecardsListRequestExpand.Raw, - Merge.ats.ScorecardsListRequestExpand -> = core.serialization.enum_([ - "application", - "application,interview", - "application,interview,interviewer", - "application,interviewer", - "interview", - "interview,interviewer", - "interviewer", -]); - -export declare namespace ScorecardsListRequestExpand { - export type Raw = - | "application" - | "application,interview" - | "application,interview,interviewer" - | "application,interviewer" - | "interview" - | "interview,interviewer" - | "interviewer"; -} diff --git a/src/serialization/resources/ats/resources/scorecards/types/ScorecardsListRequestExpandItem.ts b/src/serialization/resources/ats/resources/scorecards/types/ScorecardsListRequestExpandItem.ts new file mode 100644 index 000000000..4e1347eb5 --- /dev/null +++ b/src/serialization/resources/ats/resources/scorecards/types/ScorecardsListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const ScorecardsListRequestExpandItem: core.serialization.Schema< + serializers.ats.ScorecardsListRequestExpandItem.Raw, + Merge.ats.ScorecardsListRequestExpandItem +> = core.serialization.enum_(["application", "interview", "interviewer"]); + +export declare namespace ScorecardsListRequestExpandItem { + export type Raw = "application" | "interview" | "interviewer"; +} diff --git a/src/serialization/resources/ats/resources/scorecards/types/ScorecardsRetrieveRequestExpand.ts b/src/serialization/resources/ats/resources/scorecards/types/ScorecardsRetrieveRequestExpand.ts deleted file mode 100644 index 3f1166666..000000000 --- a/src/serialization/resources/ats/resources/scorecards/types/ScorecardsRetrieveRequestExpand.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const ScorecardsRetrieveRequestExpand: core.serialization.Schema< - serializers.ats.ScorecardsRetrieveRequestExpand.Raw, - Merge.ats.ScorecardsRetrieveRequestExpand -> = core.serialization.enum_([ - "application", - "application,interview", - "application,interview,interviewer", - "application,interviewer", - "interview", - "interview,interviewer", - "interviewer", -]); - -export declare namespace ScorecardsRetrieveRequestExpand { - export type Raw = - | "application" - | "application,interview" - | "application,interview,interviewer" - | "application,interviewer" - | "interview" - | "interview,interviewer" - | "interviewer"; -} diff --git a/src/serialization/resources/ats/resources/scorecards/types/ScorecardsRetrieveRequestExpandItem.ts b/src/serialization/resources/ats/resources/scorecards/types/ScorecardsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..bed7ed084 --- /dev/null +++ b/src/serialization/resources/ats/resources/scorecards/types/ScorecardsRetrieveRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const ScorecardsRetrieveRequestExpandItem: core.serialization.Schema< + serializers.ats.ScorecardsRetrieveRequestExpandItem.Raw, + Merge.ats.ScorecardsRetrieveRequestExpandItem +> = core.serialization.enum_(["application", "interview", "interviewer"]); + +export declare namespace ScorecardsRetrieveRequestExpandItem { + export type Raw = "application" | "interview" | "interviewer"; +} diff --git a/src/serialization/resources/ats/resources/scorecards/types/index.ts b/src/serialization/resources/ats/resources/scorecards/types/index.ts index abc9dc751..a46a8019d 100644 --- a/src/serialization/resources/ats/resources/scorecards/types/index.ts +++ b/src/serialization/resources/ats/resources/scorecards/types/index.ts @@ -1,2 +1,2 @@ -export * from "./ScorecardsListRequestExpand"; -export * from "./ScorecardsRetrieveRequestExpand"; +export * from "./ScorecardsListRequestExpandItem"; +export * from "./ScorecardsRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/ats/types/ActivityRequest.ts b/src/serialization/resources/ats/types/ActivityRequest.ts index 63511b623..d8713646c 100644 --- a/src/serialization/resources/ats/types/ActivityRequest.ts +++ b/src/serialization/resources/ats/types/ActivityRequest.ts @@ -3,16 +3,16 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; -import { ActivityRequestActivityType } from "./ActivityRequestActivityType"; import { ActivityRequestUser } from "./ActivityRequestUser"; import { ActivityRequestVisibility } from "./ActivityRequestVisibility"; +import { ActivityTypeEnum } from "./ActivityTypeEnum"; export const ActivityRequest: core.serialization.ObjectSchema< serializers.ats.ActivityRequest.Raw, Merge.ats.ActivityRequest > = core.serialization.object({ user: ActivityRequestUser.optional(), - activityType: core.serialization.property("activity_type", ActivityRequestActivityType.optional()), + activityType: core.serialization.property("activity_type", ActivityTypeEnum.optional()), subject: core.serialization.string().optional(), body: core.serialization.string().optional(), visibility: ActivityRequestVisibility.optional(), @@ -30,7 +30,7 @@ export const ActivityRequest: core.serialization.ObjectSchema< export declare namespace ActivityRequest { export interface Raw { user?: ActivityRequestUser.Raw | null; - activity_type?: ActivityRequestActivityType.Raw | null; + activity_type?: ActivityTypeEnum.Raw | null; subject?: string | null; body?: string | null; visibility?: ActivityRequestVisibility.Raw | null; diff --git a/src/serialization/resources/ats/types/ActivityRequestActivityType.ts b/src/serialization/resources/ats/types/ActivityRequestActivityType.ts deleted file mode 100644 index d27b77f95..000000000 --- a/src/serialization/resources/ats/types/ActivityRequestActivityType.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { ActivityTypeEnum } from "./ActivityTypeEnum"; - -export const ActivityRequestActivityType: core.serialization.Schema< - serializers.ats.ActivityRequestActivityType.Raw, - Merge.ats.ActivityRequestActivityType -> = core.serialization.undiscriminatedUnion([ActivityTypeEnum, core.serialization.string()]); - -export declare namespace ActivityRequestActivityType { - export type Raw = ActivityTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/ats/types/FieldMappingApiInstance.ts b/src/serialization/resources/ats/types/FieldMappingApiInstance.ts index 73a69a569..5abd7b23c 100644 --- a/src/serialization/resources/ats/types/FieldMappingApiInstance.ts +++ b/src/serialization/resources/ats/types/FieldMappingApiInstance.ts @@ -14,6 +14,7 @@ export const FieldMappingApiInstance: core.serialization.ObjectSchema< isIntegrationWide: core.serialization.property("is_integration_wide", core.serialization.boolean().optional()), targetField: core.serialization.property("target_field", FieldMappingApiInstanceTargetField.optional()), remoteField: core.serialization.property("remote_field", FieldMappingApiInstanceRemoteField.optional()), + jmesPath: core.serialization.property("jmes_path", core.serialization.string().optional()), }); export declare namespace FieldMappingApiInstance { @@ -22,5 +23,6 @@ export declare namespace FieldMappingApiInstance { is_integration_wide?: boolean | null; target_field?: FieldMappingApiInstanceTargetField.Raw | null; remote_field?: FieldMappingApiInstanceRemoteField.Raw | null; + jmes_path?: string | null; } } diff --git a/src/serialization/resources/ats/types/IgnoreCommonModelRequest.ts b/src/serialization/resources/ats/types/IgnoreCommonModelRequest.ts new file mode 100644 index 000000000..b8c111d1b --- /dev/null +++ b/src/serialization/resources/ats/types/IgnoreCommonModelRequest.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { IgnoreCommonModelRequestReason } from "./IgnoreCommonModelRequestReason"; + +export const IgnoreCommonModelRequest: core.serialization.ObjectSchema< + serializers.ats.IgnoreCommonModelRequest.Raw, + Merge.ats.IgnoreCommonModelRequest +> = core.serialization.object({ + reason: IgnoreCommonModelRequestReason, + message: core.serialization.string().optional(), +}); + +export declare namespace IgnoreCommonModelRequest { + export interface Raw { + reason: IgnoreCommonModelRequestReason.Raw; + message?: string | null; + } +} diff --git a/src/serialization/resources/ats/types/IgnoreCommonModelRequestReason.ts b/src/serialization/resources/ats/types/IgnoreCommonModelRequestReason.ts new file mode 100644 index 000000000..688f30582 --- /dev/null +++ b/src/serialization/resources/ats/types/IgnoreCommonModelRequestReason.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { ReasonEnum } from "./ReasonEnum"; + +export const IgnoreCommonModelRequestReason: core.serialization.Schema< + serializers.ats.IgnoreCommonModelRequestReason.Raw, + Merge.ats.IgnoreCommonModelRequestReason +> = core.serialization.undiscriminatedUnion([ReasonEnum, core.serialization.string()]); + +export declare namespace IgnoreCommonModelRequestReason { + export type Raw = ReasonEnum.Raw | string; +} diff --git a/src/serialization/resources/ats/types/RegenerateAccountToken.ts b/src/serialization/resources/ats/types/RegenerateAccountToken.ts new file mode 100644 index 000000000..d61fa446c --- /dev/null +++ b/src/serialization/resources/ats/types/RegenerateAccountToken.ts @@ -0,0 +1,20 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; + +export const RegenerateAccountToken: core.serialization.ObjectSchema< + serializers.ats.RegenerateAccountToken.Raw, + Merge.ats.RegenerateAccountToken +> = core.serialization.object({ + linkedAccountId: core.serialization.property("linked_account_id", core.serialization.string()), + accountToken: core.serialization.property("account_token", core.serialization.string()), +}); + +export declare namespace RegenerateAccountToken { + export interface Raw { + linked_account_id: string; + account_token: string; + } +} diff --git a/src/serialization/resources/ats/types/RoleEnum.ts b/src/serialization/resources/ats/types/RoleEnum.ts index 7d2356783..5d101674e 100644 --- a/src/serialization/resources/ats/types/RoleEnum.ts +++ b/src/serialization/resources/ats/types/RoleEnum.ts @@ -5,8 +5,8 @@ import * as core from "../../../../core"; import type * as serializers from "../../../index"; export const RoleEnum: core.serialization.Schema = - core.serialization.enum_(["ADMIN", "DEVELOPER", "MEMBER", "API", "SYSTEM", "MERGE_TEAM"]); + core.serialization.enum_(["ADMIN", "DEVELOPER", "MEMBER", "API", "SYSTEM", "MERGE_TEAM", "SUPPORT"]); export declare namespace RoleEnum { - export type Raw = "ADMIN" | "DEVELOPER" | "MEMBER" | "API" | "SYSTEM" | "MERGE_TEAM"; + export type Raw = "ADMIN" | "DEVELOPER" | "MEMBER" | "API" | "SYSTEM" | "MERGE_TEAM" | "SUPPORT"; } diff --git a/src/serialization/resources/ats/types/ScreeningQuestion.ts b/src/serialization/resources/ats/types/ScreeningQuestion.ts index dc3d5b55d..0cc699ccb 100644 --- a/src/serialization/resources/ats/types/ScreeningQuestion.ts +++ b/src/serialization/resources/ats/types/ScreeningQuestion.ts @@ -4,6 +4,7 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; import { ScreeningQuestionJob } from "./ScreeningQuestionJob"; +import { ScreeningQuestionOptionsItem } from "./ScreeningQuestionOptionsItem"; import { ScreeningQuestionType } from "./ScreeningQuestionType"; export const ScreeningQuestion: core.serialization.ObjectSchema< @@ -19,7 +20,7 @@ export const ScreeningQuestion: core.serialization.ObjectSchema< title: core.serialization.string().optional(), type: ScreeningQuestionType.optional(), required: core.serialization.boolean().optional(), - options: core.serialization.list(core.serialization.unknown()).optional(), + options: core.serialization.list(ScreeningQuestionOptionsItem).optional(), remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), }); @@ -34,7 +35,7 @@ export declare namespace ScreeningQuestion { title?: string | null; type?: ScreeningQuestionType.Raw | null; required?: boolean | null; - options?: unknown[] | null; + options?: ScreeningQuestionOptionsItem.Raw[] | null; remote_was_deleted?: boolean | null; } } diff --git a/src/serialization/resources/ats/types/ScreeningQuestionOptionsItem.ts b/src/serialization/resources/ats/types/ScreeningQuestionOptionsItem.ts new file mode 100644 index 000000000..558e04de7 --- /dev/null +++ b/src/serialization/resources/ats/types/ScreeningQuestionOptionsItem.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { ScreeningQuestionOption } from "./ScreeningQuestionOption"; + +export const ScreeningQuestionOptionsItem: core.serialization.Schema< + serializers.ats.ScreeningQuestionOptionsItem.Raw, + Merge.ats.ScreeningQuestionOptionsItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), ScreeningQuestionOption]); + +export declare namespace ScreeningQuestionOptionsItem { + export type Raw = string | ScreeningQuestionOption.Raw; +} diff --git a/src/serialization/resources/ats/types/index.ts b/src/serialization/resources/ats/types/index.ts index c8264290b..24021589a 100644 --- a/src/serialization/resources/ats/types/index.ts +++ b/src/serialization/resources/ats/types/index.ts @@ -11,7 +11,6 @@ export * from "./AccountToken"; export * from "./Activity"; export * from "./ActivityActivityType"; export * from "./ActivityRequest"; -export * from "./ActivityRequestActivityType"; export * from "./ActivityRequestUser"; export * from "./ActivityRequestVisibility"; export * from "./ActivityResponse"; @@ -89,6 +88,8 @@ export * from "./FieldMappingInstanceResponse"; export * from "./FieldPermissionDeserializer"; export * from "./FieldPermissionDeserializerRequest"; export * from "./GenderEnum"; +export * from "./IgnoreCommonModelRequest"; +export * from "./IgnoreCommonModelRequestReason"; export * from "./IndividualCommonModelScopeDeserializer"; export * from "./IndividualCommonModelScopeDeserializerRequest"; export * from "./Issue"; @@ -157,6 +158,7 @@ export * from "./PhoneNumberRequestPhoneNumberType"; export * from "./PhoneNumberTypeEnum"; export * from "./RaceEnum"; export * from "./ReasonEnum"; +export * from "./RegenerateAccountToken"; export * from "./RejectReason"; export * from "./RemoteData"; export * from "./RemoteEndpointInfo"; @@ -197,6 +199,7 @@ export * from "./ScreeningQuestionAnswerRequest"; export * from "./ScreeningQuestionAnswerRequestQuestion"; export * from "./ScreeningQuestionJob"; export * from "./ScreeningQuestionOption"; +export * from "./ScreeningQuestionOptionsItem"; export * from "./ScreeningQuestionType"; export * from "./ScreeningQuestionTypeEnum"; export * from "./SelectiveSyncConfigurationsUsageEnum"; diff --git a/src/serialization/resources/crm/resources/contacts/types/ContactsListRequestExpand.ts b/src/serialization/resources/crm/resources/contacts/types/ContactsListRequestExpand.ts deleted file mode 100644 index d01c0a133..000000000 --- a/src/serialization/resources/crm/resources/contacts/types/ContactsListRequestExpand.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const ContactsListRequestExpand: core.serialization.Schema< - serializers.crm.ContactsListRequestExpand.Raw, - Merge.crm.ContactsListRequestExpand -> = core.serialization.enum_(["account", "account,owner", "owner"]); - -export declare namespace ContactsListRequestExpand { - export type Raw = "account" | "account,owner" | "owner"; -} diff --git a/src/serialization/resources/crm/resources/contacts/types/ContactsListRequestExpandItem.ts b/src/serialization/resources/crm/resources/contacts/types/ContactsListRequestExpandItem.ts new file mode 100644 index 000000000..e223c9679 --- /dev/null +++ b/src/serialization/resources/crm/resources/contacts/types/ContactsListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const ContactsListRequestExpandItem: core.serialization.Schema< + serializers.crm.ContactsListRequestExpandItem.Raw, + Merge.crm.ContactsListRequestExpandItem +> = core.serialization.enum_(["account", "owner"]); + +export declare namespace ContactsListRequestExpandItem { + export type Raw = "account" | "owner"; +} diff --git a/src/serialization/resources/crm/resources/contacts/types/ContactsRetrieveRequestExpand.ts b/src/serialization/resources/crm/resources/contacts/types/ContactsRetrieveRequestExpand.ts deleted file mode 100644 index bcc2eec05..000000000 --- a/src/serialization/resources/crm/resources/contacts/types/ContactsRetrieveRequestExpand.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const ContactsRetrieveRequestExpand: core.serialization.Schema< - serializers.crm.ContactsRetrieveRequestExpand.Raw, - Merge.crm.ContactsRetrieveRequestExpand -> = core.serialization.enum_(["account", "account,owner", "owner"]); - -export declare namespace ContactsRetrieveRequestExpand { - export type Raw = "account" | "account,owner" | "owner"; -} diff --git a/src/serialization/resources/crm/resources/contacts/types/ContactsRetrieveRequestExpandItem.ts b/src/serialization/resources/crm/resources/contacts/types/ContactsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..3b8c74b7a --- /dev/null +++ b/src/serialization/resources/crm/resources/contacts/types/ContactsRetrieveRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const ContactsRetrieveRequestExpandItem: core.serialization.Schema< + serializers.crm.ContactsRetrieveRequestExpandItem.Raw, + Merge.crm.ContactsRetrieveRequestExpandItem +> = core.serialization.enum_(["account", "owner"]); + +export declare namespace ContactsRetrieveRequestExpandItem { + export type Raw = "account" | "owner"; +} diff --git a/src/serialization/resources/crm/resources/contacts/types/index.ts b/src/serialization/resources/crm/resources/contacts/types/index.ts index 1f8bc8653..0a309424e 100644 --- a/src/serialization/resources/crm/resources/contacts/types/index.ts +++ b/src/serialization/resources/crm/resources/contacts/types/index.ts @@ -1,2 +1,2 @@ -export * from "./ContactsListRequestExpand"; -export * from "./ContactsRetrieveRequestExpand"; +export * from "./ContactsListRequestExpandItem"; +export * from "./ContactsRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/crm/resources/engagements/types/EngagementsListRequestExpand.ts b/src/serialization/resources/crm/resources/engagements/types/EngagementsListRequestExpand.ts deleted file mode 100644 index 4cd2d640d..000000000 --- a/src/serialization/resources/crm/resources/engagements/types/EngagementsListRequestExpand.ts +++ /dev/null @@ -1,45 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const EngagementsListRequestExpand: core.serialization.Schema< - serializers.crm.EngagementsListRequestExpand.Raw, - Merge.crm.EngagementsListRequestExpand -> = core.serialization.enum_([ - "account", - "account,engagement_type", - "contacts", - "contacts,account", - "contacts,account,engagement_type", - "contacts,engagement_type", - "contacts,owner", - "contacts,owner,account", - "contacts,owner,account,engagement_type", - "contacts,owner,engagement_type", - "engagement_type", - "owner", - "owner,account", - "owner,account,engagement_type", - "owner,engagement_type", -]); - -export declare namespace EngagementsListRequestExpand { - export type Raw = - | "account" - | "account,engagement_type" - | "contacts" - | "contacts,account" - | "contacts,account,engagement_type" - | "contacts,engagement_type" - | "contacts,owner" - | "contacts,owner,account" - | "contacts,owner,account,engagement_type" - | "contacts,owner,engagement_type" - | "engagement_type" - | "owner" - | "owner,account" - | "owner,account,engagement_type" - | "owner,engagement_type"; -} diff --git a/src/serialization/resources/crm/resources/engagements/types/EngagementsListRequestExpandItem.ts b/src/serialization/resources/crm/resources/engagements/types/EngagementsListRequestExpandItem.ts new file mode 100644 index 000000000..b9ad5eda0 --- /dev/null +++ b/src/serialization/resources/crm/resources/engagements/types/EngagementsListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const EngagementsListRequestExpandItem: core.serialization.Schema< + serializers.crm.EngagementsListRequestExpandItem.Raw, + Merge.crm.EngagementsListRequestExpandItem +> = core.serialization.enum_(["account", "contacts", "engagement_type", "owner"]); + +export declare namespace EngagementsListRequestExpandItem { + export type Raw = "account" | "contacts" | "engagement_type" | "owner"; +} diff --git a/src/serialization/resources/crm/resources/engagements/types/EngagementsRetrieveRequestExpand.ts b/src/serialization/resources/crm/resources/engagements/types/EngagementsRetrieveRequestExpand.ts deleted file mode 100644 index dff6e53ee..000000000 --- a/src/serialization/resources/crm/resources/engagements/types/EngagementsRetrieveRequestExpand.ts +++ /dev/null @@ -1,45 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const EngagementsRetrieveRequestExpand: core.serialization.Schema< - serializers.crm.EngagementsRetrieveRequestExpand.Raw, - Merge.crm.EngagementsRetrieveRequestExpand -> = core.serialization.enum_([ - "account", - "account,engagement_type", - "contacts", - "contacts,account", - "contacts,account,engagement_type", - "contacts,engagement_type", - "contacts,owner", - "contacts,owner,account", - "contacts,owner,account,engagement_type", - "contacts,owner,engagement_type", - "engagement_type", - "owner", - "owner,account", - "owner,account,engagement_type", - "owner,engagement_type", -]); - -export declare namespace EngagementsRetrieveRequestExpand { - export type Raw = - | "account" - | "account,engagement_type" - | "contacts" - | "contacts,account" - | "contacts,account,engagement_type" - | "contacts,engagement_type" - | "contacts,owner" - | "contacts,owner,account" - | "contacts,owner,account,engagement_type" - | "contacts,owner,engagement_type" - | "engagement_type" - | "owner" - | "owner,account" - | "owner,account,engagement_type" - | "owner,engagement_type"; -} diff --git a/src/serialization/resources/crm/resources/engagements/types/EngagementsRetrieveRequestExpandItem.ts b/src/serialization/resources/crm/resources/engagements/types/EngagementsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..e52f06ee2 --- /dev/null +++ b/src/serialization/resources/crm/resources/engagements/types/EngagementsRetrieveRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const EngagementsRetrieveRequestExpandItem: core.serialization.Schema< + serializers.crm.EngagementsRetrieveRequestExpandItem.Raw, + Merge.crm.EngagementsRetrieveRequestExpandItem +> = core.serialization.enum_(["account", "contacts", "engagement_type", "owner"]); + +export declare namespace EngagementsRetrieveRequestExpandItem { + export type Raw = "account" | "contacts" | "engagement_type" | "owner"; +} diff --git a/src/serialization/resources/crm/resources/engagements/types/index.ts b/src/serialization/resources/crm/resources/engagements/types/index.ts index 742b3ef68..31b07a506 100644 --- a/src/serialization/resources/crm/resources/engagements/types/index.ts +++ b/src/serialization/resources/crm/resources/engagements/types/index.ts @@ -1,2 +1,2 @@ -export * from "./EngagementsListRequestExpand"; -export * from "./EngagementsRetrieveRequestExpand"; +export * from "./EngagementsListRequestExpandItem"; +export * from "./EngagementsRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/crm/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts b/src/serialization/resources/crm/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts index 830704a17..c4779b81f 100644 --- a/src/serialization/resources/crm/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts +++ b/src/serialization/resources/crm/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts @@ -6,7 +6,7 @@ import type * as serializers from "../../../../../../index"; export const CreateFieldMappingRequest: core.serialization.Schema< serializers.crm.CreateFieldMappingRequest.Raw, - Omit + Omit > = core.serialization.object({ targetFieldName: core.serialization.property("target_field_name", core.serialization.string()), targetFieldDescription: core.serialization.property("target_field_description", core.serialization.string()), @@ -17,6 +17,7 @@ export const CreateFieldMappingRequest: core.serialization.Schema< remoteMethod: core.serialization.property("remote_method", core.serialization.string()), remoteUrlPath: core.serialization.property("remote_url_path", core.serialization.string()), commonModelName: core.serialization.property("common_model_name", core.serialization.string()), + jmesPath: core.serialization.property("jmes_path", core.serialization.string().optional()), }); export declare namespace CreateFieldMappingRequest { @@ -27,5 +28,6 @@ export declare namespace CreateFieldMappingRequest { remote_method: string; remote_url_path: string; common_model_name: string; + jmes_path?: string | null; } } diff --git a/src/serialization/resources/crm/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts b/src/serialization/resources/crm/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts index 2c9e8790b..ef7ac4529 100644 --- a/src/serialization/resources/crm/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts +++ b/src/serialization/resources/crm/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts @@ -6,7 +6,7 @@ import type * as serializers from "../../../../../../index"; export const PatchedEditFieldMappingRequest: core.serialization.Schema< serializers.crm.PatchedEditFieldMappingRequest.Raw, - Merge.crm.PatchedEditFieldMappingRequest + Omit > = core.serialization.object({ remoteFieldTraversalPath: core.serialization.property( "remote_field_traversal_path", @@ -14,6 +14,7 @@ export const PatchedEditFieldMappingRequest: core.serialization.Schema< ), remoteMethod: core.serialization.property("remote_method", core.serialization.string().optional()), remoteUrlPath: core.serialization.property("remote_url_path", core.serialization.string().optional()), + jmesPath: core.serialization.property("jmes_path", core.serialization.string().optional()), }); export declare namespace PatchedEditFieldMappingRequest { @@ -21,5 +22,6 @@ export declare namespace PatchedEditFieldMappingRequest { remote_field_traversal_path?: unknown[] | null; remote_method?: string | null; remote_url_path?: string | null; + jmes_path?: string | null; } } diff --git a/src/serialization/resources/crm/resources/leads/types/LeadsListRequestExpand.ts b/src/serialization/resources/crm/resources/leads/types/LeadsListRequestExpand.ts deleted file mode 100644 index 493af826b..000000000 --- a/src/serialization/resources/crm/resources/leads/types/LeadsListRequestExpand.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const LeadsListRequestExpand: core.serialization.Schema< - serializers.crm.LeadsListRequestExpand.Raw, - Merge.crm.LeadsListRequestExpand -> = core.serialization.enum_([ - "converted_account", - "converted_contact", - "converted_contact,converted_account", - "owner", - "owner,converted_account", - "owner,converted_contact", - "owner,converted_contact,converted_account", -]); - -export declare namespace LeadsListRequestExpand { - export type Raw = - | "converted_account" - | "converted_contact" - | "converted_contact,converted_account" - | "owner" - | "owner,converted_account" - | "owner,converted_contact" - | "owner,converted_contact,converted_account"; -} diff --git a/src/serialization/resources/crm/resources/leads/types/LeadsListRequestExpandItem.ts b/src/serialization/resources/crm/resources/leads/types/LeadsListRequestExpandItem.ts new file mode 100644 index 000000000..22b64e8bd --- /dev/null +++ b/src/serialization/resources/crm/resources/leads/types/LeadsListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const LeadsListRequestExpandItem: core.serialization.Schema< + serializers.crm.LeadsListRequestExpandItem.Raw, + Merge.crm.LeadsListRequestExpandItem +> = core.serialization.enum_(["converted_account", "converted_contact", "owner"]); + +export declare namespace LeadsListRequestExpandItem { + export type Raw = "converted_account" | "converted_contact" | "owner"; +} diff --git a/src/serialization/resources/crm/resources/leads/types/LeadsRetrieveRequestExpand.ts b/src/serialization/resources/crm/resources/leads/types/LeadsRetrieveRequestExpand.ts deleted file mode 100644 index fd605a593..000000000 --- a/src/serialization/resources/crm/resources/leads/types/LeadsRetrieveRequestExpand.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const LeadsRetrieveRequestExpand: core.serialization.Schema< - serializers.crm.LeadsRetrieveRequestExpand.Raw, - Merge.crm.LeadsRetrieveRequestExpand -> = core.serialization.enum_([ - "converted_account", - "converted_contact", - "converted_contact,converted_account", - "owner", - "owner,converted_account", - "owner,converted_contact", - "owner,converted_contact,converted_account", -]); - -export declare namespace LeadsRetrieveRequestExpand { - export type Raw = - | "converted_account" - | "converted_contact" - | "converted_contact,converted_account" - | "owner" - | "owner,converted_account" - | "owner,converted_contact" - | "owner,converted_contact,converted_account"; -} diff --git a/src/serialization/resources/crm/resources/leads/types/LeadsRetrieveRequestExpandItem.ts b/src/serialization/resources/crm/resources/leads/types/LeadsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..b4f9cc67e --- /dev/null +++ b/src/serialization/resources/crm/resources/leads/types/LeadsRetrieveRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const LeadsRetrieveRequestExpandItem: core.serialization.Schema< + serializers.crm.LeadsRetrieveRequestExpandItem.Raw, + Merge.crm.LeadsRetrieveRequestExpandItem +> = core.serialization.enum_(["converted_account", "converted_contact", "owner"]); + +export declare namespace LeadsRetrieveRequestExpandItem { + export type Raw = "converted_account" | "converted_contact" | "owner"; +} diff --git a/src/serialization/resources/crm/resources/leads/types/index.ts b/src/serialization/resources/crm/resources/leads/types/index.ts index 139d390d0..910b5ea9c 100644 --- a/src/serialization/resources/crm/resources/leads/types/index.ts +++ b/src/serialization/resources/crm/resources/leads/types/index.ts @@ -1,2 +1,2 @@ -export * from "./LeadsListRequestExpand"; -export * from "./LeadsRetrieveRequestExpand"; +export * from "./LeadsListRequestExpandItem"; +export * from "./LeadsRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/crm/resources/notes/types/NotesListRequestExpand.ts b/src/serialization/resources/crm/resources/notes/types/NotesListRequestExpand.ts deleted file mode 100644 index 8198ca922..000000000 --- a/src/serialization/resources/crm/resources/notes/types/NotesListRequestExpand.ts +++ /dev/null @@ -1,45 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const NotesListRequestExpand: core.serialization.Schema< - serializers.crm.NotesListRequestExpand.Raw, - Merge.crm.NotesListRequestExpand -> = core.serialization.enum_([ - "account", - "account,opportunity", - "contact", - "contact,account", - "contact,account,opportunity", - "contact,opportunity", - "opportunity", - "owner", - "owner,account", - "owner,account,opportunity", - "owner,contact", - "owner,contact,account", - "owner,contact,account,opportunity", - "owner,contact,opportunity", - "owner,opportunity", -]); - -export declare namespace NotesListRequestExpand { - export type Raw = - | "account" - | "account,opportunity" - | "contact" - | "contact,account" - | "contact,account,opportunity" - | "contact,opportunity" - | "opportunity" - | "owner" - | "owner,account" - | "owner,account,opportunity" - | "owner,contact" - | "owner,contact,account" - | "owner,contact,account,opportunity" - | "owner,contact,opportunity" - | "owner,opportunity"; -} diff --git a/src/serialization/resources/crm/resources/notes/types/NotesListRequestExpandItem.ts b/src/serialization/resources/crm/resources/notes/types/NotesListRequestExpandItem.ts new file mode 100644 index 000000000..3e5e1818d --- /dev/null +++ b/src/serialization/resources/crm/resources/notes/types/NotesListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const NotesListRequestExpandItem: core.serialization.Schema< + serializers.crm.NotesListRequestExpandItem.Raw, + Merge.crm.NotesListRequestExpandItem +> = core.serialization.enum_(["account", "contact", "opportunity", "owner"]); + +export declare namespace NotesListRequestExpandItem { + export type Raw = "account" | "contact" | "opportunity" | "owner"; +} diff --git a/src/serialization/resources/crm/resources/notes/types/NotesRetrieveRequestExpand.ts b/src/serialization/resources/crm/resources/notes/types/NotesRetrieveRequestExpand.ts deleted file mode 100644 index f9da77926..000000000 --- a/src/serialization/resources/crm/resources/notes/types/NotesRetrieveRequestExpand.ts +++ /dev/null @@ -1,45 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const NotesRetrieveRequestExpand: core.serialization.Schema< - serializers.crm.NotesRetrieveRequestExpand.Raw, - Merge.crm.NotesRetrieveRequestExpand -> = core.serialization.enum_([ - "account", - "account,opportunity", - "contact", - "contact,account", - "contact,account,opportunity", - "contact,opportunity", - "opportunity", - "owner", - "owner,account", - "owner,account,opportunity", - "owner,contact", - "owner,contact,account", - "owner,contact,account,opportunity", - "owner,contact,opportunity", - "owner,opportunity", -]); - -export declare namespace NotesRetrieveRequestExpand { - export type Raw = - | "account" - | "account,opportunity" - | "contact" - | "contact,account" - | "contact,account,opportunity" - | "contact,opportunity" - | "opportunity" - | "owner" - | "owner,account" - | "owner,account,opportunity" - | "owner,contact" - | "owner,contact,account" - | "owner,contact,account,opportunity" - | "owner,contact,opportunity" - | "owner,opportunity"; -} diff --git a/src/serialization/resources/crm/resources/notes/types/NotesRetrieveRequestExpandItem.ts b/src/serialization/resources/crm/resources/notes/types/NotesRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..65820c309 --- /dev/null +++ b/src/serialization/resources/crm/resources/notes/types/NotesRetrieveRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const NotesRetrieveRequestExpandItem: core.serialization.Schema< + serializers.crm.NotesRetrieveRequestExpandItem.Raw, + Merge.crm.NotesRetrieveRequestExpandItem +> = core.serialization.enum_(["account", "contact", "opportunity", "owner"]); + +export declare namespace NotesRetrieveRequestExpandItem { + export type Raw = "account" | "contact" | "opportunity" | "owner"; +} diff --git a/src/serialization/resources/crm/resources/notes/types/index.ts b/src/serialization/resources/crm/resources/notes/types/index.ts index 619a79b71..34de923cd 100644 --- a/src/serialization/resources/crm/resources/notes/types/index.ts +++ b/src/serialization/resources/crm/resources/notes/types/index.ts @@ -1,2 +1,2 @@ -export * from "./NotesListRequestExpand"; -export * from "./NotesRetrieveRequestExpand"; +export * from "./NotesListRequestExpandItem"; +export * from "./NotesRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/crm/resources/opportunities/types/OpportunitiesListRequestExpand.ts b/src/serialization/resources/crm/resources/opportunities/types/OpportunitiesListRequestExpand.ts deleted file mode 100644 index 27fa02159..000000000 --- a/src/serialization/resources/crm/resources/opportunities/types/OpportunitiesListRequestExpand.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const OpportunitiesListRequestExpand: core.serialization.Schema< - serializers.crm.OpportunitiesListRequestExpand.Raw, - Merge.crm.OpportunitiesListRequestExpand -> = core.serialization.enum_([ - "account", - "owner", - "owner,account", - "owner,stage", - "owner,stage,account", - "stage", - "stage,account", -]); - -export declare namespace OpportunitiesListRequestExpand { - export type Raw = - | "account" - | "owner" - | "owner,account" - | "owner,stage" - | "owner,stage,account" - | "stage" - | "stage,account"; -} diff --git a/src/serialization/resources/crm/resources/opportunities/types/OpportunitiesListRequestExpandItem.ts b/src/serialization/resources/crm/resources/opportunities/types/OpportunitiesListRequestExpandItem.ts new file mode 100644 index 000000000..df00c1f56 --- /dev/null +++ b/src/serialization/resources/crm/resources/opportunities/types/OpportunitiesListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const OpportunitiesListRequestExpandItem: core.serialization.Schema< + serializers.crm.OpportunitiesListRequestExpandItem.Raw, + Merge.crm.OpportunitiesListRequestExpandItem +> = core.serialization.enum_(["account", "owner", "stage"]); + +export declare namespace OpportunitiesListRequestExpandItem { + export type Raw = "account" | "owner" | "stage"; +} diff --git a/src/serialization/resources/crm/resources/opportunities/types/OpportunitiesRetrieveRequestExpand.ts b/src/serialization/resources/crm/resources/opportunities/types/OpportunitiesRetrieveRequestExpand.ts deleted file mode 100644 index 07c29d0e3..000000000 --- a/src/serialization/resources/crm/resources/opportunities/types/OpportunitiesRetrieveRequestExpand.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const OpportunitiesRetrieveRequestExpand: core.serialization.Schema< - serializers.crm.OpportunitiesRetrieveRequestExpand.Raw, - Merge.crm.OpportunitiesRetrieveRequestExpand -> = core.serialization.enum_([ - "account", - "owner", - "owner,account", - "owner,stage", - "owner,stage,account", - "stage", - "stage,account", -]); - -export declare namespace OpportunitiesRetrieveRequestExpand { - export type Raw = - | "account" - | "owner" - | "owner,account" - | "owner,stage" - | "owner,stage,account" - | "stage" - | "stage,account"; -} diff --git a/src/serialization/resources/crm/resources/opportunities/types/OpportunitiesRetrieveRequestExpandItem.ts b/src/serialization/resources/crm/resources/opportunities/types/OpportunitiesRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..a3ed14f76 --- /dev/null +++ b/src/serialization/resources/crm/resources/opportunities/types/OpportunitiesRetrieveRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const OpportunitiesRetrieveRequestExpandItem: core.serialization.Schema< + serializers.crm.OpportunitiesRetrieveRequestExpandItem.Raw, + Merge.crm.OpportunitiesRetrieveRequestExpandItem +> = core.serialization.enum_(["account", "owner", "stage"]); + +export declare namespace OpportunitiesRetrieveRequestExpandItem { + export type Raw = "account" | "owner" | "stage"; +} diff --git a/src/serialization/resources/crm/resources/opportunities/types/index.ts b/src/serialization/resources/crm/resources/opportunities/types/index.ts index 0d6d5b6f1..94845ece4 100644 --- a/src/serialization/resources/crm/resources/opportunities/types/index.ts +++ b/src/serialization/resources/crm/resources/opportunities/types/index.ts @@ -1,3 +1,3 @@ -export * from "./OpportunitiesListRequestExpand"; +export * from "./OpportunitiesListRequestExpandItem"; export * from "./OpportunitiesListRequestStatus"; -export * from "./OpportunitiesRetrieveRequestExpand"; +export * from "./OpportunitiesRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/crm/resources/tasks/types/TasksListRequestExpand.ts b/src/serialization/resources/crm/resources/tasks/types/TasksListRequestExpand.ts deleted file mode 100644 index bb69e0712..000000000 --- a/src/serialization/resources/crm/resources/tasks/types/TasksListRequestExpand.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const TasksListRequestExpand: core.serialization.Schema< - serializers.crm.TasksListRequestExpand.Raw, - Merge.crm.TasksListRequestExpand -> = core.serialization.enum_([ - "account", - "account,opportunity", - "opportunity", - "owner", - "owner,account", - "owner,account,opportunity", - "owner,opportunity", -]); - -export declare namespace TasksListRequestExpand { - export type Raw = - | "account" - | "account,opportunity" - | "opportunity" - | "owner" - | "owner,account" - | "owner,account,opportunity" - | "owner,opportunity"; -} diff --git a/src/serialization/resources/crm/resources/tasks/types/TasksListRequestExpandItem.ts b/src/serialization/resources/crm/resources/tasks/types/TasksListRequestExpandItem.ts new file mode 100644 index 000000000..94f2dce67 --- /dev/null +++ b/src/serialization/resources/crm/resources/tasks/types/TasksListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const TasksListRequestExpandItem: core.serialization.Schema< + serializers.crm.TasksListRequestExpandItem.Raw, + Merge.crm.TasksListRequestExpandItem +> = core.serialization.enum_(["account", "contact", "opportunity", "owner"]); + +export declare namespace TasksListRequestExpandItem { + export type Raw = "account" | "contact" | "opportunity" | "owner"; +} diff --git a/src/serialization/resources/crm/resources/tasks/types/TasksRetrieveRequestExpand.ts b/src/serialization/resources/crm/resources/tasks/types/TasksRetrieveRequestExpand.ts deleted file mode 100644 index 344a79d54..000000000 --- a/src/serialization/resources/crm/resources/tasks/types/TasksRetrieveRequestExpand.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const TasksRetrieveRequestExpand: core.serialization.Schema< - serializers.crm.TasksRetrieveRequestExpand.Raw, - Merge.crm.TasksRetrieveRequestExpand -> = core.serialization.enum_([ - "account", - "account,opportunity", - "opportunity", - "owner", - "owner,account", - "owner,account,opportunity", - "owner,opportunity", -]); - -export declare namespace TasksRetrieveRequestExpand { - export type Raw = - | "account" - | "account,opportunity" - | "opportunity" - | "owner" - | "owner,account" - | "owner,account,opportunity" - | "owner,opportunity"; -} diff --git a/src/serialization/resources/crm/resources/tasks/types/TasksRetrieveRequestExpandItem.ts b/src/serialization/resources/crm/resources/tasks/types/TasksRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..c45840f98 --- /dev/null +++ b/src/serialization/resources/crm/resources/tasks/types/TasksRetrieveRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const TasksRetrieveRequestExpandItem: core.serialization.Schema< + serializers.crm.TasksRetrieveRequestExpandItem.Raw, + Merge.crm.TasksRetrieveRequestExpandItem +> = core.serialization.enum_(["account", "contact", "opportunity", "owner"]); + +export declare namespace TasksRetrieveRequestExpandItem { + export type Raw = "account" | "contact" | "opportunity" | "owner"; +} diff --git a/src/serialization/resources/crm/resources/tasks/types/index.ts b/src/serialization/resources/crm/resources/tasks/types/index.ts index 570802a11..13aa3a20e 100644 --- a/src/serialization/resources/crm/resources/tasks/types/index.ts +++ b/src/serialization/resources/crm/resources/tasks/types/index.ts @@ -1,2 +1,2 @@ -export * from "./TasksListRequestExpand"; -export * from "./TasksRetrieveRequestExpand"; +export * from "./TasksListRequestExpandItem"; +export * from "./TasksRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/crm/types/AccountDetailsAndActions.ts b/src/serialization/resources/crm/types/AccountDetailsAndActions.ts index 3487726fc..c7ba132ad 100644 --- a/src/serialization/resources/crm/types/AccountDetailsAndActions.ts +++ b/src/serialization/resources/crm/types/AccountDetailsAndActions.ts @@ -24,6 +24,10 @@ export const AccountDetailsAndActions: core.serialization.ObjectSchema< integration: AccountDetailsAndActionsIntegration.optional(), accountType: core.serialization.property("account_type", core.serialization.string()), completedAt: core.serialization.property("completed_at", core.serialization.date()), + integrationSpecificFields: core.serialization.property( + "integration_specific_fields", + core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), + ), }); export declare namespace AccountDetailsAndActions { @@ -41,5 +45,6 @@ export declare namespace AccountDetailsAndActions { integration?: AccountDetailsAndActionsIntegration.Raw | null; account_type: string; completed_at: string; + integration_specific_fields?: Record | null; } } diff --git a/src/serialization/resources/crm/types/FieldMappingApiInstance.ts b/src/serialization/resources/crm/types/FieldMappingApiInstance.ts index 7ca31370b..9ae3a548a 100644 --- a/src/serialization/resources/crm/types/FieldMappingApiInstance.ts +++ b/src/serialization/resources/crm/types/FieldMappingApiInstance.ts @@ -14,6 +14,7 @@ export const FieldMappingApiInstance: core.serialization.ObjectSchema< isIntegrationWide: core.serialization.property("is_integration_wide", core.serialization.boolean().optional()), targetField: core.serialization.property("target_field", FieldMappingApiInstanceTargetField.optional()), remoteField: core.serialization.property("remote_field", FieldMappingApiInstanceRemoteField.optional()), + jmesPath: core.serialization.property("jmes_path", core.serialization.string().optional()), }); export declare namespace FieldMappingApiInstance { @@ -22,5 +23,6 @@ export declare namespace FieldMappingApiInstance { is_integration_wide?: boolean | null; target_field?: FieldMappingApiInstanceTargetField.Raw | null; remote_field?: FieldMappingApiInstanceRemoteField.Raw | null; + jmes_path?: string | null; } } diff --git a/src/serialization/resources/crm/types/Lead.ts b/src/serialization/resources/crm/types/Lead.ts index 8d01938a7..2f5475b19 100644 --- a/src/serialization/resources/crm/types/Lead.ts +++ b/src/serialization/resources/crm/types/Lead.ts @@ -8,6 +8,7 @@ import { EmailAddress } from "./EmailAddress"; import { LeadConvertedAccount } from "./LeadConvertedAccount"; import { LeadConvertedContact } from "./LeadConvertedContact"; import { LeadOwner } from "./LeadOwner"; +import { LeadStatus } from "./LeadStatus"; import { PhoneNumber } from "./PhoneNumber"; import { RemoteData } from "./RemoteData"; import { RemoteField } from "./RemoteField"; @@ -35,6 +36,7 @@ export const Lead: core.serialization.ObjectSchema | null; remote_data?: RemoteData.Raw[] | null; diff --git a/src/serialization/resources/crm/types/LeadStatus.ts b/src/serialization/resources/crm/types/LeadStatus.ts new file mode 100644 index 000000000..2e0aa51b9 --- /dev/null +++ b/src/serialization/resources/crm/types/LeadStatus.ts @@ -0,0 +1,13 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { LeadStatusEnum } from "./LeadStatusEnum"; + +export const LeadStatus: core.serialization.Schema = + core.serialization.undiscriminatedUnion([LeadStatusEnum, core.serialization.string()]); + +export declare namespace LeadStatus { + export type Raw = LeadStatusEnum.Raw | string; +} diff --git a/src/serialization/resources/crm/types/LeadStatusEnum.ts b/src/serialization/resources/crm/types/LeadStatusEnum.ts new file mode 100644 index 000000000..5d8b572cd --- /dev/null +++ b/src/serialization/resources/crm/types/LeadStatusEnum.ts @@ -0,0 +1,12 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; + +export const LeadStatusEnum: core.serialization.Schema = + core.serialization.enum_(["OPEN", "CLOSED", "UNQUALIFIED", "QUALIFIED"]); + +export declare namespace LeadStatusEnum { + export type Raw = "OPEN" | "CLOSED" | "UNQUALIFIED" | "QUALIFIED"; +} diff --git a/src/serialization/resources/crm/types/PatchedTaskRequest.ts b/src/serialization/resources/crm/types/PatchedTaskRequest.ts index b5f358b11..c6b1a3289 100644 --- a/src/serialization/resources/crm/types/PatchedTaskRequest.ts +++ b/src/serialization/resources/crm/types/PatchedTaskRequest.ts @@ -15,6 +15,7 @@ export const PatchedTaskRequest: core.serialization.ObjectSchema< owner: core.serialization.string().optional(), account: core.serialization.string().optional(), opportunity: core.serialization.string().optional(), + contact: core.serialization.string().optional(), completedDate: core.serialization.property("completed_date", core.serialization.date().optional()), dueDate: core.serialization.property("due_date", core.serialization.date().optional()), status: PatchedTaskRequestStatus.optional(), @@ -36,6 +37,7 @@ export declare namespace PatchedTaskRequest { owner?: string | null; account?: string | null; opportunity?: string | null; + contact?: string | null; completed_date?: string | null; due_date?: string | null; status?: PatchedTaskRequestStatus.Raw | null; diff --git a/src/serialization/resources/crm/types/RegenerateAccountToken.ts b/src/serialization/resources/crm/types/RegenerateAccountToken.ts new file mode 100644 index 000000000..0083dba95 --- /dev/null +++ b/src/serialization/resources/crm/types/RegenerateAccountToken.ts @@ -0,0 +1,20 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; + +export const RegenerateAccountToken: core.serialization.ObjectSchema< + serializers.crm.RegenerateAccountToken.Raw, + Merge.crm.RegenerateAccountToken +> = core.serialization.object({ + linkedAccountId: core.serialization.property("linked_account_id", core.serialization.string()), + accountToken: core.serialization.property("account_token", core.serialization.string()), +}); + +export declare namespace RegenerateAccountToken { + export interface Raw { + linked_account_id: string; + account_token: string; + } +} diff --git a/src/serialization/resources/crm/types/RemoteFieldClass.ts b/src/serialization/resources/crm/types/RemoteFieldClass.ts index e4324da5f..429f07d3e 100644 --- a/src/serialization/resources/crm/types/RemoteFieldClass.ts +++ b/src/serialization/resources/crm/types/RemoteFieldClass.ts @@ -3,10 +3,10 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; +import { FieldFormatEnum } from "./FieldFormatEnum"; +import { FieldTypeEnum } from "./FieldTypeEnum"; import { ItemSchema } from "./ItemSchema"; import { RemoteFieldClassFieldChoicesItem } from "./RemoteFieldClassFieldChoicesItem"; -import { RemoteFieldClassFieldFormat } from "./RemoteFieldClassFieldFormat"; -import { RemoteFieldClassFieldType } from "./RemoteFieldClassFieldType"; export const RemoteFieldClass: core.serialization.ObjectSchema< serializers.crm.RemoteFieldClass.Raw, @@ -19,8 +19,8 @@ export const RemoteFieldClass: core.serialization.ObjectSchema< isCustom: core.serialization.property("is_custom", core.serialization.boolean().optional()), isCommonModelField: core.serialization.property("is_common_model_field", core.serialization.boolean().optional()), isRequired: core.serialization.property("is_required", core.serialization.boolean().optional()), - fieldType: core.serialization.property("field_type", RemoteFieldClassFieldType.optional()), - fieldFormat: core.serialization.property("field_format", RemoteFieldClassFieldFormat.optional()), + fieldType: core.serialization.property("field_type", FieldTypeEnum.optional()), + fieldFormat: core.serialization.property("field_format", FieldFormatEnum.optional()), fieldChoices: core.serialization.property( "field_choices", core.serialization.list(RemoteFieldClassFieldChoicesItem).optional(), @@ -37,8 +37,8 @@ export declare namespace RemoteFieldClass { is_custom?: boolean | null; is_common_model_field?: boolean | null; is_required?: boolean | null; - field_type?: RemoteFieldClassFieldType.Raw | null; - field_format?: RemoteFieldClassFieldFormat.Raw | null; + field_type?: FieldTypeEnum.Raw | null; + field_format?: FieldFormatEnum.Raw | null; field_choices?: RemoteFieldClassFieldChoicesItem.Raw[] | null; item_schema?: ItemSchema.Raw | null; } diff --git a/src/serialization/resources/crm/types/RemoteFieldClassFieldFormat.ts b/src/serialization/resources/crm/types/RemoteFieldClassFieldFormat.ts deleted file mode 100644 index 412f65bc3..000000000 --- a/src/serialization/resources/crm/types/RemoteFieldClassFieldFormat.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { FieldFormatEnum } from "./FieldFormatEnum"; - -export const RemoteFieldClassFieldFormat: core.serialization.Schema< - serializers.crm.RemoteFieldClassFieldFormat.Raw, - Merge.crm.RemoteFieldClassFieldFormat -> = core.serialization.undiscriminatedUnion([FieldFormatEnum, core.serialization.string()]); - -export declare namespace RemoteFieldClassFieldFormat { - export type Raw = FieldFormatEnum.Raw | string; -} diff --git a/src/serialization/resources/crm/types/RemoteFieldClassFieldType.ts b/src/serialization/resources/crm/types/RemoteFieldClassFieldType.ts deleted file mode 100644 index a1d140292..000000000 --- a/src/serialization/resources/crm/types/RemoteFieldClassFieldType.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { FieldTypeEnum } from "./FieldTypeEnum"; - -export const RemoteFieldClassFieldType: core.serialization.Schema< - serializers.crm.RemoteFieldClassFieldType.Raw, - Merge.crm.RemoteFieldClassFieldType -> = core.serialization.undiscriminatedUnion([FieldTypeEnum, core.serialization.string()]); - -export declare namespace RemoteFieldClassFieldType { - export type Raw = FieldTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/crm/types/RemoteResponse.ts b/src/serialization/resources/crm/types/RemoteResponse.ts index a2daf6066..9e58ea3fb 100644 --- a/src/serialization/resources/crm/types/RemoteResponse.ts +++ b/src/serialization/resources/crm/types/RemoteResponse.ts @@ -3,7 +3,7 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; -import { ResponseTypeEnum } from "./ResponseTypeEnum"; +import { RemoteResponseResponseType } from "./RemoteResponseResponseType"; export const RemoteResponse: core.serialization.ObjectSchema< serializers.crm.RemoteResponse.Raw, @@ -17,7 +17,7 @@ export const RemoteResponse: core.serialization.ObjectSchema< "response_headers", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), ), - responseType: core.serialization.property("response_type", ResponseTypeEnum.optional()), + responseType: core.serialization.property("response_type", RemoteResponseResponseType.optional()), headers: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), }); @@ -28,7 +28,7 @@ export declare namespace RemoteResponse { status: number; response?: unknown; response_headers?: Record | null; - response_type?: ResponseTypeEnum.Raw | null; + response_type?: RemoteResponseResponseType.Raw | null; headers?: Record | null; } } diff --git a/src/serialization/resources/crm/types/RemoteResponseResponseType.ts b/src/serialization/resources/crm/types/RemoteResponseResponseType.ts new file mode 100644 index 000000000..11d307c69 --- /dev/null +++ b/src/serialization/resources/crm/types/RemoteResponseResponseType.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { ResponseTypeEnum } from "./ResponseTypeEnum"; + +export const RemoteResponseResponseType: core.serialization.Schema< + serializers.crm.RemoteResponseResponseType.Raw, + Merge.crm.RemoteResponseResponseType +> = core.serialization.undiscriminatedUnion([ResponseTypeEnum, core.serialization.string()]); + +export declare namespace RemoteResponseResponseType { + export type Raw = ResponseTypeEnum.Raw | string; +} diff --git a/src/serialization/resources/crm/types/RoleEnum.ts b/src/serialization/resources/crm/types/RoleEnum.ts index 301589280..d726e4235 100644 --- a/src/serialization/resources/crm/types/RoleEnum.ts +++ b/src/serialization/resources/crm/types/RoleEnum.ts @@ -5,8 +5,8 @@ import * as core from "../../../../core"; import type * as serializers from "../../../index"; export const RoleEnum: core.serialization.Schema = - core.serialization.enum_(["ADMIN", "DEVELOPER", "MEMBER", "API", "SYSTEM", "MERGE_TEAM"]); + core.serialization.enum_(["ADMIN", "DEVELOPER", "MEMBER", "API", "SYSTEM", "MERGE_TEAM", "SUPPORT"]); export declare namespace RoleEnum { - export type Raw = "ADMIN" | "DEVELOPER" | "MEMBER" | "API" | "SYSTEM" | "MERGE_TEAM"; + export type Raw = "ADMIN" | "DEVELOPER" | "MEMBER" | "API" | "SYSTEM" | "MERGE_TEAM" | "SUPPORT"; } diff --git a/src/serialization/resources/crm/types/Task.ts b/src/serialization/resources/crm/types/Task.ts index 01a9d712b..0a47a3cf3 100644 --- a/src/serialization/resources/crm/types/Task.ts +++ b/src/serialization/resources/crm/types/Task.ts @@ -6,6 +6,7 @@ import type * as serializers from "../../../index"; import { RemoteData } from "./RemoteData"; import { RemoteField } from "./RemoteField"; import { TaskAccount } from "./TaskAccount"; +import { TaskContact } from "./TaskContact"; import { TaskOpportunity } from "./TaskOpportunity"; import { TaskOwner } from "./TaskOwner"; import { TaskStatus } from "./TaskStatus"; @@ -21,6 +22,7 @@ export const Task: core.serialization.ObjectSchema = + core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); + +export declare namespace TaskContact { + export type Raw = string | Contact.Raw; +} diff --git a/src/serialization/resources/crm/types/TaskRequest.ts b/src/serialization/resources/crm/types/TaskRequest.ts index 69d8049a7..505d9dd8c 100644 --- a/src/serialization/resources/crm/types/TaskRequest.ts +++ b/src/serialization/resources/crm/types/TaskRequest.ts @@ -5,6 +5,7 @@ import * as core from "../../../../core"; import type * as serializers from "../../../index"; import { RemoteFieldRequest } from "./RemoteFieldRequest"; import { TaskRequestAccount } from "./TaskRequestAccount"; +import { TaskRequestContact } from "./TaskRequestContact"; import { TaskRequestOpportunity } from "./TaskRequestOpportunity"; import { TaskRequestOwner } from "./TaskRequestOwner"; import { TaskRequestStatus } from "./TaskRequestStatus"; @@ -16,6 +17,7 @@ export const TaskRequest: core.serialization.ObjectSchema = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); + +export declare namespace TaskRequestContact { + export type Raw = string | Contact.Raw; +} diff --git a/src/serialization/resources/crm/types/index.ts b/src/serialization/resources/crm/types/index.ts index d5c268b4d..63b7132b3 100644 --- a/src/serialization/resources/crm/types/index.ts +++ b/src/serialization/resources/crm/types/index.ts @@ -108,6 +108,8 @@ export * from "./LeadRequestConvertedAccount"; export * from "./LeadRequestConvertedContact"; export * from "./LeadRequestOwner"; export * from "./LeadResponse"; +export * from "./LeadStatus"; +export * from "./LeadStatusEnum"; export * from "./LinkedAccountStatus"; export * from "./LinkToken"; export * from "./MetaResponse"; @@ -173,6 +175,7 @@ export * from "./PatchedTaskRequestStatus"; export * from "./PhoneNumber"; export * from "./PhoneNumberRequest"; export * from "./ReasonEnum"; +export * from "./RegenerateAccountToken"; export * from "./RemoteData"; export * from "./RemoteEndpointInfo"; export * from "./RemoteField"; @@ -181,8 +184,6 @@ export * from "./RemoteFieldApiCoverage"; export * from "./RemoteFieldApiResponse"; export * from "./RemoteFieldClass"; export * from "./RemoteFieldClassFieldChoicesItem"; -export * from "./RemoteFieldClassFieldFormat"; -export * from "./RemoteFieldClassFieldType"; export * from "./RemoteFieldClassForCustomObjectClass"; export * from "./RemoteFieldClassForCustomObjectClassFieldChoicesItem"; export * from "./RemoteFieldClassForCustomObjectClassFieldFormat"; @@ -193,6 +194,7 @@ export * from "./RemoteFieldRequest"; export * from "./RemoteFieldRequestRemoteFieldClass"; export * from "./RemoteKey"; export * from "./RemoteResponse"; +export * from "./RemoteResponseResponseType"; export * from "./RequestFormatEnum"; export * from "./ResponseTypeEnum"; export * from "./RoleEnum"; @@ -204,10 +206,12 @@ export * from "./SyncStatusLastSyncResult"; export * from "./SyncStatusStatus"; export * from "./Task"; export * from "./TaskAccount"; +export * from "./TaskContact"; export * from "./TaskOpportunity"; export * from "./TaskOwner"; export * from "./TaskRequest"; export * from "./TaskRequestAccount"; +export * from "./TaskRequestContact"; export * from "./TaskRequestOpportunity"; export * from "./TaskRequestOwner"; export * from "./TaskRequestStatus"; diff --git a/src/serialization/resources/filestorage/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts b/src/serialization/resources/filestorage/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts index 7247edf3e..6ef6fe993 100644 --- a/src/serialization/resources/filestorage/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts +++ b/src/serialization/resources/filestorage/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts @@ -6,7 +6,7 @@ import type * as serializers from "../../../../../../index"; export const CreateFieldMappingRequest: core.serialization.Schema< serializers.filestorage.CreateFieldMappingRequest.Raw, - Omit + Omit > = core.serialization.object({ targetFieldName: core.serialization.property("target_field_name", core.serialization.string()), targetFieldDescription: core.serialization.property("target_field_description", core.serialization.string()), @@ -17,6 +17,7 @@ export const CreateFieldMappingRequest: core.serialization.Schema< remoteMethod: core.serialization.property("remote_method", core.serialization.string()), remoteUrlPath: core.serialization.property("remote_url_path", core.serialization.string()), commonModelName: core.serialization.property("common_model_name", core.serialization.string()), + jmesPath: core.serialization.property("jmes_path", core.serialization.string().optional()), }); export declare namespace CreateFieldMappingRequest { @@ -27,5 +28,6 @@ export declare namespace CreateFieldMappingRequest { remote_method: string; remote_url_path: string; common_model_name: string; + jmes_path?: string | null; } } diff --git a/src/serialization/resources/filestorage/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts b/src/serialization/resources/filestorage/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts index e259b1c6d..3f39a4039 100644 --- a/src/serialization/resources/filestorage/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts +++ b/src/serialization/resources/filestorage/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts @@ -6,7 +6,7 @@ import type * as serializers from "../../../../../../index"; export const PatchedEditFieldMappingRequest: core.serialization.Schema< serializers.filestorage.PatchedEditFieldMappingRequest.Raw, - Merge.filestorage.PatchedEditFieldMappingRequest + Omit > = core.serialization.object({ remoteFieldTraversalPath: core.serialization.property( "remote_field_traversal_path", @@ -14,6 +14,7 @@ export const PatchedEditFieldMappingRequest: core.serialization.Schema< ), remoteMethod: core.serialization.property("remote_method", core.serialization.string().optional()), remoteUrlPath: core.serialization.property("remote_url_path", core.serialization.string().optional()), + jmesPath: core.serialization.property("jmes_path", core.serialization.string().optional()), }); export declare namespace PatchedEditFieldMappingRequest { @@ -21,5 +22,6 @@ export declare namespace PatchedEditFieldMappingRequest { remote_field_traversal_path?: unknown[] | null; remote_method?: string | null; remote_url_path?: string | null; + jmes_path?: string | null; } } diff --git a/src/serialization/resources/filestorage/resources/files/types/FilesListRequestExpand.ts b/src/serialization/resources/filestorage/resources/files/types/FilesListRequestExpand.ts deleted file mode 100644 index b1f469255..000000000 --- a/src/serialization/resources/filestorage/resources/files/types/FilesListRequestExpand.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const FilesListRequestExpand: core.serialization.Schema< - serializers.filestorage.FilesListRequestExpand.Raw, - Merge.filestorage.FilesListRequestExpand -> = core.serialization.enum_([ - "drive", - "folder", - "folder,drive", - "permissions", - "permissions,drive", - "permissions,folder", - "permissions,folder,drive", -]); - -export declare namespace FilesListRequestExpand { - export type Raw = - | "drive" - | "folder" - | "folder,drive" - | "permissions" - | "permissions,drive" - | "permissions,folder" - | "permissions,folder,drive"; -} diff --git a/src/serialization/resources/filestorage/resources/files/types/FilesListRequestExpandItem.ts b/src/serialization/resources/filestorage/resources/files/types/FilesListRequestExpandItem.ts new file mode 100644 index 000000000..5604a1819 --- /dev/null +++ b/src/serialization/resources/filestorage/resources/files/types/FilesListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const FilesListRequestExpandItem: core.serialization.Schema< + serializers.filestorage.FilesListRequestExpandItem.Raw, + Merge.filestorage.FilesListRequestExpandItem +> = core.serialization.enum_(["drive", "folder", "permissions"]); + +export declare namespace FilesListRequestExpandItem { + export type Raw = "drive" | "folder" | "permissions"; +} diff --git a/src/serialization/resources/filestorage/resources/files/types/FilesRetrieveRequestExpand.ts b/src/serialization/resources/filestorage/resources/files/types/FilesRetrieveRequestExpand.ts deleted file mode 100644 index 1d1fc88d8..000000000 --- a/src/serialization/resources/filestorage/resources/files/types/FilesRetrieveRequestExpand.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const FilesRetrieveRequestExpand: core.serialization.Schema< - serializers.filestorage.FilesRetrieveRequestExpand.Raw, - Merge.filestorage.FilesRetrieveRequestExpand -> = core.serialization.enum_([ - "drive", - "folder", - "folder,drive", - "permissions", - "permissions,drive", - "permissions,folder", - "permissions,folder,drive", -]); - -export declare namespace FilesRetrieveRequestExpand { - export type Raw = - | "drive" - | "folder" - | "folder,drive" - | "permissions" - | "permissions,drive" - | "permissions,folder" - | "permissions,folder,drive"; -} diff --git a/src/serialization/resources/filestorage/resources/files/types/FilesRetrieveRequestExpandItem.ts b/src/serialization/resources/filestorage/resources/files/types/FilesRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..b553a4fa1 --- /dev/null +++ b/src/serialization/resources/filestorage/resources/files/types/FilesRetrieveRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const FilesRetrieveRequestExpandItem: core.serialization.Schema< + serializers.filestorage.FilesRetrieveRequestExpandItem.Raw, + Merge.filestorage.FilesRetrieveRequestExpandItem +> = core.serialization.enum_(["drive", "folder", "permissions"]); + +export declare namespace FilesRetrieveRequestExpandItem { + export type Raw = "drive" | "folder" | "permissions"; +} diff --git a/src/serialization/resources/filestorage/resources/files/types/index.ts b/src/serialization/resources/filestorage/resources/files/types/index.ts index 5c705d3d6..0183b907e 100644 --- a/src/serialization/resources/filestorage/resources/files/types/index.ts +++ b/src/serialization/resources/filestorage/resources/files/types/index.ts @@ -1,4 +1,4 @@ export * from "./FilesDownloadRequestMetaListRequestOrderBy"; -export * from "./FilesListRequestExpand"; +export * from "./FilesListRequestExpandItem"; export * from "./FilesListRequestOrderBy"; -export * from "./FilesRetrieveRequestExpand"; +export * from "./FilesRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/filestorage/resources/folders/types/FoldersListRequestExpand.ts b/src/serialization/resources/filestorage/resources/folders/types/FoldersListRequestExpand.ts deleted file mode 100644 index 41e819b12..000000000 --- a/src/serialization/resources/filestorage/resources/folders/types/FoldersListRequestExpand.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const FoldersListRequestExpand: core.serialization.Schema< - serializers.filestorage.FoldersListRequestExpand.Raw, - Merge.filestorage.FoldersListRequestExpand -> = core.serialization.enum_([ - "drive", - "parent_folder", - "parent_folder,drive", - "permissions", - "permissions,drive", - "permissions,parent_folder", - "permissions,parent_folder,drive", -]); - -export declare namespace FoldersListRequestExpand { - export type Raw = - | "drive" - | "parent_folder" - | "parent_folder,drive" - | "permissions" - | "permissions,drive" - | "permissions,parent_folder" - | "permissions,parent_folder,drive"; -} diff --git a/src/serialization/resources/filestorage/resources/folders/types/FoldersListRequestExpandItem.ts b/src/serialization/resources/filestorage/resources/folders/types/FoldersListRequestExpandItem.ts new file mode 100644 index 000000000..a7f8e7813 --- /dev/null +++ b/src/serialization/resources/filestorage/resources/folders/types/FoldersListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const FoldersListRequestExpandItem: core.serialization.Schema< + serializers.filestorage.FoldersListRequestExpandItem.Raw, + Merge.filestorage.FoldersListRequestExpandItem +> = core.serialization.enum_(["drive", "parent_folder", "permissions"]); + +export declare namespace FoldersListRequestExpandItem { + export type Raw = "drive" | "parent_folder" | "permissions"; +} diff --git a/src/serialization/resources/filestorage/resources/folders/types/FoldersRetrieveRequestExpand.ts b/src/serialization/resources/filestorage/resources/folders/types/FoldersRetrieveRequestExpand.ts deleted file mode 100644 index b4d1394d3..000000000 --- a/src/serialization/resources/filestorage/resources/folders/types/FoldersRetrieveRequestExpand.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const FoldersRetrieveRequestExpand: core.serialization.Schema< - serializers.filestorage.FoldersRetrieveRequestExpand.Raw, - Merge.filestorage.FoldersRetrieveRequestExpand -> = core.serialization.enum_([ - "drive", - "parent_folder", - "parent_folder,drive", - "permissions", - "permissions,drive", - "permissions,parent_folder", - "permissions,parent_folder,drive", -]); - -export declare namespace FoldersRetrieveRequestExpand { - export type Raw = - | "drive" - | "parent_folder" - | "parent_folder,drive" - | "permissions" - | "permissions,drive" - | "permissions,parent_folder" - | "permissions,parent_folder,drive"; -} diff --git a/src/serialization/resources/filestorage/resources/folders/types/FoldersRetrieveRequestExpandItem.ts b/src/serialization/resources/filestorage/resources/folders/types/FoldersRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..bccb7d582 --- /dev/null +++ b/src/serialization/resources/filestorage/resources/folders/types/FoldersRetrieveRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const FoldersRetrieveRequestExpandItem: core.serialization.Schema< + serializers.filestorage.FoldersRetrieveRequestExpandItem.Raw, + Merge.filestorage.FoldersRetrieveRequestExpandItem +> = core.serialization.enum_(["drive", "parent_folder", "permissions"]); + +export declare namespace FoldersRetrieveRequestExpandItem { + export type Raw = "drive" | "parent_folder" | "permissions"; +} diff --git a/src/serialization/resources/filestorage/resources/folders/types/index.ts b/src/serialization/resources/filestorage/resources/folders/types/index.ts index 855f5754e..19290772a 100644 --- a/src/serialization/resources/filestorage/resources/folders/types/index.ts +++ b/src/serialization/resources/filestorage/resources/folders/types/index.ts @@ -1,2 +1,2 @@ -export * from "./FoldersListRequestExpand"; -export * from "./FoldersRetrieveRequestExpand"; +export * from "./FoldersListRequestExpandItem"; +export * from "./FoldersRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/filestorage/resources/groups/index.ts b/src/serialization/resources/filestorage/resources/groups/index.ts new file mode 100644 index 000000000..eea524d65 --- /dev/null +++ b/src/serialization/resources/filestorage/resources/groups/index.ts @@ -0,0 +1 @@ +export * from "./types"; diff --git a/src/serialization/resources/filestorage/resources/groups/types/GroupsListRequestExpandItem.ts b/src/serialization/resources/filestorage/resources/groups/types/GroupsListRequestExpandItem.ts new file mode 100644 index 000000000..7efdc65f0 --- /dev/null +++ b/src/serialization/resources/filestorage/resources/groups/types/GroupsListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const GroupsListRequestExpandItem: core.serialization.Schema< + serializers.filestorage.GroupsListRequestExpandItem.Raw, + Merge.filestorage.GroupsListRequestExpandItem +> = core.serialization.enum_(["child_groups", "users"]); + +export declare namespace GroupsListRequestExpandItem { + export type Raw = "child_groups" | "users"; +} diff --git a/src/serialization/resources/filestorage/resources/groups/types/GroupsRetrieveRequestExpandItem.ts b/src/serialization/resources/filestorage/resources/groups/types/GroupsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..f130a192c --- /dev/null +++ b/src/serialization/resources/filestorage/resources/groups/types/GroupsRetrieveRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const GroupsRetrieveRequestExpandItem: core.serialization.Schema< + serializers.filestorage.GroupsRetrieveRequestExpandItem.Raw, + Merge.filestorage.GroupsRetrieveRequestExpandItem +> = core.serialization.enum_(["child_groups", "users"]); + +export declare namespace GroupsRetrieveRequestExpandItem { + export type Raw = "child_groups" | "users"; +} diff --git a/src/serialization/resources/filestorage/resources/groups/types/index.ts b/src/serialization/resources/filestorage/resources/groups/types/index.ts new file mode 100644 index 000000000..f5785eaaf --- /dev/null +++ b/src/serialization/resources/filestorage/resources/groups/types/index.ts @@ -0,0 +1,2 @@ +export * from "./GroupsListRequestExpandItem"; +export * from "./GroupsRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/filestorage/resources/index.ts b/src/serialization/resources/filestorage/resources/index.ts index e47642923..0439e0a7f 100644 --- a/src/serialization/resources/filestorage/resources/index.ts +++ b/src/serialization/resources/filestorage/resources/index.ts @@ -11,12 +11,15 @@ export * from "./folders/types"; export * as forceResync from "./forceResync"; export * as generateKey from "./generateKey"; export * from "./generateKey/client/requests"; +export * as groups from "./groups"; +export * from "./groups/types"; export * as issues from "./issues"; export * from "./issues/types"; export * as linkedAccounts from "./linkedAccounts"; export * from "./linkedAccounts/types"; export * as linkToken from "./linkToken"; export * from "./linkToken/client/requests"; +export * from "./linkToken/types"; export * as regenerateKey from "./regenerateKey"; export * from "./regenerateKey/client/requests"; export * as scopes from "./scopes"; 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 49a6044d1..08bd34eb5 100644 --- a/src/serialization/resources/filestorage/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ b/src/serialization/resources/filestorage/resources/linkToken/client/requests/EndUserDetailsRequest.ts @@ -6,7 +6,7 @@ import type * as serializers from "../../../../../../index"; import { CategoriesEnum } from "../../../../types/CategoriesEnum"; import { CommonModelScopesBodyRequest } from "../../../../types/CommonModelScopesBodyRequest"; import { IndividualCommonModelScopeDeserializerRequest } from "../../../../types/IndividualCommonModelScopeDeserializerRequest"; -import { LanguageEnum } from "../../../../types/LanguageEnum"; +import { EndUserDetailsRequestLanguage } from "../../types/EndUserDetailsRequestLanguage"; export const EndUserDetailsRequest: core.serialization.Schema< serializers.filestorage.EndUserDetailsRequest.Raw, @@ -36,7 +36,7 @@ export const EndUserDetailsRequest: core.serialization.Schema< ) .optional(), ), - language: LanguageEnum.optional(), + language: EndUserDetailsRequestLanguage.optional(), areSyncsDisabled: core.serialization.property("are_syncs_disabled", core.serialization.boolean().optional()), integrationSpecificConfig: core.serialization.property( "integration_specific_config", @@ -59,7 +59,7 @@ export declare namespace EndUserDetailsRequest { string, IndividualCommonModelScopeDeserializerRequest.Raw[] | null | undefined > | null; - language?: LanguageEnum.Raw | null; + language?: EndUserDetailsRequestLanguage.Raw | null; are_syncs_disabled?: boolean | null; integration_specific_config?: Record | null; } diff --git a/src/serialization/resources/filestorage/resources/linkToken/index.ts b/src/serialization/resources/filestorage/resources/linkToken/index.ts index 5ec76921e..d2ec2302c 100644 --- a/src/serialization/resources/filestorage/resources/linkToken/index.ts +++ b/src/serialization/resources/filestorage/resources/linkToken/index.ts @@ -1 +1,2 @@ export * from "./client"; +export * from "./types"; diff --git a/src/serialization/resources/filestorage/resources/linkToken/types/EndUserDetailsRequestLanguage.ts b/src/serialization/resources/filestorage/resources/linkToken/types/EndUserDetailsRequestLanguage.ts new file mode 100644 index 000000000..7b4abbf6d --- /dev/null +++ b/src/serialization/resources/filestorage/resources/linkToken/types/EndUserDetailsRequestLanguage.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; +import { LanguageEnum } from "../../../types/LanguageEnum"; + +export const EndUserDetailsRequestLanguage: core.serialization.Schema< + serializers.filestorage.EndUserDetailsRequestLanguage.Raw, + Merge.filestorage.EndUserDetailsRequestLanguage +> = core.serialization.undiscriminatedUnion([LanguageEnum, core.serialization.string()]); + +export declare namespace EndUserDetailsRequestLanguage { + export type Raw = LanguageEnum.Raw | string; +} diff --git a/src/serialization/resources/filestorage/resources/linkToken/types/index.ts b/src/serialization/resources/filestorage/resources/linkToken/types/index.ts new file mode 100644 index 000000000..c90e13c37 --- /dev/null +++ b/src/serialization/resources/filestorage/resources/linkToken/types/index.ts @@ -0,0 +1 @@ +export * from "./EndUserDetailsRequestLanguage"; diff --git a/src/serialization/resources/filestorage/types/AccountDetails.ts b/src/serialization/resources/filestorage/types/AccountDetails.ts index 99ff51a98..3a8f45c5b 100644 --- a/src/serialization/resources/filestorage/types/AccountDetails.ts +++ b/src/serialization/resources/filestorage/types/AccountDetails.ts @@ -3,7 +3,7 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; -import { CategoryEnum } from "./CategoryEnum"; +import { AccountDetailsCategory } from "./AccountDetailsCategory"; export const AccountDetails: core.serialization.ObjectSchema< serializers.filestorage.AccountDetails.Raw, @@ -12,7 +12,7 @@ export const AccountDetails: core.serialization.ObjectSchema< id: core.serialization.string().optional(), integration: core.serialization.string().optional(), integrationSlug: core.serialization.property("integration_slug", core.serialization.string().optional()), - category: CategoryEnum.optional(), + category: AccountDetailsCategory.optional(), endUserOriginId: core.serialization.property("end_user_origin_id", core.serialization.string().optional()), endUserOrganizationName: core.serialization.property( "end_user_organization_name", @@ -31,7 +31,7 @@ export declare namespace AccountDetails { id?: string | null; integration?: string | null; integration_slug?: string | null; - category?: CategoryEnum.Raw | null; + category?: AccountDetailsCategory.Raw | null; end_user_origin_id?: string | null; end_user_organization_name?: string | null; end_user_email_address?: string | null; diff --git a/src/serialization/resources/filestorage/types/AccountDetailsAndActions.ts b/src/serialization/resources/filestorage/types/AccountDetailsAndActions.ts index fab1ff310..6917e164b 100644 --- a/src/serialization/resources/filestorage/types/AccountDetailsAndActions.ts +++ b/src/serialization/resources/filestorage/types/AccountDetailsAndActions.ts @@ -3,17 +3,17 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; +import { AccountDetailsAndActionsCategory } from "./AccountDetailsAndActionsCategory"; import { AccountDetailsAndActionsIntegration } from "./AccountDetailsAndActionsIntegration"; -import { AccountDetailsAndActionsStatusEnum } from "./AccountDetailsAndActionsStatusEnum"; -import { CategoryEnum } from "./CategoryEnum"; +import { AccountDetailsAndActionsStatus } from "./AccountDetailsAndActionsStatus"; export const AccountDetailsAndActions: core.serialization.ObjectSchema< serializers.filestorage.AccountDetailsAndActions.Raw, Merge.filestorage.AccountDetailsAndActions > = core.serialization.object({ id: core.serialization.string(), - category: CategoryEnum.optional(), - status: AccountDetailsAndActionsStatusEnum, + category: AccountDetailsAndActionsCategory.optional(), + status: AccountDetailsAndActionsStatus, statusDetail: core.serialization.property("status_detail", core.serialization.string().optional()), endUserOriginId: core.serialization.property("end_user_origin_id", core.serialization.string().optional()), endUserOrganizationName: core.serialization.property("end_user_organization_name", core.serialization.string()), @@ -33,8 +33,8 @@ export const AccountDetailsAndActions: core.serialization.ObjectSchema< export declare namespace AccountDetailsAndActions { export interface Raw { id: string; - category?: CategoryEnum.Raw | null; - status: AccountDetailsAndActionsStatusEnum.Raw; + category?: AccountDetailsAndActionsCategory.Raw | null; + status: AccountDetailsAndActionsStatus.Raw; status_detail?: string | null; end_user_origin_id?: string | null; end_user_organization_name: string; diff --git a/src/serialization/resources/filestorage/types/AccountDetailsAndActionsCategory.ts b/src/serialization/resources/filestorage/types/AccountDetailsAndActionsCategory.ts new file mode 100644 index 000000000..651f3f6a2 --- /dev/null +++ b/src/serialization/resources/filestorage/types/AccountDetailsAndActionsCategory.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { CategoryEnum } from "./CategoryEnum"; + +export const AccountDetailsAndActionsCategory: core.serialization.Schema< + serializers.filestorage.AccountDetailsAndActionsCategory.Raw, + Merge.filestorage.AccountDetailsAndActionsCategory +> = core.serialization.undiscriminatedUnion([CategoryEnum, core.serialization.string()]); + +export declare namespace AccountDetailsAndActionsCategory { + export type Raw = CategoryEnum.Raw | string; +} diff --git a/src/serialization/resources/filestorage/types/AccountDetailsAndActionsStatus.ts b/src/serialization/resources/filestorage/types/AccountDetailsAndActionsStatus.ts new file mode 100644 index 000000000..1c8f8f315 --- /dev/null +++ b/src/serialization/resources/filestorage/types/AccountDetailsAndActionsStatus.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { AccountDetailsAndActionsStatusEnum } from "./AccountDetailsAndActionsStatusEnum"; + +export const AccountDetailsAndActionsStatus: core.serialization.Schema< + serializers.filestorage.AccountDetailsAndActionsStatus.Raw, + Merge.filestorage.AccountDetailsAndActionsStatus +> = core.serialization.undiscriminatedUnion([AccountDetailsAndActionsStatusEnum, core.serialization.string()]); + +export declare namespace AccountDetailsAndActionsStatus { + export type Raw = AccountDetailsAndActionsStatusEnum.Raw | string; +} diff --git a/src/serialization/resources/filestorage/types/AccountDetailsCategory.ts b/src/serialization/resources/filestorage/types/AccountDetailsCategory.ts new file mode 100644 index 000000000..8b0a0f5e4 --- /dev/null +++ b/src/serialization/resources/filestorage/types/AccountDetailsCategory.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { CategoryEnum } from "./CategoryEnum"; + +export const AccountDetailsCategory: core.serialization.Schema< + serializers.filestorage.AccountDetailsCategory.Raw, + Merge.filestorage.AccountDetailsCategory +> = core.serialization.undiscriminatedUnion([CategoryEnum, core.serialization.string()]); + +export declare namespace AccountDetailsCategory { + export type Raw = CategoryEnum.Raw | string; +} diff --git a/src/serialization/resources/filestorage/types/FieldMappingApiInstance.ts b/src/serialization/resources/filestorage/types/FieldMappingApiInstance.ts index 700f3d928..2a4df155a 100644 --- a/src/serialization/resources/filestorage/types/FieldMappingApiInstance.ts +++ b/src/serialization/resources/filestorage/types/FieldMappingApiInstance.ts @@ -14,6 +14,7 @@ export const FieldMappingApiInstance: core.serialization.ObjectSchema< isIntegrationWide: core.serialization.property("is_integration_wide", core.serialization.boolean().optional()), targetField: core.serialization.property("target_field", FieldMappingApiInstanceTargetField.optional()), remoteField: core.serialization.property("remote_field", FieldMappingApiInstanceRemoteField.optional()), + jmesPath: core.serialization.property("jmes_path", core.serialization.string().optional()), }); export declare namespace FieldMappingApiInstance { @@ -22,5 +23,6 @@ export declare namespace FieldMappingApiInstance { is_integration_wide?: boolean | null; target_field?: FieldMappingApiInstanceTargetField.Raw | null; remote_field?: FieldMappingApiInstanceRemoteField.Raw | null; + jmes_path?: string | null; } } diff --git a/src/serialization/resources/filestorage/types/Permission.ts b/src/serialization/resources/filestorage/types/Permission.ts index 0e7b14aec..f7626a6d9 100644 --- a/src/serialization/resources/filestorage/types/Permission.ts +++ b/src/serialization/resources/filestorage/types/Permission.ts @@ -20,6 +20,11 @@ export const Permission: core.serialization.ObjectSchema< group: PermissionGroup.optional(), type: PermissionType.optional(), roles: core.serialization.list(PermissionRolesItem.optional()).optional(), + remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), + fieldMappings: core.serialization.property( + "field_mappings", + core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), + ), }); export declare namespace Permission { @@ -32,5 +37,7 @@ export declare namespace Permission { group?: PermissionGroup.Raw | null; type?: PermissionType.Raw | null; roles?: (PermissionRolesItem.Raw | null | undefined)[] | null; + remote_was_deleted?: boolean | null; + field_mappings?: Record | null; } } diff --git a/src/serialization/resources/filestorage/types/RegenerateAccountToken.ts b/src/serialization/resources/filestorage/types/RegenerateAccountToken.ts new file mode 100644 index 000000000..150db6fd6 --- /dev/null +++ b/src/serialization/resources/filestorage/types/RegenerateAccountToken.ts @@ -0,0 +1,20 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; + +export const RegenerateAccountToken: core.serialization.ObjectSchema< + serializers.filestorage.RegenerateAccountToken.Raw, + Merge.filestorage.RegenerateAccountToken +> = core.serialization.object({ + linkedAccountId: core.serialization.property("linked_account_id", core.serialization.string()), + accountToken: core.serialization.property("account_token", core.serialization.string()), +}); + +export declare namespace RegenerateAccountToken { + export interface Raw { + linked_account_id: string; + account_token: string; + } +} diff --git a/src/serialization/resources/filestorage/types/RemoteResponse.ts b/src/serialization/resources/filestorage/types/RemoteResponse.ts index af7d959a6..151b9cb48 100644 --- a/src/serialization/resources/filestorage/types/RemoteResponse.ts +++ b/src/serialization/resources/filestorage/types/RemoteResponse.ts @@ -3,7 +3,7 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; -import { ResponseTypeEnum } from "./ResponseTypeEnum"; +import { RemoteResponseResponseType } from "./RemoteResponseResponseType"; export const RemoteResponse: core.serialization.ObjectSchema< serializers.filestorage.RemoteResponse.Raw, @@ -17,7 +17,7 @@ export const RemoteResponse: core.serialization.ObjectSchema< "response_headers", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), ), - responseType: core.serialization.property("response_type", ResponseTypeEnum.optional()), + responseType: core.serialization.property("response_type", RemoteResponseResponseType.optional()), headers: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), }); @@ -28,7 +28,7 @@ export declare namespace RemoteResponse { status: number; response?: unknown; response_headers?: Record | null; - response_type?: ResponseTypeEnum.Raw | null; + response_type?: RemoteResponseResponseType.Raw | null; headers?: Record | null; } } diff --git a/src/serialization/resources/filestorage/types/RemoteResponseResponseType.ts b/src/serialization/resources/filestorage/types/RemoteResponseResponseType.ts new file mode 100644 index 000000000..d48fdc953 --- /dev/null +++ b/src/serialization/resources/filestorage/types/RemoteResponseResponseType.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { ResponseTypeEnum } from "./ResponseTypeEnum"; + +export const RemoteResponseResponseType: core.serialization.Schema< + serializers.filestorage.RemoteResponseResponseType.Raw, + Merge.filestorage.RemoteResponseResponseType +> = core.serialization.undiscriminatedUnion([ResponseTypeEnum, core.serialization.string()]); + +export declare namespace RemoteResponseResponseType { + export type Raw = ResponseTypeEnum.Raw | string; +} diff --git a/src/serialization/resources/filestorage/types/RoleEnum.ts b/src/serialization/resources/filestorage/types/RoleEnum.ts index ec40585dc..f8a9cbd75 100644 --- a/src/serialization/resources/filestorage/types/RoleEnum.ts +++ b/src/serialization/resources/filestorage/types/RoleEnum.ts @@ -5,8 +5,8 @@ import * as core from "../../../../core"; import type * as serializers from "../../../index"; export const RoleEnum: core.serialization.Schema = - core.serialization.enum_(["ADMIN", "DEVELOPER", "MEMBER", "API", "SYSTEM", "MERGE_TEAM"]); + core.serialization.enum_(["ADMIN", "DEVELOPER", "MEMBER", "API", "SYSTEM", "MERGE_TEAM", "SUPPORT"]); export declare namespace RoleEnum { - export type Raw = "ADMIN" | "DEVELOPER" | "MEMBER" | "API" | "SYSTEM" | "MERGE_TEAM"; + export type Raw = "ADMIN" | "DEVELOPER" | "MEMBER" | "API" | "SYSTEM" | "MERGE_TEAM" | "SUPPORT"; } diff --git a/src/serialization/resources/filestorage/types/SyncStatus.ts b/src/serialization/resources/filestorage/types/SyncStatus.ts index 58bb814ae..a61df518e 100644 --- a/src/serialization/resources/filestorage/types/SyncStatus.ts +++ b/src/serialization/resources/filestorage/types/SyncStatus.ts @@ -4,8 +4,8 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; import { SelectiveSyncConfigurationsUsageEnum } from "./SelectiveSyncConfigurationsUsageEnum"; -import { StatusFd5Enum } from "./StatusFd5Enum"; import { SyncStatusLastSyncResult } from "./SyncStatusLastSyncResult"; +import { SyncStatusStatus } from "./SyncStatusStatus"; export const SyncStatus: core.serialization.ObjectSchema< serializers.filestorage.SyncStatus.Raw, @@ -17,7 +17,7 @@ export const SyncStatus: core.serialization.ObjectSchema< nextSyncStart: core.serialization.property("next_sync_start", core.serialization.date().optional()), lastSyncResult: core.serialization.property("last_sync_result", SyncStatusLastSyncResult.optional()), lastSyncFinished: core.serialization.property("last_sync_finished", core.serialization.date().optional()), - status: StatusFd5Enum, + status: SyncStatusStatus, isInitialSync: core.serialization.property("is_initial_sync", core.serialization.boolean()), selectiveSyncConfigurationsUsage: core.serialization.property( "selective_sync_configurations_usage", @@ -33,7 +33,7 @@ export declare namespace SyncStatus { next_sync_start?: string | null; last_sync_result?: SyncStatusLastSyncResult.Raw | null; last_sync_finished?: string | null; - status: StatusFd5Enum.Raw; + status: SyncStatusStatus.Raw; is_initial_sync: boolean; selective_sync_configurations_usage?: SelectiveSyncConfigurationsUsageEnum.Raw | null; } diff --git a/src/serialization/resources/filestorage/types/SyncStatusStatus.ts b/src/serialization/resources/filestorage/types/SyncStatusStatus.ts new file mode 100644 index 000000000..32fba8d83 --- /dev/null +++ b/src/serialization/resources/filestorage/types/SyncStatusStatus.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { StatusFd5Enum } from "./StatusFd5Enum"; + +export const SyncStatusStatus: core.serialization.Schema< + serializers.filestorage.SyncStatusStatus.Raw, + Merge.filestorage.SyncStatusStatus +> = core.serialization.undiscriminatedUnion([StatusFd5Enum, core.serialization.string()]); + +export declare namespace SyncStatusStatus { + export type Raw = StatusFd5Enum.Raw | string; +} diff --git a/src/serialization/resources/filestorage/types/index.ts b/src/serialization/resources/filestorage/types/index.ts index 80763bb71..ae8cbf90e 100644 --- a/src/serialization/resources/filestorage/types/index.ts +++ b/src/serialization/resources/filestorage/types/index.ts @@ -1,7 +1,10 @@ export * from "./AccountDetails"; export * from "./AccountDetailsAndActions"; +export * from "./AccountDetailsAndActionsCategory"; export * from "./AccountDetailsAndActionsIntegration"; +export * from "./AccountDetailsAndActionsStatus"; export * from "./AccountDetailsAndActionsStatusEnum"; +export * from "./AccountDetailsCategory"; export * from "./AccountIntegration"; export * from "./AccountToken"; export * from "./AdvancedMetadata"; @@ -93,6 +96,7 @@ export * from "./PermissionRequestUser"; export * from "./PermissionRolesItem"; export * from "./PermissionType"; export * from "./PermissionUser"; +export * from "./RegenerateAccountToken"; export * from "./RemoteData"; export * from "./RemoteEndpointInfo"; export * from "./RemoteFieldApi"; @@ -100,6 +104,7 @@ export * from "./RemoteFieldApiCoverage"; export * from "./RemoteFieldApiResponse"; export * from "./RemoteKey"; export * from "./RemoteResponse"; +export * from "./RemoteResponseResponseType"; export * from "./RequestFormatEnum"; export * from "./ResponseTypeEnum"; export * from "./RoleEnum"; @@ -108,6 +113,7 @@ export * from "./SelectiveSyncConfigurationsUsageEnum"; export * from "./StatusFd5Enum"; export * from "./SyncStatus"; export * from "./SyncStatusLastSyncResult"; +export * from "./SyncStatusStatus"; export * from "./TypeEnum"; export * from "./User"; export * from "./ValidationProblemSource"; diff --git a/src/serialization/resources/hris/resources/employeePayrollRuns/types/EmployeePayrollRunsListRequestExpand.ts b/src/serialization/resources/hris/resources/employeePayrollRuns/types/EmployeePayrollRunsListRequestExpand.ts deleted file mode 100644 index 3097fcfa3..000000000 --- a/src/serialization/resources/hris/resources/employeePayrollRuns/types/EmployeePayrollRunsListRequestExpand.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const EmployeePayrollRunsListRequestExpand: core.serialization.Schema< - serializers.hris.EmployeePayrollRunsListRequestExpand.Raw, - Merge.hris.EmployeePayrollRunsListRequestExpand -> = core.serialization.enum_(["employee", "employee,payroll_run", "payroll_run"]); - -export declare namespace EmployeePayrollRunsListRequestExpand { - export type Raw = "employee" | "employee,payroll_run" | "payroll_run"; -} diff --git a/src/serialization/resources/hris/resources/employeePayrollRuns/types/EmployeePayrollRunsListRequestExpandItem.ts b/src/serialization/resources/hris/resources/employeePayrollRuns/types/EmployeePayrollRunsListRequestExpandItem.ts new file mode 100644 index 000000000..d8504229c --- /dev/null +++ b/src/serialization/resources/hris/resources/employeePayrollRuns/types/EmployeePayrollRunsListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const EmployeePayrollRunsListRequestExpandItem: core.serialization.Schema< + serializers.hris.EmployeePayrollRunsListRequestExpandItem.Raw, + Merge.hris.EmployeePayrollRunsListRequestExpandItem +> = core.serialization.enum_(["employee", "payroll_run"]); + +export declare namespace EmployeePayrollRunsListRequestExpandItem { + export type Raw = "employee" | "payroll_run"; +} diff --git a/src/serialization/resources/hris/resources/employeePayrollRuns/types/EmployeePayrollRunsRetrieveRequestExpand.ts b/src/serialization/resources/hris/resources/employeePayrollRuns/types/EmployeePayrollRunsRetrieveRequestExpand.ts deleted file mode 100644 index e25f11673..000000000 --- a/src/serialization/resources/hris/resources/employeePayrollRuns/types/EmployeePayrollRunsRetrieveRequestExpand.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const EmployeePayrollRunsRetrieveRequestExpand: core.serialization.Schema< - serializers.hris.EmployeePayrollRunsRetrieveRequestExpand.Raw, - Merge.hris.EmployeePayrollRunsRetrieveRequestExpand -> = core.serialization.enum_(["employee", "employee,payroll_run", "payroll_run"]); - -export declare namespace EmployeePayrollRunsRetrieveRequestExpand { - export type Raw = "employee" | "employee,payroll_run" | "payroll_run"; -} diff --git a/src/serialization/resources/hris/resources/employeePayrollRuns/types/EmployeePayrollRunsRetrieveRequestExpandItem.ts b/src/serialization/resources/hris/resources/employeePayrollRuns/types/EmployeePayrollRunsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..002689b57 --- /dev/null +++ b/src/serialization/resources/hris/resources/employeePayrollRuns/types/EmployeePayrollRunsRetrieveRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const EmployeePayrollRunsRetrieveRequestExpandItem: core.serialization.Schema< + serializers.hris.EmployeePayrollRunsRetrieveRequestExpandItem.Raw, + Merge.hris.EmployeePayrollRunsRetrieveRequestExpandItem +> = core.serialization.enum_(["employee", "payroll_run"]); + +export declare namespace EmployeePayrollRunsRetrieveRequestExpandItem { + export type Raw = "employee" | "payroll_run"; +} diff --git a/src/serialization/resources/hris/resources/employeePayrollRuns/types/index.ts b/src/serialization/resources/hris/resources/employeePayrollRuns/types/index.ts index 7adf16728..adee6252a 100644 --- a/src/serialization/resources/hris/resources/employeePayrollRuns/types/index.ts +++ b/src/serialization/resources/hris/resources/employeePayrollRuns/types/index.ts @@ -1,2 +1,2 @@ -export * from "./EmployeePayrollRunsListRequestExpand"; -export * from "./EmployeePayrollRunsRetrieveRequestExpand"; +export * from "./EmployeePayrollRunsListRequestExpandItem"; +export * from "./EmployeePayrollRunsRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/hris/resources/employees/client/requests/IgnoreCommonModelRequest.ts b/src/serialization/resources/hris/resources/employees/client/requests/IgnoreCommonModelRequest.ts deleted file mode 100644 index dc99f68b3..000000000 --- a/src/serialization/resources/hris/resources/employees/client/requests/IgnoreCommonModelRequest.ts +++ /dev/null @@ -1,21 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../../api/index"; -import * as core from "../../../../../../../core"; -import type * as serializers from "../../../../../../index"; -import { IgnoreCommonModelRequestReason } from "../../types/IgnoreCommonModelRequestReason"; - -export const IgnoreCommonModelRequest: core.serialization.Schema< - serializers.hris.IgnoreCommonModelRequest.Raw, - Merge.hris.IgnoreCommonModelRequest -> = core.serialization.object({ - reason: IgnoreCommonModelRequestReason, - message: core.serialization.string().optional(), -}); - -export declare namespace IgnoreCommonModelRequest { - export interface Raw { - reason: IgnoreCommonModelRequestReason.Raw; - message?: string | null; - } -} diff --git a/src/serialization/resources/hris/resources/employees/client/requests/index.ts b/src/serialization/resources/hris/resources/employees/client/requests/index.ts index 276232eee..aff660065 100644 --- a/src/serialization/resources/hris/resources/employees/client/requests/index.ts +++ b/src/serialization/resources/hris/resources/employees/client/requests/index.ts @@ -1,2 +1 @@ export { EmployeeEndpointRequest } from "./EmployeeEndpointRequest"; -export { IgnoreCommonModelRequest } from "./IgnoreCommonModelRequest"; diff --git a/src/serialization/resources/hris/resources/employees/types/EmployeesListRequestExpand.ts b/src/serialization/resources/hris/resources/employees/types/EmployeesListRequestExpand.ts deleted file mode 100644 index d8878e85f..000000000 --- a/src/serialization/resources/hris/resources/employees/types/EmployeesListRequestExpand.ts +++ /dev/null @@ -1,525 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const EmployeesListRequestExpand: core.serialization.Schema< - serializers.hris.EmployeesListRequestExpand.Raw, - Merge.hris.EmployeesListRequestExpand -> = core.serialization.enum_([ - "company", - "company,pay_group", - "employments", - "employments,company", - "employments,company,pay_group", - "employments,groups", - "employments,groups,company", - "employments,groups,company,pay_group", - "employments,groups,home_location", - "employments,groups,home_location,company", - "employments,groups,home_location,company,pay_group", - "employments,groups,home_location,manager", - "employments,groups,home_location,manager,company", - "employments,groups,home_location,manager,company,pay_group", - "employments,groups,home_location,manager,pay_group", - "employments,groups,home_location,manager,team", - "employments,groups,home_location,manager,team,company", - "employments,groups,home_location,manager,team,company,pay_group", - "employments,groups,home_location,manager,team,pay_group", - "employments,groups,home_location,pay_group", - "employments,groups,home_location,team", - "employments,groups,home_location,team,company", - "employments,groups,home_location,team,company,pay_group", - "employments,groups,home_location,team,pay_group", - "employments,groups,home_location,work_location", - "employments,groups,home_location,work_location,company", - "employments,groups,home_location,work_location,company,pay_group", - "employments,groups,home_location,work_location,manager", - "employments,groups,home_location,work_location,manager,company", - "employments,groups,home_location,work_location,manager,company,pay_group", - "employments,groups,home_location,work_location,manager,pay_group", - "employments,groups,home_location,work_location,manager,team", - "employments,groups,home_location,work_location,manager,team,company", - "employments,groups,home_location,work_location,manager,team,company,pay_group", - "employments,groups,home_location,work_location,manager,team,pay_group", - "employments,groups,home_location,work_location,pay_group", - "employments,groups,home_location,work_location,team", - "employments,groups,home_location,work_location,team,company", - "employments,groups,home_location,work_location,team,company,pay_group", - "employments,groups,home_location,work_location,team,pay_group", - "employments,groups,manager", - "employments,groups,manager,company", - "employments,groups,manager,company,pay_group", - "employments,groups,manager,pay_group", - "employments,groups,manager,team", - "employments,groups,manager,team,company", - "employments,groups,manager,team,company,pay_group", - "employments,groups,manager,team,pay_group", - "employments,groups,pay_group", - "employments,groups,team", - "employments,groups,team,company", - "employments,groups,team,company,pay_group", - "employments,groups,team,pay_group", - "employments,groups,work_location", - "employments,groups,work_location,company", - "employments,groups,work_location,company,pay_group", - "employments,groups,work_location,manager", - "employments,groups,work_location,manager,company", - "employments,groups,work_location,manager,company,pay_group", - "employments,groups,work_location,manager,pay_group", - "employments,groups,work_location,manager,team", - "employments,groups,work_location,manager,team,company", - "employments,groups,work_location,manager,team,company,pay_group", - "employments,groups,work_location,manager,team,pay_group", - "employments,groups,work_location,pay_group", - "employments,groups,work_location,team", - "employments,groups,work_location,team,company", - "employments,groups,work_location,team,company,pay_group", - "employments,groups,work_location,team,pay_group", - "employments,home_location", - "employments,home_location,company", - "employments,home_location,company,pay_group", - "employments,home_location,manager", - "employments,home_location,manager,company", - "employments,home_location,manager,company,pay_group", - "employments,home_location,manager,pay_group", - "employments,home_location,manager,team", - "employments,home_location,manager,team,company", - "employments,home_location,manager,team,company,pay_group", - "employments,home_location,manager,team,pay_group", - "employments,home_location,pay_group", - "employments,home_location,team", - "employments,home_location,team,company", - "employments,home_location,team,company,pay_group", - "employments,home_location,team,pay_group", - "employments,home_location,work_location", - "employments,home_location,work_location,company", - "employments,home_location,work_location,company,pay_group", - "employments,home_location,work_location,manager", - "employments,home_location,work_location,manager,company", - "employments,home_location,work_location,manager,company,pay_group", - "employments,home_location,work_location,manager,pay_group", - "employments,home_location,work_location,manager,team", - "employments,home_location,work_location,manager,team,company", - "employments,home_location,work_location,manager,team,company,pay_group", - "employments,home_location,work_location,manager,team,pay_group", - "employments,home_location,work_location,pay_group", - "employments,home_location,work_location,team", - "employments,home_location,work_location,team,company", - "employments,home_location,work_location,team,company,pay_group", - "employments,home_location,work_location,team,pay_group", - "employments,manager", - "employments,manager,company", - "employments,manager,company,pay_group", - "employments,manager,pay_group", - "employments,manager,team", - "employments,manager,team,company", - "employments,manager,team,company,pay_group", - "employments,manager,team,pay_group", - "employments,pay_group", - "employments,team", - "employments,team,company", - "employments,team,company,pay_group", - "employments,team,pay_group", - "employments,work_location", - "employments,work_location,company", - "employments,work_location,company,pay_group", - "employments,work_location,manager", - "employments,work_location,manager,company", - "employments,work_location,manager,company,pay_group", - "employments,work_location,manager,pay_group", - "employments,work_location,manager,team", - "employments,work_location,manager,team,company", - "employments,work_location,manager,team,company,pay_group", - "employments,work_location,manager,team,pay_group", - "employments,work_location,pay_group", - "employments,work_location,team", - "employments,work_location,team,company", - "employments,work_location,team,company,pay_group", - "employments,work_location,team,pay_group", - "groups", - "groups,company", - "groups,company,pay_group", - "groups,home_location", - "groups,home_location,company", - "groups,home_location,company,pay_group", - "groups,home_location,manager", - "groups,home_location,manager,company", - "groups,home_location,manager,company,pay_group", - "groups,home_location,manager,pay_group", - "groups,home_location,manager,team", - "groups,home_location,manager,team,company", - "groups,home_location,manager,team,company,pay_group", - "groups,home_location,manager,team,pay_group", - "groups,home_location,pay_group", - "groups,home_location,team", - "groups,home_location,team,company", - "groups,home_location,team,company,pay_group", - "groups,home_location,team,pay_group", - "groups,home_location,work_location", - "groups,home_location,work_location,company", - "groups,home_location,work_location,company,pay_group", - "groups,home_location,work_location,manager", - "groups,home_location,work_location,manager,company", - "groups,home_location,work_location,manager,company,pay_group", - "groups,home_location,work_location,manager,pay_group", - "groups,home_location,work_location,manager,team", - "groups,home_location,work_location,manager,team,company", - "groups,home_location,work_location,manager,team,company,pay_group", - "groups,home_location,work_location,manager,team,pay_group", - "groups,home_location,work_location,pay_group", - "groups,home_location,work_location,team", - "groups,home_location,work_location,team,company", - "groups,home_location,work_location,team,company,pay_group", - "groups,home_location,work_location,team,pay_group", - "groups,manager", - "groups,manager,company", - "groups,manager,company,pay_group", - "groups,manager,pay_group", - "groups,manager,team", - "groups,manager,team,company", - "groups,manager,team,company,pay_group", - "groups,manager,team,pay_group", - "groups,pay_group", - "groups,team", - "groups,team,company", - "groups,team,company,pay_group", - "groups,team,pay_group", - "groups,work_location", - "groups,work_location,company", - "groups,work_location,company,pay_group", - "groups,work_location,manager", - "groups,work_location,manager,company", - "groups,work_location,manager,company,pay_group", - "groups,work_location,manager,pay_group", - "groups,work_location,manager,team", - "groups,work_location,manager,team,company", - "groups,work_location,manager,team,company,pay_group", - "groups,work_location,manager,team,pay_group", - "groups,work_location,pay_group", - "groups,work_location,team", - "groups,work_location,team,company", - "groups,work_location,team,company,pay_group", - "groups,work_location,team,pay_group", - "home_location", - "home_location,company", - "home_location,company,pay_group", - "home_location,manager", - "home_location,manager,company", - "home_location,manager,company,pay_group", - "home_location,manager,pay_group", - "home_location,manager,team", - "home_location,manager,team,company", - "home_location,manager,team,company,pay_group", - "home_location,manager,team,pay_group", - "home_location,pay_group", - "home_location,team", - "home_location,team,company", - "home_location,team,company,pay_group", - "home_location,team,pay_group", - "home_location,work_location", - "home_location,work_location,company", - "home_location,work_location,company,pay_group", - "home_location,work_location,manager", - "home_location,work_location,manager,company", - "home_location,work_location,manager,company,pay_group", - "home_location,work_location,manager,pay_group", - "home_location,work_location,manager,team", - "home_location,work_location,manager,team,company", - "home_location,work_location,manager,team,company,pay_group", - "home_location,work_location,manager,team,pay_group", - "home_location,work_location,pay_group", - "home_location,work_location,team", - "home_location,work_location,team,company", - "home_location,work_location,team,company,pay_group", - "home_location,work_location,team,pay_group", - "manager", - "manager,company", - "manager,company,pay_group", - "manager,pay_group", - "manager,team", - "manager,team,company", - "manager,team,company,pay_group", - "manager,team,pay_group", - "pay_group", - "team", - "team,company", - "team,company,pay_group", - "team,pay_group", - "work_location", - "work_location,company", - "work_location,company,pay_group", - "work_location,manager", - "work_location,manager,company", - "work_location,manager,company,pay_group", - "work_location,manager,pay_group", - "work_location,manager,team", - "work_location,manager,team,company", - "work_location,manager,team,company,pay_group", - "work_location,manager,team,pay_group", - "work_location,pay_group", - "work_location,team", - "work_location,team,company", - "work_location,team,company,pay_group", - "work_location,team,pay_group", -]); - -export declare namespace EmployeesListRequestExpand { - export type Raw = - | "company" - | "company,pay_group" - | "employments" - | "employments,company" - | "employments,company,pay_group" - | "employments,groups" - | "employments,groups,company" - | "employments,groups,company,pay_group" - | "employments,groups,home_location" - | "employments,groups,home_location,company" - | "employments,groups,home_location,company,pay_group" - | "employments,groups,home_location,manager" - | "employments,groups,home_location,manager,company" - | "employments,groups,home_location,manager,company,pay_group" - | "employments,groups,home_location,manager,pay_group" - | "employments,groups,home_location,manager,team" - | "employments,groups,home_location,manager,team,company" - | "employments,groups,home_location,manager,team,company,pay_group" - | "employments,groups,home_location,manager,team,pay_group" - | "employments,groups,home_location,pay_group" - | "employments,groups,home_location,team" - | "employments,groups,home_location,team,company" - | "employments,groups,home_location,team,company,pay_group" - | "employments,groups,home_location,team,pay_group" - | "employments,groups,home_location,work_location" - | "employments,groups,home_location,work_location,company" - | "employments,groups,home_location,work_location,company,pay_group" - | "employments,groups,home_location,work_location,manager" - | "employments,groups,home_location,work_location,manager,company" - | "employments,groups,home_location,work_location,manager,company,pay_group" - | "employments,groups,home_location,work_location,manager,pay_group" - | "employments,groups,home_location,work_location,manager,team" - | "employments,groups,home_location,work_location,manager,team,company" - | "employments,groups,home_location,work_location,manager,team,company,pay_group" - | "employments,groups,home_location,work_location,manager,team,pay_group" - | "employments,groups,home_location,work_location,pay_group" - | "employments,groups,home_location,work_location,team" - | "employments,groups,home_location,work_location,team,company" - | "employments,groups,home_location,work_location,team,company,pay_group" - | "employments,groups,home_location,work_location,team,pay_group" - | "employments,groups,manager" - | "employments,groups,manager,company" - | "employments,groups,manager,company,pay_group" - | "employments,groups,manager,pay_group" - | "employments,groups,manager,team" - | "employments,groups,manager,team,company" - | "employments,groups,manager,team,company,pay_group" - | "employments,groups,manager,team,pay_group" - | "employments,groups,pay_group" - | "employments,groups,team" - | "employments,groups,team,company" - | "employments,groups,team,company,pay_group" - | "employments,groups,team,pay_group" - | "employments,groups,work_location" - | "employments,groups,work_location,company" - | "employments,groups,work_location,company,pay_group" - | "employments,groups,work_location,manager" - | "employments,groups,work_location,manager,company" - | "employments,groups,work_location,manager,company,pay_group" - | "employments,groups,work_location,manager,pay_group" - | "employments,groups,work_location,manager,team" - | "employments,groups,work_location,manager,team,company" - | "employments,groups,work_location,manager,team,company,pay_group" - | "employments,groups,work_location,manager,team,pay_group" - | "employments,groups,work_location,pay_group" - | "employments,groups,work_location,team" - | "employments,groups,work_location,team,company" - | "employments,groups,work_location,team,company,pay_group" - | "employments,groups,work_location,team,pay_group" - | "employments,home_location" - | "employments,home_location,company" - | "employments,home_location,company,pay_group" - | "employments,home_location,manager" - | "employments,home_location,manager,company" - | "employments,home_location,manager,company,pay_group" - | "employments,home_location,manager,pay_group" - | "employments,home_location,manager,team" - | "employments,home_location,manager,team,company" - | "employments,home_location,manager,team,company,pay_group" - | "employments,home_location,manager,team,pay_group" - | "employments,home_location,pay_group" - | "employments,home_location,team" - | "employments,home_location,team,company" - | "employments,home_location,team,company,pay_group" - | "employments,home_location,team,pay_group" - | "employments,home_location,work_location" - | "employments,home_location,work_location,company" - | "employments,home_location,work_location,company,pay_group" - | "employments,home_location,work_location,manager" - | "employments,home_location,work_location,manager,company" - | "employments,home_location,work_location,manager,company,pay_group" - | "employments,home_location,work_location,manager,pay_group" - | "employments,home_location,work_location,manager,team" - | "employments,home_location,work_location,manager,team,company" - | "employments,home_location,work_location,manager,team,company,pay_group" - | "employments,home_location,work_location,manager,team,pay_group" - | "employments,home_location,work_location,pay_group" - | "employments,home_location,work_location,team" - | "employments,home_location,work_location,team,company" - | "employments,home_location,work_location,team,company,pay_group" - | "employments,home_location,work_location,team,pay_group" - | "employments,manager" - | "employments,manager,company" - | "employments,manager,company,pay_group" - | "employments,manager,pay_group" - | "employments,manager,team" - | "employments,manager,team,company" - | "employments,manager,team,company,pay_group" - | "employments,manager,team,pay_group" - | "employments,pay_group" - | "employments,team" - | "employments,team,company" - | "employments,team,company,pay_group" - | "employments,team,pay_group" - | "employments,work_location" - | "employments,work_location,company" - | "employments,work_location,company,pay_group" - | "employments,work_location,manager" - | "employments,work_location,manager,company" - | "employments,work_location,manager,company,pay_group" - | "employments,work_location,manager,pay_group" - | "employments,work_location,manager,team" - | "employments,work_location,manager,team,company" - | "employments,work_location,manager,team,company,pay_group" - | "employments,work_location,manager,team,pay_group" - | "employments,work_location,pay_group" - | "employments,work_location,team" - | "employments,work_location,team,company" - | "employments,work_location,team,company,pay_group" - | "employments,work_location,team,pay_group" - | "groups" - | "groups,company" - | "groups,company,pay_group" - | "groups,home_location" - | "groups,home_location,company" - | "groups,home_location,company,pay_group" - | "groups,home_location,manager" - | "groups,home_location,manager,company" - | "groups,home_location,manager,company,pay_group" - | "groups,home_location,manager,pay_group" - | "groups,home_location,manager,team" - | "groups,home_location,manager,team,company" - | "groups,home_location,manager,team,company,pay_group" - | "groups,home_location,manager,team,pay_group" - | "groups,home_location,pay_group" - | "groups,home_location,team" - | "groups,home_location,team,company" - | "groups,home_location,team,company,pay_group" - | "groups,home_location,team,pay_group" - | "groups,home_location,work_location" - | "groups,home_location,work_location,company" - | "groups,home_location,work_location,company,pay_group" - | "groups,home_location,work_location,manager" - | "groups,home_location,work_location,manager,company" - | "groups,home_location,work_location,manager,company,pay_group" - | "groups,home_location,work_location,manager,pay_group" - | "groups,home_location,work_location,manager,team" - | "groups,home_location,work_location,manager,team,company" - | "groups,home_location,work_location,manager,team,company,pay_group" - | "groups,home_location,work_location,manager,team,pay_group" - | "groups,home_location,work_location,pay_group" - | "groups,home_location,work_location,team" - | "groups,home_location,work_location,team,company" - | "groups,home_location,work_location,team,company,pay_group" - | "groups,home_location,work_location,team,pay_group" - | "groups,manager" - | "groups,manager,company" - | "groups,manager,company,pay_group" - | "groups,manager,pay_group" - | "groups,manager,team" - | "groups,manager,team,company" - | "groups,manager,team,company,pay_group" - | "groups,manager,team,pay_group" - | "groups,pay_group" - | "groups,team" - | "groups,team,company" - | "groups,team,company,pay_group" - | "groups,team,pay_group" - | "groups,work_location" - | "groups,work_location,company" - | "groups,work_location,company,pay_group" - | "groups,work_location,manager" - | "groups,work_location,manager,company" - | "groups,work_location,manager,company,pay_group" - | "groups,work_location,manager,pay_group" - | "groups,work_location,manager,team" - | "groups,work_location,manager,team,company" - | "groups,work_location,manager,team,company,pay_group" - | "groups,work_location,manager,team,pay_group" - | "groups,work_location,pay_group" - | "groups,work_location,team" - | "groups,work_location,team,company" - | "groups,work_location,team,company,pay_group" - | "groups,work_location,team,pay_group" - | "home_location" - | "home_location,company" - | "home_location,company,pay_group" - | "home_location,manager" - | "home_location,manager,company" - | "home_location,manager,company,pay_group" - | "home_location,manager,pay_group" - | "home_location,manager,team" - | "home_location,manager,team,company" - | "home_location,manager,team,company,pay_group" - | "home_location,manager,team,pay_group" - | "home_location,pay_group" - | "home_location,team" - | "home_location,team,company" - | "home_location,team,company,pay_group" - | "home_location,team,pay_group" - | "home_location,work_location" - | "home_location,work_location,company" - | "home_location,work_location,company,pay_group" - | "home_location,work_location,manager" - | "home_location,work_location,manager,company" - | "home_location,work_location,manager,company,pay_group" - | "home_location,work_location,manager,pay_group" - | "home_location,work_location,manager,team" - | "home_location,work_location,manager,team,company" - | "home_location,work_location,manager,team,company,pay_group" - | "home_location,work_location,manager,team,pay_group" - | "home_location,work_location,pay_group" - | "home_location,work_location,team" - | "home_location,work_location,team,company" - | "home_location,work_location,team,company,pay_group" - | "home_location,work_location,team,pay_group" - | "manager" - | "manager,company" - | "manager,company,pay_group" - | "manager,pay_group" - | "manager,team" - | "manager,team,company" - | "manager,team,company,pay_group" - | "manager,team,pay_group" - | "pay_group" - | "team" - | "team,company" - | "team,company,pay_group" - | "team,pay_group" - | "work_location" - | "work_location,company" - | "work_location,company,pay_group" - | "work_location,manager" - | "work_location,manager,company" - | "work_location,manager,company,pay_group" - | "work_location,manager,pay_group" - | "work_location,manager,team" - | "work_location,manager,team,company" - | "work_location,manager,team,company,pay_group" - | "work_location,manager,team,pay_group" - | "work_location,pay_group" - | "work_location,team" - | "work_location,team,company" - | "work_location,team,company,pay_group" - | "work_location,team,pay_group"; -} diff --git a/src/serialization/resources/hris/resources/employees/types/EmployeesListRequestExpandItem.ts b/src/serialization/resources/hris/resources/employees/types/EmployeesListRequestExpandItem.ts new file mode 100644 index 000000000..9746e7943 --- /dev/null +++ b/src/serialization/resources/hris/resources/employees/types/EmployeesListRequestExpandItem.ts @@ -0,0 +1,31 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const EmployeesListRequestExpandItem: core.serialization.Schema< + serializers.hris.EmployeesListRequestExpandItem.Raw, + Merge.hris.EmployeesListRequestExpandItem +> = core.serialization.enum_([ + "company", + "employments", + "groups", + "home_location", + "manager", + "pay_group", + "team", + "work_location", +]); + +export declare namespace EmployeesListRequestExpandItem { + export type Raw = + | "company" + | "employments" + | "groups" + | "home_location" + | "manager" + | "pay_group" + | "team" + | "work_location"; +} diff --git a/src/serialization/resources/hris/resources/employees/types/EmployeesRetrieveRequestExpand.ts b/src/serialization/resources/hris/resources/employees/types/EmployeesRetrieveRequestExpand.ts deleted file mode 100644 index 5f64251a9..000000000 --- a/src/serialization/resources/hris/resources/employees/types/EmployeesRetrieveRequestExpand.ts +++ /dev/null @@ -1,525 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const EmployeesRetrieveRequestExpand: core.serialization.Schema< - serializers.hris.EmployeesRetrieveRequestExpand.Raw, - Merge.hris.EmployeesRetrieveRequestExpand -> = core.serialization.enum_([ - "company", - "company,pay_group", - "employments", - "employments,company", - "employments,company,pay_group", - "employments,groups", - "employments,groups,company", - "employments,groups,company,pay_group", - "employments,groups,home_location", - "employments,groups,home_location,company", - "employments,groups,home_location,company,pay_group", - "employments,groups,home_location,manager", - "employments,groups,home_location,manager,company", - "employments,groups,home_location,manager,company,pay_group", - "employments,groups,home_location,manager,pay_group", - "employments,groups,home_location,manager,team", - "employments,groups,home_location,manager,team,company", - "employments,groups,home_location,manager,team,company,pay_group", - "employments,groups,home_location,manager,team,pay_group", - "employments,groups,home_location,pay_group", - "employments,groups,home_location,team", - "employments,groups,home_location,team,company", - "employments,groups,home_location,team,company,pay_group", - "employments,groups,home_location,team,pay_group", - "employments,groups,home_location,work_location", - "employments,groups,home_location,work_location,company", - "employments,groups,home_location,work_location,company,pay_group", - "employments,groups,home_location,work_location,manager", - "employments,groups,home_location,work_location,manager,company", - "employments,groups,home_location,work_location,manager,company,pay_group", - "employments,groups,home_location,work_location,manager,pay_group", - "employments,groups,home_location,work_location,manager,team", - "employments,groups,home_location,work_location,manager,team,company", - "employments,groups,home_location,work_location,manager,team,company,pay_group", - "employments,groups,home_location,work_location,manager,team,pay_group", - "employments,groups,home_location,work_location,pay_group", - "employments,groups,home_location,work_location,team", - "employments,groups,home_location,work_location,team,company", - "employments,groups,home_location,work_location,team,company,pay_group", - "employments,groups,home_location,work_location,team,pay_group", - "employments,groups,manager", - "employments,groups,manager,company", - "employments,groups,manager,company,pay_group", - "employments,groups,manager,pay_group", - "employments,groups,manager,team", - "employments,groups,manager,team,company", - "employments,groups,manager,team,company,pay_group", - "employments,groups,manager,team,pay_group", - "employments,groups,pay_group", - "employments,groups,team", - "employments,groups,team,company", - "employments,groups,team,company,pay_group", - "employments,groups,team,pay_group", - "employments,groups,work_location", - "employments,groups,work_location,company", - "employments,groups,work_location,company,pay_group", - "employments,groups,work_location,manager", - "employments,groups,work_location,manager,company", - "employments,groups,work_location,manager,company,pay_group", - "employments,groups,work_location,manager,pay_group", - "employments,groups,work_location,manager,team", - "employments,groups,work_location,manager,team,company", - "employments,groups,work_location,manager,team,company,pay_group", - "employments,groups,work_location,manager,team,pay_group", - "employments,groups,work_location,pay_group", - "employments,groups,work_location,team", - "employments,groups,work_location,team,company", - "employments,groups,work_location,team,company,pay_group", - "employments,groups,work_location,team,pay_group", - "employments,home_location", - "employments,home_location,company", - "employments,home_location,company,pay_group", - "employments,home_location,manager", - "employments,home_location,manager,company", - "employments,home_location,manager,company,pay_group", - "employments,home_location,manager,pay_group", - "employments,home_location,manager,team", - "employments,home_location,manager,team,company", - "employments,home_location,manager,team,company,pay_group", - "employments,home_location,manager,team,pay_group", - "employments,home_location,pay_group", - "employments,home_location,team", - "employments,home_location,team,company", - "employments,home_location,team,company,pay_group", - "employments,home_location,team,pay_group", - "employments,home_location,work_location", - "employments,home_location,work_location,company", - "employments,home_location,work_location,company,pay_group", - "employments,home_location,work_location,manager", - "employments,home_location,work_location,manager,company", - "employments,home_location,work_location,manager,company,pay_group", - "employments,home_location,work_location,manager,pay_group", - "employments,home_location,work_location,manager,team", - "employments,home_location,work_location,manager,team,company", - "employments,home_location,work_location,manager,team,company,pay_group", - "employments,home_location,work_location,manager,team,pay_group", - "employments,home_location,work_location,pay_group", - "employments,home_location,work_location,team", - "employments,home_location,work_location,team,company", - "employments,home_location,work_location,team,company,pay_group", - "employments,home_location,work_location,team,pay_group", - "employments,manager", - "employments,manager,company", - "employments,manager,company,pay_group", - "employments,manager,pay_group", - "employments,manager,team", - "employments,manager,team,company", - "employments,manager,team,company,pay_group", - "employments,manager,team,pay_group", - "employments,pay_group", - "employments,team", - "employments,team,company", - "employments,team,company,pay_group", - "employments,team,pay_group", - "employments,work_location", - "employments,work_location,company", - "employments,work_location,company,pay_group", - "employments,work_location,manager", - "employments,work_location,manager,company", - "employments,work_location,manager,company,pay_group", - "employments,work_location,manager,pay_group", - "employments,work_location,manager,team", - "employments,work_location,manager,team,company", - "employments,work_location,manager,team,company,pay_group", - "employments,work_location,manager,team,pay_group", - "employments,work_location,pay_group", - "employments,work_location,team", - "employments,work_location,team,company", - "employments,work_location,team,company,pay_group", - "employments,work_location,team,pay_group", - "groups", - "groups,company", - "groups,company,pay_group", - "groups,home_location", - "groups,home_location,company", - "groups,home_location,company,pay_group", - "groups,home_location,manager", - "groups,home_location,manager,company", - "groups,home_location,manager,company,pay_group", - "groups,home_location,manager,pay_group", - "groups,home_location,manager,team", - "groups,home_location,manager,team,company", - "groups,home_location,manager,team,company,pay_group", - "groups,home_location,manager,team,pay_group", - "groups,home_location,pay_group", - "groups,home_location,team", - "groups,home_location,team,company", - "groups,home_location,team,company,pay_group", - "groups,home_location,team,pay_group", - "groups,home_location,work_location", - "groups,home_location,work_location,company", - "groups,home_location,work_location,company,pay_group", - "groups,home_location,work_location,manager", - "groups,home_location,work_location,manager,company", - "groups,home_location,work_location,manager,company,pay_group", - "groups,home_location,work_location,manager,pay_group", - "groups,home_location,work_location,manager,team", - "groups,home_location,work_location,manager,team,company", - "groups,home_location,work_location,manager,team,company,pay_group", - "groups,home_location,work_location,manager,team,pay_group", - "groups,home_location,work_location,pay_group", - "groups,home_location,work_location,team", - "groups,home_location,work_location,team,company", - "groups,home_location,work_location,team,company,pay_group", - "groups,home_location,work_location,team,pay_group", - "groups,manager", - "groups,manager,company", - "groups,manager,company,pay_group", - "groups,manager,pay_group", - "groups,manager,team", - "groups,manager,team,company", - "groups,manager,team,company,pay_group", - "groups,manager,team,pay_group", - "groups,pay_group", - "groups,team", - "groups,team,company", - "groups,team,company,pay_group", - "groups,team,pay_group", - "groups,work_location", - "groups,work_location,company", - "groups,work_location,company,pay_group", - "groups,work_location,manager", - "groups,work_location,manager,company", - "groups,work_location,manager,company,pay_group", - "groups,work_location,manager,pay_group", - "groups,work_location,manager,team", - "groups,work_location,manager,team,company", - "groups,work_location,manager,team,company,pay_group", - "groups,work_location,manager,team,pay_group", - "groups,work_location,pay_group", - "groups,work_location,team", - "groups,work_location,team,company", - "groups,work_location,team,company,pay_group", - "groups,work_location,team,pay_group", - "home_location", - "home_location,company", - "home_location,company,pay_group", - "home_location,manager", - "home_location,manager,company", - "home_location,manager,company,pay_group", - "home_location,manager,pay_group", - "home_location,manager,team", - "home_location,manager,team,company", - "home_location,manager,team,company,pay_group", - "home_location,manager,team,pay_group", - "home_location,pay_group", - "home_location,team", - "home_location,team,company", - "home_location,team,company,pay_group", - "home_location,team,pay_group", - "home_location,work_location", - "home_location,work_location,company", - "home_location,work_location,company,pay_group", - "home_location,work_location,manager", - "home_location,work_location,manager,company", - "home_location,work_location,manager,company,pay_group", - "home_location,work_location,manager,pay_group", - "home_location,work_location,manager,team", - "home_location,work_location,manager,team,company", - "home_location,work_location,manager,team,company,pay_group", - "home_location,work_location,manager,team,pay_group", - "home_location,work_location,pay_group", - "home_location,work_location,team", - "home_location,work_location,team,company", - "home_location,work_location,team,company,pay_group", - "home_location,work_location,team,pay_group", - "manager", - "manager,company", - "manager,company,pay_group", - "manager,pay_group", - "manager,team", - "manager,team,company", - "manager,team,company,pay_group", - "manager,team,pay_group", - "pay_group", - "team", - "team,company", - "team,company,pay_group", - "team,pay_group", - "work_location", - "work_location,company", - "work_location,company,pay_group", - "work_location,manager", - "work_location,manager,company", - "work_location,manager,company,pay_group", - "work_location,manager,pay_group", - "work_location,manager,team", - "work_location,manager,team,company", - "work_location,manager,team,company,pay_group", - "work_location,manager,team,pay_group", - "work_location,pay_group", - "work_location,team", - "work_location,team,company", - "work_location,team,company,pay_group", - "work_location,team,pay_group", -]); - -export declare namespace EmployeesRetrieveRequestExpand { - export type Raw = - | "company" - | "company,pay_group" - | "employments" - | "employments,company" - | "employments,company,pay_group" - | "employments,groups" - | "employments,groups,company" - | "employments,groups,company,pay_group" - | "employments,groups,home_location" - | "employments,groups,home_location,company" - | "employments,groups,home_location,company,pay_group" - | "employments,groups,home_location,manager" - | "employments,groups,home_location,manager,company" - | "employments,groups,home_location,manager,company,pay_group" - | "employments,groups,home_location,manager,pay_group" - | "employments,groups,home_location,manager,team" - | "employments,groups,home_location,manager,team,company" - | "employments,groups,home_location,manager,team,company,pay_group" - | "employments,groups,home_location,manager,team,pay_group" - | "employments,groups,home_location,pay_group" - | "employments,groups,home_location,team" - | "employments,groups,home_location,team,company" - | "employments,groups,home_location,team,company,pay_group" - | "employments,groups,home_location,team,pay_group" - | "employments,groups,home_location,work_location" - | "employments,groups,home_location,work_location,company" - | "employments,groups,home_location,work_location,company,pay_group" - | "employments,groups,home_location,work_location,manager" - | "employments,groups,home_location,work_location,manager,company" - | "employments,groups,home_location,work_location,manager,company,pay_group" - | "employments,groups,home_location,work_location,manager,pay_group" - | "employments,groups,home_location,work_location,manager,team" - | "employments,groups,home_location,work_location,manager,team,company" - | "employments,groups,home_location,work_location,manager,team,company,pay_group" - | "employments,groups,home_location,work_location,manager,team,pay_group" - | "employments,groups,home_location,work_location,pay_group" - | "employments,groups,home_location,work_location,team" - | "employments,groups,home_location,work_location,team,company" - | "employments,groups,home_location,work_location,team,company,pay_group" - | "employments,groups,home_location,work_location,team,pay_group" - | "employments,groups,manager" - | "employments,groups,manager,company" - | "employments,groups,manager,company,pay_group" - | "employments,groups,manager,pay_group" - | "employments,groups,manager,team" - | "employments,groups,manager,team,company" - | "employments,groups,manager,team,company,pay_group" - | "employments,groups,manager,team,pay_group" - | "employments,groups,pay_group" - | "employments,groups,team" - | "employments,groups,team,company" - | "employments,groups,team,company,pay_group" - | "employments,groups,team,pay_group" - | "employments,groups,work_location" - | "employments,groups,work_location,company" - | "employments,groups,work_location,company,pay_group" - | "employments,groups,work_location,manager" - | "employments,groups,work_location,manager,company" - | "employments,groups,work_location,manager,company,pay_group" - | "employments,groups,work_location,manager,pay_group" - | "employments,groups,work_location,manager,team" - | "employments,groups,work_location,manager,team,company" - | "employments,groups,work_location,manager,team,company,pay_group" - | "employments,groups,work_location,manager,team,pay_group" - | "employments,groups,work_location,pay_group" - | "employments,groups,work_location,team" - | "employments,groups,work_location,team,company" - | "employments,groups,work_location,team,company,pay_group" - | "employments,groups,work_location,team,pay_group" - | "employments,home_location" - | "employments,home_location,company" - | "employments,home_location,company,pay_group" - | "employments,home_location,manager" - | "employments,home_location,manager,company" - | "employments,home_location,manager,company,pay_group" - | "employments,home_location,manager,pay_group" - | "employments,home_location,manager,team" - | "employments,home_location,manager,team,company" - | "employments,home_location,manager,team,company,pay_group" - | "employments,home_location,manager,team,pay_group" - | "employments,home_location,pay_group" - | "employments,home_location,team" - | "employments,home_location,team,company" - | "employments,home_location,team,company,pay_group" - | "employments,home_location,team,pay_group" - | "employments,home_location,work_location" - | "employments,home_location,work_location,company" - | "employments,home_location,work_location,company,pay_group" - | "employments,home_location,work_location,manager" - | "employments,home_location,work_location,manager,company" - | "employments,home_location,work_location,manager,company,pay_group" - | "employments,home_location,work_location,manager,pay_group" - | "employments,home_location,work_location,manager,team" - | "employments,home_location,work_location,manager,team,company" - | "employments,home_location,work_location,manager,team,company,pay_group" - | "employments,home_location,work_location,manager,team,pay_group" - | "employments,home_location,work_location,pay_group" - | "employments,home_location,work_location,team" - | "employments,home_location,work_location,team,company" - | "employments,home_location,work_location,team,company,pay_group" - | "employments,home_location,work_location,team,pay_group" - | "employments,manager" - | "employments,manager,company" - | "employments,manager,company,pay_group" - | "employments,manager,pay_group" - | "employments,manager,team" - | "employments,manager,team,company" - | "employments,manager,team,company,pay_group" - | "employments,manager,team,pay_group" - | "employments,pay_group" - | "employments,team" - | "employments,team,company" - | "employments,team,company,pay_group" - | "employments,team,pay_group" - | "employments,work_location" - | "employments,work_location,company" - | "employments,work_location,company,pay_group" - | "employments,work_location,manager" - | "employments,work_location,manager,company" - | "employments,work_location,manager,company,pay_group" - | "employments,work_location,manager,pay_group" - | "employments,work_location,manager,team" - | "employments,work_location,manager,team,company" - | "employments,work_location,manager,team,company,pay_group" - | "employments,work_location,manager,team,pay_group" - | "employments,work_location,pay_group" - | "employments,work_location,team" - | "employments,work_location,team,company" - | "employments,work_location,team,company,pay_group" - | "employments,work_location,team,pay_group" - | "groups" - | "groups,company" - | "groups,company,pay_group" - | "groups,home_location" - | "groups,home_location,company" - | "groups,home_location,company,pay_group" - | "groups,home_location,manager" - | "groups,home_location,manager,company" - | "groups,home_location,manager,company,pay_group" - | "groups,home_location,manager,pay_group" - | "groups,home_location,manager,team" - | "groups,home_location,manager,team,company" - | "groups,home_location,manager,team,company,pay_group" - | "groups,home_location,manager,team,pay_group" - | "groups,home_location,pay_group" - | "groups,home_location,team" - | "groups,home_location,team,company" - | "groups,home_location,team,company,pay_group" - | "groups,home_location,team,pay_group" - | "groups,home_location,work_location" - | "groups,home_location,work_location,company" - | "groups,home_location,work_location,company,pay_group" - | "groups,home_location,work_location,manager" - | "groups,home_location,work_location,manager,company" - | "groups,home_location,work_location,manager,company,pay_group" - | "groups,home_location,work_location,manager,pay_group" - | "groups,home_location,work_location,manager,team" - | "groups,home_location,work_location,manager,team,company" - | "groups,home_location,work_location,manager,team,company,pay_group" - | "groups,home_location,work_location,manager,team,pay_group" - | "groups,home_location,work_location,pay_group" - | "groups,home_location,work_location,team" - | "groups,home_location,work_location,team,company" - | "groups,home_location,work_location,team,company,pay_group" - | "groups,home_location,work_location,team,pay_group" - | "groups,manager" - | "groups,manager,company" - | "groups,manager,company,pay_group" - | "groups,manager,pay_group" - | "groups,manager,team" - | "groups,manager,team,company" - | "groups,manager,team,company,pay_group" - | "groups,manager,team,pay_group" - | "groups,pay_group" - | "groups,team" - | "groups,team,company" - | "groups,team,company,pay_group" - | "groups,team,pay_group" - | "groups,work_location" - | "groups,work_location,company" - | "groups,work_location,company,pay_group" - | "groups,work_location,manager" - | "groups,work_location,manager,company" - | "groups,work_location,manager,company,pay_group" - | "groups,work_location,manager,pay_group" - | "groups,work_location,manager,team" - | "groups,work_location,manager,team,company" - | "groups,work_location,manager,team,company,pay_group" - | "groups,work_location,manager,team,pay_group" - | "groups,work_location,pay_group" - | "groups,work_location,team" - | "groups,work_location,team,company" - | "groups,work_location,team,company,pay_group" - | "groups,work_location,team,pay_group" - | "home_location" - | "home_location,company" - | "home_location,company,pay_group" - | "home_location,manager" - | "home_location,manager,company" - | "home_location,manager,company,pay_group" - | "home_location,manager,pay_group" - | "home_location,manager,team" - | "home_location,manager,team,company" - | "home_location,manager,team,company,pay_group" - | "home_location,manager,team,pay_group" - | "home_location,pay_group" - | "home_location,team" - | "home_location,team,company" - | "home_location,team,company,pay_group" - | "home_location,team,pay_group" - | "home_location,work_location" - | "home_location,work_location,company" - | "home_location,work_location,company,pay_group" - | "home_location,work_location,manager" - | "home_location,work_location,manager,company" - | "home_location,work_location,manager,company,pay_group" - | "home_location,work_location,manager,pay_group" - | "home_location,work_location,manager,team" - | "home_location,work_location,manager,team,company" - | "home_location,work_location,manager,team,company,pay_group" - | "home_location,work_location,manager,team,pay_group" - | "home_location,work_location,pay_group" - | "home_location,work_location,team" - | "home_location,work_location,team,company" - | "home_location,work_location,team,company,pay_group" - | "home_location,work_location,team,pay_group" - | "manager" - | "manager,company" - | "manager,company,pay_group" - | "manager,pay_group" - | "manager,team" - | "manager,team,company" - | "manager,team,company,pay_group" - | "manager,team,pay_group" - | "pay_group" - | "team" - | "team,company" - | "team,company,pay_group" - | "team,pay_group" - | "work_location" - | "work_location,company" - | "work_location,company,pay_group" - | "work_location,manager" - | "work_location,manager,company" - | "work_location,manager,company,pay_group" - | "work_location,manager,pay_group" - | "work_location,manager,team" - | "work_location,manager,team,company" - | "work_location,manager,team,company,pay_group" - | "work_location,manager,team,pay_group" - | "work_location,pay_group" - | "work_location,team" - | "work_location,team,company" - | "work_location,team,company,pay_group" - | "work_location,team,pay_group"; -} diff --git a/src/serialization/resources/hris/resources/employees/types/EmployeesRetrieveRequestExpandItem.ts b/src/serialization/resources/hris/resources/employees/types/EmployeesRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..5fca0c186 --- /dev/null +++ b/src/serialization/resources/hris/resources/employees/types/EmployeesRetrieveRequestExpandItem.ts @@ -0,0 +1,31 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const EmployeesRetrieveRequestExpandItem: core.serialization.Schema< + serializers.hris.EmployeesRetrieveRequestExpandItem.Raw, + Merge.hris.EmployeesRetrieveRequestExpandItem +> = core.serialization.enum_([ + "company", + "employments", + "groups", + "home_location", + "manager", + "pay_group", + "team", + "work_location", +]); + +export declare namespace EmployeesRetrieveRequestExpandItem { + export type Raw = + | "company" + | "employments" + | "groups" + | "home_location" + | "manager" + | "pay_group" + | "team" + | "work_location"; +} diff --git a/src/serialization/resources/hris/resources/employees/types/IgnoreCommonModelRequestReason.ts b/src/serialization/resources/hris/resources/employees/types/IgnoreCommonModelRequestReason.ts deleted file mode 100644 index 7fb38d081..000000000 --- a/src/serialization/resources/hris/resources/employees/types/IgnoreCommonModelRequestReason.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; -import { ReasonEnum } from "../../../types/ReasonEnum"; - -export const IgnoreCommonModelRequestReason: core.serialization.Schema< - serializers.hris.IgnoreCommonModelRequestReason.Raw, - Merge.hris.IgnoreCommonModelRequestReason -> = core.serialization.undiscriminatedUnion([ReasonEnum, core.serialization.string()]); - -export declare namespace IgnoreCommonModelRequestReason { - export type Raw = ReasonEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/resources/employees/types/index.ts b/src/serialization/resources/hris/resources/employees/types/index.ts index 86b6c6805..23a52c088 100644 --- a/src/serialization/resources/hris/resources/employees/types/index.ts +++ b/src/serialization/resources/hris/resources/employees/types/index.ts @@ -1,8 +1,7 @@ export * from "./EmployeesListRequestEmploymentStatus"; -export * from "./EmployeesListRequestExpand"; +export * from "./EmployeesListRequestExpandItem"; export * from "./EmployeesListRequestRemoteFields"; export * from "./EmployeesListRequestShowEnumOrigins"; -export * from "./EmployeesRetrieveRequestExpand"; +export * from "./EmployeesRetrieveRequestExpandItem"; export * from "./EmployeesRetrieveRequestRemoteFields"; export * from "./EmployeesRetrieveRequestShowEnumOrigins"; -export * from "./IgnoreCommonModelRequestReason"; diff --git a/src/serialization/resources/hris/resources/employments/types/EmploymentsListRequestExpand.ts b/src/serialization/resources/hris/resources/employments/types/EmploymentsListRequestExpand.ts deleted file mode 100644 index a226c15d9..000000000 --- a/src/serialization/resources/hris/resources/employments/types/EmploymentsListRequestExpand.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const EmploymentsListRequestExpand: core.serialization.Schema< - serializers.hris.EmploymentsListRequestExpand.Raw, - Merge.hris.EmploymentsListRequestExpand -> = core.serialization.enum_(["employee", "employee,pay_group", "pay_group"]); - -export declare namespace EmploymentsListRequestExpand { - export type Raw = "employee" | "employee,pay_group" | "pay_group"; -} diff --git a/src/serialization/resources/hris/resources/employments/types/EmploymentsListRequestExpandItem.ts b/src/serialization/resources/hris/resources/employments/types/EmploymentsListRequestExpandItem.ts new file mode 100644 index 000000000..64e457cff --- /dev/null +++ b/src/serialization/resources/hris/resources/employments/types/EmploymentsListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const EmploymentsListRequestExpandItem: core.serialization.Schema< + serializers.hris.EmploymentsListRequestExpandItem.Raw, + Merge.hris.EmploymentsListRequestExpandItem +> = core.serialization.enum_(["employee", "pay_group"]); + +export declare namespace EmploymentsListRequestExpandItem { + export type Raw = "employee" | "pay_group"; +} diff --git a/src/serialization/resources/hris/resources/employments/types/EmploymentsRetrieveRequestExpand.ts b/src/serialization/resources/hris/resources/employments/types/EmploymentsRetrieveRequestExpand.ts deleted file mode 100644 index b989f2e53..000000000 --- a/src/serialization/resources/hris/resources/employments/types/EmploymentsRetrieveRequestExpand.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const EmploymentsRetrieveRequestExpand: core.serialization.Schema< - serializers.hris.EmploymentsRetrieveRequestExpand.Raw, - Merge.hris.EmploymentsRetrieveRequestExpand -> = core.serialization.enum_(["employee", "employee,pay_group", "pay_group"]); - -export declare namespace EmploymentsRetrieveRequestExpand { - export type Raw = "employee" | "employee,pay_group" | "pay_group"; -} diff --git a/src/serialization/resources/hris/resources/employments/types/EmploymentsRetrieveRequestExpandItem.ts b/src/serialization/resources/hris/resources/employments/types/EmploymentsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..1f98fe0e5 --- /dev/null +++ b/src/serialization/resources/hris/resources/employments/types/EmploymentsRetrieveRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const EmploymentsRetrieveRequestExpandItem: core.serialization.Schema< + serializers.hris.EmploymentsRetrieveRequestExpandItem.Raw, + Merge.hris.EmploymentsRetrieveRequestExpandItem +> = core.serialization.enum_(["employee", "pay_group"]); + +export declare namespace EmploymentsRetrieveRequestExpandItem { + export type Raw = "employee" | "pay_group"; +} diff --git a/src/serialization/resources/hris/resources/employments/types/index.ts b/src/serialization/resources/hris/resources/employments/types/index.ts index 4d767a4f5..b37f6e136 100644 --- a/src/serialization/resources/hris/resources/employments/types/index.ts +++ b/src/serialization/resources/hris/resources/employments/types/index.ts @@ -1,7 +1,7 @@ -export * from "./EmploymentsListRequestExpand"; +export * from "./EmploymentsListRequestExpandItem"; export * from "./EmploymentsListRequestOrderBy"; export * from "./EmploymentsListRequestRemoteFields"; export * from "./EmploymentsListRequestShowEnumOrigins"; -export * from "./EmploymentsRetrieveRequestExpand"; +export * from "./EmploymentsRetrieveRequestExpandItem"; export * from "./EmploymentsRetrieveRequestRemoteFields"; export * from "./EmploymentsRetrieveRequestShowEnumOrigins"; diff --git a/src/serialization/resources/hris/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts b/src/serialization/resources/hris/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts index d7ab015fc..d8ad98003 100644 --- a/src/serialization/resources/hris/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts +++ b/src/serialization/resources/hris/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts @@ -6,7 +6,7 @@ import type * as serializers from "../../../../../../index"; export const PatchedEditFieldMappingRequest: core.serialization.Schema< serializers.hris.PatchedEditFieldMappingRequest.Raw, - Merge.hris.PatchedEditFieldMappingRequest + Omit > = core.serialization.object({ remoteFieldTraversalPath: core.serialization.property( "remote_field_traversal_path", diff --git a/src/serialization/resources/hris/resources/groups/index.ts b/src/serialization/resources/hris/resources/groups/index.ts new file mode 100644 index 000000000..eea524d65 --- /dev/null +++ b/src/serialization/resources/hris/resources/groups/index.ts @@ -0,0 +1 @@ +export * from "./types"; diff --git a/src/serialization/resources/hris/resources/groups/types/GroupsTypesListResponse.ts b/src/serialization/resources/hris/resources/groups/types/GroupsTypesListResponse.ts new file mode 100644 index 000000000..3559e75df --- /dev/null +++ b/src/serialization/resources/hris/resources/groups/types/GroupsTypesListResponse.ts @@ -0,0 +1,18 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const GroupsTypesListResponse: core.serialization.ObjectSchema< + serializers.hris.GroupsTypesListResponse.Raw, + Merge.hris.GroupsTypesListResponse +> = core.serialization.object({ + types: core.serialization.list(core.serialization.string()).optional(), +}); + +export declare namespace GroupsTypesListResponse { + export interface Raw { + types?: string[] | null; + } +} diff --git a/src/serialization/resources/hris/resources/groups/types/index.ts b/src/serialization/resources/hris/resources/groups/types/index.ts new file mode 100644 index 000000000..0b6db0278 --- /dev/null +++ b/src/serialization/resources/hris/resources/groups/types/index.ts @@ -0,0 +1 @@ +export * from "./GroupsTypesListResponse"; diff --git a/src/serialization/resources/hris/resources/index.ts b/src/serialization/resources/hris/resources/index.ts index 86152a1cf..19c3a0ef0 100644 --- a/src/serialization/resources/hris/resources/index.ts +++ b/src/serialization/resources/hris/resources/index.ts @@ -14,6 +14,8 @@ export * from "./fieldMapping/client/requests"; export * as forceResync from "./forceResync"; export * as generateKey from "./generateKey"; export * from "./generateKey/client/requests"; +export * as groups from "./groups"; +export * from "./groups/types"; export * as issues from "./issues"; export * from "./issues/types"; export * as linkedAccounts from "./linkedAccounts"; 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 87edec772..a832150d3 100644 --- a/src/serialization/resources/hris/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ b/src/serialization/resources/hris/resources/linkToken/client/requests/EndUserDetailsRequest.ts @@ -6,7 +6,6 @@ import type * as serializers from "../../../../../../index"; import { CategoriesEnum } from "../../../../types/CategoriesEnum"; import { CommonModelScopesBodyRequest } from "../../../../types/CommonModelScopesBodyRequest"; import { IndividualCommonModelScopeDeserializerRequest } from "../../../../types/IndividualCommonModelScopeDeserializerRequest"; -import { EndUserDetailsRequestCompletedAccountInitialScreen } from "../../types/EndUserDetailsRequestCompletedAccountInitialScreen"; import { EndUserDetailsRequestLanguage } from "../../types/EndUserDetailsRequestLanguage"; export const EndUserDetailsRequest: core.serialization.Schema< @@ -43,10 +42,6 @@ export const EndUserDetailsRequest: core.serialization.Schema< "integration_specific_config", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), ), - completedAccountInitialScreen: core.serialization.property( - "completed_account_initial_screen", - EndUserDetailsRequestCompletedAccountInitialScreen.optional(), - ), }); export declare namespace EndUserDetailsRequest { @@ -67,6 +62,5 @@ export declare namespace EndUserDetailsRequest { language?: EndUserDetailsRequestLanguage.Raw | null; are_syncs_disabled?: boolean | null; integration_specific_config?: Record | null; - completed_account_initial_screen?: EndUserDetailsRequestCompletedAccountInitialScreen.Raw | null; } } diff --git a/src/serialization/resources/hris/resources/linkToken/types/EndUserDetailsRequestCompletedAccountInitialScreen.ts b/src/serialization/resources/hris/resources/linkToken/types/EndUserDetailsRequestCompletedAccountInitialScreen.ts deleted file mode 100644 index 47ba300af..000000000 --- a/src/serialization/resources/hris/resources/linkToken/types/EndUserDetailsRequestCompletedAccountInitialScreen.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; -import { CompletedAccountInitialScreenEnum } from "../../../types/CompletedAccountInitialScreenEnum"; - -export const EndUserDetailsRequestCompletedAccountInitialScreen: core.serialization.Schema< - serializers.hris.EndUserDetailsRequestCompletedAccountInitialScreen.Raw, - Merge.hris.EndUserDetailsRequestCompletedAccountInitialScreen -> = core.serialization.undiscriminatedUnion([CompletedAccountInitialScreenEnum, core.serialization.string()]); - -export declare namespace EndUserDetailsRequestCompletedAccountInitialScreen { - export type Raw = CompletedAccountInitialScreenEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/resources/linkToken/types/index.ts b/src/serialization/resources/hris/resources/linkToken/types/index.ts index 7aed25cb1..c90e13c37 100644 --- a/src/serialization/resources/hris/resources/linkToken/types/index.ts +++ b/src/serialization/resources/hris/resources/linkToken/types/index.ts @@ -1,2 +1 @@ -export * from "./EndUserDetailsRequestCompletedAccountInitialScreen"; export * from "./EndUserDetailsRequestLanguage"; diff --git a/src/serialization/resources/hris/resources/timeOff/types/TimeOffListRequestExpand.ts b/src/serialization/resources/hris/resources/timeOff/types/TimeOffListRequestExpand.ts deleted file mode 100644 index 47b1bdfc4..000000000 --- a/src/serialization/resources/hris/resources/timeOff/types/TimeOffListRequestExpand.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const TimeOffListRequestExpand: core.serialization.Schema< - serializers.hris.TimeOffListRequestExpand.Raw, - Merge.hris.TimeOffListRequestExpand -> = core.serialization.enum_(["approver", "employee", "employee,approver"]); - -export declare namespace TimeOffListRequestExpand { - export type Raw = "approver" | "employee" | "employee,approver"; -} diff --git a/src/serialization/resources/hris/resources/timeOff/types/TimeOffListRequestExpandItem.ts b/src/serialization/resources/hris/resources/timeOff/types/TimeOffListRequestExpandItem.ts new file mode 100644 index 000000000..a3136fa1b --- /dev/null +++ b/src/serialization/resources/hris/resources/timeOff/types/TimeOffListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const TimeOffListRequestExpandItem: core.serialization.Schema< + serializers.hris.TimeOffListRequestExpandItem.Raw, + Merge.hris.TimeOffListRequestExpandItem +> = core.serialization.enum_(["approver", "employee"]); + +export declare namespace TimeOffListRequestExpandItem { + export type Raw = "approver" | "employee"; +} diff --git a/src/serialization/resources/hris/resources/timeOff/types/TimeOffRetrieveRequestExpand.ts b/src/serialization/resources/hris/resources/timeOff/types/TimeOffRetrieveRequestExpand.ts deleted file mode 100644 index 0c65852de..000000000 --- a/src/serialization/resources/hris/resources/timeOff/types/TimeOffRetrieveRequestExpand.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const TimeOffRetrieveRequestExpand: core.serialization.Schema< - serializers.hris.TimeOffRetrieveRequestExpand.Raw, - Merge.hris.TimeOffRetrieveRequestExpand -> = core.serialization.enum_(["approver", "employee", "employee,approver"]); - -export declare namespace TimeOffRetrieveRequestExpand { - export type Raw = "approver" | "employee" | "employee,approver"; -} diff --git a/src/serialization/resources/hris/resources/timeOff/types/TimeOffRetrieveRequestExpandItem.ts b/src/serialization/resources/hris/resources/timeOff/types/TimeOffRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..cf4959b53 --- /dev/null +++ b/src/serialization/resources/hris/resources/timeOff/types/TimeOffRetrieveRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const TimeOffRetrieveRequestExpandItem: core.serialization.Schema< + serializers.hris.TimeOffRetrieveRequestExpandItem.Raw, + Merge.hris.TimeOffRetrieveRequestExpandItem +> = core.serialization.enum_(["approver", "employee"]); + +export declare namespace TimeOffRetrieveRequestExpandItem { + export type Raw = "approver" | "employee"; +} diff --git a/src/serialization/resources/hris/resources/timeOff/types/index.ts b/src/serialization/resources/hris/resources/timeOff/types/index.ts index da891165f..5ccb53437 100644 --- a/src/serialization/resources/hris/resources/timeOff/types/index.ts +++ b/src/serialization/resources/hris/resources/timeOff/types/index.ts @@ -1,8 +1,8 @@ -export * from "./TimeOffListRequestExpand"; +export * from "./TimeOffListRequestExpandItem"; export * from "./TimeOffListRequestRemoteFields"; export * from "./TimeOffListRequestRequestType"; export * from "./TimeOffListRequestShowEnumOrigins"; export * from "./TimeOffListRequestStatus"; -export * from "./TimeOffRetrieveRequestExpand"; +export * from "./TimeOffRetrieveRequestExpandItem"; export * from "./TimeOffRetrieveRequestRemoteFields"; export * from "./TimeOffRetrieveRequestShowEnumOrigins"; diff --git a/src/serialization/resources/hris/types/CompletedAccountInitialScreenEnum.ts b/src/serialization/resources/hris/types/CompletedAccountInitialScreenEnum.ts deleted file mode 100644 index 5d4d89baf..000000000 --- a/src/serialization/resources/hris/types/CompletedAccountInitialScreenEnum.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; - -export const CompletedAccountInitialScreenEnum: core.serialization.Schema< - serializers.hris.CompletedAccountInitialScreenEnum.Raw, - Merge.hris.CompletedAccountInitialScreenEnum -> = core.serialization.stringLiteral("SELECTIVE_SYNC"); - -export declare namespace CompletedAccountInitialScreenEnum { - export type Raw = "SELECTIVE_SYNC"; -} diff --git a/src/serialization/resources/hris/types/IgnoreCommonModelRequest.ts b/src/serialization/resources/hris/types/IgnoreCommonModelRequest.ts new file mode 100644 index 000000000..819fc4d87 --- /dev/null +++ b/src/serialization/resources/hris/types/IgnoreCommonModelRequest.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { IgnoreCommonModelRequestReason } from "./IgnoreCommonModelRequestReason"; + +export const IgnoreCommonModelRequest: core.serialization.ObjectSchema< + serializers.hris.IgnoreCommonModelRequest.Raw, + Merge.hris.IgnoreCommonModelRequest +> = core.serialization.object({ + reason: IgnoreCommonModelRequestReason, + message: core.serialization.string().optional(), +}); + +export declare namespace IgnoreCommonModelRequest { + export interface Raw { + reason: IgnoreCommonModelRequestReason.Raw; + message?: string | null; + } +} diff --git a/src/serialization/resources/hris/types/IgnoreCommonModelRequestReason.ts b/src/serialization/resources/hris/types/IgnoreCommonModelRequestReason.ts new file mode 100644 index 000000000..f1cb1a9d3 --- /dev/null +++ b/src/serialization/resources/hris/types/IgnoreCommonModelRequestReason.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { ReasonEnum } from "./ReasonEnum"; + +export const IgnoreCommonModelRequestReason: core.serialization.Schema< + serializers.hris.IgnoreCommonModelRequestReason.Raw, + Merge.hris.IgnoreCommonModelRequestReason +> = core.serialization.undiscriminatedUnion([ReasonEnum, core.serialization.string()]); + +export declare namespace IgnoreCommonModelRequestReason { + export type Raw = ReasonEnum.Raw | string; +} diff --git a/src/serialization/resources/hris/types/MetaResponse.ts b/src/serialization/resources/hris/types/MetaResponse.ts index b803b6975..d0a374e40 100644 --- a/src/serialization/resources/hris/types/MetaResponse.ts +++ b/src/serialization/resources/hris/types/MetaResponse.ts @@ -21,6 +21,10 @@ export const MetaResponse: core.serialization.ObjectSchema = core.serialization.object({ name: core.serialization.string(), data: core.serialization.string(), - encoding: MultipartFormFieldRequestEncoding.optional(), + encoding: EncodingEnum.optional(), fileName: core.serialization.property("file_name", core.serialization.string().optional()), contentType: core.serialization.property("content_type", core.serialization.string().optional()), }); @@ -20,7 +20,7 @@ export declare namespace MultipartFormFieldRequest { export interface Raw { name: string; data: string; - encoding?: MultipartFormFieldRequestEncoding.Raw | null; + encoding?: EncodingEnum.Raw | null; file_name?: string | null; content_type?: string | null; } diff --git a/src/serialization/resources/hris/types/MultipartFormFieldRequestEncoding.ts b/src/serialization/resources/hris/types/MultipartFormFieldRequestEncoding.ts deleted file mode 100644 index e020ebbe6..000000000 --- a/src/serialization/resources/hris/types/MultipartFormFieldRequestEncoding.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { EncodingEnum } from "./EncodingEnum"; - -export const MultipartFormFieldRequestEncoding: core.serialization.Schema< - serializers.hris.MultipartFormFieldRequestEncoding.Raw, - Merge.hris.MultipartFormFieldRequestEncoding -> = core.serialization.undiscriminatedUnion([EncodingEnum, core.serialization.string()]); - -export declare namespace MultipartFormFieldRequestEncoding { - export type Raw = EncodingEnum.Raw | string; -} diff --git a/src/serialization/resources/hris/types/RegenerateAccountToken.ts b/src/serialization/resources/hris/types/RegenerateAccountToken.ts new file mode 100644 index 000000000..9a9b30148 --- /dev/null +++ b/src/serialization/resources/hris/types/RegenerateAccountToken.ts @@ -0,0 +1,20 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; + +export const RegenerateAccountToken: core.serialization.ObjectSchema< + serializers.hris.RegenerateAccountToken.Raw, + Merge.hris.RegenerateAccountToken +> = core.serialization.object({ + linkedAccountId: core.serialization.property("linked_account_id", core.serialization.string()), + accountToken: core.serialization.property("account_token", core.serialization.string()), +}); + +export declare namespace RegenerateAccountToken { + export interface Raw { + linked_account_id: string; + account_token: string; + } +} diff --git a/src/serialization/resources/hris/types/RoleEnum.ts b/src/serialization/resources/hris/types/RoleEnum.ts index cdbdc9e78..691d6e715 100644 --- a/src/serialization/resources/hris/types/RoleEnum.ts +++ b/src/serialization/resources/hris/types/RoleEnum.ts @@ -5,8 +5,8 @@ import * as core from "../../../../core"; import type * as serializers from "../../../index"; export const RoleEnum: core.serialization.Schema = - core.serialization.enum_(["ADMIN", "DEVELOPER", "MEMBER", "API", "SYSTEM", "MERGE_TEAM"]); + core.serialization.enum_(["ADMIN", "DEVELOPER", "MEMBER", "API", "SYSTEM", "MERGE_TEAM", "SUPPORT"]); export declare namespace RoleEnum { - export type Raw = "ADMIN" | "DEVELOPER" | "MEMBER" | "API" | "SYSTEM" | "MERGE_TEAM"; + export type Raw = "ADMIN" | "DEVELOPER" | "MEMBER" | "API" | "SYSTEM" | "MERGE_TEAM" | "SUPPORT"; } diff --git a/src/serialization/resources/hris/types/SyncStatus.ts b/src/serialization/resources/hris/types/SyncStatus.ts index 51e52036d..7cba5662c 100644 --- a/src/serialization/resources/hris/types/SyncStatus.ts +++ b/src/serialization/resources/hris/types/SyncStatus.ts @@ -4,8 +4,8 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; import { SelectiveSyncConfigurationsUsageEnum } from "./SelectiveSyncConfigurationsUsageEnum"; -import { StatusFd5Enum } from "./StatusFd5Enum"; import { SyncStatusLastSyncResult } from "./SyncStatusLastSyncResult"; +import { SyncStatusStatus } from "./SyncStatusStatus"; export const SyncStatus: core.serialization.ObjectSchema = core.serialization.object({ @@ -15,7 +15,7 @@ export const SyncStatus: core.serialization.ObjectSchema = core.serialization.undiscriminatedUnion([StatusFd5Enum, core.serialization.string()]); + +export declare namespace SyncStatusStatus { + export type Raw = StatusFd5Enum.Raw | string; +} diff --git a/src/serialization/resources/hris/types/index.ts b/src/serialization/resources/hris/types/index.ts index 92f0860a7..3b7b2de66 100644 --- a/src/serialization/resources/hris/types/index.ts +++ b/src/serialization/resources/hris/types/index.ts @@ -25,7 +25,6 @@ export * from "./CategoryEnum"; export * from "./CommonModelScopeApi"; export * from "./CommonModelScopesBodyRequest"; export * from "./Company"; -export * from "./CompletedAccountInitialScreenEnum"; export * from "./CountryEnum"; export * from "./DataPassthroughRequest"; export * from "./DebugModeLog"; @@ -99,6 +98,8 @@ export * from "./GenderEnum"; export * from "./Group"; export * from "./GroupType"; export * from "./GroupTypeEnum"; +export * from "./IgnoreCommonModelRequest"; +export * from "./IgnoreCommonModelRequestReason"; export * from "./IndividualCommonModelScopeDeserializer"; export * from "./IndividualCommonModelScopeDeserializerRequest"; export * from "./Issue"; @@ -119,7 +120,6 @@ export * from "./ModelOperation"; export * from "./ModelPermissionDeserializer"; export * from "./ModelPermissionDeserializerRequest"; export * from "./MultipartFormFieldRequest"; -export * from "./MultipartFormFieldRequestEncoding"; export * from "./PaginatedAccountDetailsAndActionsList"; export * from "./PaginatedAuditLogEventList"; export * from "./PaginatedBankInfoList"; @@ -149,6 +149,7 @@ export * from "./PayrollRunRunState"; export * from "./PayrollRunRunType"; export * from "./PolicyTypeEnum"; export * from "./ReasonEnum"; +export * from "./RegenerateAccountToken"; export * from "./RelationshipEnum"; export * from "./RemoteData"; export * from "./RemoteEndpointInfo"; @@ -168,6 +169,7 @@ export * from "./SelectiveSyncConfigurationsUsageEnum"; export * from "./StatusFd5Enum"; export * from "./SyncStatus"; export * from "./SyncStatusLastSyncResult"; +export * from "./SyncStatusStatus"; export * from "./Tax"; export * from "./Team"; export * from "./TeamParentTeam"; diff --git a/src/serialization/resources/ticketing/resources/collections/types/CollectionsListRequestExpandItem.ts b/src/serialization/resources/ticketing/resources/collections/types/CollectionsListRequestExpandItem.ts new file mode 100644 index 000000000..76b7f6f99 --- /dev/null +++ b/src/serialization/resources/ticketing/resources/collections/types/CollectionsListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const CollectionsListRequestExpandItem: core.serialization.Schema< + serializers.ticketing.CollectionsListRequestExpandItem.Raw, + Merge.ticketing.CollectionsListRequestExpandItem +> = core.serialization.enum_(["parent_collection", "permissions"]); + +export declare namespace CollectionsListRequestExpandItem { + export type Raw = "parent_collection" | "permissions"; +} diff --git a/src/serialization/resources/ticketing/resources/collections/types/CollectionsRetrieveRequestExpandItem.ts b/src/serialization/resources/ticketing/resources/collections/types/CollectionsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..b434cedff --- /dev/null +++ b/src/serialization/resources/ticketing/resources/collections/types/CollectionsRetrieveRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const CollectionsRetrieveRequestExpandItem: core.serialization.Schema< + serializers.ticketing.CollectionsRetrieveRequestExpandItem.Raw, + Merge.ticketing.CollectionsRetrieveRequestExpandItem +> = core.serialization.enum_(["parent_collection", "permissions"]); + +export declare namespace CollectionsRetrieveRequestExpandItem { + export type Raw = "parent_collection" | "permissions"; +} diff --git a/src/serialization/resources/ticketing/resources/collections/types/CollectionsViewersListRequestExpand.ts b/src/serialization/resources/ticketing/resources/collections/types/CollectionsViewersListRequestExpand.ts deleted file mode 100644 index 94151574f..000000000 --- a/src/serialization/resources/ticketing/resources/collections/types/CollectionsViewersListRequestExpand.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const CollectionsViewersListRequestExpand: core.serialization.Schema< - serializers.ticketing.CollectionsViewersListRequestExpand.Raw, - Merge.ticketing.CollectionsViewersListRequestExpand -> = core.serialization.enum_(["team", "user", "user,team"]); - -export declare namespace CollectionsViewersListRequestExpand { - export type Raw = "team" | "user" | "user,team"; -} diff --git a/src/serialization/resources/ticketing/resources/collections/types/CollectionsViewersListRequestExpandItem.ts b/src/serialization/resources/ticketing/resources/collections/types/CollectionsViewersListRequestExpandItem.ts new file mode 100644 index 000000000..2a087e8ce --- /dev/null +++ b/src/serialization/resources/ticketing/resources/collections/types/CollectionsViewersListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const CollectionsViewersListRequestExpandItem: core.serialization.Schema< + serializers.ticketing.CollectionsViewersListRequestExpandItem.Raw, + Merge.ticketing.CollectionsViewersListRequestExpandItem +> = core.serialization.enum_(["team", "user"]); + +export declare namespace CollectionsViewersListRequestExpandItem { + export type Raw = "team" | "user"; +} diff --git a/src/serialization/resources/ticketing/resources/collections/types/index.ts b/src/serialization/resources/ticketing/resources/collections/types/index.ts index fa9590b69..e4481ec32 100644 --- a/src/serialization/resources/ticketing/resources/collections/types/index.ts +++ b/src/serialization/resources/ticketing/resources/collections/types/index.ts @@ -1,2 +1,4 @@ export * from "./CollectionsListRequestCollectionType"; -export * from "./CollectionsViewersListRequestExpand"; +export * from "./CollectionsListRequestExpandItem"; +export * from "./CollectionsRetrieveRequestExpandItem"; +export * from "./CollectionsViewersListRequestExpandItem"; diff --git a/src/serialization/resources/ticketing/resources/comments/types/CommentsListRequestExpand.ts b/src/serialization/resources/ticketing/resources/comments/types/CommentsListRequestExpand.ts deleted file mode 100644 index 5e75e19f1..000000000 --- a/src/serialization/resources/ticketing/resources/comments/types/CommentsListRequestExpand.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const CommentsListRequestExpand: core.serialization.Schema< - serializers.ticketing.CommentsListRequestExpand.Raw, - Merge.ticketing.CommentsListRequestExpand -> = core.serialization.enum_([ - "contact", - "contact,ticket", - "ticket", - "user", - "user,contact", - "user,contact,ticket", - "user,ticket", -]); - -export declare namespace CommentsListRequestExpand { - export type Raw = - | "contact" - | "contact,ticket" - | "ticket" - | "user" - | "user,contact" - | "user,contact,ticket" - | "user,ticket"; -} diff --git a/src/serialization/resources/ticketing/resources/comments/types/CommentsListRequestExpandItem.ts b/src/serialization/resources/ticketing/resources/comments/types/CommentsListRequestExpandItem.ts new file mode 100644 index 000000000..987bfec31 --- /dev/null +++ b/src/serialization/resources/ticketing/resources/comments/types/CommentsListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const CommentsListRequestExpandItem: core.serialization.Schema< + serializers.ticketing.CommentsListRequestExpandItem.Raw, + Merge.ticketing.CommentsListRequestExpandItem +> = core.serialization.enum_(["contact", "ticket", "user"]); + +export declare namespace CommentsListRequestExpandItem { + export type Raw = "contact" | "ticket" | "user"; +} diff --git a/src/serialization/resources/ticketing/resources/comments/types/CommentsRetrieveRequestExpand.ts b/src/serialization/resources/ticketing/resources/comments/types/CommentsRetrieveRequestExpand.ts deleted file mode 100644 index dbdd95a24..000000000 --- a/src/serialization/resources/ticketing/resources/comments/types/CommentsRetrieveRequestExpand.ts +++ /dev/null @@ -1,29 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const CommentsRetrieveRequestExpand: core.serialization.Schema< - serializers.ticketing.CommentsRetrieveRequestExpand.Raw, - Merge.ticketing.CommentsRetrieveRequestExpand -> = core.serialization.enum_([ - "contact", - "contact,ticket", - "ticket", - "user", - "user,contact", - "user,contact,ticket", - "user,ticket", -]); - -export declare namespace CommentsRetrieveRequestExpand { - export type Raw = - | "contact" - | "contact,ticket" - | "ticket" - | "user" - | "user,contact" - | "user,contact,ticket" - | "user,ticket"; -} diff --git a/src/serialization/resources/ticketing/resources/comments/types/CommentsRetrieveRequestExpandItem.ts b/src/serialization/resources/ticketing/resources/comments/types/CommentsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..9b2a38596 --- /dev/null +++ b/src/serialization/resources/ticketing/resources/comments/types/CommentsRetrieveRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const CommentsRetrieveRequestExpandItem: core.serialization.Schema< + serializers.ticketing.CommentsRetrieveRequestExpandItem.Raw, + Merge.ticketing.CommentsRetrieveRequestExpandItem +> = core.serialization.enum_(["contact", "ticket", "user"]); + +export declare namespace CommentsRetrieveRequestExpandItem { + export type Raw = "contact" | "ticket" | "user"; +} diff --git a/src/serialization/resources/ticketing/resources/comments/types/index.ts b/src/serialization/resources/ticketing/resources/comments/types/index.ts index cbff3a9fc..9df4e0118 100644 --- a/src/serialization/resources/ticketing/resources/comments/types/index.ts +++ b/src/serialization/resources/ticketing/resources/comments/types/index.ts @@ -1,2 +1,2 @@ -export * from "./CommentsListRequestExpand"; -export * from "./CommentsRetrieveRequestExpand"; +export * from "./CommentsListRequestExpandItem"; +export * from "./CommentsRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/ticketing/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts b/src/serialization/resources/ticketing/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts index e22fe8c22..a8819c86d 100644 --- a/src/serialization/resources/ticketing/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts +++ b/src/serialization/resources/ticketing/resources/fieldMapping/client/requests/CreateFieldMappingRequest.ts @@ -6,7 +6,7 @@ import type * as serializers from "../../../../../../index"; export const CreateFieldMappingRequest: core.serialization.Schema< serializers.ticketing.CreateFieldMappingRequest.Raw, - Omit + Omit > = core.serialization.object({ targetFieldName: core.serialization.property("target_field_name", core.serialization.string()), targetFieldDescription: core.serialization.property("target_field_description", core.serialization.string()), diff --git a/src/serialization/resources/ticketing/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts b/src/serialization/resources/ticketing/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts index c31353c22..ee0e4f4e6 100644 --- a/src/serialization/resources/ticketing/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts +++ b/src/serialization/resources/ticketing/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts @@ -6,7 +6,7 @@ import type * as serializers from "../../../../../../index"; export const PatchedEditFieldMappingRequest: core.serialization.Schema< serializers.ticketing.PatchedEditFieldMappingRequest.Raw, - Merge.ticketing.PatchedEditFieldMappingRequest + Omit > = core.serialization.object({ remoteFieldTraversalPath: core.serialization.property( "remote_field_traversal_path", 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 e9926e29f..9f6f96683 100644 --- a/src/serialization/resources/ticketing/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ b/src/serialization/resources/ticketing/resources/linkToken/client/requests/EndUserDetailsRequest.ts @@ -6,7 +6,6 @@ import type * as serializers from "../../../../../../index"; import { CategoriesEnum } from "../../../../types/CategoriesEnum"; import { CommonModelScopesBodyRequest } from "../../../../types/CommonModelScopesBodyRequest"; import { IndividualCommonModelScopeDeserializerRequest } from "../../../../types/IndividualCommonModelScopeDeserializerRequest"; -import { EndUserDetailsRequestCompletedAccountInitialScreen } from "../../types/EndUserDetailsRequestCompletedAccountInitialScreen"; import { EndUserDetailsRequestLanguage } from "../../types/EndUserDetailsRequestLanguage"; export const EndUserDetailsRequest: core.serialization.Schema< @@ -43,10 +42,6 @@ export const EndUserDetailsRequest: core.serialization.Schema< "integration_specific_config", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), ), - completedAccountInitialScreen: core.serialization.property( - "completed_account_initial_screen", - EndUserDetailsRequestCompletedAccountInitialScreen.optional(), - ), }); export declare namespace EndUserDetailsRequest { @@ -67,6 +62,5 @@ export declare namespace EndUserDetailsRequest { language?: EndUserDetailsRequestLanguage.Raw | null; are_syncs_disabled?: boolean | null; integration_specific_config?: Record | null; - completed_account_initial_screen?: EndUserDetailsRequestCompletedAccountInitialScreen.Raw | null; } } diff --git a/src/serialization/resources/ticketing/resources/linkToken/types/EndUserDetailsRequestCompletedAccountInitialScreen.ts b/src/serialization/resources/ticketing/resources/linkToken/types/EndUserDetailsRequestCompletedAccountInitialScreen.ts deleted file mode 100644 index 4958c8fea..000000000 --- a/src/serialization/resources/ticketing/resources/linkToken/types/EndUserDetailsRequestCompletedAccountInitialScreen.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; -import { CompletedAccountInitialScreenEnum } from "../../../types/CompletedAccountInitialScreenEnum"; - -export const EndUserDetailsRequestCompletedAccountInitialScreen: core.serialization.Schema< - serializers.ticketing.EndUserDetailsRequestCompletedAccountInitialScreen.Raw, - Merge.ticketing.EndUserDetailsRequestCompletedAccountInitialScreen -> = core.serialization.undiscriminatedUnion([CompletedAccountInitialScreenEnum, core.serialization.string()]); - -export declare namespace EndUserDetailsRequestCompletedAccountInitialScreen { - export type Raw = CompletedAccountInitialScreenEnum.Raw | string; -} diff --git a/src/serialization/resources/ticketing/resources/linkToken/types/index.ts b/src/serialization/resources/ticketing/resources/linkToken/types/index.ts index 7aed25cb1..c90e13c37 100644 --- a/src/serialization/resources/ticketing/resources/linkToken/types/index.ts +++ b/src/serialization/resources/ticketing/resources/linkToken/types/index.ts @@ -1,2 +1 @@ -export * from "./EndUserDetailsRequestCompletedAccountInitialScreen"; export * from "./EndUserDetailsRequestLanguage"; diff --git a/src/serialization/resources/ticketing/resources/projects/types/ProjectsUsersListRequestExpand.ts b/src/serialization/resources/ticketing/resources/projects/types/ProjectsUsersListRequestExpand.ts deleted file mode 100644 index 47641fa4f..000000000 --- a/src/serialization/resources/ticketing/resources/projects/types/ProjectsUsersListRequestExpand.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const ProjectsUsersListRequestExpand: core.serialization.Schema< - serializers.ticketing.ProjectsUsersListRequestExpand.Raw, - Merge.ticketing.ProjectsUsersListRequestExpand -> = core.serialization.enum_(["roles", "teams", "teams,roles"]); - -export declare namespace ProjectsUsersListRequestExpand { - export type Raw = "roles" | "teams" | "teams,roles"; -} diff --git a/src/serialization/resources/ticketing/resources/projects/types/ProjectsUsersListRequestExpandItem.ts b/src/serialization/resources/ticketing/resources/projects/types/ProjectsUsersListRequestExpandItem.ts new file mode 100644 index 000000000..a2924a310 --- /dev/null +++ b/src/serialization/resources/ticketing/resources/projects/types/ProjectsUsersListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const ProjectsUsersListRequestExpandItem: core.serialization.Schema< + serializers.ticketing.ProjectsUsersListRequestExpandItem.Raw, + Merge.ticketing.ProjectsUsersListRequestExpandItem +> = core.serialization.enum_(["roles", "teams"]); + +export declare namespace ProjectsUsersListRequestExpandItem { + export type Raw = "roles" | "teams"; +} diff --git a/src/serialization/resources/ticketing/resources/projects/types/index.ts b/src/serialization/resources/ticketing/resources/projects/types/index.ts index d28a1cea3..db2e2aa6b 100644 --- a/src/serialization/resources/ticketing/resources/projects/types/index.ts +++ b/src/serialization/resources/ticketing/resources/projects/types/index.ts @@ -1 +1 @@ -export * from "./ProjectsUsersListRequestExpand"; +export * from "./ProjectsUsersListRequestExpandItem"; diff --git a/src/serialization/resources/ticketing/resources/tickets/types/TicketsListRequestExpand.ts b/src/serialization/resources/ticketing/resources/tickets/types/TicketsListRequestExpand.ts deleted file mode 100644 index 561c34ce0..000000000 --- a/src/serialization/resources/ticketing/resources/tickets/types/TicketsListRequestExpand.ts +++ /dev/null @@ -1,525 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const TicketsListRequestExpand: core.serialization.Schema< - serializers.ticketing.TicketsListRequestExpand.Raw, - Merge.ticketing.TicketsListRequestExpand -> = core.serialization.enum_([ - "account", - "account,contact", - "account,contact,creator", - "account,contact,creator,parent_ticket", - "account,contact,parent_ticket", - "account,creator", - "account,creator,parent_ticket", - "account,parent_ticket", - "assigned_teams", - "assigned_teams,account", - "assigned_teams,account,contact", - "assigned_teams,account,contact,creator", - "assigned_teams,account,contact,creator,parent_ticket", - "assigned_teams,account,contact,parent_ticket", - "assigned_teams,account,creator", - "assigned_teams,account,creator,parent_ticket", - "assigned_teams,account,parent_ticket", - "assigned_teams,contact", - "assigned_teams,contact,creator", - "assigned_teams,contact,creator,parent_ticket", - "assigned_teams,contact,parent_ticket", - "assigned_teams,creator", - "assigned_teams,creator,parent_ticket", - "assigned_teams,parent_ticket", - "assignees", - "assignees,account", - "assignees,account,contact", - "assignees,account,contact,creator", - "assignees,account,contact,creator,parent_ticket", - "assignees,account,contact,parent_ticket", - "assignees,account,creator", - "assignees,account,creator,parent_ticket", - "assignees,account,parent_ticket", - "assignees,assigned_teams", - "assignees,assigned_teams,account", - "assignees,assigned_teams,account,contact", - "assignees,assigned_teams,account,contact,creator", - "assignees,assigned_teams,account,contact,creator,parent_ticket", - "assignees,assigned_teams,account,contact,parent_ticket", - "assignees,assigned_teams,account,creator", - "assignees,assigned_teams,account,creator,parent_ticket", - "assignees,assigned_teams,account,parent_ticket", - "assignees,assigned_teams,contact", - "assignees,assigned_teams,contact,creator", - "assignees,assigned_teams,contact,creator,parent_ticket", - "assignees,assigned_teams,contact,parent_ticket", - "assignees,assigned_teams,creator", - "assignees,assigned_teams,creator,parent_ticket", - "assignees,assigned_teams,parent_ticket", - "assignees,collections", - "assignees,collections,account", - "assignees,collections,account,contact", - "assignees,collections,account,contact,creator", - "assignees,collections,account,contact,creator,parent_ticket", - "assignees,collections,account,contact,parent_ticket", - "assignees,collections,account,creator", - "assignees,collections,account,creator,parent_ticket", - "assignees,collections,account,parent_ticket", - "assignees,collections,assigned_teams", - "assignees,collections,assigned_teams,account", - "assignees,collections,assigned_teams,account,contact", - "assignees,collections,assigned_teams,account,contact,creator", - "assignees,collections,assigned_teams,account,contact,creator,parent_ticket", - "assignees,collections,assigned_teams,account,contact,parent_ticket", - "assignees,collections,assigned_teams,account,creator", - "assignees,collections,assigned_teams,account,creator,parent_ticket", - "assignees,collections,assigned_teams,account,parent_ticket", - "assignees,collections,assigned_teams,contact", - "assignees,collections,assigned_teams,contact,creator", - "assignees,collections,assigned_teams,contact,creator,parent_ticket", - "assignees,collections,assigned_teams,contact,parent_ticket", - "assignees,collections,assigned_teams,creator", - "assignees,collections,assigned_teams,creator,parent_ticket", - "assignees,collections,assigned_teams,parent_ticket", - "assignees,collections,contact", - "assignees,collections,contact,creator", - "assignees,collections,contact,creator,parent_ticket", - "assignees,collections,contact,parent_ticket", - "assignees,collections,creator", - "assignees,collections,creator,parent_ticket", - "assignees,collections,parent_ticket", - "assignees,contact", - "assignees,contact,creator", - "assignees,contact,creator,parent_ticket", - "assignees,contact,parent_ticket", - "assignees,creator", - "assignees,creator,parent_ticket", - "assignees,parent_ticket", - "attachments", - "attachments,account", - "attachments,account,contact", - "attachments,account,contact,creator", - "attachments,account,contact,creator,parent_ticket", - "attachments,account,contact,parent_ticket", - "attachments,account,creator", - "attachments,account,creator,parent_ticket", - "attachments,account,parent_ticket", - "attachments,assigned_teams", - "attachments,assigned_teams,account", - "attachments,assigned_teams,account,contact", - "attachments,assigned_teams,account,contact,creator", - "attachments,assigned_teams,account,contact,creator,parent_ticket", - "attachments,assigned_teams,account,contact,parent_ticket", - "attachments,assigned_teams,account,creator", - "attachments,assigned_teams,account,creator,parent_ticket", - "attachments,assigned_teams,account,parent_ticket", - "attachments,assigned_teams,contact", - "attachments,assigned_teams,contact,creator", - "attachments,assigned_teams,contact,creator,parent_ticket", - "attachments,assigned_teams,contact,parent_ticket", - "attachments,assigned_teams,creator", - "attachments,assigned_teams,creator,parent_ticket", - "attachments,assigned_teams,parent_ticket", - "attachments,assignees", - "attachments,assignees,account", - "attachments,assignees,account,contact", - "attachments,assignees,account,contact,creator", - "attachments,assignees,account,contact,creator,parent_ticket", - "attachments,assignees,account,contact,parent_ticket", - "attachments,assignees,account,creator", - "attachments,assignees,account,creator,parent_ticket", - "attachments,assignees,account,parent_ticket", - "attachments,assignees,assigned_teams", - "attachments,assignees,assigned_teams,account", - "attachments,assignees,assigned_teams,account,contact", - "attachments,assignees,assigned_teams,account,contact,creator", - "attachments,assignees,assigned_teams,account,contact,creator,parent_ticket", - "attachments,assignees,assigned_teams,account,contact,parent_ticket", - "attachments,assignees,assigned_teams,account,creator", - "attachments,assignees,assigned_teams,account,creator,parent_ticket", - "attachments,assignees,assigned_teams,account,parent_ticket", - "attachments,assignees,assigned_teams,contact", - "attachments,assignees,assigned_teams,contact,creator", - "attachments,assignees,assigned_teams,contact,creator,parent_ticket", - "attachments,assignees,assigned_teams,contact,parent_ticket", - "attachments,assignees,assigned_teams,creator", - "attachments,assignees,assigned_teams,creator,parent_ticket", - "attachments,assignees,assigned_teams,parent_ticket", - "attachments,assignees,collections", - "attachments,assignees,collections,account", - "attachments,assignees,collections,account,contact", - "attachments,assignees,collections,account,contact,creator", - "attachments,assignees,collections,account,contact,creator,parent_ticket", - "attachments,assignees,collections,account,contact,parent_ticket", - "attachments,assignees,collections,account,creator", - "attachments,assignees,collections,account,creator,parent_ticket", - "attachments,assignees,collections,account,parent_ticket", - "attachments,assignees,collections,assigned_teams", - "attachments,assignees,collections,assigned_teams,account", - "attachments,assignees,collections,assigned_teams,account,contact", - "attachments,assignees,collections,assigned_teams,account,contact,creator", - "attachments,assignees,collections,assigned_teams,account,contact,creator,parent_ticket", - "attachments,assignees,collections,assigned_teams,account,contact,parent_ticket", - "attachments,assignees,collections,assigned_teams,account,creator", - "attachments,assignees,collections,assigned_teams,account,creator,parent_ticket", - "attachments,assignees,collections,assigned_teams,account,parent_ticket", - "attachments,assignees,collections,assigned_teams,contact", - "attachments,assignees,collections,assigned_teams,contact,creator", - "attachments,assignees,collections,assigned_teams,contact,creator,parent_ticket", - "attachments,assignees,collections,assigned_teams,contact,parent_ticket", - "attachments,assignees,collections,assigned_teams,creator", - "attachments,assignees,collections,assigned_teams,creator,parent_ticket", - "attachments,assignees,collections,assigned_teams,parent_ticket", - "attachments,assignees,collections,contact", - "attachments,assignees,collections,contact,creator", - "attachments,assignees,collections,contact,creator,parent_ticket", - "attachments,assignees,collections,contact,parent_ticket", - "attachments,assignees,collections,creator", - "attachments,assignees,collections,creator,parent_ticket", - "attachments,assignees,collections,parent_ticket", - "attachments,assignees,contact", - "attachments,assignees,contact,creator", - "attachments,assignees,contact,creator,parent_ticket", - "attachments,assignees,contact,parent_ticket", - "attachments,assignees,creator", - "attachments,assignees,creator,parent_ticket", - "attachments,assignees,parent_ticket", - "attachments,collections", - "attachments,collections,account", - "attachments,collections,account,contact", - "attachments,collections,account,contact,creator", - "attachments,collections,account,contact,creator,parent_ticket", - "attachments,collections,account,contact,parent_ticket", - "attachments,collections,account,creator", - "attachments,collections,account,creator,parent_ticket", - "attachments,collections,account,parent_ticket", - "attachments,collections,assigned_teams", - "attachments,collections,assigned_teams,account", - "attachments,collections,assigned_teams,account,contact", - "attachments,collections,assigned_teams,account,contact,creator", - "attachments,collections,assigned_teams,account,contact,creator,parent_ticket", - "attachments,collections,assigned_teams,account,contact,parent_ticket", - "attachments,collections,assigned_teams,account,creator", - "attachments,collections,assigned_teams,account,creator,parent_ticket", - "attachments,collections,assigned_teams,account,parent_ticket", - "attachments,collections,assigned_teams,contact", - "attachments,collections,assigned_teams,contact,creator", - "attachments,collections,assigned_teams,contact,creator,parent_ticket", - "attachments,collections,assigned_teams,contact,parent_ticket", - "attachments,collections,assigned_teams,creator", - "attachments,collections,assigned_teams,creator,parent_ticket", - "attachments,collections,assigned_teams,parent_ticket", - "attachments,collections,contact", - "attachments,collections,contact,creator", - "attachments,collections,contact,creator,parent_ticket", - "attachments,collections,contact,parent_ticket", - "attachments,collections,creator", - "attachments,collections,creator,parent_ticket", - "attachments,collections,parent_ticket", - "attachments,contact", - "attachments,contact,creator", - "attachments,contact,creator,parent_ticket", - "attachments,contact,parent_ticket", - "attachments,creator", - "attachments,creator,parent_ticket", - "attachments,parent_ticket", - "collections", - "collections,account", - "collections,account,contact", - "collections,account,contact,creator", - "collections,account,contact,creator,parent_ticket", - "collections,account,contact,parent_ticket", - "collections,account,creator", - "collections,account,creator,parent_ticket", - "collections,account,parent_ticket", - "collections,assigned_teams", - "collections,assigned_teams,account", - "collections,assigned_teams,account,contact", - "collections,assigned_teams,account,contact,creator", - "collections,assigned_teams,account,contact,creator,parent_ticket", - "collections,assigned_teams,account,contact,parent_ticket", - "collections,assigned_teams,account,creator", - "collections,assigned_teams,account,creator,parent_ticket", - "collections,assigned_teams,account,parent_ticket", - "collections,assigned_teams,contact", - "collections,assigned_teams,contact,creator", - "collections,assigned_teams,contact,creator,parent_ticket", - "collections,assigned_teams,contact,parent_ticket", - "collections,assigned_teams,creator", - "collections,assigned_teams,creator,parent_ticket", - "collections,assigned_teams,parent_ticket", - "collections,contact", - "collections,contact,creator", - "collections,contact,creator,parent_ticket", - "collections,contact,parent_ticket", - "collections,creator", - "collections,creator,parent_ticket", - "collections,parent_ticket", - "contact", - "contact,creator", - "contact,creator,parent_ticket", - "contact,parent_ticket", - "creator", - "creator,parent_ticket", - "parent_ticket", -]); - -export declare namespace TicketsListRequestExpand { - export type Raw = - | "account" - | "account,contact" - | "account,contact,creator" - | "account,contact,creator,parent_ticket" - | "account,contact,parent_ticket" - | "account,creator" - | "account,creator,parent_ticket" - | "account,parent_ticket" - | "assigned_teams" - | "assigned_teams,account" - | "assigned_teams,account,contact" - | "assigned_teams,account,contact,creator" - | "assigned_teams,account,contact,creator,parent_ticket" - | "assigned_teams,account,contact,parent_ticket" - | "assigned_teams,account,creator" - | "assigned_teams,account,creator,parent_ticket" - | "assigned_teams,account,parent_ticket" - | "assigned_teams,contact" - | "assigned_teams,contact,creator" - | "assigned_teams,contact,creator,parent_ticket" - | "assigned_teams,contact,parent_ticket" - | "assigned_teams,creator" - | "assigned_teams,creator,parent_ticket" - | "assigned_teams,parent_ticket" - | "assignees" - | "assignees,account" - | "assignees,account,contact" - | "assignees,account,contact,creator" - | "assignees,account,contact,creator,parent_ticket" - | "assignees,account,contact,parent_ticket" - | "assignees,account,creator" - | "assignees,account,creator,parent_ticket" - | "assignees,account,parent_ticket" - | "assignees,assigned_teams" - | "assignees,assigned_teams,account" - | "assignees,assigned_teams,account,contact" - | "assignees,assigned_teams,account,contact,creator" - | "assignees,assigned_teams,account,contact,creator,parent_ticket" - | "assignees,assigned_teams,account,contact,parent_ticket" - | "assignees,assigned_teams,account,creator" - | "assignees,assigned_teams,account,creator,parent_ticket" - | "assignees,assigned_teams,account,parent_ticket" - | "assignees,assigned_teams,contact" - | "assignees,assigned_teams,contact,creator" - | "assignees,assigned_teams,contact,creator,parent_ticket" - | "assignees,assigned_teams,contact,parent_ticket" - | "assignees,assigned_teams,creator" - | "assignees,assigned_teams,creator,parent_ticket" - | "assignees,assigned_teams,parent_ticket" - | "assignees,collections" - | "assignees,collections,account" - | "assignees,collections,account,contact" - | "assignees,collections,account,contact,creator" - | "assignees,collections,account,contact,creator,parent_ticket" - | "assignees,collections,account,contact,parent_ticket" - | "assignees,collections,account,creator" - | "assignees,collections,account,creator,parent_ticket" - | "assignees,collections,account,parent_ticket" - | "assignees,collections,assigned_teams" - | "assignees,collections,assigned_teams,account" - | "assignees,collections,assigned_teams,account,contact" - | "assignees,collections,assigned_teams,account,contact,creator" - | "assignees,collections,assigned_teams,account,contact,creator,parent_ticket" - | "assignees,collections,assigned_teams,account,contact,parent_ticket" - | "assignees,collections,assigned_teams,account,creator" - | "assignees,collections,assigned_teams,account,creator,parent_ticket" - | "assignees,collections,assigned_teams,account,parent_ticket" - | "assignees,collections,assigned_teams,contact" - | "assignees,collections,assigned_teams,contact,creator" - | "assignees,collections,assigned_teams,contact,creator,parent_ticket" - | "assignees,collections,assigned_teams,contact,parent_ticket" - | "assignees,collections,assigned_teams,creator" - | "assignees,collections,assigned_teams,creator,parent_ticket" - | "assignees,collections,assigned_teams,parent_ticket" - | "assignees,collections,contact" - | "assignees,collections,contact,creator" - | "assignees,collections,contact,creator,parent_ticket" - | "assignees,collections,contact,parent_ticket" - | "assignees,collections,creator" - | "assignees,collections,creator,parent_ticket" - | "assignees,collections,parent_ticket" - | "assignees,contact" - | "assignees,contact,creator" - | "assignees,contact,creator,parent_ticket" - | "assignees,contact,parent_ticket" - | "assignees,creator" - | "assignees,creator,parent_ticket" - | "assignees,parent_ticket" - | "attachments" - | "attachments,account" - | "attachments,account,contact" - | "attachments,account,contact,creator" - | "attachments,account,contact,creator,parent_ticket" - | "attachments,account,contact,parent_ticket" - | "attachments,account,creator" - | "attachments,account,creator,parent_ticket" - | "attachments,account,parent_ticket" - | "attachments,assigned_teams" - | "attachments,assigned_teams,account" - | "attachments,assigned_teams,account,contact" - | "attachments,assigned_teams,account,contact,creator" - | "attachments,assigned_teams,account,contact,creator,parent_ticket" - | "attachments,assigned_teams,account,contact,parent_ticket" - | "attachments,assigned_teams,account,creator" - | "attachments,assigned_teams,account,creator,parent_ticket" - | "attachments,assigned_teams,account,parent_ticket" - | "attachments,assigned_teams,contact" - | "attachments,assigned_teams,contact,creator" - | "attachments,assigned_teams,contact,creator,parent_ticket" - | "attachments,assigned_teams,contact,parent_ticket" - | "attachments,assigned_teams,creator" - | "attachments,assigned_teams,creator,parent_ticket" - | "attachments,assigned_teams,parent_ticket" - | "attachments,assignees" - | "attachments,assignees,account" - | "attachments,assignees,account,contact" - | "attachments,assignees,account,contact,creator" - | "attachments,assignees,account,contact,creator,parent_ticket" - | "attachments,assignees,account,contact,parent_ticket" - | "attachments,assignees,account,creator" - | "attachments,assignees,account,creator,parent_ticket" - | "attachments,assignees,account,parent_ticket" - | "attachments,assignees,assigned_teams" - | "attachments,assignees,assigned_teams,account" - | "attachments,assignees,assigned_teams,account,contact" - | "attachments,assignees,assigned_teams,account,contact,creator" - | "attachments,assignees,assigned_teams,account,contact,creator,parent_ticket" - | "attachments,assignees,assigned_teams,account,contact,parent_ticket" - | "attachments,assignees,assigned_teams,account,creator" - | "attachments,assignees,assigned_teams,account,creator,parent_ticket" - | "attachments,assignees,assigned_teams,account,parent_ticket" - | "attachments,assignees,assigned_teams,contact" - | "attachments,assignees,assigned_teams,contact,creator" - | "attachments,assignees,assigned_teams,contact,creator,parent_ticket" - | "attachments,assignees,assigned_teams,contact,parent_ticket" - | "attachments,assignees,assigned_teams,creator" - | "attachments,assignees,assigned_teams,creator,parent_ticket" - | "attachments,assignees,assigned_teams,parent_ticket" - | "attachments,assignees,collections" - | "attachments,assignees,collections,account" - | "attachments,assignees,collections,account,contact" - | "attachments,assignees,collections,account,contact,creator" - | "attachments,assignees,collections,account,contact,creator,parent_ticket" - | "attachments,assignees,collections,account,contact,parent_ticket" - | "attachments,assignees,collections,account,creator" - | "attachments,assignees,collections,account,creator,parent_ticket" - | "attachments,assignees,collections,account,parent_ticket" - | "attachments,assignees,collections,assigned_teams" - | "attachments,assignees,collections,assigned_teams,account" - | "attachments,assignees,collections,assigned_teams,account,contact" - | "attachments,assignees,collections,assigned_teams,account,contact,creator" - | "attachments,assignees,collections,assigned_teams,account,contact,creator,parent_ticket" - | "attachments,assignees,collections,assigned_teams,account,contact,parent_ticket" - | "attachments,assignees,collections,assigned_teams,account,creator" - | "attachments,assignees,collections,assigned_teams,account,creator,parent_ticket" - | "attachments,assignees,collections,assigned_teams,account,parent_ticket" - | "attachments,assignees,collections,assigned_teams,contact" - | "attachments,assignees,collections,assigned_teams,contact,creator" - | "attachments,assignees,collections,assigned_teams,contact,creator,parent_ticket" - | "attachments,assignees,collections,assigned_teams,contact,parent_ticket" - | "attachments,assignees,collections,assigned_teams,creator" - | "attachments,assignees,collections,assigned_teams,creator,parent_ticket" - | "attachments,assignees,collections,assigned_teams,parent_ticket" - | "attachments,assignees,collections,contact" - | "attachments,assignees,collections,contact,creator" - | "attachments,assignees,collections,contact,creator,parent_ticket" - | "attachments,assignees,collections,contact,parent_ticket" - | "attachments,assignees,collections,creator" - | "attachments,assignees,collections,creator,parent_ticket" - | "attachments,assignees,collections,parent_ticket" - | "attachments,assignees,contact" - | "attachments,assignees,contact,creator" - | "attachments,assignees,contact,creator,parent_ticket" - | "attachments,assignees,contact,parent_ticket" - | "attachments,assignees,creator" - | "attachments,assignees,creator,parent_ticket" - | "attachments,assignees,parent_ticket" - | "attachments,collections" - | "attachments,collections,account" - | "attachments,collections,account,contact" - | "attachments,collections,account,contact,creator" - | "attachments,collections,account,contact,creator,parent_ticket" - | "attachments,collections,account,contact,parent_ticket" - | "attachments,collections,account,creator" - | "attachments,collections,account,creator,parent_ticket" - | "attachments,collections,account,parent_ticket" - | "attachments,collections,assigned_teams" - | "attachments,collections,assigned_teams,account" - | "attachments,collections,assigned_teams,account,contact" - | "attachments,collections,assigned_teams,account,contact,creator" - | "attachments,collections,assigned_teams,account,contact,creator,parent_ticket" - | "attachments,collections,assigned_teams,account,contact,parent_ticket" - | "attachments,collections,assigned_teams,account,creator" - | "attachments,collections,assigned_teams,account,creator,parent_ticket" - | "attachments,collections,assigned_teams,account,parent_ticket" - | "attachments,collections,assigned_teams,contact" - | "attachments,collections,assigned_teams,contact,creator" - | "attachments,collections,assigned_teams,contact,creator,parent_ticket" - | "attachments,collections,assigned_teams,contact,parent_ticket" - | "attachments,collections,assigned_teams,creator" - | "attachments,collections,assigned_teams,creator,parent_ticket" - | "attachments,collections,assigned_teams,parent_ticket" - | "attachments,collections,contact" - | "attachments,collections,contact,creator" - | "attachments,collections,contact,creator,parent_ticket" - | "attachments,collections,contact,parent_ticket" - | "attachments,collections,creator" - | "attachments,collections,creator,parent_ticket" - | "attachments,collections,parent_ticket" - | "attachments,contact" - | "attachments,contact,creator" - | "attachments,contact,creator,parent_ticket" - | "attachments,contact,parent_ticket" - | "attachments,creator" - | "attachments,creator,parent_ticket" - | "attachments,parent_ticket" - | "collections" - | "collections,account" - | "collections,account,contact" - | "collections,account,contact,creator" - | "collections,account,contact,creator,parent_ticket" - | "collections,account,contact,parent_ticket" - | "collections,account,creator" - | "collections,account,creator,parent_ticket" - | "collections,account,parent_ticket" - | "collections,assigned_teams" - | "collections,assigned_teams,account" - | "collections,assigned_teams,account,contact" - | "collections,assigned_teams,account,contact,creator" - | "collections,assigned_teams,account,contact,creator,parent_ticket" - | "collections,assigned_teams,account,contact,parent_ticket" - | "collections,assigned_teams,account,creator" - | "collections,assigned_teams,account,creator,parent_ticket" - | "collections,assigned_teams,account,parent_ticket" - | "collections,assigned_teams,contact" - | "collections,assigned_teams,contact,creator" - | "collections,assigned_teams,contact,creator,parent_ticket" - | "collections,assigned_teams,contact,parent_ticket" - | "collections,assigned_teams,creator" - | "collections,assigned_teams,creator,parent_ticket" - | "collections,assigned_teams,parent_ticket" - | "collections,contact" - | "collections,contact,creator" - | "collections,contact,creator,parent_ticket" - | "collections,contact,parent_ticket" - | "collections,creator" - | "collections,creator,parent_ticket" - | "collections,parent_ticket" - | "contact" - | "contact,creator" - | "contact,creator,parent_ticket" - | "contact,parent_ticket" - | "creator" - | "creator,parent_ticket" - | "parent_ticket"; -} diff --git a/src/serialization/resources/ticketing/resources/tickets/types/TicketsListRequestExpandItem.ts b/src/serialization/resources/ticketing/resources/tickets/types/TicketsListRequestExpandItem.ts new file mode 100644 index 000000000..13e2237ae --- /dev/null +++ b/src/serialization/resources/ticketing/resources/tickets/types/TicketsListRequestExpandItem.ts @@ -0,0 +1,33 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const TicketsListRequestExpandItem: core.serialization.Schema< + serializers.ticketing.TicketsListRequestExpandItem.Raw, + Merge.ticketing.TicketsListRequestExpandItem +> = core.serialization.enum_([ + "account", + "assigned_teams", + "assignees", + "attachments", + "collections", + "contact", + "creator", + "parent_ticket", + "permissions", +]); + +export declare namespace TicketsListRequestExpandItem { + export type Raw = + | "account" + | "assigned_teams" + | "assignees" + | "attachments" + | "collections" + | "contact" + | "creator" + | "parent_ticket" + | "permissions"; +} diff --git a/src/serialization/resources/ticketing/resources/tickets/types/TicketsLiveSearchRetrieveRequestRemoteFields.ts b/src/serialization/resources/ticketing/resources/tickets/types/TicketsLiveSearchRetrieveRequestRemoteFields.ts new file mode 100644 index 000000000..216fd7cf8 --- /dev/null +++ b/src/serialization/resources/ticketing/resources/tickets/types/TicketsLiveSearchRetrieveRequestRemoteFields.ts @@ -0,0 +1,29 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const TicketsLiveSearchRetrieveRequestRemoteFields: core.serialization.Schema< + serializers.ticketing.TicketsLiveSearchRetrieveRequestRemoteFields.Raw, + Merge.ticketing.TicketsLiveSearchRetrieveRequestRemoteFields +> = core.serialization.enum_([ + "priority", + "priority,status", + "priority,status,ticket_type", + "priority,ticket_type", + "status", + "status,ticket_type", + "ticket_type", +]); + +export declare namespace TicketsLiveSearchRetrieveRequestRemoteFields { + export type Raw = + | "priority" + | "priority,status" + | "priority,status,ticket_type" + | "priority,ticket_type" + | "status" + | "status,ticket_type" + | "ticket_type"; +} diff --git a/src/serialization/resources/ticketing/resources/tickets/types/TicketsLiveSearchRetrieveRequestShowEnumOrigins.ts b/src/serialization/resources/ticketing/resources/tickets/types/TicketsLiveSearchRetrieveRequestShowEnumOrigins.ts new file mode 100644 index 000000000..c3ff170b8 --- /dev/null +++ b/src/serialization/resources/ticketing/resources/tickets/types/TicketsLiveSearchRetrieveRequestShowEnumOrigins.ts @@ -0,0 +1,29 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const TicketsLiveSearchRetrieveRequestShowEnumOrigins: core.serialization.Schema< + serializers.ticketing.TicketsLiveSearchRetrieveRequestShowEnumOrigins.Raw, + Merge.ticketing.TicketsLiveSearchRetrieveRequestShowEnumOrigins +> = core.serialization.enum_([ + "priority", + "priority,status", + "priority,status,ticket_type", + "priority,ticket_type", + "status", + "status,ticket_type", + "ticket_type", +]); + +export declare namespace TicketsLiveSearchRetrieveRequestShowEnumOrigins { + export type Raw = + | "priority" + | "priority,status" + | "priority,status,ticket_type" + | "priority,ticket_type" + | "status" + | "status,ticket_type" + | "ticket_type"; +} diff --git a/src/serialization/resources/ticketing/resources/tickets/types/TicketsRetrieveRequestExpand.ts b/src/serialization/resources/ticketing/resources/tickets/types/TicketsRetrieveRequestExpand.ts deleted file mode 100644 index 6c3842e9f..000000000 --- a/src/serialization/resources/ticketing/resources/tickets/types/TicketsRetrieveRequestExpand.ts +++ /dev/null @@ -1,525 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const TicketsRetrieveRequestExpand: core.serialization.Schema< - serializers.ticketing.TicketsRetrieveRequestExpand.Raw, - Merge.ticketing.TicketsRetrieveRequestExpand -> = core.serialization.enum_([ - "account", - "account,contact", - "account,contact,creator", - "account,contact,creator,parent_ticket", - "account,contact,parent_ticket", - "account,creator", - "account,creator,parent_ticket", - "account,parent_ticket", - "assigned_teams", - "assigned_teams,account", - "assigned_teams,account,contact", - "assigned_teams,account,contact,creator", - "assigned_teams,account,contact,creator,parent_ticket", - "assigned_teams,account,contact,parent_ticket", - "assigned_teams,account,creator", - "assigned_teams,account,creator,parent_ticket", - "assigned_teams,account,parent_ticket", - "assigned_teams,contact", - "assigned_teams,contact,creator", - "assigned_teams,contact,creator,parent_ticket", - "assigned_teams,contact,parent_ticket", - "assigned_teams,creator", - "assigned_teams,creator,parent_ticket", - "assigned_teams,parent_ticket", - "assignees", - "assignees,account", - "assignees,account,contact", - "assignees,account,contact,creator", - "assignees,account,contact,creator,parent_ticket", - "assignees,account,contact,parent_ticket", - "assignees,account,creator", - "assignees,account,creator,parent_ticket", - "assignees,account,parent_ticket", - "assignees,assigned_teams", - "assignees,assigned_teams,account", - "assignees,assigned_teams,account,contact", - "assignees,assigned_teams,account,contact,creator", - "assignees,assigned_teams,account,contact,creator,parent_ticket", - "assignees,assigned_teams,account,contact,parent_ticket", - "assignees,assigned_teams,account,creator", - "assignees,assigned_teams,account,creator,parent_ticket", - "assignees,assigned_teams,account,parent_ticket", - "assignees,assigned_teams,contact", - "assignees,assigned_teams,contact,creator", - "assignees,assigned_teams,contact,creator,parent_ticket", - "assignees,assigned_teams,contact,parent_ticket", - "assignees,assigned_teams,creator", - "assignees,assigned_teams,creator,parent_ticket", - "assignees,assigned_teams,parent_ticket", - "assignees,collections", - "assignees,collections,account", - "assignees,collections,account,contact", - "assignees,collections,account,contact,creator", - "assignees,collections,account,contact,creator,parent_ticket", - "assignees,collections,account,contact,parent_ticket", - "assignees,collections,account,creator", - "assignees,collections,account,creator,parent_ticket", - "assignees,collections,account,parent_ticket", - "assignees,collections,assigned_teams", - "assignees,collections,assigned_teams,account", - "assignees,collections,assigned_teams,account,contact", - "assignees,collections,assigned_teams,account,contact,creator", - "assignees,collections,assigned_teams,account,contact,creator,parent_ticket", - "assignees,collections,assigned_teams,account,contact,parent_ticket", - "assignees,collections,assigned_teams,account,creator", - "assignees,collections,assigned_teams,account,creator,parent_ticket", - "assignees,collections,assigned_teams,account,parent_ticket", - "assignees,collections,assigned_teams,contact", - "assignees,collections,assigned_teams,contact,creator", - "assignees,collections,assigned_teams,contact,creator,parent_ticket", - "assignees,collections,assigned_teams,contact,parent_ticket", - "assignees,collections,assigned_teams,creator", - "assignees,collections,assigned_teams,creator,parent_ticket", - "assignees,collections,assigned_teams,parent_ticket", - "assignees,collections,contact", - "assignees,collections,contact,creator", - "assignees,collections,contact,creator,parent_ticket", - "assignees,collections,contact,parent_ticket", - "assignees,collections,creator", - "assignees,collections,creator,parent_ticket", - "assignees,collections,parent_ticket", - "assignees,contact", - "assignees,contact,creator", - "assignees,contact,creator,parent_ticket", - "assignees,contact,parent_ticket", - "assignees,creator", - "assignees,creator,parent_ticket", - "assignees,parent_ticket", - "attachments", - "attachments,account", - "attachments,account,contact", - "attachments,account,contact,creator", - "attachments,account,contact,creator,parent_ticket", - "attachments,account,contact,parent_ticket", - "attachments,account,creator", - "attachments,account,creator,parent_ticket", - "attachments,account,parent_ticket", - "attachments,assigned_teams", - "attachments,assigned_teams,account", - "attachments,assigned_teams,account,contact", - "attachments,assigned_teams,account,contact,creator", - "attachments,assigned_teams,account,contact,creator,parent_ticket", - "attachments,assigned_teams,account,contact,parent_ticket", - "attachments,assigned_teams,account,creator", - "attachments,assigned_teams,account,creator,parent_ticket", - "attachments,assigned_teams,account,parent_ticket", - "attachments,assigned_teams,contact", - "attachments,assigned_teams,contact,creator", - "attachments,assigned_teams,contact,creator,parent_ticket", - "attachments,assigned_teams,contact,parent_ticket", - "attachments,assigned_teams,creator", - "attachments,assigned_teams,creator,parent_ticket", - "attachments,assigned_teams,parent_ticket", - "attachments,assignees", - "attachments,assignees,account", - "attachments,assignees,account,contact", - "attachments,assignees,account,contact,creator", - "attachments,assignees,account,contact,creator,parent_ticket", - "attachments,assignees,account,contact,parent_ticket", - "attachments,assignees,account,creator", - "attachments,assignees,account,creator,parent_ticket", - "attachments,assignees,account,parent_ticket", - "attachments,assignees,assigned_teams", - "attachments,assignees,assigned_teams,account", - "attachments,assignees,assigned_teams,account,contact", - "attachments,assignees,assigned_teams,account,contact,creator", - "attachments,assignees,assigned_teams,account,contact,creator,parent_ticket", - "attachments,assignees,assigned_teams,account,contact,parent_ticket", - "attachments,assignees,assigned_teams,account,creator", - "attachments,assignees,assigned_teams,account,creator,parent_ticket", - "attachments,assignees,assigned_teams,account,parent_ticket", - "attachments,assignees,assigned_teams,contact", - "attachments,assignees,assigned_teams,contact,creator", - "attachments,assignees,assigned_teams,contact,creator,parent_ticket", - "attachments,assignees,assigned_teams,contact,parent_ticket", - "attachments,assignees,assigned_teams,creator", - "attachments,assignees,assigned_teams,creator,parent_ticket", - "attachments,assignees,assigned_teams,parent_ticket", - "attachments,assignees,collections", - "attachments,assignees,collections,account", - "attachments,assignees,collections,account,contact", - "attachments,assignees,collections,account,contact,creator", - "attachments,assignees,collections,account,contact,creator,parent_ticket", - "attachments,assignees,collections,account,contact,parent_ticket", - "attachments,assignees,collections,account,creator", - "attachments,assignees,collections,account,creator,parent_ticket", - "attachments,assignees,collections,account,parent_ticket", - "attachments,assignees,collections,assigned_teams", - "attachments,assignees,collections,assigned_teams,account", - "attachments,assignees,collections,assigned_teams,account,contact", - "attachments,assignees,collections,assigned_teams,account,contact,creator", - "attachments,assignees,collections,assigned_teams,account,contact,creator,parent_ticket", - "attachments,assignees,collections,assigned_teams,account,contact,parent_ticket", - "attachments,assignees,collections,assigned_teams,account,creator", - "attachments,assignees,collections,assigned_teams,account,creator,parent_ticket", - "attachments,assignees,collections,assigned_teams,account,parent_ticket", - "attachments,assignees,collections,assigned_teams,contact", - "attachments,assignees,collections,assigned_teams,contact,creator", - "attachments,assignees,collections,assigned_teams,contact,creator,parent_ticket", - "attachments,assignees,collections,assigned_teams,contact,parent_ticket", - "attachments,assignees,collections,assigned_teams,creator", - "attachments,assignees,collections,assigned_teams,creator,parent_ticket", - "attachments,assignees,collections,assigned_teams,parent_ticket", - "attachments,assignees,collections,contact", - "attachments,assignees,collections,contact,creator", - "attachments,assignees,collections,contact,creator,parent_ticket", - "attachments,assignees,collections,contact,parent_ticket", - "attachments,assignees,collections,creator", - "attachments,assignees,collections,creator,parent_ticket", - "attachments,assignees,collections,parent_ticket", - "attachments,assignees,contact", - "attachments,assignees,contact,creator", - "attachments,assignees,contact,creator,parent_ticket", - "attachments,assignees,contact,parent_ticket", - "attachments,assignees,creator", - "attachments,assignees,creator,parent_ticket", - "attachments,assignees,parent_ticket", - "attachments,collections", - "attachments,collections,account", - "attachments,collections,account,contact", - "attachments,collections,account,contact,creator", - "attachments,collections,account,contact,creator,parent_ticket", - "attachments,collections,account,contact,parent_ticket", - "attachments,collections,account,creator", - "attachments,collections,account,creator,parent_ticket", - "attachments,collections,account,parent_ticket", - "attachments,collections,assigned_teams", - "attachments,collections,assigned_teams,account", - "attachments,collections,assigned_teams,account,contact", - "attachments,collections,assigned_teams,account,contact,creator", - "attachments,collections,assigned_teams,account,contact,creator,parent_ticket", - "attachments,collections,assigned_teams,account,contact,parent_ticket", - "attachments,collections,assigned_teams,account,creator", - "attachments,collections,assigned_teams,account,creator,parent_ticket", - "attachments,collections,assigned_teams,account,parent_ticket", - "attachments,collections,assigned_teams,contact", - "attachments,collections,assigned_teams,contact,creator", - "attachments,collections,assigned_teams,contact,creator,parent_ticket", - "attachments,collections,assigned_teams,contact,parent_ticket", - "attachments,collections,assigned_teams,creator", - "attachments,collections,assigned_teams,creator,parent_ticket", - "attachments,collections,assigned_teams,parent_ticket", - "attachments,collections,contact", - "attachments,collections,contact,creator", - "attachments,collections,contact,creator,parent_ticket", - "attachments,collections,contact,parent_ticket", - "attachments,collections,creator", - "attachments,collections,creator,parent_ticket", - "attachments,collections,parent_ticket", - "attachments,contact", - "attachments,contact,creator", - "attachments,contact,creator,parent_ticket", - "attachments,contact,parent_ticket", - "attachments,creator", - "attachments,creator,parent_ticket", - "attachments,parent_ticket", - "collections", - "collections,account", - "collections,account,contact", - "collections,account,contact,creator", - "collections,account,contact,creator,parent_ticket", - "collections,account,contact,parent_ticket", - "collections,account,creator", - "collections,account,creator,parent_ticket", - "collections,account,parent_ticket", - "collections,assigned_teams", - "collections,assigned_teams,account", - "collections,assigned_teams,account,contact", - "collections,assigned_teams,account,contact,creator", - "collections,assigned_teams,account,contact,creator,parent_ticket", - "collections,assigned_teams,account,contact,parent_ticket", - "collections,assigned_teams,account,creator", - "collections,assigned_teams,account,creator,parent_ticket", - "collections,assigned_teams,account,parent_ticket", - "collections,assigned_teams,contact", - "collections,assigned_teams,contact,creator", - "collections,assigned_teams,contact,creator,parent_ticket", - "collections,assigned_teams,contact,parent_ticket", - "collections,assigned_teams,creator", - "collections,assigned_teams,creator,parent_ticket", - "collections,assigned_teams,parent_ticket", - "collections,contact", - "collections,contact,creator", - "collections,contact,creator,parent_ticket", - "collections,contact,parent_ticket", - "collections,creator", - "collections,creator,parent_ticket", - "collections,parent_ticket", - "contact", - "contact,creator", - "contact,creator,parent_ticket", - "contact,parent_ticket", - "creator", - "creator,parent_ticket", - "parent_ticket", -]); - -export declare namespace TicketsRetrieveRequestExpand { - export type Raw = - | "account" - | "account,contact" - | "account,contact,creator" - | "account,contact,creator,parent_ticket" - | "account,contact,parent_ticket" - | "account,creator" - | "account,creator,parent_ticket" - | "account,parent_ticket" - | "assigned_teams" - | "assigned_teams,account" - | "assigned_teams,account,contact" - | "assigned_teams,account,contact,creator" - | "assigned_teams,account,contact,creator,parent_ticket" - | "assigned_teams,account,contact,parent_ticket" - | "assigned_teams,account,creator" - | "assigned_teams,account,creator,parent_ticket" - | "assigned_teams,account,parent_ticket" - | "assigned_teams,contact" - | "assigned_teams,contact,creator" - | "assigned_teams,contact,creator,parent_ticket" - | "assigned_teams,contact,parent_ticket" - | "assigned_teams,creator" - | "assigned_teams,creator,parent_ticket" - | "assigned_teams,parent_ticket" - | "assignees" - | "assignees,account" - | "assignees,account,contact" - | "assignees,account,contact,creator" - | "assignees,account,contact,creator,parent_ticket" - | "assignees,account,contact,parent_ticket" - | "assignees,account,creator" - | "assignees,account,creator,parent_ticket" - | "assignees,account,parent_ticket" - | "assignees,assigned_teams" - | "assignees,assigned_teams,account" - | "assignees,assigned_teams,account,contact" - | "assignees,assigned_teams,account,contact,creator" - | "assignees,assigned_teams,account,contact,creator,parent_ticket" - | "assignees,assigned_teams,account,contact,parent_ticket" - | "assignees,assigned_teams,account,creator" - | "assignees,assigned_teams,account,creator,parent_ticket" - | "assignees,assigned_teams,account,parent_ticket" - | "assignees,assigned_teams,contact" - | "assignees,assigned_teams,contact,creator" - | "assignees,assigned_teams,contact,creator,parent_ticket" - | "assignees,assigned_teams,contact,parent_ticket" - | "assignees,assigned_teams,creator" - | "assignees,assigned_teams,creator,parent_ticket" - | "assignees,assigned_teams,parent_ticket" - | "assignees,collections" - | "assignees,collections,account" - | "assignees,collections,account,contact" - | "assignees,collections,account,contact,creator" - | "assignees,collections,account,contact,creator,parent_ticket" - | "assignees,collections,account,contact,parent_ticket" - | "assignees,collections,account,creator" - | "assignees,collections,account,creator,parent_ticket" - | "assignees,collections,account,parent_ticket" - | "assignees,collections,assigned_teams" - | "assignees,collections,assigned_teams,account" - | "assignees,collections,assigned_teams,account,contact" - | "assignees,collections,assigned_teams,account,contact,creator" - | "assignees,collections,assigned_teams,account,contact,creator,parent_ticket" - | "assignees,collections,assigned_teams,account,contact,parent_ticket" - | "assignees,collections,assigned_teams,account,creator" - | "assignees,collections,assigned_teams,account,creator,parent_ticket" - | "assignees,collections,assigned_teams,account,parent_ticket" - | "assignees,collections,assigned_teams,contact" - | "assignees,collections,assigned_teams,contact,creator" - | "assignees,collections,assigned_teams,contact,creator,parent_ticket" - | "assignees,collections,assigned_teams,contact,parent_ticket" - | "assignees,collections,assigned_teams,creator" - | "assignees,collections,assigned_teams,creator,parent_ticket" - | "assignees,collections,assigned_teams,parent_ticket" - | "assignees,collections,contact" - | "assignees,collections,contact,creator" - | "assignees,collections,contact,creator,parent_ticket" - | "assignees,collections,contact,parent_ticket" - | "assignees,collections,creator" - | "assignees,collections,creator,parent_ticket" - | "assignees,collections,parent_ticket" - | "assignees,contact" - | "assignees,contact,creator" - | "assignees,contact,creator,parent_ticket" - | "assignees,contact,parent_ticket" - | "assignees,creator" - | "assignees,creator,parent_ticket" - | "assignees,parent_ticket" - | "attachments" - | "attachments,account" - | "attachments,account,contact" - | "attachments,account,contact,creator" - | "attachments,account,contact,creator,parent_ticket" - | "attachments,account,contact,parent_ticket" - | "attachments,account,creator" - | "attachments,account,creator,parent_ticket" - | "attachments,account,parent_ticket" - | "attachments,assigned_teams" - | "attachments,assigned_teams,account" - | "attachments,assigned_teams,account,contact" - | "attachments,assigned_teams,account,contact,creator" - | "attachments,assigned_teams,account,contact,creator,parent_ticket" - | "attachments,assigned_teams,account,contact,parent_ticket" - | "attachments,assigned_teams,account,creator" - | "attachments,assigned_teams,account,creator,parent_ticket" - | "attachments,assigned_teams,account,parent_ticket" - | "attachments,assigned_teams,contact" - | "attachments,assigned_teams,contact,creator" - | "attachments,assigned_teams,contact,creator,parent_ticket" - | "attachments,assigned_teams,contact,parent_ticket" - | "attachments,assigned_teams,creator" - | "attachments,assigned_teams,creator,parent_ticket" - | "attachments,assigned_teams,parent_ticket" - | "attachments,assignees" - | "attachments,assignees,account" - | "attachments,assignees,account,contact" - | "attachments,assignees,account,contact,creator" - | "attachments,assignees,account,contact,creator,parent_ticket" - | "attachments,assignees,account,contact,parent_ticket" - | "attachments,assignees,account,creator" - | "attachments,assignees,account,creator,parent_ticket" - | "attachments,assignees,account,parent_ticket" - | "attachments,assignees,assigned_teams" - | "attachments,assignees,assigned_teams,account" - | "attachments,assignees,assigned_teams,account,contact" - | "attachments,assignees,assigned_teams,account,contact,creator" - | "attachments,assignees,assigned_teams,account,contact,creator,parent_ticket" - | "attachments,assignees,assigned_teams,account,contact,parent_ticket" - | "attachments,assignees,assigned_teams,account,creator" - | "attachments,assignees,assigned_teams,account,creator,parent_ticket" - | "attachments,assignees,assigned_teams,account,parent_ticket" - | "attachments,assignees,assigned_teams,contact" - | "attachments,assignees,assigned_teams,contact,creator" - | "attachments,assignees,assigned_teams,contact,creator,parent_ticket" - | "attachments,assignees,assigned_teams,contact,parent_ticket" - | "attachments,assignees,assigned_teams,creator" - | "attachments,assignees,assigned_teams,creator,parent_ticket" - | "attachments,assignees,assigned_teams,parent_ticket" - | "attachments,assignees,collections" - | "attachments,assignees,collections,account" - | "attachments,assignees,collections,account,contact" - | "attachments,assignees,collections,account,contact,creator" - | "attachments,assignees,collections,account,contact,creator,parent_ticket" - | "attachments,assignees,collections,account,contact,parent_ticket" - | "attachments,assignees,collections,account,creator" - | "attachments,assignees,collections,account,creator,parent_ticket" - | "attachments,assignees,collections,account,parent_ticket" - | "attachments,assignees,collections,assigned_teams" - | "attachments,assignees,collections,assigned_teams,account" - | "attachments,assignees,collections,assigned_teams,account,contact" - | "attachments,assignees,collections,assigned_teams,account,contact,creator" - | "attachments,assignees,collections,assigned_teams,account,contact,creator,parent_ticket" - | "attachments,assignees,collections,assigned_teams,account,contact,parent_ticket" - | "attachments,assignees,collections,assigned_teams,account,creator" - | "attachments,assignees,collections,assigned_teams,account,creator,parent_ticket" - | "attachments,assignees,collections,assigned_teams,account,parent_ticket" - | "attachments,assignees,collections,assigned_teams,contact" - | "attachments,assignees,collections,assigned_teams,contact,creator" - | "attachments,assignees,collections,assigned_teams,contact,creator,parent_ticket" - | "attachments,assignees,collections,assigned_teams,contact,parent_ticket" - | "attachments,assignees,collections,assigned_teams,creator" - | "attachments,assignees,collections,assigned_teams,creator,parent_ticket" - | "attachments,assignees,collections,assigned_teams,parent_ticket" - | "attachments,assignees,collections,contact" - | "attachments,assignees,collections,contact,creator" - | "attachments,assignees,collections,contact,creator,parent_ticket" - | "attachments,assignees,collections,contact,parent_ticket" - | "attachments,assignees,collections,creator" - | "attachments,assignees,collections,creator,parent_ticket" - | "attachments,assignees,collections,parent_ticket" - | "attachments,assignees,contact" - | "attachments,assignees,contact,creator" - | "attachments,assignees,contact,creator,parent_ticket" - | "attachments,assignees,contact,parent_ticket" - | "attachments,assignees,creator" - | "attachments,assignees,creator,parent_ticket" - | "attachments,assignees,parent_ticket" - | "attachments,collections" - | "attachments,collections,account" - | "attachments,collections,account,contact" - | "attachments,collections,account,contact,creator" - | "attachments,collections,account,contact,creator,parent_ticket" - | "attachments,collections,account,contact,parent_ticket" - | "attachments,collections,account,creator" - | "attachments,collections,account,creator,parent_ticket" - | "attachments,collections,account,parent_ticket" - | "attachments,collections,assigned_teams" - | "attachments,collections,assigned_teams,account" - | "attachments,collections,assigned_teams,account,contact" - | "attachments,collections,assigned_teams,account,contact,creator" - | "attachments,collections,assigned_teams,account,contact,creator,parent_ticket" - | "attachments,collections,assigned_teams,account,contact,parent_ticket" - | "attachments,collections,assigned_teams,account,creator" - | "attachments,collections,assigned_teams,account,creator,parent_ticket" - | "attachments,collections,assigned_teams,account,parent_ticket" - | "attachments,collections,assigned_teams,contact" - | "attachments,collections,assigned_teams,contact,creator" - | "attachments,collections,assigned_teams,contact,creator,parent_ticket" - | "attachments,collections,assigned_teams,contact,parent_ticket" - | "attachments,collections,assigned_teams,creator" - | "attachments,collections,assigned_teams,creator,parent_ticket" - | "attachments,collections,assigned_teams,parent_ticket" - | "attachments,collections,contact" - | "attachments,collections,contact,creator" - | "attachments,collections,contact,creator,parent_ticket" - | "attachments,collections,contact,parent_ticket" - | "attachments,collections,creator" - | "attachments,collections,creator,parent_ticket" - | "attachments,collections,parent_ticket" - | "attachments,contact" - | "attachments,contact,creator" - | "attachments,contact,creator,parent_ticket" - | "attachments,contact,parent_ticket" - | "attachments,creator" - | "attachments,creator,parent_ticket" - | "attachments,parent_ticket" - | "collections" - | "collections,account" - | "collections,account,contact" - | "collections,account,contact,creator" - | "collections,account,contact,creator,parent_ticket" - | "collections,account,contact,parent_ticket" - | "collections,account,creator" - | "collections,account,creator,parent_ticket" - | "collections,account,parent_ticket" - | "collections,assigned_teams" - | "collections,assigned_teams,account" - | "collections,assigned_teams,account,contact" - | "collections,assigned_teams,account,contact,creator" - | "collections,assigned_teams,account,contact,creator,parent_ticket" - | "collections,assigned_teams,account,contact,parent_ticket" - | "collections,assigned_teams,account,creator" - | "collections,assigned_teams,account,creator,parent_ticket" - | "collections,assigned_teams,account,parent_ticket" - | "collections,assigned_teams,contact" - | "collections,assigned_teams,contact,creator" - | "collections,assigned_teams,contact,creator,parent_ticket" - | "collections,assigned_teams,contact,parent_ticket" - | "collections,assigned_teams,creator" - | "collections,assigned_teams,creator,parent_ticket" - | "collections,assigned_teams,parent_ticket" - | "collections,contact" - | "collections,contact,creator" - | "collections,contact,creator,parent_ticket" - | "collections,contact,parent_ticket" - | "collections,creator" - | "collections,creator,parent_ticket" - | "collections,parent_ticket" - | "contact" - | "contact,creator" - | "contact,creator,parent_ticket" - | "contact,parent_ticket" - | "creator" - | "creator,parent_ticket" - | "parent_ticket"; -} diff --git a/src/serialization/resources/ticketing/resources/tickets/types/TicketsRetrieveRequestExpandItem.ts b/src/serialization/resources/ticketing/resources/tickets/types/TicketsRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..01c34bb91 --- /dev/null +++ b/src/serialization/resources/ticketing/resources/tickets/types/TicketsRetrieveRequestExpandItem.ts @@ -0,0 +1,33 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const TicketsRetrieveRequestExpandItem: core.serialization.Schema< + serializers.ticketing.TicketsRetrieveRequestExpandItem.Raw, + Merge.ticketing.TicketsRetrieveRequestExpandItem +> = core.serialization.enum_([ + "account", + "assigned_teams", + "assignees", + "attachments", + "collections", + "contact", + "creator", + "parent_ticket", + "permissions", +]); + +export declare namespace TicketsRetrieveRequestExpandItem { + export type Raw = + | "account" + | "assigned_teams" + | "assignees" + | "attachments" + | "collections" + | "contact" + | "creator" + | "parent_ticket" + | "permissions"; +} diff --git a/src/serialization/resources/ticketing/resources/tickets/types/TicketsViewersListRequestExpand.ts b/src/serialization/resources/ticketing/resources/tickets/types/TicketsViewersListRequestExpand.ts deleted file mode 100644 index 2a3243dfd..000000000 --- a/src/serialization/resources/ticketing/resources/tickets/types/TicketsViewersListRequestExpand.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const TicketsViewersListRequestExpand: core.serialization.Schema< - serializers.ticketing.TicketsViewersListRequestExpand.Raw, - Merge.ticketing.TicketsViewersListRequestExpand -> = core.serialization.enum_(["team", "user", "user,team"]); - -export declare namespace TicketsViewersListRequestExpand { - export type Raw = "team" | "user" | "user,team"; -} diff --git a/src/serialization/resources/ticketing/resources/tickets/types/TicketsViewersListRequestExpandItem.ts b/src/serialization/resources/ticketing/resources/tickets/types/TicketsViewersListRequestExpandItem.ts new file mode 100644 index 000000000..36c9596fb --- /dev/null +++ b/src/serialization/resources/ticketing/resources/tickets/types/TicketsViewersListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const TicketsViewersListRequestExpandItem: core.serialization.Schema< + serializers.ticketing.TicketsViewersListRequestExpandItem.Raw, + Merge.ticketing.TicketsViewersListRequestExpandItem +> = core.serialization.enum_(["team", "user"]); + +export declare namespace TicketsViewersListRequestExpandItem { + export type Raw = "team" | "user"; +} diff --git a/src/serialization/resources/ticketing/resources/tickets/types/index.ts b/src/serialization/resources/ticketing/resources/tickets/types/index.ts index 2f77f6366..e34bc6ea6 100644 --- a/src/serialization/resources/ticketing/resources/tickets/types/index.ts +++ b/src/serialization/resources/ticketing/resources/tickets/types/index.ts @@ -1,9 +1,11 @@ -export * from "./TicketsListRequestExpand"; +export * from "./TicketsListRequestExpandItem"; export * from "./TicketsListRequestPriority"; export * from "./TicketsListRequestRemoteFields"; export * from "./TicketsListRequestShowEnumOrigins"; export * from "./TicketsListRequestStatus"; -export * from "./TicketsRetrieveRequestExpand"; +export * from "./TicketsLiveSearchRetrieveRequestRemoteFields"; +export * from "./TicketsLiveSearchRetrieveRequestShowEnumOrigins"; +export * from "./TicketsRetrieveRequestExpandItem"; export * from "./TicketsRetrieveRequestRemoteFields"; export * from "./TicketsRetrieveRequestShowEnumOrigins"; -export * from "./TicketsViewersListRequestExpand"; +export * from "./TicketsViewersListRequestExpandItem"; diff --git a/src/serialization/resources/ticketing/resources/users/types/UsersListRequestExpand.ts b/src/serialization/resources/ticketing/resources/users/types/UsersListRequestExpand.ts deleted file mode 100644 index 3607fe4d9..000000000 --- a/src/serialization/resources/ticketing/resources/users/types/UsersListRequestExpand.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const UsersListRequestExpand: core.serialization.Schema< - serializers.ticketing.UsersListRequestExpand.Raw, - Merge.ticketing.UsersListRequestExpand -> = core.serialization.enum_(["roles", "teams", "teams,roles"]); - -export declare namespace UsersListRequestExpand { - export type Raw = "roles" | "teams" | "teams,roles"; -} diff --git a/src/serialization/resources/ticketing/resources/users/types/UsersListRequestExpandItem.ts b/src/serialization/resources/ticketing/resources/users/types/UsersListRequestExpandItem.ts new file mode 100644 index 000000000..c3483e6fb --- /dev/null +++ b/src/serialization/resources/ticketing/resources/users/types/UsersListRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const UsersListRequestExpandItem: core.serialization.Schema< + serializers.ticketing.UsersListRequestExpandItem.Raw, + Merge.ticketing.UsersListRequestExpandItem +> = core.serialization.enum_(["roles", "teams"]); + +export declare namespace UsersListRequestExpandItem { + export type Raw = "roles" | "teams"; +} diff --git a/src/serialization/resources/ticketing/resources/users/types/UsersRetrieveRequestExpand.ts b/src/serialization/resources/ticketing/resources/users/types/UsersRetrieveRequestExpand.ts deleted file mode 100644 index dc33581a2..000000000 --- a/src/serialization/resources/ticketing/resources/users/types/UsersRetrieveRequestExpand.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../../../api/index"; -import * as core from "../../../../../../core"; -import type * as serializers from "../../../../../index"; - -export const UsersRetrieveRequestExpand: core.serialization.Schema< - serializers.ticketing.UsersRetrieveRequestExpand.Raw, - Merge.ticketing.UsersRetrieveRequestExpand -> = core.serialization.enum_(["roles", "teams", "teams,roles"]); - -export declare namespace UsersRetrieveRequestExpand { - export type Raw = "roles" | "teams" | "teams,roles"; -} diff --git a/src/serialization/resources/ticketing/resources/users/types/UsersRetrieveRequestExpandItem.ts b/src/serialization/resources/ticketing/resources/users/types/UsersRetrieveRequestExpandItem.ts new file mode 100644 index 000000000..06eb97966 --- /dev/null +++ b/src/serialization/resources/ticketing/resources/users/types/UsersRetrieveRequestExpandItem.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import type * as serializers from "../../../../../index"; + +export const UsersRetrieveRequestExpandItem: core.serialization.Schema< + serializers.ticketing.UsersRetrieveRequestExpandItem.Raw, + Merge.ticketing.UsersRetrieveRequestExpandItem +> = core.serialization.enum_(["roles", "teams"]); + +export declare namespace UsersRetrieveRequestExpandItem { + export type Raw = "roles" | "teams"; +} diff --git a/src/serialization/resources/ticketing/resources/users/types/index.ts b/src/serialization/resources/ticketing/resources/users/types/index.ts index e07d9f0f0..6b3250680 100644 --- a/src/serialization/resources/ticketing/resources/users/types/index.ts +++ b/src/serialization/resources/ticketing/resources/users/types/index.ts @@ -1,2 +1,2 @@ -export * from "./UsersListRequestExpand"; -export * from "./UsersRetrieveRequestExpand"; +export * from "./UsersListRequestExpandItem"; +export * from "./UsersRetrieveRequestExpandItem"; diff --git a/src/serialization/resources/ticketing/types/ActionsEnum.ts b/src/serialization/resources/ticketing/types/ActionsEnum.ts new file mode 100644 index 000000000..7f319d2df --- /dev/null +++ b/src/serialization/resources/ticketing/types/ActionsEnum.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; + +export const ActionsEnum: core.serialization.Schema< + serializers.ticketing.ActionsEnum.Raw, + Merge.ticketing.ActionsEnum +> = core.serialization.enum_(["VIEW", "CREATE", "EDIT", "DELETE"]); + +export declare namespace ActionsEnum { + export type Raw = "VIEW" | "CREATE" | "EDIT" | "DELETE"; +} diff --git a/src/serialization/resources/ticketing/types/CategoriesEnum.ts b/src/serialization/resources/ticketing/types/CategoriesEnum.ts index 7653068bb..4f96dc8e8 100644 --- a/src/serialization/resources/ticketing/types/CategoriesEnum.ts +++ b/src/serialization/resources/ticketing/types/CategoriesEnum.ts @@ -7,8 +7,8 @@ import type * as serializers from "../../../index"; export const CategoriesEnum: core.serialization.Schema< serializers.ticketing.CategoriesEnum.Raw, Merge.ticketing.CategoriesEnum -> = core.serialization.enum_(["hris", "ats", "accounting", "ticketing", "crm", "mktg", "filestorage", "knowledgebase"]); +> = core.serialization.enum_(["hris", "ats", "accounting", "ticketing", "crm", "mktg", "filestorage"]); export declare namespace CategoriesEnum { - export type Raw = "hris" | "ats" | "accounting" | "ticketing" | "crm" | "mktg" | "filestorage" | "knowledgebase"; + export type Raw = "hris" | "ats" | "accounting" | "ticketing" | "crm" | "mktg" | "filestorage"; } diff --git a/src/serialization/resources/ticketing/types/CategoryEnum.ts b/src/serialization/resources/ticketing/types/CategoryEnum.ts index 014e43771..fe83ec526 100644 --- a/src/serialization/resources/ticketing/types/CategoryEnum.ts +++ b/src/serialization/resources/ticketing/types/CategoryEnum.ts @@ -7,8 +7,8 @@ import type * as serializers from "../../../index"; export const CategoryEnum: core.serialization.Schema< serializers.ticketing.CategoryEnum.Raw, Merge.ticketing.CategoryEnum -> = core.serialization.enum_(["hris", "ats", "accounting", "ticketing", "crm", "mktg", "filestorage", "knowledgebase"]); +> = core.serialization.enum_(["hris", "ats", "accounting", "ticketing", "crm", "mktg", "filestorage"]); export declare namespace CategoryEnum { - export type Raw = "hris" | "ats" | "accounting" | "ticketing" | "crm" | "mktg" | "filestorage" | "knowledgebase"; + export type Raw = "hris" | "ats" | "accounting" | "ticketing" | "crm" | "mktg" | "filestorage"; } diff --git a/src/serialization/resources/ticketing/types/Collection.ts b/src/serialization/resources/ticketing/types/Collection.ts index ecc9bd950..b99aeda34 100644 --- a/src/serialization/resources/ticketing/types/Collection.ts +++ b/src/serialization/resources/ticketing/types/Collection.ts @@ -4,7 +4,8 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import * as serializers from "../../../index"; import { CollectionAccessLevel } from "./CollectionAccessLevel"; -import { CollectionCollectionType } from "./CollectionCollectionType"; +import { CollectionPermissionsItem } from "./CollectionPermissionsItem"; +import { CollectionTypeEnum } from "./CollectionTypeEnum"; import { RemoteData } from "./RemoteData"; export const Collection: core.serialization.ObjectSchema< @@ -18,11 +19,12 @@ export const Collection: core.serialization.ObjectSchema< name: core.serialization.string().optional(), description: core.serialization.string().optional(), accessLevel: core.serialization.property("access_level", CollectionAccessLevel.optional()), - collectionType: core.serialization.property("collection_type", CollectionCollectionType.optional()), + collectionType: core.serialization.property("collection_type", CollectionTypeEnum.optional()), parentCollection: core.serialization.property( "parent_collection", core.serialization.lazy(() => serializers.ticketing.CollectionParentCollection).optional(), ), + permissions: core.serialization.list(CollectionPermissionsItem).optional(), collectionUrl: core.serialization.property("collection_url", core.serialization.string().optional()), remoteCreatedAt: core.serialization.property("remote_created_at", core.serialization.date().optional()), remoteUpdatedAt: core.serialization.property("remote_updated_at", core.serialization.date().optional()), @@ -43,8 +45,9 @@ export declare namespace Collection { name?: string | null; description?: string | null; access_level?: CollectionAccessLevel.Raw | null; - collection_type?: CollectionCollectionType.Raw | null; + collection_type?: CollectionTypeEnum.Raw | null; parent_collection?: serializers.ticketing.CollectionParentCollection.Raw | null; + permissions?: CollectionPermissionsItem.Raw[] | null; collection_url?: string | null; remote_created_at?: string | null; remote_updated_at?: string | null; diff --git a/src/serialization/resources/ticketing/types/CollectionCollectionType.ts b/src/serialization/resources/ticketing/types/CollectionCollectionType.ts deleted file mode 100644 index 0838c805e..000000000 --- a/src/serialization/resources/ticketing/types/CollectionCollectionType.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { CollectionTypeEnum } from "./CollectionTypeEnum"; - -export const CollectionCollectionType: core.serialization.Schema< - serializers.ticketing.CollectionCollectionType.Raw, - Merge.ticketing.CollectionCollectionType -> = core.serialization.undiscriminatedUnion([CollectionTypeEnum, core.serialization.string()]); - -export declare namespace CollectionCollectionType { - export type Raw = CollectionTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/ticketing/types/CollectionPermissionsItem.ts b/src/serialization/resources/ticketing/types/CollectionPermissionsItem.ts new file mode 100644 index 000000000..38a963822 --- /dev/null +++ b/src/serialization/resources/ticketing/types/CollectionPermissionsItem.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { Permission } from "./Permission"; + +export const CollectionPermissionsItem: core.serialization.Schema< + serializers.ticketing.CollectionPermissionsItem.Raw, + Merge.ticketing.CollectionPermissionsItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), Permission]); + +export declare namespace CollectionPermissionsItem { + export type Raw = string | Permission.Raw; +} diff --git a/src/serialization/resources/ticketing/types/CompletedAccountInitialScreenEnum.ts b/src/serialization/resources/ticketing/types/CompletedAccountInitialScreenEnum.ts deleted file mode 100644 index 026241e70..000000000 --- a/src/serialization/resources/ticketing/types/CompletedAccountInitialScreenEnum.ts +++ /dev/null @@ -1,14 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; - -export const CompletedAccountInitialScreenEnum: core.serialization.Schema< - serializers.ticketing.CompletedAccountInitialScreenEnum.Raw, - Merge.ticketing.CompletedAccountInitialScreenEnum -> = core.serialization.stringLiteral("SELECTIVE_SYNC"); - -export declare namespace CompletedAccountInitialScreenEnum { - export type Raw = "SELECTIVE_SYNC"; -} diff --git a/src/serialization/resources/ticketing/types/EffectEnum.ts b/src/serialization/resources/ticketing/types/EffectEnum.ts new file mode 100644 index 000000000..2aef96af6 --- /dev/null +++ b/src/serialization/resources/ticketing/types/EffectEnum.ts @@ -0,0 +1,12 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; + +export const EffectEnum: core.serialization.Schema = + core.serialization.enum_(["ALLOWED", "DENIED", "INHERITED"]); + +export declare namespace EffectEnum { + export type Raw = "ALLOWED" | "DENIED" | "INHERITED"; +} diff --git a/src/serialization/resources/ticketing/types/PatchedTicketRequest.ts b/src/serialization/resources/ticketing/types/PatchedTicketRequest.ts index a5da2c8ca..f98faa732 100644 --- a/src/serialization/resources/ticketing/types/PatchedTicketRequest.ts +++ b/src/serialization/resources/ticketing/types/PatchedTicketRequest.ts @@ -4,8 +4,8 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; import { PatchedTicketRequestAccessLevel } from "./PatchedTicketRequestAccessLevel"; -import { PatchedTicketRequestPriority } from "./PatchedTicketRequestPriority"; import { PatchedTicketRequestStatus } from "./PatchedTicketRequestStatus"; +import { PriorityEnum } from "./PriorityEnum"; import { RemoteFieldRequest } from "./RemoteFieldRequest"; export const PatchedTicketRequest: core.serialization.ObjectSchema< @@ -30,9 +30,9 @@ export const PatchedTicketRequest: core.serialization.ObjectSchema< accessLevel: core.serialization.property("access_level", PatchedTicketRequestAccessLevel.optional()), tags: core.serialization.list(core.serialization.string().optional()).optional(), roles: core.serialization.list(core.serialization.string().optional()).optional(), - ticketUrl: core.serialization.property("ticket_url", core.serialization.string().optional()), - priority: PatchedTicketRequestPriority.optional(), completedAt: core.serialization.property("completed_at", core.serialization.date().optional()), + ticketUrl: core.serialization.property("ticket_url", core.serialization.string().optional()), + priority: PriorityEnum.optional(), integrationParams: core.serialization.property( "integration_params", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), @@ -61,9 +61,9 @@ export declare namespace PatchedTicketRequest { access_level?: PatchedTicketRequestAccessLevel.Raw | null; tags?: (string | null | undefined)[] | null; roles?: (string | null | undefined)[] | null; - ticket_url?: string | null; - priority?: PatchedTicketRequestPriority.Raw | null; completed_at?: string | null; + ticket_url?: string | null; + priority?: PriorityEnum.Raw | null; integration_params?: Record | null; linked_account_params?: Record | null; remote_fields?: RemoteFieldRequest.Raw[] | null; diff --git a/src/serialization/resources/ticketing/types/PatchedTicketRequestPriority.ts b/src/serialization/resources/ticketing/types/PatchedTicketRequestPriority.ts deleted file mode 100644 index f5df29e0a..000000000 --- a/src/serialization/resources/ticketing/types/PatchedTicketRequestPriority.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { PriorityEnum } from "./PriorityEnum"; - -export const PatchedTicketRequestPriority: core.serialization.Schema< - serializers.ticketing.PatchedTicketRequestPriority.Raw, - Merge.ticketing.PatchedTicketRequestPriority -> = core.serialization.undiscriminatedUnion([PriorityEnum, core.serialization.string()]); - -export declare namespace PatchedTicketRequestPriority { - export type Raw = PriorityEnum.Raw | string; -} diff --git a/src/serialization/resources/ticketing/types/Permission.ts b/src/serialization/resources/ticketing/types/Permission.ts new file mode 100644 index 000000000..e4c916cb9 --- /dev/null +++ b/src/serialization/resources/ticketing/types/Permission.ts @@ -0,0 +1,57 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { ActionsEnum } from "./ActionsEnum"; +import { PermissionEffect } from "./PermissionEffect"; + +export const Permission: core.serialization.ObjectSchema< + serializers.ticketing.Permission.Raw, + Merge.ticketing.Permission +> = core.serialization.object({ + id: core.serialization.string().optional(), + remoteId: core.serialization.property("remote_id", core.serialization.string().optional()), + createdAt: core.serialization.property("created_at", core.serialization.date().optional()), + modifiedAt: core.serialization.property("modified_at", core.serialization.date().optional()), + effect: PermissionEffect.optional(), + actions: core.serialization.list(ActionsEnum.optional()).optional(), + appliedToUsers: core.serialization.property( + "applied_to_users", + core.serialization.list(core.serialization.string().optional()).optional(), + ), + appliedToRoles: core.serialization.property( + "applied_to_roles", + core.serialization.list(core.serialization.string().optional()).optional(), + ), + appliedToTeams: core.serialization.property( + "applied_to_teams", + core.serialization.list(core.serialization.string().optional()).optional(), + ), + appliedToCollections: core.serialization.property( + "applied_to_collections", + core.serialization.list(core.serialization.string().optional()).optional(), + ), + remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), + fieldMappings: core.serialization.property( + "field_mappings", + core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), + ), +}); + +export declare namespace Permission { + export interface Raw { + id?: string | null; + remote_id?: string | null; + created_at?: string | null; + modified_at?: string | null; + effect?: PermissionEffect.Raw | null; + actions?: (ActionsEnum.Raw | null | undefined)[] | null; + applied_to_users?: (string | null | undefined)[] | null; + applied_to_roles?: (string | null | undefined)[] | null; + applied_to_teams?: (string | null | undefined)[] | null; + applied_to_collections?: (string | null | undefined)[] | null; + remote_was_deleted?: boolean | null; + field_mappings?: Record | null; + } +} diff --git a/src/serialization/resources/ticketing/types/PermissionEffect.ts b/src/serialization/resources/ticketing/types/PermissionEffect.ts new file mode 100644 index 000000000..1dc00b307 --- /dev/null +++ b/src/serialization/resources/ticketing/types/PermissionEffect.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { EffectEnum } from "./EffectEnum"; + +export const PermissionEffect: core.serialization.Schema< + serializers.ticketing.PermissionEffect.Raw, + Merge.ticketing.PermissionEffect +> = core.serialization.undiscriminatedUnion([EffectEnum, core.serialization.string()]); + +export declare namespace PermissionEffect { + export type Raw = EffectEnum.Raw | string; +} diff --git a/src/serialization/resources/ticketing/types/PermissionRequest.ts b/src/serialization/resources/ticketing/types/PermissionRequest.ts new file mode 100644 index 000000000..40750f038 --- /dev/null +++ b/src/serialization/resources/ticketing/types/PermissionRequest.ts @@ -0,0 +1,54 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { ActionsEnum } from "./ActionsEnum"; +import { PermissionRequestEffect } from "./PermissionRequestEffect"; + +export const PermissionRequest: core.serialization.ObjectSchema< + serializers.ticketing.PermissionRequest.Raw, + Merge.ticketing.PermissionRequest +> = core.serialization.object({ + remoteId: core.serialization.property("remote_id", core.serialization.string().optional()), + effect: PermissionRequestEffect.optional(), + actions: core.serialization.list(ActionsEnum.optional()).optional(), + appliedToUsers: core.serialization.property( + "applied_to_users", + core.serialization.list(core.serialization.string().optional()).optional(), + ), + appliedToRoles: core.serialization.property( + "applied_to_roles", + core.serialization.list(core.serialization.string().optional()).optional(), + ), + appliedToTeams: core.serialization.property( + "applied_to_teams", + core.serialization.list(core.serialization.string().optional()).optional(), + ), + appliedToCollections: core.serialization.property( + "applied_to_collections", + core.serialization.list(core.serialization.string().optional()).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 PermissionRequest { + export interface Raw { + remote_id?: string | null; + effect?: PermissionRequestEffect.Raw | null; + actions?: (ActionsEnum.Raw | null | undefined)[] | null; + applied_to_users?: (string | null | undefined)[] | null; + applied_to_roles?: (string | null | undefined)[] | null; + applied_to_teams?: (string | null | undefined)[] | null; + applied_to_collections?: (string | null | undefined)[] | null; + integration_params?: Record | null; + linked_account_params?: Record | null; + } +} diff --git a/src/serialization/resources/ticketing/types/PermissionRequestEffect.ts b/src/serialization/resources/ticketing/types/PermissionRequestEffect.ts new file mode 100644 index 000000000..0cbb98094 --- /dev/null +++ b/src/serialization/resources/ticketing/types/PermissionRequestEffect.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { EffectEnum } from "./EffectEnum"; + +export const PermissionRequestEffect: core.serialization.Schema< + serializers.ticketing.PermissionRequestEffect.Raw, + Merge.ticketing.PermissionRequestEffect +> = core.serialization.undiscriminatedUnion([EffectEnum, core.serialization.string()]); + +export declare namespace PermissionRequestEffect { + export type Raw = EffectEnum.Raw | string; +} diff --git a/src/serialization/resources/ticketing/types/RegenerateAccountToken.ts b/src/serialization/resources/ticketing/types/RegenerateAccountToken.ts new file mode 100644 index 000000000..73404bb30 --- /dev/null +++ b/src/serialization/resources/ticketing/types/RegenerateAccountToken.ts @@ -0,0 +1,20 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; + +export const RegenerateAccountToken: core.serialization.ObjectSchema< + serializers.ticketing.RegenerateAccountToken.Raw, + Merge.ticketing.RegenerateAccountToken +> = core.serialization.object({ + linkedAccountId: core.serialization.property("linked_account_id", core.serialization.string()), + accountToken: core.serialization.property("account_token", core.serialization.string()), +}); + +export declare namespace RegenerateAccountToken { + export interface Raw { + linked_account_id: string; + account_token: string; + } +} diff --git a/src/serialization/resources/ticketing/types/RemoteFieldClass.ts b/src/serialization/resources/ticketing/types/RemoteFieldClass.ts index ae8d03356..41d7380a7 100644 --- a/src/serialization/resources/ticketing/types/RemoteFieldClass.ts +++ b/src/serialization/resources/ticketing/types/RemoteFieldClass.ts @@ -3,10 +3,10 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; +import { FieldFormatEnum } from "./FieldFormatEnum"; +import { FieldTypeEnum } from "./FieldTypeEnum"; import { ItemSchema } from "./ItemSchema"; import { RemoteFieldClassFieldChoicesItem } from "./RemoteFieldClassFieldChoicesItem"; -import { RemoteFieldClassFieldFormat } from "./RemoteFieldClassFieldFormat"; -import { RemoteFieldClassFieldType } from "./RemoteFieldClassFieldType"; export const RemoteFieldClass: core.serialization.ObjectSchema< serializers.ticketing.RemoteFieldClass.Raw, @@ -19,8 +19,8 @@ export const RemoteFieldClass: core.serialization.ObjectSchema< isCustom: core.serialization.property("is_custom", core.serialization.boolean().optional()), isCommonModelField: core.serialization.property("is_common_model_field", core.serialization.boolean().optional()), isRequired: core.serialization.property("is_required", core.serialization.boolean().optional()), - fieldType: core.serialization.property("field_type", RemoteFieldClassFieldType.optional()), - fieldFormat: core.serialization.property("field_format", RemoteFieldClassFieldFormat.optional()), + fieldType: core.serialization.property("field_type", FieldTypeEnum.optional()), + fieldFormat: core.serialization.property("field_format", FieldFormatEnum.optional()), fieldChoices: core.serialization.property( "field_choices", core.serialization.list(RemoteFieldClassFieldChoicesItem).optional(), @@ -37,8 +37,8 @@ export declare namespace RemoteFieldClass { is_custom?: boolean | null; is_common_model_field?: boolean | null; is_required?: boolean | null; - field_type?: RemoteFieldClassFieldType.Raw | null; - field_format?: RemoteFieldClassFieldFormat.Raw | null; + field_type?: FieldTypeEnum.Raw | null; + field_format?: FieldFormatEnum.Raw | null; field_choices?: RemoteFieldClassFieldChoicesItem.Raw[] | null; item_schema?: ItemSchema.Raw | null; } diff --git a/src/serialization/resources/ticketing/types/RemoteFieldClassFieldFormat.ts b/src/serialization/resources/ticketing/types/RemoteFieldClassFieldFormat.ts deleted file mode 100644 index 7d87f60d3..000000000 --- a/src/serialization/resources/ticketing/types/RemoteFieldClassFieldFormat.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { FieldFormatEnum } from "./FieldFormatEnum"; - -export const RemoteFieldClassFieldFormat: core.serialization.Schema< - serializers.ticketing.RemoteFieldClassFieldFormat.Raw, - Merge.ticketing.RemoteFieldClassFieldFormat -> = core.serialization.undiscriminatedUnion([core.serialization.string(), FieldFormatEnum]); - -export declare namespace RemoteFieldClassFieldFormat { - export type Raw = string | FieldFormatEnum.Raw; -} diff --git a/src/serialization/resources/ticketing/types/RemoteFieldClassFieldType.ts b/src/serialization/resources/ticketing/types/RemoteFieldClassFieldType.ts deleted file mode 100644 index 86010f7b7..000000000 --- a/src/serialization/resources/ticketing/types/RemoteFieldClassFieldType.ts +++ /dev/null @@ -1,15 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import type * as Merge from "../../../../api/index"; -import * as core from "../../../../core"; -import type * as serializers from "../../../index"; -import { FieldTypeEnum } from "./FieldTypeEnum"; - -export const RemoteFieldClassFieldType: core.serialization.Schema< - serializers.ticketing.RemoteFieldClassFieldType.Raw, - Merge.ticketing.RemoteFieldClassFieldType -> = core.serialization.undiscriminatedUnion([core.serialization.string(), FieldTypeEnum]); - -export declare namespace RemoteFieldClassFieldType { - export type Raw = string | FieldTypeEnum.Raw; -} diff --git a/src/serialization/resources/ticketing/types/RemoteResponse.ts b/src/serialization/resources/ticketing/types/RemoteResponse.ts index e00702ea4..b863e76bf 100644 --- a/src/serialization/resources/ticketing/types/RemoteResponse.ts +++ b/src/serialization/resources/ticketing/types/RemoteResponse.ts @@ -3,7 +3,7 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; -import { ResponseTypeEnum } from "./ResponseTypeEnum"; +import { RemoteResponseResponseType } from "./RemoteResponseResponseType"; export const RemoteResponse: core.serialization.ObjectSchema< serializers.ticketing.RemoteResponse.Raw, @@ -17,7 +17,7 @@ export const RemoteResponse: core.serialization.ObjectSchema< "response_headers", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), ), - responseType: core.serialization.property("response_type", ResponseTypeEnum.optional()), + responseType: core.serialization.property("response_type", RemoteResponseResponseType.optional()), headers: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), }); @@ -28,7 +28,7 @@ export declare namespace RemoteResponse { status: number; response?: unknown; response_headers?: Record | null; - response_type?: ResponseTypeEnum.Raw | null; + response_type?: RemoteResponseResponseType.Raw | null; headers?: Record | null; } } diff --git a/src/serialization/resources/ticketing/types/RemoteResponseResponseType.ts b/src/serialization/resources/ticketing/types/RemoteResponseResponseType.ts new file mode 100644 index 000000000..7cf7fe84b --- /dev/null +++ b/src/serialization/resources/ticketing/types/RemoteResponseResponseType.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { ResponseTypeEnum } from "./ResponseTypeEnum"; + +export const RemoteResponseResponseType: core.serialization.Schema< + serializers.ticketing.RemoteResponseResponseType.Raw, + Merge.ticketing.RemoteResponseResponseType +> = core.serialization.undiscriminatedUnion([ResponseTypeEnum, core.serialization.string()]); + +export declare namespace RemoteResponseResponseType { + export type Raw = ResponseTypeEnum.Raw | string; +} diff --git a/src/serialization/resources/ticketing/types/RoleEnum.ts b/src/serialization/resources/ticketing/types/RoleEnum.ts index bf2e101d7..a493b8f3e 100644 --- a/src/serialization/resources/ticketing/types/RoleEnum.ts +++ b/src/serialization/resources/ticketing/types/RoleEnum.ts @@ -5,8 +5,8 @@ import * as core from "../../../../core"; import type * as serializers from "../../../index"; export const RoleEnum: core.serialization.Schema = - core.serialization.enum_(["ADMIN", "DEVELOPER", "MEMBER", "API", "SYSTEM", "MERGE_TEAM"]); + core.serialization.enum_(["ADMIN", "DEVELOPER", "MEMBER", "API", "SYSTEM", "MERGE_TEAM", "SUPPORT"]); export declare namespace RoleEnum { - export type Raw = "ADMIN" | "DEVELOPER" | "MEMBER" | "API" | "SYSTEM" | "MERGE_TEAM"; + export type Raw = "ADMIN" | "DEVELOPER" | "MEMBER" | "API" | "SYSTEM" | "MERGE_TEAM" | "SUPPORT"; } diff --git a/src/serialization/resources/ticketing/types/RoleTicketAccess.ts b/src/serialization/resources/ticketing/types/RoleTicketAccess.ts index 293d7ee56..8d636abd9 100644 --- a/src/serialization/resources/ticketing/types/RoleTicketAccess.ts +++ b/src/serialization/resources/ticketing/types/RoleTicketAccess.ts @@ -8,8 +8,8 @@ import { TicketAccessEnum } from "./TicketAccessEnum"; export const RoleTicketAccess: core.serialization.Schema< serializers.ticketing.RoleTicketAccess.Raw, Merge.ticketing.RoleTicketAccess -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TicketAccessEnum]); +> = core.serialization.undiscriminatedUnion([TicketAccessEnum, core.serialization.string()]); export declare namespace RoleTicketAccess { - export type Raw = string | TicketAccessEnum.Raw; + export type Raw = TicketAccessEnum.Raw | string; } diff --git a/src/serialization/resources/ticketing/types/RoleTicketActionsItem.ts b/src/serialization/resources/ticketing/types/RoleTicketActionsItem.ts index 647bafdd5..c658412ea 100644 --- a/src/serialization/resources/ticketing/types/RoleTicketActionsItem.ts +++ b/src/serialization/resources/ticketing/types/RoleTicketActionsItem.ts @@ -8,8 +8,8 @@ import { TicketActionsEnum } from "./TicketActionsEnum"; export const RoleTicketActionsItem: core.serialization.Schema< serializers.ticketing.RoleTicketActionsItem.Raw, Merge.ticketing.RoleTicketActionsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TicketActionsEnum]); +> = core.serialization.undiscriminatedUnion([TicketActionsEnum, core.serialization.string()]); export declare namespace RoleTicketActionsItem { - export type Raw = string | TicketActionsEnum.Raw; + export type Raw = TicketActionsEnum.Raw | string; } diff --git a/src/serialization/resources/ticketing/types/SyncStatus.ts b/src/serialization/resources/ticketing/types/SyncStatus.ts index 6a6d41909..7d278abbb 100644 --- a/src/serialization/resources/ticketing/types/SyncStatus.ts +++ b/src/serialization/resources/ticketing/types/SyncStatus.ts @@ -4,8 +4,8 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import type * as serializers from "../../../index"; import { SelectiveSyncConfigurationsUsageEnum } from "./SelectiveSyncConfigurationsUsageEnum"; -import { StatusFd5Enum } from "./StatusFd5Enum"; import { SyncStatusLastSyncResult } from "./SyncStatusLastSyncResult"; +import { SyncStatusStatus } from "./SyncStatusStatus"; export const SyncStatus: core.serialization.ObjectSchema< serializers.ticketing.SyncStatus.Raw, @@ -17,7 +17,7 @@ export const SyncStatus: core.serialization.ObjectSchema< nextSyncStart: core.serialization.property("next_sync_start", core.serialization.date().optional()), lastSyncResult: core.serialization.property("last_sync_result", SyncStatusLastSyncResult.optional()), lastSyncFinished: core.serialization.property("last_sync_finished", core.serialization.date().optional()), - status: StatusFd5Enum, + status: SyncStatusStatus, isInitialSync: core.serialization.property("is_initial_sync", core.serialization.boolean()), selectiveSyncConfigurationsUsage: core.serialization.property( "selective_sync_configurations_usage", @@ -33,7 +33,7 @@ export declare namespace SyncStatus { next_sync_start?: string | null; last_sync_result?: SyncStatusLastSyncResult.Raw | null; last_sync_finished?: string | null; - status: StatusFd5Enum.Raw; + status: SyncStatusStatus.Raw; is_initial_sync: boolean; selective_sync_configurations_usage?: SelectiveSyncConfigurationsUsageEnum.Raw | null; } diff --git a/src/serialization/resources/ticketing/types/SyncStatusStatus.ts b/src/serialization/resources/ticketing/types/SyncStatusStatus.ts new file mode 100644 index 000000000..58135abc9 --- /dev/null +++ b/src/serialization/resources/ticketing/types/SyncStatusStatus.ts @@ -0,0 +1,15 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import type * as serializers from "../../../index"; +import { StatusFd5Enum } from "./StatusFd5Enum"; + +export const SyncStatusStatus: core.serialization.Schema< + serializers.ticketing.SyncStatusStatus.Raw, + Merge.ticketing.SyncStatusStatus +> = core.serialization.undiscriminatedUnion([StatusFd5Enum, core.serialization.string()]); + +export declare namespace SyncStatusStatus { + export type Raw = StatusFd5Enum.Raw | string; +} diff --git a/src/serialization/resources/ticketing/types/Ticket.ts b/src/serialization/resources/ticketing/types/Ticket.ts index 75c447a27..3cda6e871 100644 --- a/src/serialization/resources/ticketing/types/Ticket.ts +++ b/src/serialization/resources/ticketing/types/Ticket.ts @@ -3,6 +3,7 @@ import type * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import * as serializers from "../../../index"; +import { Permission } from "./Permission"; import { RemoteData } from "./RemoteData"; import { RemoteField } from "./RemoteField"; import { TicketAccessLevel } from "./TicketAccessLevel"; @@ -43,14 +44,15 @@ export const Ticket: core.serialization.ObjectSchema serializers.ticketing.TicketAttachmentsItem).optional()) .optional(), accessLevel: core.serialization.property("access_level", TicketAccessLevel.optional()), + permissions: core.serialization.list(Permission).optional(), tags: core.serialization.list(core.serialization.string().optional()).optional(), roles: core.serialization.list(core.serialization.string().optional()).optional(), + ticketUrl: core.serialization.property("ticket_url", core.serialization.string().optional()), + priority: TicketPriority.optional(), remoteCreatedAt: core.serialization.property("remote_created_at", core.serialization.date().optional()), remoteUpdatedAt: core.serialization.property("remote_updated_at", core.serialization.date().optional()), completedAt: core.serialization.property("completed_at", core.serialization.date().optional()), remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), - ticketUrl: core.serialization.property("ticket_url", core.serialization.string().optional()), - priority: TicketPriority.optional(), fieldMappings: core.serialization.property( "field_mappings", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), @@ -79,14 +81,15 @@ export declare namespace Ticket { parent_ticket?: serializers.ticketing.TicketParentTicket.Raw | null; attachments?: (serializers.ticketing.TicketAttachmentsItem.Raw | null | undefined)[] | null; access_level?: TicketAccessLevel.Raw | null; + permissions?: Permission.Raw[] | null; tags?: (string | null | undefined)[] | null; roles?: (string | null | undefined)[] | null; + ticket_url?: string | null; + priority?: TicketPriority.Raw | null; remote_created_at?: string | null; remote_updated_at?: string | null; completed_at?: string | null; remote_was_deleted?: boolean | null; - ticket_url?: string | null; - priority?: TicketPriority.Raw | null; field_mappings?: Record | null; remote_data?: RemoteData.Raw[] | null; remote_fields?: RemoteField.Raw[] | null; diff --git a/src/serialization/resources/ticketing/types/index.ts b/src/serialization/resources/ticketing/types/index.ts index 66f871985..9d118e7d1 100644 --- a/src/serialization/resources/ticketing/types/index.ts +++ b/src/serialization/resources/ticketing/types/index.ts @@ -8,6 +8,7 @@ export * from "./AccountDetailsAndActionsStatusEnum"; export * from "./AccountDetailsCategory"; export * from "./AccountIntegration"; export * from "./AccountToken"; +export * from "./ActionsEnum"; export * from "./AdvancedMetadata"; export * from "./AsyncPassthroughReciept"; export * from "./Attachment"; @@ -23,8 +24,8 @@ export * from "./CategoryEnum"; export * from "./Collection"; export * from "./CollectionAccessLevel"; export * from "./CollectionAccessLevelEnum"; -export * from "./CollectionCollectionType"; export * from "./CollectionParentCollection"; +export * from "./CollectionPermissionsItem"; export * from "./CollectionTypeEnum"; export * from "./Comment"; export * from "./CommentContact"; @@ -37,7 +38,6 @@ export * from "./CommentTicket"; export * from "./CommentUser"; export * from "./CommonModelScopeApi"; export * from "./CommonModelScopesBodyRequest"; -export * from "./CompletedAccountInitialScreenEnum"; export * from "./Contact"; export * from "./ContactAccount"; export * from "./ContactRequest"; @@ -45,6 +45,7 @@ export * from "./ContactRequestAccount"; export * from "./DataPassthroughRequest"; export * from "./DebugModeLog"; export * from "./DebugModelLogSummary"; +export * from "./EffectEnum"; export * from "./EnabledActionsEnum"; export * from "./EncodingEnum"; export * from "./ErrorValidationProblem"; @@ -99,10 +100,14 @@ export * from "./PaginatedUserList"; export * from "./PaginatedViewerList"; export * from "./PatchedTicketRequest"; export * from "./PatchedTicketRequestAccessLevel"; -export * from "./PatchedTicketRequestPriority"; export * from "./PatchedTicketRequestStatus"; +export * from "./Permission"; +export * from "./PermissionEffect"; +export * from "./PermissionRequest"; +export * from "./PermissionRequestEffect"; export * from "./PriorityEnum"; export * from "./Project"; +export * from "./RegenerateAccountToken"; export * from "./RemoteData"; export * from "./RemoteEndpointInfo"; export * from "./RemoteField"; @@ -111,13 +116,12 @@ export * from "./RemoteFieldApiCoverage"; export * from "./RemoteFieldApiResponse"; export * from "./RemoteFieldClass"; export * from "./RemoteFieldClassFieldChoicesItem"; -export * from "./RemoteFieldClassFieldFormat"; -export * from "./RemoteFieldClassFieldType"; export * from "./RemoteFieldRemoteFieldClass"; export * from "./RemoteFieldRequest"; export * from "./RemoteFieldRequestRemoteFieldClass"; export * from "./RemoteKey"; export * from "./RemoteResponse"; +export * from "./RemoteResponseResponseType"; export * from "./RequestFormatEnum"; export * from "./ResponseTypeEnum"; export * from "./Role"; @@ -128,6 +132,7 @@ export * from "./SelectiveSyncConfigurationsUsageEnum"; export * from "./StatusFd5Enum"; export * from "./SyncStatus"; export * from "./SyncStatusLastSyncResult"; +export * from "./SyncStatusStatus"; export * from "./Tag"; export * from "./Team"; export * from "./Ticket"; diff --git a/src/version.ts b/src/version.ts index 68e5be6bd..af16f1280 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "3.0.1"; +export const SDK_VERSION = "3.0.2"; diff --git a/tests/integration/merge-accounting.integration.test.ts b/tests/integration/merge-accounting.integration.test.ts index c11c8485b..0c762e26c 100644 --- a/tests/integration/merge-accounting.integration.test.ts +++ b/tests/integration/merge-accounting.integration.test.ts @@ -18,144 +18,144 @@ describe("Merge Accounting Client Integration", () => { }); it("should list accounts", async () => { - const { data: body, rawResponse: response } = await client.accounting.accounts.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.accounting.accounts.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list attachments", async () => { - const { data: body, rawResponse: response } = await client.accounting.attachments.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); + const page = await client.accounting.attachments.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); }); it("should list balance sheets", async () => { - const { data: body, rawResponse: response } = await client.accounting.balanceSheets.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); + const page = await client.accounting.balanceSheets.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); }); it("should list vendor credits", async () => { - const { data: body, rawResponse: response } = await client.accounting.vendorCredits.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); + const page = await client.accounting.vendorCredits.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); }); it("should list transactions", async () => { - const { data: body, rawResponse: response } = await client.accounting.transactions.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); + const page = await client.accounting.transactions.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); }); it("should list tracking categories", async () => { - const { data: body, rawResponse: response } = await client.accounting.trackingCategories.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); + const page = await client.accounting.trackingCategories.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); }); it("should list tax rates", async () => { - const { data: body, rawResponse: response } = await client.accounting.taxRates.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); + const page = await client.accounting.taxRates.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); }); it("should list purchase orders", async () => { - const { data: body, rawResponse: response } = await client.accounting.purchaseOrders.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); + const page = await client.accounting.purchaseOrders.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); }); it("should list projects", async () => { - const { data: body, rawResponse: response } = await client.accounting.projects.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); + const page = await client.accounting.projects.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); }); it("should list payment terms", async () => { - const { data: body, rawResponse: response } = await client.accounting.paymentTerms.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); + const page = await client.accounting.paymentTerms.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); }); it("should list payment methods", async () => { - const { data: body, rawResponse: response } = await client.accounting.paymentMethods.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); + const page = await client.accounting.paymentMethods.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); }); it("should list payments", async () => { - const { data: body, rawResponse: response } = await client.accounting.payments.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); + const page = await client.accounting.payments.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); }); it("should list journal entries", async () => { - const { data: body, rawResponse: response } = await client.accounting.journalEntries.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); + const page = await client.accounting.journalEntries.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); }); it("should list items", async () => { - const { data: body, rawResponse: response } = await client.accounting.items.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); + const page = await client.accounting.items.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); }); it("should list invoices", async () => { - const { data: body, rawResponse: response } = await client.accounting.invoices.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); + const page = await client.accounting.invoices.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); }); it("should list invoices with query params", async () => { - const { data: body, rawResponse: response } = await client.accounting.invoices.list({ + const page = await client.accounting.invoices.list({ expand: "accounting_period", - }).withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); + }); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); }); it("should list income statements", async () => { - const { data: body, rawResponse: response } = await client.accounting.incomeStatements.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); + const page = await client.accounting.incomeStatements.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); }, 65000); it("should list general ledger transactions", async () => { - const { data: body, rawResponse: response } = await client.accounting.generalLedgerTransactions.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); + const page = await client.accounting.generalLedgerTransactions.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); }); it("should list expenses", async () => { - const { data: body, rawResponse: response } = await client.accounting.expenses.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); + const page = await client.accounting.expenses.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); }); it("should list employees", async () => { - const { data: body, rawResponse: response } = await client.accounting.employees.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); + const page = await client.accounting.employees.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); }); it("should list credit notes", async () => { - const { data: body, rawResponse: response } = await client.accounting.creditNotes.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); + const page = await client.accounting.creditNotes.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); }); it("should list contacts", async () => { - const { data: body, rawResponse: response } = await client.accounting.contacts.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); + const page = await client.accounting.contacts.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); }); it("should list company info", async () => { - const { data: body, rawResponse: response } = await client.accounting.companyInfo.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); + const page = await client.accounting.companyInfo.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); }); it("should retrieve account details fields exist", async () => { @@ -180,8 +180,8 @@ describe("Merge Accounting Client Integration", () => { }); it("should list sync status", async () => { - const { data: body, rawResponse: response } = await client.accounting.syncStatus.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); + const page = await client.accounting.syncStatus.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); }, 65000); }); diff --git a/tests/integration/merge-crm.integration.test.ts b/tests/integration/merge-crm.integration.test.ts index 54897dcb3..4acfadb51 100644 --- a/tests/integration/merge-crm.integration.test.ts +++ b/tests/integration/merge-crm.integration.test.ts @@ -18,74 +18,74 @@ describe("Merge CRM Client Integration", () => { }); it("should list accounts", async () => { - const { data: body, rawResponse: response } = await client.crm.accounts.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.crm.accounts.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }, 65000); it("should list contacts", async () => { - const { data: body, rawResponse: response } = await client.crm.contacts.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.crm.contacts.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list leads", async () => { - const { data: body, rawResponse: response } = await client.crm.leads.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.crm.leads.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list opportunities", async () => { - const { data: body, rawResponse: response } = await client.crm.opportunities.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.crm.opportunities.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list users", async () => { - const { data: body, rawResponse: response } = await client.crm.users.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.crm.users.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list tasks", async () => { - const { data: body, rawResponse: response } = await client.crm.tasks.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.crm.tasks.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list notes", async () => { - const { data: body, rawResponse: response } = await client.crm.notes.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.crm.notes.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list engagements", async () => { - const { data: body, rawResponse: response } = await client.crm.engagements.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.crm.engagements.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list stages", async () => { - const { data: body, rawResponse: response } = await client.crm.stages.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.crm.stages.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list custom object classes", async () => { - const { data: body, rawResponse: response } = await client.crm.customObjectClasses.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.crm.customObjectClasses.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); @@ -103,9 +103,9 @@ describe("Merge CRM Client Integration", () => { }); it("should list sync status", async () => { - const { data: body, rawResponse: response } = await client.crm.syncStatus.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); + const page = await client.crm.syncStatus.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); }, 65000); it("should list available actions", async () => { @@ -115,18 +115,18 @@ describe("Merge CRM Client Integration", () => { }); it("should list issues", async () => { - const { data: body, rawResponse: response } = await client.crm.issues.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.crm.issues.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should retrieve audit trail", async () => { - const { data: body, rawResponse: response } = await client.crm.auditTrail.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.crm.auditTrail.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should retrieve account details fields exist", async () => { @@ -136,4 +136,4 @@ describe("Merge CRM Client Integration", () => { expect(body.integration).toBeDefined(); expect(body.category).toBeDefined(); }); -}); \ No newline at end of file +}); diff --git a/tests/integration/merge-filestorage.integration.test.ts b/tests/integration/merge-filestorage.integration.test.ts index 653bc9f7c..6ea28cccd 100644 --- a/tests/integration/merge-filestorage.integration.test.ts +++ b/tests/integration/merge-filestorage.integration.test.ts @@ -18,38 +18,38 @@ describe("Merge FileStorage Client Integration", () => { }); it("should list drives", async () => { - const { data: body, rawResponse: response } = await client.filestorage.drives.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.filestorage.drives.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list files", async () => { - const { data: body, rawResponse: response } = await client.filestorage.files.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.filestorage.files.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list folders", async () => { - const { data: body, rawResponse: response } = await client.filestorage.folders.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.filestorage.folders.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list groups", async () => { - const { data: body, rawResponse: response } = await client.filestorage.groups.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.filestorage.groups.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list users", async () => { - const { data: body, rawResponse: response } = await client.filestorage.users.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.filestorage.users.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); @@ -66,9 +66,9 @@ describe("Merge FileStorage Client Integration", () => { }); it("should list sync status", async () => { - const { data: body, rawResponse: response } = await client.filestorage.syncStatus.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); + const page = await client.filestorage.syncStatus.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); }); it("should list available actions", async () => { @@ -78,24 +78,24 @@ describe("Merge FileStorage Client Integration", () => { }); it("should list issues", async () => { - const { data: body, rawResponse: response } = await client.filestorage.issues.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.filestorage.issues.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list linked accounts", async () => { - const { data: body, rawResponse: response } = await client.filestorage.linkedAccounts.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.filestorage.linkedAccounts.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should retrieve audit trail", async () => { - const { data: body, rawResponse: response } = await client.filestorage.auditTrail.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.filestorage.auditTrail.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should retrieve account details fields exist", async () => { @@ -107,20 +107,20 @@ describe("Merge FileStorage Client Integration", () => { }); it("should list files with query params", async () => { - const { data: body, rawResponse: response } = await client.filestorage.files.list({ + const page = await client.filestorage.files.list({ expand: "permissions,folder", - }).withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + }); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list folders with query params", async () => { - const { data: body, rawResponse: response } = await client.filestorage.folders.list({ + const page = await client.filestorage.folders.list({ expand: "permissions,parent_folder", - }).withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + }); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); }); \ No newline at end of file diff --git a/tests/integration/merge-hris.integration.test.ts b/tests/integration/merge-hris.integration.test.ts index cfd0f4c34..c6cfa4a04 100644 --- a/tests/integration/merge-hris.integration.test.ts +++ b/tests/integration/merge-hris.integration.test.ts @@ -18,80 +18,80 @@ describe("Merge HRIS Client Integration", () => { }); it("should list employees", async () => { - const { data: body, rawResponse: response } = await client.hris.employees.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.hris.employees.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list employments", async () => { - const { data: body, rawResponse: response } = await client.hris.employments.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.hris.employments.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list teams", async () => { - const { data: body, rawResponse: response } = await client.hris.teams.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.hris.teams.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list locations", async () => { - const { data: body, rawResponse: response } = await client.hris.locations.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.hris.locations.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list benefits", async () => { - const { data: body, rawResponse: response } = await client.hris.benefits.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.hris.benefits.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list pay groups", async () => { - const { data: body, rawResponse: response } = await client.hris.payGroups.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.hris.payGroups.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list dependents", async () => { - const { data: body, rawResponse: response } = await client.hris.dependents.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.hris.dependents.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list groups", async () => { - const { data: body, rawResponse: response } = await client.hris.groups.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.hris.groups.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list time off", async () => { - const { data: body, rawResponse: response } = await client.hris.timeOff.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.hris.timeOff.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list time off balances", async () => { - const { data: body, rawResponse: response } = await client.hris.timeOffBalances.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.hris.timeOffBalances.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list bank info", async () => { - const { data: body, rawResponse: response } = await client.hris.bankInfo.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.hris.bankInfo.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should retrieve linked account scopes", async () => { @@ -107,9 +107,9 @@ describe("Merge HRIS Client Integration", () => { }); it("should list sync status", async () => { - const { data: body, rawResponse: response } = await client.hris.syncStatus.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); + const page = await client.hris.syncStatus.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); }, 65000); it("should list available actions", async () => { @@ -119,18 +119,18 @@ describe("Merge HRIS Client Integration", () => { }); it("should list issues", async () => { - const { data: body, rawResponse: response } = await client.hris.issues.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.hris.issues.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should retrieve audit trail", async () => { - const { data: body, rawResponse: response } = await client.hris.auditTrail.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.hris.auditTrail.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should retrieve account details fields exist", async () => { @@ -140,4 +140,4 @@ describe("Merge HRIS Client Integration", () => { expect(body.integration).toBeDefined(); expect(body.category).toBeDefined(); }); -}); \ No newline at end of file +}); diff --git a/tests/integration/merge-ticketing.integration.test.ts b/tests/integration/merge-ticketing.integration.test.ts index e93b2d0dd..7b352cb3a 100644 --- a/tests/integration/merge-ticketing.integration.test.ts +++ b/tests/integration/merge-ticketing.integration.test.ts @@ -18,74 +18,74 @@ describe("Merge Ticketing Client Integration", () => { }); it("should list accounts", async () => { - const { data: body, rawResponse: response } = await client.ticketing.accounts.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.ticketing.accounts.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list attachments", async () => { - const { data: body, rawResponse: response } = await client.ticketing.attachments.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.ticketing.attachments.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list collections", async () => { - const { data: body, rawResponse: response } = await client.ticketing.collections.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.ticketing.collections.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list comments", async () => { - const { data: body, rawResponse: response } = await client.ticketing.comments.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.ticketing.comments.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list contacts", async () => { - const { data: body, rawResponse: response } = await client.ticketing.contacts.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.ticketing.contacts.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list roles", async () => { - const { data: body, rawResponse: response } = await client.ticketing.roles.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.ticketing.roles.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list tags", async () => { - const { data: body, rawResponse: response } = await client.ticketing.tags.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.ticketing.tags.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list teams", async () => { - const { data: body, rawResponse: response } = await client.ticketing.teams.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.ticketing.teams.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list tickets", async () => { - const { data: body, rawResponse: response } = await client.ticketing.tickets.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.ticketing.tickets.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list users", async () => { - const { data: body, rawResponse: response } = await client.ticketing.users.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.ticketing.users.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should retrieve linked account scopes", async () => { @@ -101,9 +101,9 @@ describe("Merge Ticketing Client Integration", () => { }); it("should list sync status", async () => { - const { data: body, rawResponse: response } = await client.ticketing.syncStatus.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); + const page = await client.ticketing.syncStatus.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); }, 65000); it("should list available actions", async () => { @@ -113,24 +113,24 @@ describe("Merge Ticketing Client Integration", () => { }); it("should list issues", async () => { - const { data: body, rawResponse: response } = await client.ticketing.issues.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.ticketing.issues.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should list linked accounts", async () => { - const { data: body, rawResponse: response } = await client.ticketing.linkedAccounts.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.ticketing.linkedAccounts.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should retrieve audit trail", async () => { - const { data: body, rawResponse: response } = await client.ticketing.auditTrail.list().withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + const page = await client.ticketing.auditTrail.list(); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); it("should retrieve account details fields exist", async () => { @@ -142,11 +142,11 @@ describe("Merge Ticketing Client Integration", () => { }); it("should list tickets with query params", async () => { - const { data: body, rawResponse: response } = await client.ticketing.tickets.list({ + const page = await client.ticketing.tickets.list({ expand: "account", - }).withRawResponse(); - expect(response.status).toBe(200); - expect(body).toBeTruthy(); - expect(Array.isArray(body.results)).toBe(true); + }); + expect(page.rawResponse.status).toBe(200); + expect(page.response).toBeTruthy(); + expect(Array.isArray(page.response.results)).toBe(true); }); -}); \ No newline at end of file +}); diff --git a/tests/unit/enum-response-handling.test.ts b/tests/unit/enum-response-handling.test.ts index 56d43f89a..798c1cb1c 100644 --- a/tests/unit/enum-response-handling.test.ts +++ b/tests/unit/enum-response-handling.test.ts @@ -36,22 +36,22 @@ describe("Enum Response Handling", () => { }); // Make the request - should not throw - const response = await accounting.trackingCategories.list(); + const page = await accounting.trackingCategories.list(); // Verify the response contains the unknown enum values preserved - expect(response.results).toHaveLength(2); + expect(page.data).toHaveLength(2); // First tracking category with unknown enums - expect(response.results[0].id).toBe("tc_123"); - expect(response.results[0].name).toBe("Location Category"); - expect(response.results[0].categoryType).toBe("LOCATION"); - expect(response.results[0].status).toBe("ARCHIVED"); + expect(page.data[0].id).toBe("tc_123"); + expect(page.data[0].name).toBe("Location Category"); + expect(page.data[0].categoryType).toBe("LOCATION"); + expect(page.data[0].status).toBe("ARCHIVED"); // Second tracking category with unknown enums - expect(response.results[1].id).toBe("tc_456"); - expect(response.results[1].name).toBe("Project Category"); - expect(response.results[1].categoryType).toBe("PROJECT_CODE"); - expect(response.results[1].status).toBe("PENDING_APPROVAL"); + expect(page.data[1].id).toBe("tc_456"); + expect(page.data[1].name).toBe("Project Category"); + expect(page.data[1].categoryType).toBe("PROJECT_CODE"); + expect(page.data[1].status).toBe("PENDING_APPROVAL"); // Verify the mock was called correctly expect(mockFetcher).toHaveBeenCalledWith( @@ -87,13 +87,13 @@ describe("Enum Response Handling", () => { }); // Test request with unknown enum (should not throw) - const response = await accounting.trackingCategories.list({ + const page = await accounting.trackingCategories.list({ categoryType: "LOCATION" // Unknown enum in request }); // Verify response deserialization works with unknown enums - expect(response.results[0].categoryType).toBe("LOCATION"); - expect(response.results[0].status).toBe("ACTIVE"); + expect(page.data[0].categoryType).toBe("LOCATION"); + expect(page.data[0].status).toBe("ACTIVE"); // Verify the request was made with the unknown enum value expect(mockFetcher).toHaveBeenCalledWith( @@ -126,10 +126,10 @@ describe("Enum Response Handling", () => { fetcher: mockFetcher }); - const response = await accounting.accounts.list(); + const page = await accounting.accounts.list(); - expect(response.results[0].classification).toBe("FIXED_ASSET"); - expect(response.results[0].status).toBe("SUSPENDED"); + expect(page.data[0].classification).toBe("FIXED_ASSET"); + expect(page.data[0].status).toBe("SUSPENDED"); }); it("should handle unknown enums in nested objects", async () => { @@ -154,14 +154,14 @@ describe("Enum Response Handling", () => { fetcher: mockFetcher }); - const response = await accounting.accounts.list(); + const page = await accounting.accounts.list(); // Test top-level unknown enum - expect(response.results[0].classification).toBe("CURRENT_ASSET"); + expect(page.data[0].classification).toBe("CURRENT_ASSET"); // Test nested unknown enum (if the field exists) - if (response.results[0].parentAccount?.classification) { - expect(response.results[0].parentAccount.classification).toBe("FIXED_ASSET"); + if (page.data[0].parentAccount?.classification) { + expect(page.data[0].parentAccount.classification).toBe("FIXED_ASSET"); } }); @@ -187,10 +187,10 @@ describe("Enum Response Handling", () => { fetcher: mockFetcher }); - const response = await accounting.contacts.list(); + const page = await accounting.contacts.list(); - expect(response.results[0].phoneNumbers[1].type).toBe("WORK_DIRECT"); - expect(response.results[0].phoneNumbers[2].type).toBe("HOME_FAX"); + expect(page.data[0].phoneNumbers[1].type).toBe("WORK_DIRECT"); + expect(page.data[0].phoneNumbers[2].type).toBe("HOME_FAX"); }); it("should handle unknown enums in line items", async () => { @@ -232,17 +232,17 @@ describe("Enum Response Handling", () => { fetcher: mockFetcher }); - const response = await accounting.invoices.list(); + const page = await accounting.invoices.list(); // Test invoice-level unknown enum - expect(response.results[0].status).toBe("PENDING_REVIEW"); + expect(page.data[0].status).toBe("PENDING_REVIEW"); // Test line item structure exists - expect(response.results[0].lineItems).toBeDefined(); - expect(response.results[0].lineItems.length).toBe(2); + expect(page.data[0].lineItems).toBeDefined(); + expect(page.data[0].lineItems.length).toBe(2); // Test unknown enums in first line item (check if properties exist first) - const firstLineItem = response.results[0].lineItems[0]; + const firstLineItem = page.data[0].lineItems[0]; if (firstLineItem.item?.classification) { expect(firstLineItem.item.classification).toBe("INVENTORY_ASSET"); } @@ -257,7 +257,7 @@ describe("Enum Response Handling", () => { } // Test unknown enum in second line item - const secondLineItem = response.results[0].lineItems[1]; + const secondLineItem = page.data[0].lineItems[1]; if (secondLineItem.item?.classification) { expect(secondLineItem.item.classification).toBe("SERVICE_ITEM"); } @@ -282,10 +282,10 @@ describe("Enum Response Handling", () => { fetcher: mockFetcher }); - const response = await accounting.accounts.list(); + const page = await accounting.accounts.list(); - expect(response.results[0].status).toBe(""); - expect(response.results[0].classification).toBe("SPECIAL-CHARS_123"); + expect(page.data[0].status).toBe(""); + expect(page.data[0].classification).toBe("SPECIAL-CHARS_123"); }); it("should handle unknown enums across different API categories", async () => { @@ -340,17 +340,17 @@ describe("Enum Response Handling", () => { fetcher: mockFetcher }); - const response = await crm.opportunities.list(); + const page = await crm.opportunities.list(); // Test unknown enums across different levels - expect(response.results[0].status).toBe("PROPOSAL_SENT"); + expect(page.data[0].status).toBe("PROPOSAL_SENT"); - if (response.results[0].stage?.stageType) { - expect(response.results[0].stage.stageType).toBe("QUALIFICATION_EXTENDED"); + if (page.data[0].stage?.stageType) { + expect(page.data[0].stage.stageType).toBe("QUALIFICATION_EXTENDED"); } - if (response.results[0].owner?.role) { - expect(response.results[0].owner.role).toBe("SENIOR_SALES_REP"); + if (page.data[0].owner?.role) { + expect(page.data[0].owner.role).toBe("SENIOR_SALES_REP"); } }); }); \ No newline at end of file diff --git a/tests/unit/utils/setObjectProperty.test.ts b/tests/unit/utils/setObjectProperty.test.ts new file mode 100644 index 000000000..29f8e638d --- /dev/null +++ b/tests/unit/utils/setObjectProperty.test.ts @@ -0,0 +1,76 @@ +import { setObjectProperty } from "../../../src/core/utils/setObjectProperty"; + +interface TestCase { + description: string; + giveObject: object; + givePath: string; + giveValue: any; + wantObject: object; +} + +describe("Test setObjectProperty", () => { + const testCases: TestCase[] = [ + { + description: "empty", + giveObject: {}, + givePath: "", + giveValue: 0, + wantObject: { "": 0 }, + }, + { + description: "top-level primitive", + giveObject: {}, + givePath: "age", + giveValue: 42, + wantObject: { age: 42 }, + }, + { + description: "top-level object", + giveObject: {}, + givePath: "name", + giveValue: { first: "John", last: "Doe" }, + wantObject: { name: { first: "John", last: "Doe" } }, + }, + { + description: "top-level array", + giveObject: {}, + givePath: "values", + giveValue: [1, 2, 3], + wantObject: { values: [1, 2, 3] }, + }, + { + description: "nested object property", + giveObject: { + name: { + first: "John", + }, + }, + givePath: "name.last", + giveValue: "Doe", + wantObject: { name: { first: "John", last: "Doe" } }, + }, + { + description: "deeply nested object property", + giveObject: { + info: { + address: { + street: "123 Main St.", + }, + age: 42, + name: { + last: "Doe", + }, + }, + }, + givePath: "info.name.first", + giveValue: "John", + wantObject: { + info: { age: 42, address: { street: "123 Main St." }, name: { first: "John", last: "Doe" } }, + }, + }, + ]; + test.each(testCases)("$description", ({ giveObject, givePath, giveValue, wantObject }) => { + const result = setObjectProperty(giveObject, givePath, giveValue); + expect(result).toEqual(wantObject); + }); +}); diff --git a/tests/wire/ats/accountDetails.test.ts b/tests/wire/ATS/accountDetails.test.ts similarity index 100% rename from tests/wire/ats/accountDetails.test.ts rename to tests/wire/ATS/accountDetails.test.ts diff --git a/tests/wire/ATS/accountToken.test.ts b/tests/wire/ATS/accountToken.test.ts new file mode 100644 index 000000000..d15ccf2a5 --- /dev/null +++ b/tests/wire/ATS/accountToken.test.ts @@ -0,0 +1,90 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("AccountTokenClient", () => { + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + account_token: "T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB", + integration: { + name: "name", + abbreviated_name: "abbreviated_name", + categories: ["hris"], + image: "image", + square_image: "square_image", + color: "color", + slug: "slug", + api_endpoints_to_documentation_urls: { key: "value" }, + webhook_setup_guide_url: "webhook_setup_guide_url", + category_beta_status: { key: "value" }, + }, + id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", + }; + server + .mockEndpoint() + .get("/ats/v1/account-token/public_token") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.ats.accountToken.retrieve("public_token"); + expect(response).toEqual({ + accountToken: "T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB", + integration: { + name: "name", + abbreviatedName: "abbreviated_name", + categories: ["hris"], + image: "image", + squareImage: "square_image", + color: "color", + slug: "slug", + apiEndpointsToDocumentationUrls: { + key: "value", + }, + webhookSetupGuideUrl: "webhook_setup_guide_url", + categoryBetaStatus: { + key: "value", + }, + }, + id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", + }); + }); + + test("regenerateCreate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + linked_account_id: "e59b1821-f85c-4e28-a6b3-1804156f3563", + account_token: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", + }; + server + .mockEndpoint() + .post("/ats/v1/account-token/regenerate") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.ats.accountToken.regenerateCreate(); + expect(response).toEqual({ + linkedAccountId: "e59b1821-f85c-4e28-a6b3-1804156f3563", + accountToken: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", + }); + }); +}); diff --git a/tests/wire/ats/activities.test.ts b/tests/wire/ATS/activities.test.ts similarity index 98% rename from tests/wire/ats/activities.test.ts rename to tests/wire/ATS/activities.test.ts index b0fb7c10d..a19552e05 100644 --- a/tests/wire/ats/activities.test.ts +++ b/tests/wire/ATS/activities.test.ts @@ -38,25 +38,15 @@ describe("ActivitiesClient", () => { }, ], }; - server.mockEndpoint().get("/ats/v1/activities").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + server + .mockEndpoint({ once: false }) + .get("/ats/v1/activities") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); - const response = await client.ats.activities.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "user", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteFields: "activity_type", - remoteId: "remote_id", - showEnumOrigins: "activity_type", - userId: "user_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -89,7 +79,27 @@ describe("ActivitiesClient", () => { ], }, ], + }; + const page = await client.ats.activities.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "activity_type", + remoteId: "remote_id", + showEnumOrigins: "activity_type", + userId: "user_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("create", async () => { @@ -264,7 +274,6 @@ describe("ActivitiesClient", () => { .build(); const response = await client.ats.activities.retrieve("id", { - expand: "user", includeRemoteData: true, includeShellData: true, remoteFields: "activity_type", diff --git a/tests/wire/ats/applications.test.ts b/tests/wire/ATS/applications.test.ts similarity index 99% rename from tests/wire/ats/applications.test.ts rename to tests/wire/ATS/applications.test.ts index 4aa013b0a..50d442906 100644 --- a/tests/wire/ats/applications.test.ts +++ b/tests/wire/ATS/applications.test.ts @@ -42,33 +42,14 @@ describe("ApplicationsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/ats/v1/applications") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.ats.applications.list({ - candidateId: "candidate_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - creditedToId: "credited_to_id", - currentStageId: "current_stage_id", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "candidate", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - jobId: "job_id", - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - rejectReasonId: "reject_reason_id", - remoteId: "remote_id", - source: "source", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -104,7 +85,30 @@ describe("ApplicationsClient", () => { ], }, ], + }; + const page = await client.ats.applications.list({ + candidateId: "candidate_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + creditedToId: "credited_to_id", + currentStageId: "current_stage_id", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + jobId: "job_id", + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + rejectReasonId: "reject_reason_id", + remoteId: "remote_id", + source: "source", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("create", async () => { @@ -288,7 +292,6 @@ describe("ApplicationsClient", () => { .build(); const response = await client.ats.applications.retrieve("id", { - expand: "candidate", includeRemoteData: true, includeShellData: true, }); diff --git a/tests/wire/ats/asyncPassthrough.test.ts b/tests/wire/ATS/asyncPassthrough.test.ts similarity index 100% rename from tests/wire/ats/asyncPassthrough.test.ts rename to tests/wire/ATS/asyncPassthrough.test.ts diff --git a/tests/wire/ATS/attachments.test.ts b/tests/wire/ATS/attachments.test.ts new file mode 100644 index 000000000..a5f8443b5 --- /dev/null +++ b/tests/wire/ATS/attachments.test.ts @@ -0,0 +1,714 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("AttachmentsClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "c640b80b-fac9-409f-aa19-1f9221aec445", + remote_id: "11167", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + file_name: "Candidate Resume", + file_url: "http://alturl.com/p749b", + candidate: "2872ba14-4084-492b-be96-e5eee6fc33ef", + attachment_type: "RESUME", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/attachments", data: ["Varies by platform"] }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/ats/v1/attachments") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "c640b80b-fac9-409f-aa19-1f9221aec445", + remoteId: "11167", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + fileName: "Candidate Resume", + fileUrl: "http://alturl.com/p749b", + candidate: "2872ba14-4084-492b-be96-e5eee6fc33ef", + attachmentType: "RESUME", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/attachments", + data: ["Varies by platform"], + }, + ], + }, + ], + }; + const page = await client.ats.attachments.list({ + candidateId: "candidate_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "attachment_type", + remoteId: "remote_id", + showEnumOrigins: "attachment_type", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("create", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { model: {}, remote_user_id: "remote_user_id" }; + const rawResponseBody = { + model: { + id: "c640b80b-fac9-409f-aa19-1f9221aec445", + remote_id: "11167", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + file_name: "Candidate Resume", + file_url: "http://alturl.com/p749b", + candidate: "2872ba14-4084-492b-be96-e5eee6fc33ef", + attachment_type: "RESUME", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/attachments", data: ["Varies by platform"] }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/ats/v1/attachments") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.ats.attachments.create({ + isDebugMode: true, + runAsync: true, + model: {}, + remoteUserId: "remote_user_id", + }); + expect(response).toEqual({ + model: { + id: "c640b80b-fac9-409f-aa19-1f9221aec445", + remoteId: "11167", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + fileName: "Candidate Resume", + fileUrl: "http://alturl.com/p749b", + candidate: "2872ba14-4084-492b-be96-e5eee6fc33ef", + attachmentType: "RESUME", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/attachments", + data: ["Varies by platform"], + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + id: "c640b80b-fac9-409f-aa19-1f9221aec445", + remote_id: "11167", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + file_name: "Candidate Resume", + file_url: "http://alturl.com/p749b", + candidate: "2872ba14-4084-492b-be96-e5eee6fc33ef", + attachment_type: "RESUME", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/attachments", data: ["Varies by platform"] }], + }; + server + .mockEndpoint() + .get("/ats/v1/attachments/id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.ats.attachments.retrieve("id", { + includeRemoteData: true, + includeShellData: true, + remoteFields: "attachment_type", + showEnumOrigins: "attachment_type", + }); + expect(response).toEqual({ + id: "c640b80b-fac9-409f-aa19-1f9221aec445", + remoteId: "11167", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + fileName: "Candidate Resume", + fileUrl: "http://alturl.com/p749b", + candidate: "2872ba14-4084-492b-be96-e5eee6fc33ef", + attachmentType: "RESUME", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/attachments", + data: ["Varies by platform"], + }, + ], + }); + }); + + test("metaPostRetrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + request_schema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + email_address_type: { type: "string", title: "email_address_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + url_type: { type: "string", title: "url_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { type: "string", title: "first_name", description: "The first name." }, + last_name: { type: "string", title: "last_name", description: "The last name." }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + phone_number_type: { type: "string", title: "phone_number_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { type: "string", title: "id" }, + file_url: { type: "string", title: "file_url" }, + file_name: { type: "string", title: "file_name" }, + attachment_type: { type: "string", title: "attachment_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { value: "HRIS", description: "Merge HRIS Category" }, + { value: "ATS", description: "Merge ATS Category" }, + { value: "Accounting", description: "Merge Accounting Category" }, + { value: "Ticketing", description: "Merge Ticketing Category" }, + { value: "File Storage", description: "Merge File Storage Category" }, + { value: "CRM", description: "Merge CRM Category" }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remote_field_classes: { key: "value" }, + status: { linked_account_status: "linked_account_status", can_make_request: true }, + has_conditional_params: true, + has_required_linked_account_params: true, + }; + server + .mockEndpoint() + .get("/ats/v1/attachments/meta/post") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.ats.attachments.metaPostRetrieve(); + expect(response).toEqual({ + requestSchema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + email_address_type: { + type: "string", + title: "email_address_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + url_type: { + type: "string", + title: "url_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { + type: "string", + title: "first_name", + description: "The first name.", + }, + last_name: { + type: "string", + title: "last_name", + description: "The last name.", + }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + phone_number_type: { + type: "string", + title: "phone_number_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { + type: "string", + title: "id", + }, + file_url: { + type: "string", + title: "file_url", + }, + file_name: { + type: "string", + title: "file_name", + }, + attachment_type: { + type: "string", + title: "attachment_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { + value: "HRIS", + description: "Merge HRIS Category", + }, + { + value: "ATS", + description: "Merge ATS Category", + }, + { + value: "Accounting", + description: "Merge Accounting Category", + }, + { + value: "Ticketing", + description: "Merge Ticketing Category", + }, + { + value: "File Storage", + description: "Merge File Storage Category", + }, + { + value: "CRM", + description: "Merge CRM Category", + }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remoteFieldClasses: { + key: "value", + }, + status: { + linkedAccountStatus: "linked_account_status", + canMakeRequest: true, + }, + hasConditionalParams: true, + hasRequiredLinkedAccountParams: true, + }); + }); +}); diff --git a/tests/wire/ATS/auditTrail.test.ts b/tests/wire/ATS/auditTrail.test.ts new file mode 100644 index 000000000..5edb57afc --- /dev/null +++ b/tests/wire/ATS/auditTrail.test.ts @@ -0,0 +1,72 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("AuditTrailClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "b5ceea2a-7171-47ce-8090-165cfce5572c", + user_name: "Gil Feig", + user_email: "hello@merge.dev", + role: "ADMIN", + ip_address: "192.0.2.123", + event_type: "CREATED_REMOTE_PRODUCTION_API_KEY", + event_description: + "Organization-wide Scopes for model hris.Employee updated from Read to Read+Write", + created_at: "2024-01-15T09:30:00Z", + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/ats/v1/audit-trail") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "b5ceea2a-7171-47ce-8090-165cfce5572c", + userName: "Gil Feig", + userEmail: "hello@merge.dev", + role: "ADMIN", + ipAddress: "192.0.2.123", + eventType: "CREATED_REMOTE_PRODUCTION_API_KEY", + eventDescription: + "Organization-wide Scopes for model hris.Employee updated from Read to Read+Write", + createdAt: new Date("2024-01-15T09:30:00.000Z"), + }, + ], + }; + const page = await client.ats.auditTrail.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endDate: "end_date", + eventType: "event_type", + pageSize: 1, + startDate: "start_date", + userEmail: "user_email", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); +}); diff --git a/tests/wire/ats/availableActions.test.ts b/tests/wire/ATS/availableActions.test.ts similarity index 100% rename from tests/wire/ats/availableActions.test.ts rename to tests/wire/ATS/availableActions.test.ts diff --git a/tests/wire/ats/candidates.test.ts b/tests/wire/ATS/candidates.test.ts similarity index 99% rename from tests/wire/ats/candidates.test.ts rename to tests/wire/ATS/candidates.test.ts index 49d50be5f..c5e1c555d 100644 --- a/tests/wire/ats/candidates.test.ts +++ b/tests/wire/ATS/candidates.test.ts @@ -72,26 +72,15 @@ describe("CandidatesClient", () => { }, ], }; - server.mockEndpoint().get("/ats/v1/candidates").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + server + .mockEndpoint({ once: false }) + .get("/ats/v1/candidates") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); - const response = await client.ats.candidates.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - emailAddresses: "email_addresses", - expand: "applications", - firstName: "first_name", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - lastName: "last_name", - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - tags: "tags", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -158,7 +147,28 @@ describe("CandidatesClient", () => { ], }, ], + }; + const page = await client.ats.candidates.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + emailAddresses: "email_addresses", + firstName: "first_name", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + lastName: "last_name", + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + tags: "tags", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("create", async () => { @@ -438,7 +448,6 @@ describe("CandidatesClient", () => { .build(); const response = await client.ats.candidates.retrieve("id", { - expand: "applications", includeRemoteData: true, includeShellData: true, }); diff --git a/tests/wire/ats/deleteAccount.test.ts b/tests/wire/ATS/deleteAccount.test.ts similarity index 100% rename from tests/wire/ats/deleteAccount.test.ts rename to tests/wire/ATS/deleteAccount.test.ts diff --git a/tests/wire/ats/departments.test.ts b/tests/wire/ATS/departments.test.ts similarity index 93% rename from tests/wire/ats/departments.test.ts rename to tests/wire/ATS/departments.test.ts index d1ea77d42..f9b783163 100644 --- a/tests/wire/ats/departments.test.ts +++ b/tests/wire/ATS/departments.test.ts @@ -33,26 +33,14 @@ describe("DepartmentsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/ats/v1/departments") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.ats.departments.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -79,7 +67,24 @@ describe("DepartmentsClient", () => { ], }, ], + }; + const page = await client.ats.departments.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { diff --git a/tests/wire/ats/eeocs.test.ts b/tests/wire/ATS/eeocs.test.ts similarity index 92% rename from tests/wire/ats/eeocs.test.ts rename to tests/wire/ATS/eeocs.test.ts index bc757e33c..a4c4e5461 100644 --- a/tests/wire/ats/eeocs.test.ts +++ b/tests/wire/ATS/eeocs.test.ts @@ -37,25 +37,15 @@ describe("EeocsClient", () => { }, ], }; - server.mockEndpoint().get("/ats/v1/eeocs").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + server + .mockEndpoint({ once: false }) + .get("/ats/v1/eeocs") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); - const response = await client.ats.eeocs.list({ - candidateId: "candidate_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "candidate", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteFields: "disability_status", - remoteId: "remote_id", - showEnumOrigins: "disability_status", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -87,7 +77,27 @@ describe("EeocsClient", () => { ], }, ], + }; + const page = await client.ats.eeocs.list({ + candidateId: "candidate_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "disability_status", + remoteId: "remote_id", + showEnumOrigins: "disability_status", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { @@ -120,7 +130,6 @@ describe("EeocsClient", () => { server.mockEndpoint().get("/ats/v1/eeocs/id").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); const response = await client.ats.eeocs.retrieve("id", { - expand: "candidate", includeRemoteData: true, includeShellData: true, remoteFields: "disability_status", diff --git a/tests/wire/ATS/fieldMapping.test.ts b/tests/wire/ATS/fieldMapping.test.ts new file mode 100644 index 000000000..ef128e1fc --- /dev/null +++ b/tests/wire/ATS/fieldMapping.test.ts @@ -0,0 +1,1908 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("FieldMappingClient", () => { + test("field_mappings_retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + Activity: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Application: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Attachment: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Candidate: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Department: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + EEOC: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + ScheduledInterview: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Job: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + JobPosting: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + JobInterviewStage: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Offer: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Office: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + RejectReason: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Scorecard: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Tag: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + RemoteUser: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + }; + server + .mockEndpoint() + .get("/ats/v1/field-mappings") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.ats.fieldMapping.fieldMappingsRetrieve({ + excludeRemoteFieldMetadata: true, + }); + expect(response).toEqual({ + activity: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + application: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + attachment: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + candidate: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + department: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + eeoc: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + scheduledInterview: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + job: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + jobPosting: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + jobInterviewStage: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + offer: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + office: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + rejectReason: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + scorecard: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + tag: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + remoteUser: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + }); + }); + + test("field_mappings_create", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { + target_field_name: "example_target_field_name", + target_field_description: "this is a example description of the target field", + remote_field_traversal_path: ["example_remote_field"], + remote_method: "GET", + remote_url_path: "/example-url-path", + common_model_name: "ExampleCommonModel", + }; + const rawResponseBody = { + model: { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/ats/v1/field-mappings") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.ats.fieldMapping.fieldMappingsCreate({ + excludeRemoteFieldMetadata: true, + targetFieldName: "example_target_field_name", + targetFieldDescription: "this is a example description of the target field", + remoteFieldTraversalPath: ["example_remote_field"], + remoteMethod: "GET", + remoteUrlPath: "/example-url-path", + commonModelName: "ExampleCommonModel", + }); + expect(response).toEqual({ + model: { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("field_mappings_destroy", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + model: { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .delete("/ats/v1/field-mappings/field_mapping_id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.ats.fieldMapping.fieldMappingsDestroy("field_mapping_id"); + expect(response).toEqual({ + model: { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("field_mappings_partial_update", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = {}; + const rawResponseBody = { + model: { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .patch("/ats/v1/field-mappings/field_mapping_id") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.ats.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { + remoteDataIterationCount: 1, + }); + expect(response).toEqual({ + model: { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("remote_fields_retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + Activity: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Application: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Attachment: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Candidate: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Department: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + EEOC: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + ScheduledInterview: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Job: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + JobPosting: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + JobInterviewStage: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Offer: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Office: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + RejectReason: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Scorecard: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Tag: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + RemoteUser: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + }; + server + .mockEndpoint() + .get("/ats/v1/remote-fields") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.ats.fieldMapping.remoteFieldsRetrieve({ + commonModels: "common_models", + includeExampleValues: "include_example_values", + }); + expect(response).toEqual({ + activity: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + application: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + attachment: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + candidate: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + department: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + eeoc: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + scheduledInterview: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + job: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + jobPosting: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + jobInterviewStage: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + offer: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + office: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + rejectReason: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + scorecard: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + tag: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + remoteUser: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + }); + }); + + test("target_fields_retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + Activity: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Application: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Attachment: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Candidate: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Department: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + EEOC: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + ScheduledInterview: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Job: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + JobPosting: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + JobInterviewStage: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Offer: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Office: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + RejectReason: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Scorecard: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Tag: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + RemoteUser: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + }; + server + .mockEndpoint() + .get("/ats/v1/target-fields") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.ats.fieldMapping.targetFieldsRetrieve(); + expect(response).toEqual({ + activity: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + application: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + attachment: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + candidate: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + department: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + eeoc: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + scheduledInterview: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + job: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + jobPosting: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + jobInterviewStage: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + offer: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + office: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + rejectReason: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + scorecard: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + tag: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + remoteUser: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + }); + }); +}); diff --git a/tests/wire/ats/forceResync.test.ts b/tests/wire/ATS/forceResync.test.ts similarity index 100% rename from tests/wire/ats/forceResync.test.ts rename to tests/wire/ATS/forceResync.test.ts diff --git a/tests/wire/ats/generateKey.test.ts b/tests/wire/ATS/generateKey.test.ts similarity index 100% rename from tests/wire/ats/generateKey.test.ts rename to tests/wire/ATS/generateKey.test.ts diff --git a/tests/wire/ats/interviews.test.ts b/tests/wire/ATS/interviews.test.ts similarity index 98% rename from tests/wire/ats/interviews.test.ts rename to tests/wire/ATS/interviews.test.ts index 3bcda1426..f14c71d91 100644 --- a/tests/wire/ats/interviews.test.ts +++ b/tests/wire/ATS/interviews.test.ts @@ -41,28 +41,15 @@ describe("InterviewsClient", () => { }, ], }; - server.mockEndpoint().get("/ats/v1/interviews").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + server + .mockEndpoint({ once: false }) + .get("/ats/v1/interviews") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); - const response = await client.ats.interviews.list({ - applicationId: "application_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "application", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - jobId: "job_id", - jobInterviewStageId: "job_interview_stage_id", - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - organizerId: "organizer_id", - pageSize: 1, - remoteFields: "status", - remoteId: "remote_id", - showEnumOrigins: "status", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -98,7 +85,30 @@ describe("InterviewsClient", () => { ], }, ], + }; + const page = await client.ats.interviews.list({ + applicationId: "application_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + jobId: "job_id", + jobInterviewStageId: "job_interview_stage_id", + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + organizerId: "organizer_id", + pageSize: 1, + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("create", async () => { @@ -282,7 +292,6 @@ describe("InterviewsClient", () => { .build(); const response = await client.ats.interviews.retrieve("id", { - expand: "application", includeRemoteData: true, includeShellData: true, remoteFields: "status", diff --git a/tests/wire/ATS/issues.test.ts b/tests/wire/ATS/issues.test.ts new file mode 100644 index 000000000..f6b288644 --- /dev/null +++ b/tests/wire/ATS/issues.test.ts @@ -0,0 +1,116 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("IssuesClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + status: "ONGOING", + error_description: "Missing Permissions", + end_user: { key: "value" }, + first_incident_time: "2022-12-05T16:19:15Z", + last_incident_time: "2022-12-05T16:19:15Z", + is_muted: true, + error_details: ["Missing employee permissions.", "Missing time off permissions."], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/ats/v1/issues") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + status: "ONGOING", + errorDescription: "Missing Permissions", + endUser: { + key: "value", + }, + firstIncidentTime: new Date("2022-12-05T16:19:15.000Z"), + lastIncidentTime: new Date("2022-12-05T16:19:15.000Z"), + isMuted: true, + errorDetails: ["Missing employee permissions.", "Missing time off permissions."], + }, + ], + }; + const page = await client.ats.issues.list({ + accountToken: "account_token", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endDate: "end_date", + endUserOrganizationName: "end_user_organization_name", + firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + includeMuted: "include_muted", + integrationName: "integration_name", + lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + linkedAccountId: "linked_account_id", + pageSize: 1, + startDate: "start_date", + status: "ONGOING", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + status: "ONGOING", + error_description: "Missing Permissions", + end_user: { key: "value" }, + first_incident_time: "2022-12-05T16:19:15Z", + last_incident_time: "2022-12-05T16:19:15Z", + is_muted: true, + error_details: ["Missing employee permissions.", "Missing time off permissions."], + }; + server.mockEndpoint().get("/ats/v1/issues/id").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + + const response = await client.ats.issues.retrieve("id"); + expect(response).toEqual({ + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + status: "ONGOING", + errorDescription: "Missing Permissions", + endUser: { + key: "value", + }, + firstIncidentTime: new Date("2022-12-05T16:19:15.000Z"), + lastIncidentTime: new Date("2022-12-05T16:19:15.000Z"), + isMuted: true, + errorDetails: ["Missing employee permissions.", "Missing time off permissions."], + }); + }); +}); diff --git a/tests/wire/ats/jobInterviewStages.test.ts b/tests/wire/ATS/jobInterviewStages.test.ts similarity index 94% rename from tests/wire/ats/jobInterviewStages.test.ts rename to tests/wire/ATS/jobInterviewStages.test.ts index 66c6ff263..1aa0ec77c 100644 --- a/tests/wire/ats/jobInterviewStages.test.ts +++ b/tests/wire/ATS/jobInterviewStages.test.ts @@ -35,28 +35,14 @@ describe("JobInterviewStagesClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/ats/v1/job-interview-stages") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.ats.jobInterviewStages.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "job", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - jobId: "job_id", - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -85,7 +71,25 @@ describe("JobInterviewStagesClient", () => { ], }, ], + }; + const page = await client.ats.jobInterviewStages.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + jobId: "job_id", + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { @@ -121,7 +125,6 @@ describe("JobInterviewStagesClient", () => { .build(); const response = await client.ats.jobInterviewStages.retrieve("id", { - expand: "job", includeRemoteData: true, includeShellData: true, }); diff --git a/tests/wire/ats/jobPostings.test.ts b/tests/wire/ATS/jobPostings.test.ts similarity index 95% rename from tests/wire/ats/jobPostings.test.ts rename to tests/wire/ATS/jobPostings.test.ts index 13e2d88d2..9c5270b30 100644 --- a/tests/wire/ats/jobPostings.test.ts +++ b/tests/wire/ATS/jobPostings.test.ts @@ -47,28 +47,14 @@ describe("JobPostingsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/ats/v1/job-postings") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.ats.jobPostings.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "job", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - status: "CLOSED", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -109,7 +95,25 @@ describe("JobPostingsClient", () => { ], }, ], + }; + const page = await client.ats.jobPostings.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + status: "CLOSED", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { @@ -158,7 +162,6 @@ describe("JobPostingsClient", () => { .build(); const response = await client.ats.jobPostings.retrieve("id", { - expand: "job", includeRemoteData: true, includeShellData: true, }); diff --git a/tests/wire/ats/jobs.test.ts b/tests/wire/ATS/jobs.test.ts similarity index 86% rename from tests/wire/ats/jobs.test.ts rename to tests/wire/ATS/jobs.test.ts index 838251877..84adb644f 100644 --- a/tests/wire/ats/jobs.test.ts +++ b/tests/wire/ATS/jobs.test.ts @@ -52,27 +52,15 @@ describe("JobsClient", () => { }, ], }; - server.mockEndpoint().get("/ats/v1/jobs").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + server + .mockEndpoint({ once: false }) + .get("/ats/v1/jobs") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); - const response = await client.ats.jobs.list({ - code: "code", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "departments", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - offices: "offices", - pageSize: 1, - remoteFields: "status", - remoteId: "remote_id", - showEnumOrigins: "status", - status: "ARCHIVED", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -119,7 +107,29 @@ describe("JobsClient", () => { ], }, ], + }; + const page = await client.ats.jobs.list({ + code: "code", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + offices: "offices", + pageSize: 1, + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status", + status: "ARCHIVED", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { @@ -168,7 +178,6 @@ describe("JobsClient", () => { server.mockEndpoint().get("/ats/v1/jobs/id").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); const response = await client.ats.jobs.retrieve("id", { - expand: "departments", includeRemoteData: true, includeShellData: true, remoteFields: "status", @@ -244,30 +253,34 @@ describe("JobsClient", () => { type: "DATE", required: true, options: [ - { remote_id: "19281", label: "I am currently authorised" }, - { remote_id: "38372", label: "I am currently not eligible" }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "19281", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + label: "I am currently authorised", + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "38372", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + label: "I am currently not eligible", + }, ], remote_was_deleted: true, }, ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/ats/v1/jobs/job_id/screening-questions") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.ats.jobs.screeningQuestionsList("job_id", { - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "job", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - pageSize: 1, - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -284,17 +297,35 @@ describe("JobsClient", () => { required: true, options: [ { - remote_id: "19281", + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "19281", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), label: "I am currently authorised", }, { - remote_id: "38372", + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "38372", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), label: "I am currently not eligible", }, ], remoteWasDeleted: true, }, ], + }; + const page = await client.ats.jobs.screeningQuestionsList("job_id", { + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + pageSize: 1, }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); }); diff --git a/tests/wire/ats/linkToken.test.ts b/tests/wire/ATS/linkToken.test.ts similarity index 100% rename from tests/wire/ats/linkToken.test.ts rename to tests/wire/ATS/linkToken.test.ts diff --git a/tests/wire/ATS/linkedAccounts.test.ts b/tests/wire/ATS/linkedAccounts.test.ts new file mode 100644 index 000000000..6a07e8be7 --- /dev/null +++ b/tests/wire/ATS/linkedAccounts.test.ts @@ -0,0 +1,119 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("LinkedAccountsClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "e59b1821-f85c-4e28-a6b3-1804156f3563", + category: "hris", + status: "COMPLETE", + status_detail: "Invalid login credentials", + end_user_origin_id: "3ac95cde-6c7f-4eef-afec-be710b42308d", + end_user_organization_name: "Foo Bar, LLC", + end_user_email_address: "hradmin@foobar.dev", + subdomain: "foobar", + webhook_listener_url: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", + is_duplicate: true, + integration: { + name: "name", + categories: ["hris"], + color: "color", + slug: "slug", + passthrough_available: true, + available_model_operations: [ + { + model_name: "Candidate", + available_operations: ["FETCH", "CREATE"], + required_post_parameters: ["remote_user_id"], + supported_fields: ["first_name", "last_name", "company", "title"], + }, + ], + }, + account_type: "PRODUCTION", + completed_at: "2024-08-26T20:11:19Z", + integration_specific_fields: { integration_specific_field: "Varies by platform" }, + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/ats/v1/linked-accounts") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "e59b1821-f85c-4e28-a6b3-1804156f3563", + category: "hris", + status: "COMPLETE", + statusDetail: "Invalid login credentials", + endUserOriginId: "3ac95cde-6c7f-4eef-afec-be710b42308d", + endUserOrganizationName: "Foo Bar, LLC", + endUserEmailAddress: "hradmin@foobar.dev", + subdomain: "foobar", + webhookListenerUrl: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", + isDuplicate: true, + integration: { + name: "name", + categories: ["hris"], + color: "color", + slug: "slug", + passthroughAvailable: true, + availableModelOperations: [ + { + modelName: "Candidate", + availableOperations: ["FETCH", "CREATE"], + requiredPostParameters: ["remote_user_id"], + supportedFields: ["first_name", "last_name", "company", "title"], + }, + ], + }, + accountType: "PRODUCTION", + completedAt: new Date("2024-08-26T20:11:19.000Z"), + integrationSpecificFields: { + integration_specific_field: "Varies by platform", + }, + }, + ], + }; + const page = await client.ats.linkedAccounts.list({ + category: "accounting", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endUserEmailAddress: "end_user_email_address", + endUserOrganizationName: "end_user_organization_name", + endUserOriginId: "end_user_origin_id", + endUserOriginIds: "end_user_origin_ids", + id: "id", + ids: "ids", + includeDuplicates: true, + integrationName: "integration_name", + isTestAccount: "is_test_account", + pageSize: 1, + status: "status", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); +}); diff --git a/tests/wire/ats/offers.test.ts b/tests/wire/ATS/offers.test.ts similarity index 92% rename from tests/wire/ats/offers.test.ts rename to tests/wire/ATS/offers.test.ts index c955d359b..422aaf0b8 100644 --- a/tests/wire/ats/offers.test.ts +++ b/tests/wire/ATS/offers.test.ts @@ -38,26 +38,15 @@ describe("OffersClient", () => { }, ], }; - server.mockEndpoint().get("/ats/v1/offers").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + server + .mockEndpoint({ once: false }) + .get("/ats/v1/offers") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); - const response = await client.ats.offers.list({ - applicationId: "application_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - creatorId: "creator_id", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "application", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteFields: "status", - remoteId: "remote_id", - showEnumOrigins: "status", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -90,7 +79,29 @@ describe("OffersClient", () => { ], }, ], + }; + const page = await client.ats.offers.list({ + applicationId: "application_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + creatorId: "creator_id", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status", + status: "APPROVAL-SENT", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { @@ -124,7 +135,6 @@ describe("OffersClient", () => { server.mockEndpoint().get("/ats/v1/offers/id").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); const response = await client.ats.offers.retrieve("id", { - expand: "application", includeRemoteData: true, includeShellData: true, remoteFields: "status", diff --git a/tests/wire/ats/offices.test.ts b/tests/wire/ATS/offices.test.ts similarity index 91% rename from tests/wire/ats/offices.test.ts rename to tests/wire/ATS/offices.test.ts index 878e89e5c..ce702c685 100644 --- a/tests/wire/ats/offices.test.ts +++ b/tests/wire/ATS/offices.test.ts @@ -33,21 +33,15 @@ describe("OfficesClient", () => { }, ], }; - server.mockEndpoint().get("/ats/v1/offices").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + server + .mockEndpoint({ once: false }) + .get("/ats/v1/offices") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); - const response = await client.ats.offices.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -75,7 +69,24 @@ describe("OfficesClient", () => { ], }, ], + }; + const page = await client.ats.offices.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { diff --git a/tests/wire/ats/passthrough.test.ts b/tests/wire/ATS/passthrough.test.ts similarity index 100% rename from tests/wire/ats/passthrough.test.ts rename to tests/wire/ATS/passthrough.test.ts diff --git a/tests/wire/ats/regenerateKey.test.ts b/tests/wire/ATS/regenerateKey.test.ts similarity index 100% rename from tests/wire/ats/regenerateKey.test.ts rename to tests/wire/ATS/regenerateKey.test.ts diff --git a/tests/wire/ats/rejectReasons.test.ts b/tests/wire/ATS/rejectReasons.test.ts similarity index 93% rename from tests/wire/ats/rejectReasons.test.ts rename to tests/wire/ATS/rejectReasons.test.ts index 4f3b4c5d0..935bfeb59 100644 --- a/tests/wire/ats/rejectReasons.test.ts +++ b/tests/wire/ATS/rejectReasons.test.ts @@ -33,26 +33,14 @@ describe("RejectReasonsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/ats/v1/reject-reasons") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.ats.rejectReasons.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -79,7 +67,24 @@ describe("RejectReasonsClient", () => { ], }, ], + }; + const page = await client.ats.rejectReasons.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { diff --git a/tests/wire/ats/scopes.test.ts b/tests/wire/ATS/scopes.test.ts similarity index 100% rename from tests/wire/ats/scopes.test.ts rename to tests/wire/ATS/scopes.test.ts diff --git a/tests/wire/ats/scorecards.test.ts b/tests/wire/ATS/scorecards.test.ts similarity index 92% rename from tests/wire/ats/scorecards.test.ts rename to tests/wire/ATS/scorecards.test.ts index 645f015b4..bbc75a213 100644 --- a/tests/wire/ats/scorecards.test.ts +++ b/tests/wire/ATS/scorecards.test.ts @@ -37,27 +37,15 @@ describe("ScorecardsClient", () => { }, ], }; - server.mockEndpoint().get("/ats/v1/scorecards").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + server + .mockEndpoint({ once: false }) + .get("/ats/v1/scorecards") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); - const response = await client.ats.scorecards.list({ - applicationId: "application_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "application", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - interviewId: "interview_id", - interviewerId: "interviewer_id", - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteFields: "overall_recommendation", - remoteId: "remote_id", - showEnumOrigins: "overall_recommendation", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -89,7 +77,29 @@ describe("ScorecardsClient", () => { ], }, ], + }; + const page = await client.ats.scorecards.list({ + applicationId: "application_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + interviewId: "interview_id", + interviewerId: "interviewer_id", + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "overall_recommendation", + remoteId: "remote_id", + showEnumOrigins: "overall_recommendation", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { @@ -128,7 +138,6 @@ describe("ScorecardsClient", () => { .build(); const response = await client.ats.scorecards.retrieve("id", { - expand: "application", includeRemoteData: true, includeShellData: true, remoteFields: "overall_recommendation", diff --git a/tests/wire/ATS/syncStatus.test.ts b/tests/wire/ATS/syncStatus.test.ts new file mode 100644 index 000000000..18d51682b --- /dev/null +++ b/tests/wire/ATS/syncStatus.test.ts @@ -0,0 +1,68 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("SyncStatusClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + model_name: "Candidate", + model_id: "ats.Candidate", + last_sync_start: "2021-03-30T19:44:18Z", + next_sync_start: "2021-03-30T20:44:18Z", + last_sync_result: "SYNCING", + last_sync_finished: "2021-03-30T19:55:18Z", + status: "SYNCING", + is_initial_sync: true, + selective_sync_configurations_usage: "IN_NEXT_SYNC", + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/ats/v1/sync-status") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + modelName: "Candidate", + modelId: "ats.Candidate", + lastSyncStart: new Date("2021-03-30T19:44:18.000Z"), + nextSyncStart: new Date("2021-03-30T20:44:18.000Z"), + lastSyncResult: "SYNCING", + lastSyncFinished: new Date("2021-03-30T19:55:18.000Z"), + status: "SYNCING", + isInitialSync: true, + selectiveSyncConfigurationsUsage: "IN_NEXT_SYNC", + }, + ], + }; + const page = await client.ats.syncStatus.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + pageSize: 1, + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); +}); diff --git a/tests/wire/ATS/tags.test.ts b/tests/wire/ATS/tags.test.ts new file mode 100644 index 000000000..6f509662f --- /dev/null +++ b/tests/wire/ATS/tags.test.ts @@ -0,0 +1,87 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("TagsClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + remote_id: "4567", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "High-Priority", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/tags", data: ["Varies by platform"] }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/ats/v1/tags") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + remoteId: "4567", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "High-Priority", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/tags", + data: ["Varies by platform"], + }, + ], + }, + ], + }; + const page = await client.ats.tags.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); +}); diff --git a/tests/wire/ATS/users.test.ts b/tests/wire/ATS/users.test.ts new file mode 100644 index 000000000..2b2123644 --- /dev/null +++ b/tests/wire/ATS/users.test.ts @@ -0,0 +1,166 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("UsersClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "b82302de-852e-4e60-b050-edf9da3b7c02", + remote_id: "344321", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + first_name: "Shensi", + last_name: "Ding", + email: "hello@merge.dev", + disabled: true, + remote_created_at: "2020-11-10T00:00:00Z", + access_role: "SUPER_ADMIN", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/users", data: ["Varies by platform"] }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/ats/v1/users") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "b82302de-852e-4e60-b050-edf9da3b7c02", + remoteId: "344321", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + firstName: "Shensi", + lastName: "Ding", + email: "hello@merge.dev", + disabled: true, + remoteCreatedAt: new Date("2020-11-10T00:00:00.000Z"), + accessRole: "SUPER_ADMIN", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/users", + data: ["Varies by platform"], + }, + ], + }, + ], + }; + const page = await client.ats.users.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + email: "email", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "access_role", + remoteId: "remote_id", + showEnumOrigins: "access_role", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + id: "b82302de-852e-4e60-b050-edf9da3b7c02", + remote_id: "344321", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + first_name: "Shensi", + last_name: "Ding", + email: "hello@merge.dev", + disabled: true, + remote_created_at: "2020-11-10T00:00:00Z", + access_role: "SUPER_ADMIN", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/users", data: ["Varies by platform"] }], + }; + server.mockEndpoint().get("/ats/v1/users/id").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + + const response = await client.ats.users.retrieve("id", { + includeRemoteData: true, + includeShellData: true, + remoteFields: "access_role", + showEnumOrigins: "access_role", + }); + expect(response).toEqual({ + id: "b82302de-852e-4e60-b050-edf9da3b7c02", + remoteId: "344321", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + firstName: "Shensi", + lastName: "Ding", + email: "hello@merge.dev", + disabled: true, + remoteCreatedAt: new Date("2020-11-10T00:00:00.000Z"), + accessRole: "SUPER_ADMIN", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/users", + data: ["Varies by platform"], + }, + ], + }); + }); +}); diff --git a/tests/wire/ats/webhookReceivers.test.ts b/tests/wire/ATS/webhookReceivers.test.ts similarity index 100% rename from tests/wire/ats/webhookReceivers.test.ts rename to tests/wire/ATS/webhookReceivers.test.ts diff --git a/tests/wire/accounting/accountDetails.test.ts b/tests/wire/Accounting/accountDetails.test.ts similarity index 100% rename from tests/wire/accounting/accountDetails.test.ts rename to tests/wire/Accounting/accountDetails.test.ts diff --git a/tests/wire/Accounting/accountToken.test.ts b/tests/wire/Accounting/accountToken.test.ts new file mode 100644 index 000000000..729f236bd --- /dev/null +++ b/tests/wire/Accounting/accountToken.test.ts @@ -0,0 +1,90 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("AccountTokenClient", () => { + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + account_token: "T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB", + integration: { + name: "name", + abbreviated_name: "abbreviated_name", + categories: ["hris"], + image: "image", + square_image: "square_image", + color: "color", + slug: "slug", + api_endpoints_to_documentation_urls: { key: "value" }, + webhook_setup_guide_url: "webhook_setup_guide_url", + category_beta_status: { key: "value" }, + }, + id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", + }; + server + .mockEndpoint() + .get("/accounting/v1/account-token/public_token") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.accountToken.retrieve("public_token"); + expect(response).toEqual({ + accountToken: "T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB", + integration: { + name: "name", + abbreviatedName: "abbreviated_name", + categories: ["hris"], + image: "image", + squareImage: "square_image", + color: "color", + slug: "slug", + apiEndpointsToDocumentationUrls: { + key: "value", + }, + webhookSetupGuideUrl: "webhook_setup_guide_url", + categoryBetaStatus: { + key: "value", + }, + }, + id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", + }); + }); + + test("regenerateCreate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + linked_account_id: "e59b1821-f85c-4e28-a6b3-1804156f3563", + account_token: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", + }; + server + .mockEndpoint() + .post("/accounting/v1/account-token/regenerate") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.accountToken.regenerateCreate(); + expect(response).toEqual({ + linkedAccountId: "e59b1821-f85c-4e28-a6b3-1804156f3563", + accountToken: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", + }); + }); +}); diff --git a/tests/wire/accounting/accountingPeriods.test.ts b/tests/wire/Accounting/accountingPeriods.test.ts similarity index 93% rename from tests/wire/accounting/accountingPeriods.test.ts rename to tests/wire/Accounting/accountingPeriods.test.ts index a2dd69ed1..a4a33ae66 100644 --- a/tests/wire/accounting/accountingPeriods.test.ts +++ b/tests/wire/Accounting/accountingPeriods.test.ts @@ -35,21 +35,14 @@ describe("AccountingPeriodsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/accounting/v1/accounting-periods") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.accounting.accountingPeriods.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - pageSize: 1, - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -78,7 +71,19 @@ describe("AccountingPeriodsClient", () => { ], }, ], + }; + const page = await client.accounting.accountingPeriods.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + pageSize: 1, }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { diff --git a/tests/wire/Accounting/accounts.test.ts b/tests/wire/Accounting/accounts.test.ts new file mode 100644 index 000000000..93d07198f --- /dev/null +++ b/tests/wire/Accounting/accounts.test.ts @@ -0,0 +1,1015 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("AccountsClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "21", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Cash", + description: "Cash", + classification: "ASSET", + type: "Asset", + account_type: "BANK", + status: "ACTIVE", + current_balance: 1.1, + currency: "XUA", + account_number: "X12Y9AB", + parent_account: "22d92d6c-22f9-11ed-861d-0242ac120002", + company: "company", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/accounts") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "21", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Cash", + description: "Cash", + classification: "ASSET", + type: "Asset", + accountType: "BANK", + status: "ACTIVE", + currentBalance: 1.1, + currency: "XUA", + accountNumber: "X12Y9AB", + parentAccount: "22d92d6c-22f9-11ed-861d-0242ac120002", + company: "company", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + }, + ], + }; + const page = await client.accounting.accounts.list({ + accountType: "account_type", + classification: "", + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + remoteFields: "classification", + remoteId: "remote_id", + showEnumOrigins: "classification", + status: "", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("create", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { model: {} }; + const rawResponseBody = { + model: { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "21", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Cash", + description: "Cash", + classification: "ASSET", + type: "Asset", + account_type: "BANK", + status: "ACTIVE", + current_balance: 1.1, + currency: "XUA", + account_number: "X12Y9AB", + parent_account: "22d92d6c-22f9-11ed-861d-0242ac120002", + company: "company", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/accounting/v1/accounts") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.accounts.create({ + isDebugMode: true, + runAsync: true, + body: { + model: {}, + }, + }); + expect(response).toEqual({ + model: { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "21", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Cash", + description: "Cash", + classification: "ASSET", + type: "Asset", + accountType: "BANK", + status: "ACTIVE", + currentBalance: 1.1, + currency: "XUA", + accountNumber: "X12Y9AB", + parentAccount: "22d92d6c-22f9-11ed-861d-0242ac120002", + company: "company", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "21", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Cash", + description: "Cash", + classification: "ASSET", + type: "Asset", + account_type: "BANK", + status: "ACTIVE", + current_balance: 1.1, + currency: "XUA", + account_number: "X12Y9AB", + parent_account: "22d92d6c-22f9-11ed-861d-0242ac120002", + company: "company", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + }; + server + .mockEndpoint() + .get("/accounting/v1/accounts/id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.accounts.retrieve("id", { + includeRemoteData: true, + includeShellData: true, + remoteFields: "classification", + showEnumOrigins: "classification", + }); + expect(response).toEqual({ + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "21", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Cash", + description: "Cash", + classification: "ASSET", + type: "Asset", + accountType: "BANK", + status: "ACTIVE", + currentBalance: 1.1, + currency: "XUA", + accountNumber: "X12Y9AB", + parentAccount: "22d92d6c-22f9-11ed-861d-0242ac120002", + company: "company", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + }); + }); + + test("batchObjectsList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "21", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Cash", + description: "Cash", + classification: "ASSET", + type: "Asset", + account_type: "BANK", + status: "ACTIVE", + current_balance: 1.1, + currency: "XUA", + account_number: "X12Y9AB", + parent_account: "22d92d6c-22f9-11ed-861d-0242ac120002", + company: "company", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + }, + ], + }; + server + .mockEndpoint() + .get("/accounting/v1/accounts/batch/batch_id/objects") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.accounts.batchObjectsList("batch_id", { + accountType: "account_type", + classification: "", + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + remoteFields: "classification", + remoteId: "remote_id", + showEnumOrigins: "classification", + status: "", + }); + expect(response).toEqual({ + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "21", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Cash", + description: "Cash", + classification: "ASSET", + type: "Asset", + accountType: "BANK", + status: "ACTIVE", + currentBalance: 1.1, + currency: "XUA", + accountNumber: "X12Y9AB", + parentAccount: "22d92d6c-22f9-11ed-861d-0242ac120002", + company: "company", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + }, + ], + }); + }); + + test("asyncBulkCreate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { batch_items: [{ item_id: "item_id", payload: { model: {} } }] }; + const rawResponseBody = { + model: { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "21", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Cash", + description: "Cash", + classification: "ASSET", + type: "Asset", + account_type: "BANK", + status: "ACTIVE", + current_balance: 1.1, + currency: "XUA", + account_number: "X12Y9AB", + parent_account: "22d92d6c-22f9-11ed-861d-0242ac120002", + company: "company", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/accounting/v1/accounts/async/bulk") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.accounts.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [ + { + itemId: "item_id", + payload: { + model: {}, + }, + }, + ], + }); + expect(response).toEqual({ + model: { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "21", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Cash", + description: "Cash", + classification: "ASSET", + type: "Asset", + accountType: "BANK", + status: "ACTIVE", + currentBalance: 1.1, + currency: "XUA", + accountNumber: "X12Y9AB", + parentAccount: "22d92d6c-22f9-11ed-861d-0242ac120002", + company: "company", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("metaPostRetrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + request_schema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + email_address_type: { type: "string", title: "email_address_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + url_type: { type: "string", title: "url_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { type: "string", title: "first_name", description: "The first name." }, + last_name: { type: "string", title: "last_name", description: "The last name." }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + phone_number_type: { type: "string", title: "phone_number_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { type: "string", title: "id" }, + file_url: { type: "string", title: "file_url" }, + file_name: { type: "string", title: "file_name" }, + attachment_type: { type: "string", title: "attachment_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { value: "HRIS", description: "Merge HRIS Category" }, + { value: "ATS", description: "Merge ATS Category" }, + { value: "Accounting", description: "Merge Accounting Category" }, + { value: "Ticketing", description: "Merge Ticketing Category" }, + { value: "File Storage", description: "Merge File Storage Category" }, + { value: "CRM", description: "Merge CRM Category" }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remote_field_classes: { key: "value" }, + status: { linked_account_status: "linked_account_status", can_make_request: true }, + has_conditional_params: true, + has_required_linked_account_params: true, + }; + server + .mockEndpoint() + .get("/accounting/v1/accounts/meta/post") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.accounts.metaPostRetrieve(); + expect(response).toEqual({ + requestSchema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + email_address_type: { + type: "string", + title: "email_address_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + url_type: { + type: "string", + title: "url_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { + type: "string", + title: "first_name", + description: "The first name.", + }, + last_name: { + type: "string", + title: "last_name", + description: "The last name.", + }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + phone_number_type: { + type: "string", + title: "phone_number_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { + type: "string", + title: "id", + }, + file_url: { + type: "string", + title: "file_url", + }, + file_name: { + type: "string", + title: "file_name", + }, + attachment_type: { + type: "string", + title: "attachment_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { + value: "HRIS", + description: "Merge HRIS Category", + }, + { + value: "ATS", + description: "Merge ATS Category", + }, + { + value: "Accounting", + description: "Merge Accounting Category", + }, + { + value: "Ticketing", + description: "Merge Ticketing Category", + }, + { + value: "File Storage", + description: "Merge File Storage Category", + }, + { + value: "CRM", + description: "Merge CRM Category", + }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remoteFieldClasses: { + key: "value", + }, + status: { + linkedAccountStatus: "linked_account_status", + canMakeRequest: true, + }, + hasConditionalParams: true, + hasRequiredLinkedAccountParams: true, + }); + }); +}); diff --git a/tests/wire/accounting/addresses.test.ts b/tests/wire/Accounting/addresses.test.ts similarity index 100% rename from tests/wire/accounting/addresses.test.ts rename to tests/wire/Accounting/addresses.test.ts diff --git a/tests/wire/accounting/asyncPassthrough.test.ts b/tests/wire/Accounting/asyncPassthrough.test.ts similarity index 100% rename from tests/wire/accounting/asyncPassthrough.test.ts rename to tests/wire/Accounting/asyncPassthrough.test.ts diff --git a/tests/wire/accounting/asyncTasks.test.ts b/tests/wire/Accounting/asyncTasks.test.ts similarity index 100% rename from tests/wire/accounting/asyncTasks.test.ts rename to tests/wire/Accounting/asyncTasks.test.ts diff --git a/tests/wire/Accounting/attachments.test.ts b/tests/wire/Accounting/attachments.test.ts new file mode 100644 index 000000000..9eaa0255c --- /dev/null +++ b/tests/wire/Accounting/attachments.test.ts @@ -0,0 +1,921 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("AttachmentsClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "1018270", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + file_name: "invoice.png", + file_url: "https://merge-brand.s3.amazonaws.com/20210315/rect-logo-270x80%402x.png", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/attachments") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "1018270", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + fileName: "invoice.png", + fileUrl: "https://merge-brand.s3.amazonaws.com/20210315/rect-logo-270x80%402x.png", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + }, + ], + }; + const page = await client.accounting.attachments.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("create", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { model: {} }; + const rawResponseBody = { + model: { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "1018270", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + file_name: "invoice.png", + file_url: "https://merge-brand.s3.amazonaws.com/20210315/rect-logo-270x80%402x.png", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/accounting/v1/attachments") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.attachments.create({ + isDebugMode: true, + runAsync: true, + body: { + model: {}, + }, + }); + expect(response).toEqual({ + model: { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "1018270", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + fileName: "invoice.png", + fileUrl: "https://merge-brand.s3.amazonaws.com/20210315/rect-logo-270x80%402x.png", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "1018270", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + file_name: "invoice.png", + file_url: "https://merge-brand.s3.amazonaws.com/20210315/rect-logo-270x80%402x.png", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + }; + server + .mockEndpoint() + .get("/accounting/v1/attachments/id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.attachments.retrieve("id", { + includeRemoteData: true, + includeShellData: true, + }); + expect(response).toEqual({ + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "1018270", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + fileName: "invoice.png", + fileUrl: "https://merge-brand.s3.amazonaws.com/20210315/rect-logo-270x80%402x.png", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + }); + }); + + test("batchObjectsList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "1018270", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + file_name: "invoice.png", + file_url: "https://merge-brand.s3.amazonaws.com/20210315/rect-logo-270x80%402x.png", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + }, + ], + }; + server + .mockEndpoint() + .get("/accounting/v1/attachments/batch/batch_id/objects") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.attachments.batchObjectsList("batch_id", { + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + }); + expect(response).toEqual({ + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "1018270", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + fileName: "invoice.png", + fileUrl: "https://merge-brand.s3.amazonaws.com/20210315/rect-logo-270x80%402x.png", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + }, + ], + }); + }); + + test("asyncBulkCreate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { batch_items: [{ item_id: "item_id", payload: { model: {} } }] }; + const rawResponseBody = { + model: { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "1018270", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + file_name: "invoice.png", + file_url: "https://merge-brand.s3.amazonaws.com/20210315/rect-logo-270x80%402x.png", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/accounting/v1/attachments/async/bulk") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.attachments.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [ + { + itemId: "item_id", + payload: { + model: {}, + }, + }, + ], + }); + expect(response).toEqual({ + model: { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "1018270", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + fileName: "invoice.png", + fileUrl: "https://merge-brand.s3.amazonaws.com/20210315/rect-logo-270x80%402x.png", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("metaPostRetrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + request_schema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + email_address_type: { type: "string", title: "email_address_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + url_type: { type: "string", title: "url_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { type: "string", title: "first_name", description: "The first name." }, + last_name: { type: "string", title: "last_name", description: "The last name." }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + phone_number_type: { type: "string", title: "phone_number_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { type: "string", title: "id" }, + file_url: { type: "string", title: "file_url" }, + file_name: { type: "string", title: "file_name" }, + attachment_type: { type: "string", title: "attachment_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { value: "HRIS", description: "Merge HRIS Category" }, + { value: "ATS", description: "Merge ATS Category" }, + { value: "Accounting", description: "Merge Accounting Category" }, + { value: "Ticketing", description: "Merge Ticketing Category" }, + { value: "File Storage", description: "Merge File Storage Category" }, + { value: "CRM", description: "Merge CRM Category" }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remote_field_classes: { key: "value" }, + status: { linked_account_status: "linked_account_status", can_make_request: true }, + has_conditional_params: true, + has_required_linked_account_params: true, + }; + server + .mockEndpoint() + .get("/accounting/v1/attachments/meta/post") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.attachments.metaPostRetrieve(); + expect(response).toEqual({ + requestSchema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + email_address_type: { + type: "string", + title: "email_address_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + url_type: { + type: "string", + title: "url_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { + type: "string", + title: "first_name", + description: "The first name.", + }, + last_name: { + type: "string", + title: "last_name", + description: "The last name.", + }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + phone_number_type: { + type: "string", + title: "phone_number_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { + type: "string", + title: "id", + }, + file_url: { + type: "string", + title: "file_url", + }, + file_name: { + type: "string", + title: "file_name", + }, + attachment_type: { + type: "string", + title: "attachment_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { + value: "HRIS", + description: "Merge HRIS Category", + }, + { + value: "ATS", + description: "Merge ATS Category", + }, + { + value: "Accounting", + description: "Merge Accounting Category", + }, + { + value: "Ticketing", + description: "Merge Ticketing Category", + }, + { + value: "File Storage", + description: "Merge File Storage Category", + }, + { + value: "CRM", + description: "Merge CRM Category", + }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remoteFieldClasses: { + key: "value", + }, + status: { + linkedAccountStatus: "linked_account_status", + canMakeRequest: true, + }, + hasConditionalParams: true, + hasRequiredLinkedAccountParams: true, + }); + }); +}); diff --git a/tests/wire/Accounting/auditTrail.test.ts b/tests/wire/Accounting/auditTrail.test.ts new file mode 100644 index 000000000..6ebca1566 --- /dev/null +++ b/tests/wire/Accounting/auditTrail.test.ts @@ -0,0 +1,72 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("AuditTrailClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "b5ceea2a-7171-47ce-8090-165cfce5572c", + user_name: "Gil Feig", + user_email: "hello@merge.dev", + role: "ADMIN", + ip_address: "192.0.2.123", + event_type: "CREATED_REMOTE_PRODUCTION_API_KEY", + event_description: + "Organization-wide Scopes for model hris.Employee updated from Read to Read+Write", + created_at: "2024-01-15T09:30:00Z", + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/audit-trail") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "b5ceea2a-7171-47ce-8090-165cfce5572c", + userName: "Gil Feig", + userEmail: "hello@merge.dev", + role: "ADMIN", + ipAddress: "192.0.2.123", + eventType: "CREATED_REMOTE_PRODUCTION_API_KEY", + eventDescription: + "Organization-wide Scopes for model hris.Employee updated from Read to Read+Write", + createdAt: new Date("2024-01-15T09:30:00.000Z"), + }, + ], + }; + const page = await client.accounting.auditTrail.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endDate: "end_date", + eventType: "event_type", + pageSize: 1, + startDate: "start_date", + userEmail: "user_email", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); +}); diff --git a/tests/wire/accounting/availableActions.test.ts b/tests/wire/Accounting/availableActions.test.ts similarity index 100% rename from tests/wire/accounting/availableActions.test.ts rename to tests/wire/Accounting/availableActions.test.ts diff --git a/tests/wire/accounting/balanceSheets.test.ts b/tests/wire/Accounting/balanceSheets.test.ts similarity index 97% rename from tests/wire/accounting/balanceSheets.test.ts rename to tests/wire/Accounting/balanceSheets.test.ts index b8a0dbd93..4169af98b 100644 --- a/tests/wire/accounting/balanceSheets.test.ts +++ b/tests/wire/Accounting/balanceSheets.test.ts @@ -80,28 +80,14 @@ describe("BalanceSheetsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/accounting/v1/balance-sheets") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.accounting.balanceSheets.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "company", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -199,7 +185,25 @@ describe("BalanceSheetsClient", () => { ], }, ], + }; + const page = await client.accounting.balanceSheets.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { @@ -283,7 +287,6 @@ describe("BalanceSheetsClient", () => { .build(); const response = await client.accounting.balanceSheets.retrieve("id", { - expand: "company", includeRemoteData: true, includeShellData: true, }); diff --git a/tests/wire/accounting/bankFeedAccounts.test.ts b/tests/wire/Accounting/bankFeedAccounts.test.ts similarity index 77% rename from tests/wire/accounting/bankFeedAccounts.test.ts rename to tests/wire/Accounting/bankFeedAccounts.test.ts index 0de0abc45..7f733a6b1 100644 --- a/tests/wire/accounting/bankFeedAccounts.test.ts +++ b/tests/wire/Accounting/bankFeedAccounts.test.ts @@ -42,21 +42,14 @@ describe("BankFeedAccountsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/accounting/v1/bank-feed-accounts") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.accounting.bankFeedAccounts.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - pageSize: 1, - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -87,7 +80,19 @@ describe("BankFeedAccountsClient", () => { remoteData: [], }, ], + }; + const page = await client.accounting.bankFeedAccounts.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + pageSize: 1, }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("create", async () => { @@ -162,7 +167,9 @@ describe("BankFeedAccountsClient", () => { const response = await client.accounting.bankFeedAccounts.create({ isDebugMode: true, runAsync: true, - model: {}, + body: { + model: {}, + }, }); expect(response).toEqual({ model: { @@ -304,6 +311,238 @@ describe("BankFeedAccountsClient", () => { }); }); + test("batchObjectsList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", + remote_id: "987300", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + source_account_id: "123566909", + target_account_id: "49cd5a42-b311-4750-9361-52e2ed1d4653", + source_account_name: "Travel Bank Account", + source_account_number: "12567", + target_account_name: "Netsuite Travel Bank Account", + currency: "XUA", + feed_status: "ACTIVE", + feed_start_date: "2024-02-02T00:00:00Z", + source_account_balance: 123.94, + account_type: "BANK", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [], + }, + ], + }; + server + .mockEndpoint() + .get("/accounting/v1/bank-feed-accounts/batch/batch_id/objects") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.bankFeedAccounts.batchObjectsList("batch_id", { + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + pageSize: 1, + }); + expect(response).toEqual({ + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", + remoteId: "987300", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + sourceAccountId: "123566909", + targetAccountId: "49cd5a42-b311-4750-9361-52e2ed1d4653", + sourceAccountName: "Travel Bank Account", + sourceAccountNumber: "12567", + targetAccountName: "Netsuite Travel Bank Account", + currency: "XUA", + feedStatus: "ACTIVE", + feedStartDate: new Date("2024-02-02T00:00:00.000Z"), + sourceAccountBalance: 123.94, + accountType: "BANK", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [], + }, + ], + }); + }); + + test("asyncBulkCreate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { batch_items: [{ item_id: "item_id", payload: { model: {} } }] }; + const rawResponseBody = { + model: { + id: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", + remote_id: "987300", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + source_account_id: "123566909", + target_account_id: "49cd5a42-b311-4750-9361-52e2ed1d4653", + source_account_name: "Travel Bank Account", + source_account_number: "12567", + target_account_name: "Netsuite Travel Bank Account", + currency: "XUA", + feed_status: "ACTIVE", + feed_start_date: "2024-02-02T00:00:00Z", + source_account_balance: 123.94, + account_type: "BANK", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ key: "value" }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/accounting/v1/bank-feed-accounts/async/bulk") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.bankFeedAccounts.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [ + { + itemId: "item_id", + payload: { + model: {}, + }, + }, + ], + }); + expect(response).toEqual({ + model: { + id: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", + remoteId: "987300", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + sourceAccountId: "123566909", + targetAccountId: "49cd5a42-b311-4750-9361-52e2ed1d4653", + sourceAccountName: "Travel Bank Account", + sourceAccountNumber: "12567", + targetAccountName: "Netsuite Travel Bank Account", + currency: "XUA", + feedStatus: "ACTIVE", + feedStartDate: new Date("2024-02-02T00:00:00.000Z"), + sourceAccountBalance: 123.94, + accountType: "BANK", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + key: "value", + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + test("metaPostRetrieve", async () => { const server = mockServerPool.createServer(); const client = new MergeClient({ diff --git a/tests/wire/accounting/bankFeedTransactions.test.ts b/tests/wire/Accounting/bankFeedTransactions.test.ts similarity index 79% rename from tests/wire/accounting/bankFeedTransactions.test.ts rename to tests/wire/Accounting/bankFeedTransactions.test.ts index 97b99c349..6a4f71c8d 100644 --- a/tests/wire/accounting/bankFeedTransactions.test.ts +++ b/tests/wire/Accounting/bankFeedTransactions.test.ts @@ -37,28 +37,14 @@ describe("BankFeedTransactionsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/accounting/v1/bank-feed-transactions") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.accounting.bankFeedTransactions.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "bank_feed_account", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isProcessed: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -80,7 +66,25 @@ describe("BankFeedTransactionsClient", () => { isProcessed: true, }, ], + }; + const page = await client.accounting.bankFeedTransactions.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isProcessed: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("create", async () => { @@ -150,7 +154,9 @@ describe("BankFeedTransactionsClient", () => { const response = await client.accounting.bankFeedTransactions.create({ isDebugMode: true, runAsync: true, - model: {}, + body: { + model: {}, + }, }); expect(response).toEqual({ model: { @@ -239,7 +245,6 @@ describe("BankFeedTransactionsClient", () => { .build(); const response = await client.accounting.bankFeedTransactions.retrieve("id", { - expand: "bank_feed_account", includeRemoteData: true, includeShellData: true, }); @@ -262,6 +267,212 @@ describe("BankFeedTransactionsClient", () => { }); }); + test("batchObjectsList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", + remote_id: "987300", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + bank_feed_account: "bank_feed_account", + transaction_date: "2024-02-02T00:00:00Z", + posted_date: "2024-02-03T00:00:00Z", + amount: 100.1, + description: "Lunch expense", + transaction_type: "payment", + payee: "Elmo's diner", + credit_or_debit: "CREDIT", + source_transaction_id: "124569", + remote_was_deleted: true, + is_processed: true, + }, + ], + }; + server + .mockEndpoint() + .get("/accounting/v1/bank-feed-transactions/batch/batch_id/objects") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.bankFeedTransactions.batchObjectsList("batch_id", { + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isProcessed: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + }); + expect(response).toEqual({ + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", + remoteId: "987300", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + bankFeedAccount: "bank_feed_account", + transactionDate: new Date("2024-02-02T00:00:00.000Z"), + postedDate: new Date("2024-02-03T00:00:00.000Z"), + amount: 100.1, + description: "Lunch expense", + transactionType: "payment", + payee: "Elmo's diner", + creditOrDebit: "CREDIT", + sourceTransactionId: "124569", + remoteWasDeleted: true, + isProcessed: true, + }, + ], + }); + }); + + test("asyncBulkCreate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { batch_items: [{ item_id: "item_id", payload: { model: {} } }] }; + const rawResponseBody = { + model: { + id: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", + remote_id: "987300", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + bank_feed_account: "bank_feed_account", + transaction_date: "2024-02-02T00:00:00Z", + posted_date: "2024-02-03T00:00:00Z", + amount: 100.1, + description: "Lunch expense", + transaction_type: "payment", + payee: "Elmo's diner", + credit_or_debit: "CREDIT", + source_transaction_id: "124569", + remote_was_deleted: true, + is_processed: true, + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/accounting/v1/bank-feed-transactions/async/bulk") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.bankFeedTransactions.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [ + { + itemId: "item_id", + payload: { + model: {}, + }, + }, + ], + }); + expect(response).toEqual({ + model: { + id: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", + remoteId: "987300", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + bankFeedAccount: "bank_feed_account", + transactionDate: new Date("2024-02-02T00:00:00.000Z"), + postedDate: new Date("2024-02-03T00:00:00.000Z"), + amount: 100.1, + description: "Lunch expense", + transactionType: "payment", + payee: "Elmo's diner", + creditOrDebit: "CREDIT", + sourceTransactionId: "124569", + remoteWasDeleted: true, + isProcessed: true, + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + test("metaPostRetrieve", async () => { const server = mockServerPool.createServer(); const client = new MergeClient({ diff --git a/tests/wire/accounting/cashFlowStatements.test.ts b/tests/wire/Accounting/cashFlowStatements.test.ts similarity index 97% rename from tests/wire/accounting/cashFlowStatements.test.ts rename to tests/wire/Accounting/cashFlowStatements.test.ts index c7bfe3a0f..962060345 100644 --- a/tests/wire/accounting/cashFlowStatements.test.ts +++ b/tests/wire/Accounting/cashFlowStatements.test.ts @@ -91,28 +91,14 @@ describe("CashFlowStatementsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/accounting/v1/cash-flow-statements") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.accounting.cashFlowStatements.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "company", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -205,7 +191,25 @@ describe("CashFlowStatementsClient", () => { ], }, ], + }; + const page = await client.accounting.cashFlowStatements.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { @@ -300,7 +304,6 @@ describe("CashFlowStatementsClient", () => { .build(); const response = await client.accounting.cashFlowStatements.retrieve("id", { - expand: "company", includeRemoteData: true, includeShellData: true, }); diff --git a/tests/wire/accounting/companyInfo.test.ts b/tests/wire/Accounting/companyInfo.test.ts similarity index 96% rename from tests/wire/accounting/companyInfo.test.ts rename to tests/wire/Accounting/companyInfo.test.ts index a4c42b11b..f08f91696 100644 --- a/tests/wire/accounting/companyInfo.test.ts +++ b/tests/wire/Accounting/companyInfo.test.ts @@ -61,27 +61,14 @@ describe("CompanyInfoClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/accounting/v1/company-info") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.accounting.companyInfo.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "addresses", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -136,7 +123,25 @@ describe("CompanyInfoClient", () => { ], }, ], + }; + const page = await client.accounting.companyInfo.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { @@ -199,7 +204,6 @@ describe("CompanyInfoClient", () => { .build(); const response = await client.accounting.companyInfo.retrieve("id", { - expand: "addresses", includeRemoteData: true, includeShellData: true, }); diff --git a/tests/wire/Accounting/contacts.test.ts b/tests/wire/Accounting/contacts.test.ts new file mode 100644 index 000000000..3eb873fea --- /dev/null +++ b/tests/wire/Accounting/contacts.test.ts @@ -0,0 +1,1778 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("ContactsClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "c640b80b-fac9-409f-aa19-1f9221aec445", + remote_id: "11167", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Gil Feig's pickleball store", + is_supplier: true, + is_customer: true, + email_address: "pickleball@merge.dev", + tax_number: "12-3456789", + status: "ACTIVE", + currency: "USD", + remote_updated_at: "2020-03-31T00:00:00Z", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], + phone_numbers: [ + { + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + number: "+3198675309", + type: "Mobile", + }, + ], + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/contacts") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "c640b80b-fac9-409f-aa19-1f9221aec445", + remoteId: "11167", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Gil Feig's pickleball store", + isSupplier: true, + isCustomer: true, + emailAddress: "pickleball@merge.dev", + taxNumber: "12-3456789", + status: "ACTIVE", + currency: "USD", + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], + phoneNumbers: [ + { + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + number: "+3198675309", + type: "Mobile", + }, + ], + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + ], + }; + const page = await client.accounting.contacts.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + emailAddress: "email_address", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCustomer: "is_customer", + isSupplier: "is_supplier", + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status", + status: "", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("create", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { model: {} }; + const rawResponseBody = { + model: { + id: "c640b80b-fac9-409f-aa19-1f9221aec445", + remote_id: "11167", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Gil Feig's pickleball store", + is_supplier: true, + is_customer: true, + email_address: "pickleball@merge.dev", + tax_number: "12-3456789", + status: "ACTIVE", + currency: "USD", + remote_updated_at: "2020-03-31T00:00:00Z", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], + phone_numbers: [ + { + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + number: "+3198675309", + type: "Mobile", + }, + ], + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/accounting/v1/contacts") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.contacts.create({ + isDebugMode: true, + runAsync: true, + body: { + model: {}, + }, + }); + expect(response).toEqual({ + model: { + id: "c640b80b-fac9-409f-aa19-1f9221aec445", + remoteId: "11167", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Gil Feig's pickleball store", + isSupplier: true, + isCustomer: true, + emailAddress: "pickleball@merge.dev", + taxNumber: "12-3456789", + status: "ACTIVE", + currency: "USD", + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], + phoneNumbers: [ + { + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + number: "+3198675309", + type: "Mobile", + }, + ], + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + id: "c640b80b-fac9-409f-aa19-1f9221aec445", + remote_id: "11167", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Gil Feig's pickleball store", + is_supplier: true, + is_customer: true, + email_address: "pickleball@merge.dev", + tax_number: "12-3456789", + status: "ACTIVE", + currency: "USD", + remote_updated_at: "2020-03-31T00:00:00Z", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], + phone_numbers: [ + { + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + number: "+3198675309", + type: "Mobile", + }, + ], + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }; + server + .mockEndpoint() + .get("/accounting/v1/contacts/id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.contacts.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + remoteFields: "status", + showEnumOrigins: "status", + }); + expect(response).toEqual({ + id: "c640b80b-fac9-409f-aa19-1f9221aec445", + remoteId: "11167", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Gil Feig's pickleball store", + isSupplier: true, + isCustomer: true, + emailAddress: "pickleball@merge.dev", + taxNumber: "12-3456789", + status: "ACTIVE", + currency: "USD", + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], + phoneNumbers: [ + { + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + number: "+3198675309", + type: "Mobile", + }, + ], + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }); + }); + + test("partialUpdate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { model: {} }; + const rawResponseBody = { + model: { + id: "c640b80b-fac9-409f-aa19-1f9221aec445", + remote_id: "11167", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Gil Feig's pickleball store", + is_supplier: true, + is_customer: true, + email_address: "pickleball@merge.dev", + tax_number: "12-3456789", + status: "ACTIVE", + currency: "USD", + remote_updated_at: "2020-03-31T00:00:00Z", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], + phone_numbers: [ + { + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + number: "+3198675309", + type: "Mobile", + }, + ], + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .patch("/accounting/v1/contacts/id") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.contacts.partialUpdate("id", { + isDebugMode: true, + runAsync: true, + model: {}, + }); + expect(response).toEqual({ + model: { + id: "c640b80b-fac9-409f-aa19-1f9221aec445", + remoteId: "11167", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Gil Feig's pickleball store", + isSupplier: true, + isCustomer: true, + emailAddress: "pickleball@merge.dev", + taxNumber: "12-3456789", + status: "ACTIVE", + currency: "USD", + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], + phoneNumbers: [ + { + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + number: "+3198675309", + type: "Mobile", + }, + ], + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("batchObjectsList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "c640b80b-fac9-409f-aa19-1f9221aec445", + remote_id: "11167", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Gil Feig's pickleball store", + is_supplier: true, + is_customer: true, + email_address: "pickleball@merge.dev", + tax_number: "12-3456789", + status: "ACTIVE", + currency: "USD", + remote_updated_at: "2020-03-31T00:00:00Z", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], + phone_numbers: [ + { + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + number: "+3198675309", + type: "Mobile", + }, + ], + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + ], + }; + server + .mockEndpoint() + .get("/accounting/v1/contacts/batch/batch_id/objects") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.contacts.batchObjectsList("batch_id", { + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + emailAddress: "email_address", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCustomer: "is_customer", + isSupplier: "is_supplier", + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status", + status: "", + }); + expect(response).toEqual({ + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "c640b80b-fac9-409f-aa19-1f9221aec445", + remoteId: "11167", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Gil Feig's pickleball store", + isSupplier: true, + isCustomer: true, + emailAddress: "pickleball@merge.dev", + taxNumber: "12-3456789", + status: "ACTIVE", + currency: "USD", + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], + phoneNumbers: [ + { + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + number: "+3198675309", + type: "Mobile", + }, + ], + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + ], + }); + }); + + test("asyncBulkCreate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { batch_items: [{ item_id: "item_id", payload: { model: {} } }] }; + const rawResponseBody = { + model: { + id: "c640b80b-fac9-409f-aa19-1f9221aec445", + remote_id: "11167", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Gil Feig's pickleball store", + is_supplier: true, + is_customer: true, + email_address: "pickleball@merge.dev", + tax_number: "12-3456789", + status: "ACTIVE", + currency: "USD", + remote_updated_at: "2020-03-31T00:00:00Z", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], + phone_numbers: [ + { + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + number: "+3198675309", + type: "Mobile", + }, + ], + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/accounting/v1/contacts/async/bulk") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.contacts.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [ + { + itemId: "item_id", + payload: { + model: {}, + }, + }, + ], + }); + expect(response).toEqual({ + model: { + id: "c640b80b-fac9-409f-aa19-1f9221aec445", + remoteId: "11167", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Gil Feig's pickleball store", + isSupplier: true, + isCustomer: true, + emailAddress: "pickleball@merge.dev", + taxNumber: "12-3456789", + status: "ACTIVE", + currency: "USD", + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], + phoneNumbers: [ + { + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + number: "+3198675309", + type: "Mobile", + }, + ], + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("metaPatchRetrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + request_schema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + email_address_type: { type: "string", title: "email_address_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + url_type: { type: "string", title: "url_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { type: "string", title: "first_name", description: "The first name." }, + last_name: { type: "string", title: "last_name", description: "The last name." }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + phone_number_type: { type: "string", title: "phone_number_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { type: "string", title: "id" }, + file_url: { type: "string", title: "file_url" }, + file_name: { type: "string", title: "file_name" }, + attachment_type: { type: "string", title: "attachment_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { value: "HRIS", description: "Merge HRIS Category" }, + { value: "ATS", description: "Merge ATS Category" }, + { value: "Accounting", description: "Merge Accounting Category" }, + { value: "Ticketing", description: "Merge Ticketing Category" }, + { value: "File Storage", description: "Merge File Storage Category" }, + { value: "CRM", description: "Merge CRM Category" }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remote_field_classes: { key: "value" }, + status: { linked_account_status: "linked_account_status", can_make_request: true }, + has_conditional_params: true, + has_required_linked_account_params: true, + }; + server + .mockEndpoint() + .get("/accounting/v1/contacts/meta/patch/id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.contacts.metaPatchRetrieve("id"); + expect(response).toEqual({ + requestSchema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + email_address_type: { + type: "string", + title: "email_address_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + url_type: { + type: "string", + title: "url_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { + type: "string", + title: "first_name", + description: "The first name.", + }, + last_name: { + type: "string", + title: "last_name", + description: "The last name.", + }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + phone_number_type: { + type: "string", + title: "phone_number_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { + type: "string", + title: "id", + }, + file_url: { + type: "string", + title: "file_url", + }, + file_name: { + type: "string", + title: "file_name", + }, + attachment_type: { + type: "string", + title: "attachment_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { + value: "HRIS", + description: "Merge HRIS Category", + }, + { + value: "ATS", + description: "Merge ATS Category", + }, + { + value: "Accounting", + description: "Merge Accounting Category", + }, + { + value: "Ticketing", + description: "Merge Ticketing Category", + }, + { + value: "File Storage", + description: "Merge File Storage Category", + }, + { + value: "CRM", + description: "Merge CRM Category", + }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remoteFieldClasses: { + key: "value", + }, + status: { + linkedAccountStatus: "linked_account_status", + canMakeRequest: true, + }, + hasConditionalParams: true, + hasRequiredLinkedAccountParams: true, + }); + }); + + test("metaPostRetrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + request_schema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + email_address_type: { type: "string", title: "email_address_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + url_type: { type: "string", title: "url_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { type: "string", title: "first_name", description: "The first name." }, + last_name: { type: "string", title: "last_name", description: "The last name." }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + phone_number_type: { type: "string", title: "phone_number_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { type: "string", title: "id" }, + file_url: { type: "string", title: "file_url" }, + file_name: { type: "string", title: "file_name" }, + attachment_type: { type: "string", title: "attachment_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { value: "HRIS", description: "Merge HRIS Category" }, + { value: "ATS", description: "Merge ATS Category" }, + { value: "Accounting", description: "Merge Accounting Category" }, + { value: "Ticketing", description: "Merge Ticketing Category" }, + { value: "File Storage", description: "Merge File Storage Category" }, + { value: "CRM", description: "Merge CRM Category" }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remote_field_classes: { key: "value" }, + status: { linked_account_status: "linked_account_status", can_make_request: true }, + has_conditional_params: true, + has_required_linked_account_params: true, + }; + server + .mockEndpoint() + .get("/accounting/v1/contacts/meta/post") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.contacts.metaPostRetrieve(); + expect(response).toEqual({ + requestSchema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + email_address_type: { + type: "string", + title: "email_address_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + url_type: { + type: "string", + title: "url_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { + type: "string", + title: "first_name", + description: "The first name.", + }, + last_name: { + type: "string", + title: "last_name", + description: "The last name.", + }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + phone_number_type: { + type: "string", + title: "phone_number_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { + type: "string", + title: "id", + }, + file_url: { + type: "string", + title: "file_url", + }, + file_name: { + type: "string", + title: "file_name", + }, + attachment_type: { + type: "string", + title: "attachment_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { + value: "HRIS", + description: "Merge HRIS Category", + }, + { + value: "ATS", + description: "Merge ATS Category", + }, + { + value: "Accounting", + description: "Merge Accounting Category", + }, + { + value: "Ticketing", + description: "Merge Ticketing Category", + }, + { + value: "File Storage", + description: "Merge File Storage Category", + }, + { + value: "CRM", + description: "Merge CRM Category", + }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remoteFieldClasses: { + key: "value", + }, + status: { + linkedAccountStatus: "linked_account_status", + canMakeRequest: true, + }, + hasConditionalParams: true, + hasRequiredLinkedAccountParams: true, + }); + }); + + test("remoteFieldClassesList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "id", + display_name: "display_name", + remote_key_name: "remote_key_name", + description: "description", + is_custom: true, + is_common_model_field: true, + is_required: true, + field_type: "string", + field_format: "string", + field_choices: ["field_choices"], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/contacts/remote-field-classes") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "id", + displayName: "display_name", + remoteKeyName: "remote_key_name", + description: "description", + isCustom: true, + isCommonModelField: true, + isRequired: true, + fieldType: "string", + fieldFormat: "string", + fieldChoices: ["field_choices"], + }, + ], + }; + const page = await client.accounting.contacts.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1, + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); +}); diff --git a/tests/wire/Accounting/creditNotes.test.ts b/tests/wire/Accounting/creditNotes.test.ts new file mode 100644 index 000000000..4ca559cf6 --- /dev/null +++ b/tests/wire/Accounting/creditNotes.test.ts @@ -0,0 +1,2349 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("CreditNotesClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + remote_id: "123877", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + transaction_date: "2020-03-31T00:00:00Z", + status: "SUBMITTED", + number: "CN-29", + contact: "contact", + company: "company", + exchange_rate: "2.9", + total_amount: 50, + remaining_credit: 20, + inclusive_of_tax: true, + line_items: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + item: "0e3fd929-436c-4fd4-a48b-0c61f68d6178", + name: "Basic Monthly", + description: "prorated amount for items", + quantity: "quantity", + memo: "privNote", + unit_price: "5.0", + tax_rate: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + total_line_amount: "5.0", + tracking_categories: [ + "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + account: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + contact: "908934-49j9-093f-0989-908923908", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + remote_was_deleted: true, + }, + ], + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + currency: "XUA", + remote_created_at: "2020-03-31T00:00:00Z", + remote_updated_at: "2020-03-31T00:00:00Z", + payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], + applied_payments: ["a9a94a75-19c1-41fe-90d8-d9ba959c38e5"], + accounting_period: "accounting_period", + applied_to_lines: [ + { + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + applied_date: "2020-03-31T00:00:00Z", + applied_amount: "2.9", + }, + ], + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/credit-notes") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + remoteId: "123877", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + transactionDate: new Date("2020-03-31T00:00:00.000Z"), + status: "SUBMITTED", + number: "CN-29", + contact: "contact", + company: "company", + exchangeRate: "2.9", + totalAmount: 50, + remainingCredit: 20, + inclusiveOfTax: true, + lineItems: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + item: "0e3fd929-436c-4fd4-a48b-0c61f68d6178", + name: "Basic Monthly", + description: "prorated amount for items", + quantity: "quantity", + memo: "privNote", + unitPrice: "5.0", + taxRate: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + totalLineAmount: "5.0", + trackingCategories: [ + "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + account: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + contact: "908934-49j9-093f-0989-908923908", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + remoteWasDeleted: true, + }, + ], + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + currency: "XUA", + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], + appliedPayments: ["a9a94a75-19c1-41fe-90d8-d9ba959c38e5"], + accountingPeriod: "accounting_period", + appliedToLines: [ + { + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + appliedDate: new Date("2020-03-31T00:00:00.000Z"), + appliedAmount: "2.9", + }, + ], + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + }, + ], + }; + const page = await client.accounting.creditNotes.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status", + transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + transactionDateBefore: new Date("2024-01-15T09:30:00.000Z"), + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("create", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { model: {} }; + const rawResponseBody = { + model: { + id: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + remote_id: "123877", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + transaction_date: "2020-03-31T00:00:00Z", + status: "SUBMITTED", + number: "CN-29", + contact: "contact", + company: "company", + exchange_rate: "2.9", + total_amount: 50, + remaining_credit: 20, + inclusive_of_tax: true, + line_items: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + item: "0e3fd929-436c-4fd4-a48b-0c61f68d6178", + name: "Basic Monthly", + description: "prorated amount for items", + quantity: "quantity", + memo: "privNote", + unit_price: "5.0", + tax_rate: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + total_line_amount: "5.0", + tracking_categories: [ + "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + account: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + contact: "908934-49j9-093f-0989-908923908", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + remote_was_deleted: true, + }, + ], + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + currency: "XUA", + remote_created_at: "2020-03-31T00:00:00Z", + remote_updated_at: "2020-03-31T00:00:00Z", + payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], + applied_payments: ["a9a94a75-19c1-41fe-90d8-d9ba959c38e5"], + accounting_period: "accounting_period", + applied_to_lines: [ + { + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + applied_date: "2020-03-31T00:00:00Z", + applied_amount: "2.9", + }, + ], + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/accounting/v1/credit-notes") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.creditNotes.create({ + isDebugMode: true, + runAsync: true, + body: { + model: {}, + }, + }); + expect(response).toEqual({ + model: { + id: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + remoteId: "123877", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + transactionDate: new Date("2020-03-31T00:00:00.000Z"), + status: "SUBMITTED", + number: "CN-29", + contact: "contact", + company: "company", + exchangeRate: "2.9", + totalAmount: 50, + remainingCredit: 20, + inclusiveOfTax: true, + lineItems: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + item: "0e3fd929-436c-4fd4-a48b-0c61f68d6178", + name: "Basic Monthly", + description: "prorated amount for items", + quantity: "quantity", + memo: "privNote", + unitPrice: "5.0", + taxRate: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + totalLineAmount: "5.0", + trackingCategories: [ + "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + account: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + contact: "908934-49j9-093f-0989-908923908", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + remoteWasDeleted: true, + }, + ], + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + currency: "XUA", + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], + appliedPayments: ["a9a94a75-19c1-41fe-90d8-d9ba959c38e5"], + accountingPeriod: "accounting_period", + appliedToLines: [ + { + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + appliedDate: new Date("2020-03-31T00:00:00.000Z"), + appliedAmount: "2.9", + }, + ], + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + id: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + remote_id: "123877", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + transaction_date: "2020-03-31T00:00:00Z", + status: "SUBMITTED", + number: "CN-29", + contact: "contact", + company: "company", + exchange_rate: "2.9", + total_amount: 50, + remaining_credit: 20, + inclusive_of_tax: true, + line_items: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + item: "0e3fd929-436c-4fd4-a48b-0c61f68d6178", + name: "Basic Monthly", + description: "prorated amount for items", + quantity: "quantity", + memo: "privNote", + unit_price: "5.0", + tax_rate: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + total_line_amount: "5.0", + tracking_categories: [ + "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + account: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + contact: "908934-49j9-093f-0989-908923908", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + remote_was_deleted: true, + }, + ], + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + currency: "XUA", + remote_created_at: "2020-03-31T00:00:00Z", + remote_updated_at: "2020-03-31T00:00:00Z", + payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], + applied_payments: ["a9a94a75-19c1-41fe-90d8-d9ba959c38e5"], + accounting_period: "accounting_period", + applied_to_lines: [ + { + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + applied_date: "2020-03-31T00:00:00Z", + applied_amount: "2.9", + remote_was_deleted: true, + }, + ], + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + }; + server + .mockEndpoint() + .get("/accounting/v1/credit-notes/id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.creditNotes.retrieve("id", { + includeRemoteData: true, + includeShellData: true, + remoteFields: "status", + showEnumOrigins: "status", + }); + expect(response).toEqual({ + id: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + remoteId: "123877", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + transactionDate: new Date("2020-03-31T00:00:00.000Z"), + status: "SUBMITTED", + number: "CN-29", + contact: "contact", + company: "company", + exchangeRate: "2.9", + totalAmount: 50, + remainingCredit: 20, + inclusiveOfTax: true, + lineItems: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + item: "0e3fd929-436c-4fd4-a48b-0c61f68d6178", + name: "Basic Monthly", + description: "prorated amount for items", + quantity: "quantity", + memo: "privNote", + unitPrice: "5.0", + taxRate: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + totalLineAmount: "5.0", + trackingCategories: [ + "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + account: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + contact: "908934-49j9-093f-0989-908923908", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + remoteWasDeleted: true, + }, + ], + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + currency: "XUA", + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], + appliedPayments: ["a9a94a75-19c1-41fe-90d8-d9ba959c38e5"], + accountingPeriod: "accounting_period", + appliedToLines: [ + { + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + appliedDate: new Date("2020-03-31T00:00:00.000Z"), + appliedAmount: "2.9", + remoteWasDeleted: true, + }, + ], + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + }); + }); + + test("partialUpdate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { model: {} }; + const rawResponseBody = { + model: { + id: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + remote_id: "123877", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + transaction_date: "2020-03-31T00:00:00Z", + status: "SUBMITTED", + number: "CN-29", + contact: "contact", + company: "company", + exchange_rate: "2.9", + total_amount: 50, + remaining_credit: 20, + inclusive_of_tax: true, + line_items: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + item: "0e3fd929-436c-4fd4-a48b-0c61f68d6178", + name: "Basic Monthly", + description: "prorated amount for items", + quantity: "quantity", + memo: "privNote", + unit_price: "5.0", + tax_rate: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + total_line_amount: "5.0", + tracking_categories: [ + "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + account: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + contact: "908934-49j9-093f-0989-908923908", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + remote_was_deleted: true, + }, + ], + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + currency: "XUA", + remote_created_at: "2020-03-31T00:00:00Z", + remote_updated_at: "2020-03-31T00:00:00Z", + payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], + applied_payments: ["a9a94a75-19c1-41fe-90d8-d9ba959c38e5"], + accounting_period: "accounting_period", + applied_to_lines: [ + { + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + applied_date: "2020-03-31T00:00:00Z", + applied_amount: "2.9", + }, + ], + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .patch("/accounting/v1/credit-notes/id") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.creditNotes.partialUpdate("id", { + isDebugMode: true, + runAsync: true, + model: {}, + }); + expect(response).toEqual({ + model: { + id: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + remoteId: "123877", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + transactionDate: new Date("2020-03-31T00:00:00.000Z"), + status: "SUBMITTED", + number: "CN-29", + contact: "contact", + company: "company", + exchangeRate: "2.9", + totalAmount: 50, + remainingCredit: 20, + inclusiveOfTax: true, + lineItems: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + item: "0e3fd929-436c-4fd4-a48b-0c61f68d6178", + name: "Basic Monthly", + description: "prorated amount for items", + quantity: "quantity", + memo: "privNote", + unitPrice: "5.0", + taxRate: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + totalLineAmount: "5.0", + trackingCategories: [ + "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + account: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + contact: "908934-49j9-093f-0989-908923908", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + remoteWasDeleted: true, + }, + ], + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + currency: "XUA", + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], + appliedPayments: ["a9a94a75-19c1-41fe-90d8-d9ba959c38e5"], + accountingPeriod: "accounting_period", + appliedToLines: [ + { + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + appliedDate: new Date("2020-03-31T00:00:00.000Z"), + appliedAmount: "2.9", + }, + ], + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("batchObjectsList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + remote_id: "123877", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + transaction_date: "2020-03-31T00:00:00Z", + status: "SUBMITTED", + number: "CN-29", + contact: "contact", + company: "company", + exchange_rate: "2.9", + total_amount: 50, + remaining_credit: 20, + inclusive_of_tax: true, + line_items: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + item: "0e3fd929-436c-4fd4-a48b-0c61f68d6178", + name: "Basic Monthly", + description: "prorated amount for items", + quantity: "quantity", + memo: "privNote", + unit_price: "5.0", + tax_rate: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + total_line_amount: "5.0", + tracking_categories: [ + "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + account: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + contact: "908934-49j9-093f-0989-908923908", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + remote_was_deleted: true, + }, + ], + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + currency: "XUA", + remote_created_at: "2020-03-31T00:00:00Z", + remote_updated_at: "2020-03-31T00:00:00Z", + payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], + applied_payments: ["a9a94a75-19c1-41fe-90d8-d9ba959c38e5"], + accounting_period: "accounting_period", + applied_to_lines: [ + { + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + applied_date: "2020-03-31T00:00:00Z", + applied_amount: "2.9", + }, + ], + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + }, + ], + }; + server + .mockEndpoint() + .get("/accounting/v1/credit-notes/batch/batch_id/objects") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.creditNotes.batchObjectsList("batch_id", { + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status", + transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + transactionDateBefore: new Date("2024-01-15T09:30:00.000Z"), + }); + expect(response).toEqual({ + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + remoteId: "123877", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + transactionDate: new Date("2020-03-31T00:00:00.000Z"), + status: "SUBMITTED", + number: "CN-29", + contact: "contact", + company: "company", + exchangeRate: "2.9", + totalAmount: 50, + remainingCredit: 20, + inclusiveOfTax: true, + lineItems: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + item: "0e3fd929-436c-4fd4-a48b-0c61f68d6178", + name: "Basic Monthly", + description: "prorated amount for items", + quantity: "quantity", + memo: "privNote", + unitPrice: "5.0", + taxRate: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + totalLineAmount: "5.0", + trackingCategories: [ + "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + account: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + contact: "908934-49j9-093f-0989-908923908", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + remoteWasDeleted: true, + }, + ], + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + currency: "XUA", + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], + appliedPayments: ["a9a94a75-19c1-41fe-90d8-d9ba959c38e5"], + accountingPeriod: "accounting_period", + appliedToLines: [ + { + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + appliedDate: new Date("2020-03-31T00:00:00.000Z"), + appliedAmount: "2.9", + }, + ], + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + }, + ], + }); + }); + + test("asyncBulkCreate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { batch_items: [{ item_id: "item_id", payload: { model: {} } }] }; + const rawResponseBody = { + model: { + id: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + remote_id: "123877", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + transaction_date: "2020-03-31T00:00:00Z", + status: "SUBMITTED", + number: "CN-29", + contact: "contact", + company: "company", + exchange_rate: "2.9", + total_amount: 50, + remaining_credit: 20, + inclusive_of_tax: true, + line_items: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + item: "0e3fd929-436c-4fd4-a48b-0c61f68d6178", + name: "Basic Monthly", + description: "prorated amount for items", + quantity: "quantity", + memo: "privNote", + unit_price: "5.0", + tax_rate: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + total_line_amount: "5.0", + tracking_categories: [ + "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + account: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + contact: "908934-49j9-093f-0989-908923908", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + remote_was_deleted: true, + }, + ], + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + currency: "XUA", + remote_created_at: "2020-03-31T00:00:00Z", + remote_updated_at: "2020-03-31T00:00:00Z", + payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], + applied_payments: ["a9a94a75-19c1-41fe-90d8-d9ba959c38e5"], + accounting_period: "accounting_period", + applied_to_lines: [ + { + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + applied_date: "2020-03-31T00:00:00Z", + applied_amount: "2.9", + }, + ], + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/accounting/v1/credit-notes/async/bulk") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.creditNotes.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [ + { + itemId: "item_id", + payload: { + model: {}, + }, + }, + ], + }); + expect(response).toEqual({ + model: { + id: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + remoteId: "123877", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + transactionDate: new Date("2020-03-31T00:00:00.000Z"), + status: "SUBMITTED", + number: "CN-29", + contact: "contact", + company: "company", + exchangeRate: "2.9", + totalAmount: 50, + remainingCredit: 20, + inclusiveOfTax: true, + lineItems: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + item: "0e3fd929-436c-4fd4-a48b-0c61f68d6178", + name: "Basic Monthly", + description: "prorated amount for items", + quantity: "quantity", + memo: "privNote", + unitPrice: "5.0", + taxRate: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + totalLineAmount: "5.0", + trackingCategories: [ + "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + account: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + contact: "908934-49j9-093f-0989-908923908", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + remoteWasDeleted: true, + }, + ], + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + currency: "XUA", + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], + appliedPayments: ["a9a94a75-19c1-41fe-90d8-d9ba959c38e5"], + accountingPeriod: "accounting_period", + appliedToLines: [ + { + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + appliedDate: new Date("2020-03-31T00:00:00.000Z"), + appliedAmount: "2.9", + }, + ], + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("applicationCreate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { applied_date: "2024-01-15T09:30:00Z", applied_amount: "applied_amount" }; + const rawResponseBody = { + model: { + id: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + remote_id: "123877", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + transaction_date: "2020-03-31T00:00:00Z", + status: "SUBMITTED", + number: "CN-29", + contact: "contact", + company: "company", + exchange_rate: "2.9", + total_amount: 50, + remaining_credit: 20, + inclusive_of_tax: true, + line_items: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + item: "0e3fd929-436c-4fd4-a48b-0c61f68d6178", + name: "Basic Monthly", + description: "prorated amount for items", + quantity: "quantity", + memo: "privNote", + unit_price: "5.0", + tax_rate: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + total_line_amount: "5.0", + tracking_categories: [ + "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + account: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + contact: "908934-49j9-093f-0989-908923908", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + remote_was_deleted: true, + }, + ], + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + currency: "XUA", + remote_created_at: "2020-03-31T00:00:00Z", + remote_updated_at: "2020-03-31T00:00:00Z", + payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], + applied_payments: ["a9a94a75-19c1-41fe-90d8-d9ba959c38e5"], + accounting_period: "accounting_period", + applied_to_lines: [ + { + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + applied_date: "2020-03-31T00:00:00Z", + applied_amount: "2.9", + }, + ], + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/accounting/v1/credit-notes/id/application") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.creditNotes.applicationCreate("id", { + isDebugMode: true, + runAsync: true, + appliedDate: new Date("2024-01-15T09:30:00.000Z"), + appliedAmount: "applied_amount", + }); + expect(response).toEqual({ + model: { + id: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + remoteId: "123877", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + transactionDate: new Date("2020-03-31T00:00:00.000Z"), + status: "SUBMITTED", + number: "CN-29", + contact: "contact", + company: "company", + exchangeRate: "2.9", + totalAmount: 50, + remainingCredit: 20, + inclusiveOfTax: true, + lineItems: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + item: "0e3fd929-436c-4fd4-a48b-0c61f68d6178", + name: "Basic Monthly", + description: "prorated amount for items", + quantity: "quantity", + memo: "privNote", + unitPrice: "5.0", + taxRate: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + totalLineAmount: "5.0", + trackingCategories: [ + "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + account: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + contact: "908934-49j9-093f-0989-908923908", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + remoteWasDeleted: true, + }, + ], + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + currency: "XUA", + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], + appliedPayments: ["a9a94a75-19c1-41fe-90d8-d9ba959c38e5"], + accountingPeriod: "accounting_period", + appliedToLines: [ + { + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + appliedDate: new Date("2020-03-31T00:00:00.000Z"), + appliedAmount: "2.9", + }, + ], + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("metaPatchRetrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + request_schema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + email_address_type: { type: "string", title: "email_address_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + url_type: { type: "string", title: "url_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { type: "string", title: "first_name", description: "The first name." }, + last_name: { type: "string", title: "last_name", description: "The last name." }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + phone_number_type: { type: "string", title: "phone_number_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { type: "string", title: "id" }, + file_url: { type: "string", title: "file_url" }, + file_name: { type: "string", title: "file_name" }, + attachment_type: { type: "string", title: "attachment_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { value: "HRIS", description: "Merge HRIS Category" }, + { value: "ATS", description: "Merge ATS Category" }, + { value: "Accounting", description: "Merge Accounting Category" }, + { value: "Ticketing", description: "Merge Ticketing Category" }, + { value: "File Storage", description: "Merge File Storage Category" }, + { value: "CRM", description: "Merge CRM Category" }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remote_field_classes: { key: "value" }, + status: { linked_account_status: "linked_account_status", can_make_request: true }, + has_conditional_params: true, + has_required_linked_account_params: true, + }; + server + .mockEndpoint() + .get("/accounting/v1/credit-notes/meta/patch/id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.creditNotes.metaPatchRetrieve("id"); + expect(response).toEqual({ + requestSchema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + email_address_type: { + type: "string", + title: "email_address_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + url_type: { + type: "string", + title: "url_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { + type: "string", + title: "first_name", + description: "The first name.", + }, + last_name: { + type: "string", + title: "last_name", + description: "The last name.", + }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + phone_number_type: { + type: "string", + title: "phone_number_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { + type: "string", + title: "id", + }, + file_url: { + type: "string", + title: "file_url", + }, + file_name: { + type: "string", + title: "file_name", + }, + attachment_type: { + type: "string", + title: "attachment_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { + value: "HRIS", + description: "Merge HRIS Category", + }, + { + value: "ATS", + description: "Merge ATS Category", + }, + { + value: "Accounting", + description: "Merge Accounting Category", + }, + { + value: "Ticketing", + description: "Merge Ticketing Category", + }, + { + value: "File Storage", + description: "Merge File Storage Category", + }, + { + value: "CRM", + description: "Merge CRM Category", + }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remoteFieldClasses: { + key: "value", + }, + status: { + linkedAccountStatus: "linked_account_status", + canMakeRequest: true, + }, + hasConditionalParams: true, + hasRequiredLinkedAccountParams: true, + }); + }); + + test("metaPostRetrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + request_schema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + email_address_type: { type: "string", title: "email_address_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + url_type: { type: "string", title: "url_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { type: "string", title: "first_name", description: "The first name." }, + last_name: { type: "string", title: "last_name", description: "The last name." }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + phone_number_type: { type: "string", title: "phone_number_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { type: "string", title: "id" }, + file_url: { type: "string", title: "file_url" }, + file_name: { type: "string", title: "file_name" }, + attachment_type: { type: "string", title: "attachment_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { value: "HRIS", description: "Merge HRIS Category" }, + { value: "ATS", description: "Merge ATS Category" }, + { value: "Accounting", description: "Merge Accounting Category" }, + { value: "Ticketing", description: "Merge Ticketing Category" }, + { value: "File Storage", description: "Merge File Storage Category" }, + { value: "CRM", description: "Merge CRM Category" }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remote_field_classes: { key: "value" }, + status: { linked_account_status: "linked_account_status", can_make_request: true }, + has_conditional_params: true, + has_required_linked_account_params: true, + }; + server + .mockEndpoint() + .get("/accounting/v1/credit-notes/meta/post") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.creditNotes.metaPostRetrieve(); + expect(response).toEqual({ + requestSchema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + email_address_type: { + type: "string", + title: "email_address_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + url_type: { + type: "string", + title: "url_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { + type: "string", + title: "first_name", + description: "The first name.", + }, + last_name: { + type: "string", + title: "last_name", + description: "The last name.", + }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + phone_number_type: { + type: "string", + title: "phone_number_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { + type: "string", + title: "id", + }, + file_url: { + type: "string", + title: "file_url", + }, + file_name: { + type: "string", + title: "file_name", + }, + attachment_type: { + type: "string", + title: "attachment_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { + value: "HRIS", + description: "Merge HRIS Category", + }, + { + value: "ATS", + description: "Merge ATS Category", + }, + { + value: "Accounting", + description: "Merge Accounting Category", + }, + { + value: "Ticketing", + description: "Merge Ticketing Category", + }, + { + value: "File Storage", + description: "Merge File Storage Category", + }, + { + value: "CRM", + description: "Merge CRM Category", + }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remoteFieldClasses: { + key: "value", + }, + status: { + linkedAccountStatus: "linked_account_status", + canMakeRequest: true, + }, + hasConditionalParams: true, + hasRequiredLinkedAccountParams: true, + }); + }); +}); diff --git a/tests/wire/accounting/deleteAccount.test.ts b/tests/wire/Accounting/deleteAccount.test.ts similarity index 100% rename from tests/wire/accounting/deleteAccount.test.ts rename to tests/wire/Accounting/deleteAccount.test.ts diff --git a/tests/wire/Accounting/employees.test.ts b/tests/wire/Accounting/employees.test.ts new file mode 100644 index 000000000..9259c13d5 --- /dev/null +++ b/tests/wire/Accounting/employees.test.ts @@ -0,0 +1,172 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("EmployeesClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "c640b80b-fac9-409f-aa19-1f9221aec445", + remote_id: "11167", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + first_name: "John", + last_name: "Smith", + is_contractor: true, + employee_number: "325462", + email_address: "johnsmith@merge.dev", + company: "company", + status: "ACTIVE", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/employees") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "c640b80b-fac9-409f-aa19-1f9221aec445", + remoteId: "11167", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + firstName: "John", + lastName: "Smith", + isContractor: true, + employeeNumber: "325462", + emailAddress: "johnsmith@merge.dev", + company: "company", + status: "ACTIVE", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + }, + ], + }; + const page = await client.accounting.employees.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + id: "c640b80b-fac9-409f-aa19-1f9221aec445", + remote_id: "11167", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + first_name: "John", + last_name: "Smith", + is_contractor: true, + employee_number: "325462", + email_address: "johnsmith@merge.dev", + company: "company", + status: "ACTIVE", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + }; + server + .mockEndpoint() + .get("/accounting/v1/employees/id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.employees.retrieve("id", { + includeRemoteData: true, + includeShellData: true, + }); + expect(response).toEqual({ + id: "c640b80b-fac9-409f-aa19-1f9221aec445", + remoteId: "11167", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + firstName: "John", + lastName: "Smith", + isContractor: true, + employeeNumber: "325462", + emailAddress: "johnsmith@merge.dev", + company: "company", + status: "ACTIVE", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + }); + }); +}); diff --git a/tests/wire/Accounting/expenseReports.test.ts b/tests/wire/Accounting/expenseReports.test.ts new file mode 100644 index 000000000..b296e65ae --- /dev/null +++ b/tests/wire/Accounting/expenseReports.test.ts @@ -0,0 +1,1585 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("ExpenseReportsClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "123e4567-e89b-12d3-a456-426614174000", + remote_id: "exp_123e4567-e89b-12d3-a456-426614174000", + created_at: "2024-01-31T12:00:00Z", + modified_at: "2024-01-31T14:30:00Z", + report_date: "2024-01-31T00:00:00Z", + report_identifier: "EXP-2024-001", + employee: "employee", + status: "DRAFT", + total_amount: 150, + lines: [ + { + id: "1234", + remote_id: "abcd-1234", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + account: "acc-1234", + description: "Client lunch meeting", + expense_date: "2024-01-15T00:00:00Z", + amount: 50, + currency: "USD", + exchange_rate: "exchange_rate", + is_billable: true, + tracking_categories: ["cat-1", "cat-2"], + employee: "emp-1234", + project: "proj-5678", + company: "comp-1234", + contact: "cont-5678", + quantity: 1, + unit_price: 50, + non_reimbursable: false, + tax_amount: 5, + inclusive_of_tax: false, + tax_rate: "tax-1234", + remote_was_deleted: false, + }, + ], + currency: "XUA", + description: "January 2024 Travel Expenses", + accounting_period: "accounting_period", + company: "company", + tracking_categories: [ + "a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", + "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p", + ], + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/expense-reports") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "123e4567-e89b-12d3-a456-426614174000", + remoteId: "exp_123e4567-e89b-12d3-a456-426614174000", + createdAt: new Date("2024-01-31T12:00:00.000Z"), + modifiedAt: new Date("2024-01-31T14:30:00.000Z"), + reportDate: new Date("2024-01-31T00:00:00.000Z"), + reportIdentifier: "EXP-2024-001", + employee: "employee", + status: "DRAFT", + totalAmount: 150, + lines: [ + { + id: "1234", + remoteId: "abcd-1234", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + account: "acc-1234", + description: "Client lunch meeting", + expenseDate: new Date("2024-01-15T00:00:00.000Z"), + amount: 50, + currency: "USD", + exchangeRate: "exchange_rate", + isBillable: true, + trackingCategories: ["cat-1", "cat-2"], + employee: "emp-1234", + project: "proj-5678", + company: "comp-1234", + contact: "cont-5678", + quantity: 1, + unitPrice: 50, + nonReimbursable: false, + taxAmount: 5, + inclusiveOfTax: false, + taxRate: "tax-1234", + remoteWasDeleted: false, + }, + ], + currency: "XUA", + description: "January 2024 Travel Expenses", + accountingPeriod: "accounting_period", + company: "company", + trackingCategories: [ + "a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", + "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p", + ], + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + ], + }; + const page = await client.accounting.expenseReports.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("create", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { + model: { + tracking_categories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"], + }, + }; + const rawResponseBody = { + model: { + id: "123e4567-e89b-12d3-a456-426614174000", + remote_id: "exp_123e4567-e89b-12d3-a456-426614174000", + created_at: "2024-01-31T12:00:00Z", + modified_at: "2024-01-31T14:30:00Z", + report_date: "2024-01-31T00:00:00Z", + report_identifier: "EXP-2024-001", + employee: "employee", + status: "DRAFT", + total_amount: 150, + lines: [ + { + id: "1234", + remote_id: "abcd-1234", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + account: "acc-1234", + description: "Client lunch meeting", + expense_date: "2024-01-15T00:00:00Z", + amount: 50, + currency: "USD", + exchange_rate: "exchange_rate", + is_billable: true, + tracking_categories: ["cat-1", "cat-2"], + employee: "emp-1234", + project: "proj-5678", + company: "comp-1234", + contact: "cont-5678", + quantity: 1, + unit_price: 50, + non_reimbursable: false, + tax_amount: 5, + inclusive_of_tax: false, + tax_rate: "tax-1234", + remote_was_deleted: false, + }, + ], + currency: "XUA", + description: "January 2024 Travel Expenses", + accounting_period: "accounting_period", + company: "company", + tracking_categories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"], + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/accounting/v1/expense-reports") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.expenseReports.create({ + isDebugMode: true, + runAsync: true, + body: { + model: { + trackingCategories: [ + "a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", + "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p", + ], + }, + }, + }); + expect(response).toEqual({ + model: { + id: "123e4567-e89b-12d3-a456-426614174000", + remoteId: "exp_123e4567-e89b-12d3-a456-426614174000", + createdAt: new Date("2024-01-31T12:00:00.000Z"), + modifiedAt: new Date("2024-01-31T14:30:00.000Z"), + reportDate: new Date("2024-01-31T00:00:00.000Z"), + reportIdentifier: "EXP-2024-001", + employee: "employee", + status: "DRAFT", + totalAmount: 150, + lines: [ + { + id: "1234", + remoteId: "abcd-1234", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + account: "acc-1234", + description: "Client lunch meeting", + expenseDate: new Date("2024-01-15T00:00:00.000Z"), + amount: 50, + currency: "USD", + exchangeRate: "exchange_rate", + isBillable: true, + trackingCategories: ["cat-1", "cat-2"], + employee: "emp-1234", + project: "proj-5678", + company: "comp-1234", + contact: "cont-5678", + quantity: 1, + unitPrice: 50, + nonReimbursable: false, + taxAmount: 5, + inclusiveOfTax: false, + taxRate: "tax-1234", + remoteWasDeleted: false, + }, + ], + currency: "XUA", + description: "January 2024 Travel Expenses", + accountingPeriod: "accounting_period", + company: "company", + trackingCategories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"], + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("linesList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "1234", + remote_id: "abcd-1234", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + account: "account", + description: "Client lunch meeting", + expense_date: "2024-01-15T00:00:00Z", + amount: 50, + currency: "XUA", + exchange_rate: "exchange_rate", + is_billable: true, + tracking_categories: ["cat-1", "cat-2"], + employee: "employee", + project: "project", + company: "company", + contact: "contact", + quantity: 1, + unit_price: 50, + non_reimbursable: true, + tax_amount: 5, + inclusive_of_tax: true, + tax_rate: "tax_rate", + remote_was_deleted: true, + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/expense-reports/expense_report_id/lines") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "1234", + remoteId: "abcd-1234", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + account: "account", + description: "Client lunch meeting", + expenseDate: new Date("2024-01-15T00:00:00.000Z"), + amount: 50, + currency: "XUA", + exchangeRate: "exchange_rate", + isBillable: true, + trackingCategories: ["cat-1", "cat-2"], + employee: "employee", + project: "project", + company: "company", + contact: "contact", + quantity: 1, + unitPrice: 50, + nonReimbursable: true, + taxAmount: 5, + inclusiveOfTax: true, + taxRate: "tax_rate", + remoteWasDeleted: true, + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + ], + }; + const page = await client.accounting.expenseReports.linesList("expense_report_id", { + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + pageSize: 1, + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + id: "123e4567-e89b-12d3-a456-426614174000", + remote_id: "exp_123e4567-e89b-12d3-a456-426614174000", + created_at: "2024-01-31T12:00:00Z", + modified_at: "2024-01-31T14:30:00Z", + report_date: "2024-01-31T00:00:00Z", + report_identifier: "EXP-2024-001", + employee: "employee", + status: "DRAFT", + total_amount: 150, + lines: [ + { + id: "1234", + remote_id: "abcd-1234", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + account: "acc-1234", + description: "Client lunch meeting", + expense_date: "2024-01-15T00:00:00Z", + amount: 50, + currency: "USD", + exchange_rate: "exchange_rate", + is_billable: true, + tracking_categories: ["cat-1", "cat-2"], + employee: "emp-1234", + project: "proj-5678", + company: "comp-1234", + contact: "cont-5678", + quantity: 1, + unit_price: 50, + non_reimbursable: false, + tax_amount: 5, + inclusive_of_tax: false, + tax_rate: "tax-1234", + remote_was_deleted: false, + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + ], + currency: "XUA", + description: "January 2024 Travel Expenses", + accounting_period: "accounting_period", + company: "company", + tracking_categories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"], + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }; + server + .mockEndpoint() + .get("/accounting/v1/expense-reports/id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.expenseReports.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + }); + expect(response).toEqual({ + id: "123e4567-e89b-12d3-a456-426614174000", + remoteId: "exp_123e4567-e89b-12d3-a456-426614174000", + createdAt: new Date("2024-01-31T12:00:00.000Z"), + modifiedAt: new Date("2024-01-31T14:30:00.000Z"), + reportDate: new Date("2024-01-31T00:00:00.000Z"), + reportIdentifier: "EXP-2024-001", + employee: "employee", + status: "DRAFT", + totalAmount: 150, + lines: [ + { + id: "1234", + remoteId: "abcd-1234", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + account: "acc-1234", + description: "Client lunch meeting", + expenseDate: new Date("2024-01-15T00:00:00.000Z"), + amount: 50, + currency: "USD", + exchangeRate: "exchange_rate", + isBillable: true, + trackingCategories: ["cat-1", "cat-2"], + employee: "emp-1234", + project: "proj-5678", + company: "comp-1234", + contact: "cont-5678", + quantity: 1, + unitPrice: 50, + nonReimbursable: false, + taxAmount: 5, + inclusiveOfTax: false, + taxRate: "tax-1234", + remoteWasDeleted: false, + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + ], + currency: "XUA", + description: "January 2024 Travel Expenses", + accountingPeriod: "accounting_period", + company: "company", + trackingCategories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"], + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }); + }); + + test("batchObjectsList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "123e4567-e89b-12d3-a456-426614174000", + remote_id: "exp_123e4567-e89b-12d3-a456-426614174000", + created_at: "2024-01-31T12:00:00Z", + modified_at: "2024-01-31T14:30:00Z", + report_date: "2024-01-31T00:00:00Z", + report_identifier: "EXP-2024-001", + employee: "employee", + status: "DRAFT", + total_amount: 150, + lines: [ + { + id: "1234", + remote_id: "abcd-1234", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + account: "acc-1234", + description: "Client lunch meeting", + expense_date: "2024-01-15T00:00:00Z", + amount: 50, + currency: "USD", + exchange_rate: "exchange_rate", + is_billable: true, + tracking_categories: ["cat-1", "cat-2"], + employee: "emp-1234", + project: "proj-5678", + company: "comp-1234", + contact: "cont-5678", + quantity: 1, + unit_price: 50, + non_reimbursable: false, + tax_amount: 5, + inclusive_of_tax: false, + tax_rate: "tax-1234", + remote_was_deleted: false, + }, + ], + currency: "XUA", + description: "January 2024 Travel Expenses", + accounting_period: "accounting_period", + company: "company", + tracking_categories: [ + "a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", + "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p", + ], + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + ], + }; + server + .mockEndpoint() + .get("/accounting/v1/expense-reports/batch/batch_id/objects") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.expenseReports.batchObjectsList("batch_id", { + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + }); + expect(response).toEqual({ + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "123e4567-e89b-12d3-a456-426614174000", + remoteId: "exp_123e4567-e89b-12d3-a456-426614174000", + createdAt: new Date("2024-01-31T12:00:00.000Z"), + modifiedAt: new Date("2024-01-31T14:30:00.000Z"), + reportDate: new Date("2024-01-31T00:00:00.000Z"), + reportIdentifier: "EXP-2024-001", + employee: "employee", + status: "DRAFT", + totalAmount: 150, + lines: [ + { + id: "1234", + remoteId: "abcd-1234", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + account: "acc-1234", + description: "Client lunch meeting", + expenseDate: new Date("2024-01-15T00:00:00.000Z"), + amount: 50, + currency: "USD", + exchangeRate: "exchange_rate", + isBillable: true, + trackingCategories: ["cat-1", "cat-2"], + employee: "emp-1234", + project: "proj-5678", + company: "comp-1234", + contact: "cont-5678", + quantity: 1, + unitPrice: 50, + nonReimbursable: false, + taxAmount: 5, + inclusiveOfTax: false, + taxRate: "tax-1234", + remoteWasDeleted: false, + }, + ], + currency: "XUA", + description: "January 2024 Travel Expenses", + accountingPeriod: "accounting_period", + company: "company", + trackingCategories: [ + "a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", + "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p", + ], + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + ], + }); + }); + + test("asyncBulkCreate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { + batch_items: [ + { + item_id: "item_id", + payload: { + model: { + tracking_categories: [ + "a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", + "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p", + ], + }, + }, + }, + ], + }; + const rawResponseBody = { + model: { + id: "123e4567-e89b-12d3-a456-426614174000", + remote_id: "exp_123e4567-e89b-12d3-a456-426614174000", + created_at: "2024-01-31T12:00:00Z", + modified_at: "2024-01-31T14:30:00Z", + report_date: "2024-01-31T00:00:00Z", + report_identifier: "EXP-2024-001", + employee: "employee", + status: "DRAFT", + total_amount: 150, + lines: [ + { + id: "1234", + remote_id: "abcd-1234", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + account: "acc-1234", + description: "Client lunch meeting", + expense_date: "2024-01-15T00:00:00Z", + amount: 50, + currency: "USD", + exchange_rate: "exchange_rate", + is_billable: true, + tracking_categories: ["cat-1", "cat-2"], + employee: "emp-1234", + project: "proj-5678", + company: "comp-1234", + contact: "cont-5678", + quantity: 1, + unit_price: 50, + non_reimbursable: false, + tax_amount: 5, + inclusive_of_tax: false, + tax_rate: "tax-1234", + remote_was_deleted: false, + }, + ], + currency: "XUA", + description: "January 2024 Travel Expenses", + accounting_period: "accounting_period", + company: "company", + tracking_categories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"], + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/accounting/v1/expense-reports/async/bulk") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.expenseReports.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [ + { + itemId: "item_id", + payload: { + model: { + trackingCategories: [ + "a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", + "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p", + ], + }, + }, + }, + ], + }); + expect(response).toEqual({ + model: { + id: "123e4567-e89b-12d3-a456-426614174000", + remoteId: "exp_123e4567-e89b-12d3-a456-426614174000", + createdAt: new Date("2024-01-31T12:00:00.000Z"), + modifiedAt: new Date("2024-01-31T14:30:00.000Z"), + reportDate: new Date("2024-01-31T00:00:00.000Z"), + reportIdentifier: "EXP-2024-001", + employee: "employee", + status: "DRAFT", + totalAmount: 150, + lines: [ + { + id: "1234", + remoteId: "abcd-1234", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + account: "acc-1234", + description: "Client lunch meeting", + expenseDate: new Date("2024-01-15T00:00:00.000Z"), + amount: 50, + currency: "USD", + exchangeRate: "exchange_rate", + isBillable: true, + trackingCategories: ["cat-1", "cat-2"], + employee: "emp-1234", + project: "proj-5678", + company: "comp-1234", + contact: "cont-5678", + quantity: 1, + unitPrice: 50, + nonReimbursable: false, + taxAmount: 5, + inclusiveOfTax: false, + taxRate: "tax-1234", + remoteWasDeleted: false, + }, + ], + currency: "XUA", + description: "January 2024 Travel Expenses", + accountingPeriod: "accounting_period", + company: "company", + trackingCategories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"], + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("linesRemoteFieldClassesList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "id", + display_name: "display_name", + remote_key_name: "remote_key_name", + description: "description", + is_custom: true, + is_common_model_field: true, + is_required: true, + field_type: "string", + field_format: "string", + field_choices: ["field_choices"], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/expense-reports/lines/remote-field-classes") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "id", + displayName: "display_name", + remoteKeyName: "remote_key_name", + description: "description", + isCustom: true, + isCommonModelField: true, + isRequired: true, + fieldType: "string", + fieldFormat: "string", + fieldChoices: ["field_choices"], + }, + ], + }; + const page = await client.accounting.expenseReports.linesRemoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1, + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("metaPostRetrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + request_schema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + email_address_type: { type: "string", title: "email_address_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + url_type: { type: "string", title: "url_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { type: "string", title: "first_name", description: "The first name." }, + last_name: { type: "string", title: "last_name", description: "The last name." }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + phone_number_type: { type: "string", title: "phone_number_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { type: "string", title: "id" }, + file_url: { type: "string", title: "file_url" }, + file_name: { type: "string", title: "file_name" }, + attachment_type: { type: "string", title: "attachment_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { value: "HRIS", description: "Merge HRIS Category" }, + { value: "ATS", description: "Merge ATS Category" }, + { value: "Accounting", description: "Merge Accounting Category" }, + { value: "Ticketing", description: "Merge Ticketing Category" }, + { value: "File Storage", description: "Merge File Storage Category" }, + { value: "CRM", description: "Merge CRM Category" }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remote_field_classes: { key: "value" }, + status: { linked_account_status: "linked_account_status", can_make_request: true }, + has_conditional_params: true, + has_required_linked_account_params: true, + }; + server + .mockEndpoint() + .get("/accounting/v1/expense-reports/meta/post") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.expenseReports.metaPostRetrieve(); + expect(response).toEqual({ + requestSchema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + email_address_type: { + type: "string", + title: "email_address_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + url_type: { + type: "string", + title: "url_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { + type: "string", + title: "first_name", + description: "The first name.", + }, + last_name: { + type: "string", + title: "last_name", + description: "The last name.", + }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + phone_number_type: { + type: "string", + title: "phone_number_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { + type: "string", + title: "id", + }, + file_url: { + type: "string", + title: "file_url", + }, + file_name: { + type: "string", + title: "file_name", + }, + attachment_type: { + type: "string", + title: "attachment_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { + value: "HRIS", + description: "Merge HRIS Category", + }, + { + value: "ATS", + description: "Merge ATS Category", + }, + { + value: "Accounting", + description: "Merge Accounting Category", + }, + { + value: "Ticketing", + description: "Merge Ticketing Category", + }, + { + value: "File Storage", + description: "Merge File Storage Category", + }, + { + value: "CRM", + description: "Merge CRM Category", + }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remoteFieldClasses: { + key: "value", + }, + status: { + linkedAccountStatus: "linked_account_status", + canMakeRequest: true, + }, + hasConditionalParams: true, + hasRequiredLinkedAccountParams: true, + }); + }); + + test("remoteFieldClassesList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "id", + display_name: "display_name", + remote_key_name: "remote_key_name", + description: "description", + is_custom: true, + is_common_model_field: true, + is_required: true, + field_type: "string", + field_format: "string", + field_choices: ["field_choices"], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/expense-reports/remote-field-classes") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "id", + displayName: "display_name", + remoteKeyName: "remote_key_name", + description: "description", + isCustom: true, + isCommonModelField: true, + isRequired: true, + fieldType: "string", + fieldFormat: "string", + fieldChoices: ["field_choices"], + }, + ], + }; + const page = await client.accounting.expenseReports.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1, + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); +}); diff --git a/tests/wire/Accounting/expenses.test.ts b/tests/wire/Accounting/expenses.test.ts new file mode 100644 index 000000000..c478c0e26 --- /dev/null +++ b/tests/wire/Accounting/expenses.test.ts @@ -0,0 +1,1717 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("ExpensesClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + transaction_date: "2024-01-15T09:30:00Z", + remote_created_at: "2020-03-31T00:00:00Z", + account: "account", + contact: "contact", + total_amount: 10000, + sub_total: 1.1, + total_tax_amount: 1.1, + currency: "XUA", + exchange_rate: "2.9", + inclusive_of_tax: true, + company: "company", + employee: "employee", + memo: "New employee supplies", + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + net_amount: 25.54, + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", + account: "2a56344a-a491-11ec-b909-0242ac120002", + contact: "c640b80b-fac9-409f-aa19-1f9221aec445", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + description: "MacBook Pro", + exchange_rate: "2.9", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + quantity: "quantity", + unit_price: "unit_price", + remote_was_deleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121223", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + net_amount: 10, + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + account: "2a56344a-a491-11ec-b909-0242ac120002", + description: "Desk Lamp", + exchange_rate: "2.9", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + }, + ], + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + remote_was_deleted: true, + accounting_period: "accounting_period", + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/expenses") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + transactionDate: new Date("2024-01-15T09:30:00.000Z"), + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + account: "account", + contact: "contact", + totalAmount: 10000, + subTotal: 1.1, + totalTaxAmount: 1.1, + currency: "XUA", + exchangeRate: "2.9", + inclusiveOfTax: true, + company: "company", + employee: "employee", + memo: "New employee supplies", + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + netAmount: 25.54, + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", + account: "2a56344a-a491-11ec-b909-0242ac120002", + contact: "c640b80b-fac9-409f-aa19-1f9221aec445", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + description: "MacBook Pro", + exchangeRate: "2.9", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + quantity: "quantity", + unitPrice: "unit_price", + remoteWasDeleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121223", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + netAmount: 10, + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + account: "2a56344a-a491-11ec-b909-0242ac120002", + description: "Desk Lamp", + exchangeRate: "2.9", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + }, + ], + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + remoteWasDeleted: true, + accountingPeriod: "accounting_period", + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + ], + }; + const page = await client.accounting.expenses.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + transactionDateBefore: new Date("2024-01-15T09:30:00.000Z"), + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("create", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { model: {} }; + const rawResponseBody = { + model: { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + transaction_date: "2024-01-15T09:30:00Z", + remote_created_at: "2020-03-31T00:00:00Z", + account: "account", + contact: "contact", + total_amount: 10000, + sub_total: 1.1, + total_tax_amount: 1.1, + currency: "XUA", + exchange_rate: "2.9", + inclusive_of_tax: true, + company: "company", + employee: "employee", + memo: "New employee supplies", + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + net_amount: 25.54, + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", + account: "2a56344a-a491-11ec-b909-0242ac120002", + contact: "c640b80b-fac9-409f-aa19-1f9221aec445", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + description: "MacBook Pro", + exchange_rate: "2.9", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + quantity: "quantity", + unit_price: "unit_price", + remote_was_deleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121223", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + net_amount: 10, + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + account: "2a56344a-a491-11ec-b909-0242ac120002", + description: "Desk Lamp", + exchange_rate: "2.9", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + }, + ], + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + remote_was_deleted: true, + accounting_period: "accounting_period", + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/accounting/v1/expenses") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.expenses.create({ + isDebugMode: true, + runAsync: true, + body: { + model: {}, + }, + }); + expect(response).toEqual({ + model: { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + transactionDate: new Date("2024-01-15T09:30:00.000Z"), + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + account: "account", + contact: "contact", + totalAmount: 10000, + subTotal: 1.1, + totalTaxAmount: 1.1, + currency: "XUA", + exchangeRate: "2.9", + inclusiveOfTax: true, + company: "company", + employee: "employee", + memo: "New employee supplies", + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + netAmount: 25.54, + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", + account: "2a56344a-a491-11ec-b909-0242ac120002", + contact: "c640b80b-fac9-409f-aa19-1f9221aec445", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + description: "MacBook Pro", + exchangeRate: "2.9", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + quantity: "quantity", + unitPrice: "unit_price", + remoteWasDeleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121223", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + netAmount: 10, + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + account: "2a56344a-a491-11ec-b909-0242ac120002", + description: "Desk Lamp", + exchangeRate: "2.9", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + }, + ], + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + remoteWasDeleted: true, + accountingPeriod: "accounting_period", + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + transaction_date: "2024-01-15T09:30:00Z", + remote_created_at: "2020-03-31T00:00:00Z", + account: "account", + contact: "contact", + total_amount: 10000, + sub_total: 1.1, + total_tax_amount: 1.1, + currency: "XUA", + exchange_rate: "2.9", + inclusive_of_tax: true, + company: "company", + employee: "employee", + memo: "New employee supplies", + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + net_amount: 25.54, + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", + currency: "XUA", + account: "2a56344a-a491-11ec-b909-0242ac120002", + contact: "c640b80b-fac9-409f-aa19-1f9221aec445", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + description: "MacBook Pro", + exchange_rate: "2.9", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + quantity: "quantity", + unit_price: "unit_price", + remote_was_deleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121223", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + net_amount: 10, + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + employee: "employee", + currency: "XUA", + account: "2a56344a-a491-11ec-b909-0242ac120002", + contact: "contact", + project: "project", + description: "Desk Lamp", + exchange_rate: "2.9", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + quantity: "quantity", + unit_price: "unit_price", + remote_was_deleted: true, + }, + ], + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + remote_was_deleted: true, + accounting_period: "accounting_period", + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }; + server + .mockEndpoint() + .get("/accounting/v1/expenses/id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.expenses.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + }); + expect(response).toEqual({ + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + transactionDate: new Date("2024-01-15T09:30:00.000Z"), + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + account: "account", + contact: "contact", + totalAmount: 10000, + subTotal: 1.1, + totalTaxAmount: 1.1, + currency: "XUA", + exchangeRate: "2.9", + inclusiveOfTax: true, + company: "company", + employee: "employee", + memo: "New employee supplies", + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + netAmount: 25.54, + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", + currency: "XUA", + account: "2a56344a-a491-11ec-b909-0242ac120002", + contact: "c640b80b-fac9-409f-aa19-1f9221aec445", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + description: "MacBook Pro", + exchangeRate: "2.9", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + quantity: "quantity", + unitPrice: "unit_price", + remoteWasDeleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121223", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + netAmount: 10, + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + employee: "employee", + currency: "XUA", + account: "2a56344a-a491-11ec-b909-0242ac120002", + contact: "contact", + project: "project", + description: "Desk Lamp", + exchangeRate: "2.9", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + quantity: "quantity", + unitPrice: "unit_price", + remoteWasDeleted: true, + }, + ], + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + remoteWasDeleted: true, + accountingPeriod: "accounting_period", + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }); + }); + + test("batchObjectsList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + transaction_date: "2024-01-15T09:30:00Z", + remote_created_at: "2020-03-31T00:00:00Z", + account: "account", + contact: "contact", + total_amount: 10000, + sub_total: 1.1, + total_tax_amount: 1.1, + currency: "XUA", + exchange_rate: "2.9", + inclusive_of_tax: true, + company: "company", + employee: "employee", + memo: "New employee supplies", + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + net_amount: 25.54, + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", + account: "2a56344a-a491-11ec-b909-0242ac120002", + contact: "c640b80b-fac9-409f-aa19-1f9221aec445", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + description: "MacBook Pro", + exchange_rate: "2.9", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + quantity: "quantity", + unit_price: "unit_price", + remote_was_deleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121223", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + net_amount: 10, + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + account: "2a56344a-a491-11ec-b909-0242ac120002", + description: "Desk Lamp", + exchange_rate: "2.9", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + }, + ], + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + remote_was_deleted: true, + accounting_period: "accounting_period", + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + ], + }; + server + .mockEndpoint() + .get("/accounting/v1/expenses/batch/batch_id/objects") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.expenses.batchObjectsList("batch_id", { + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + transactionDateBefore: new Date("2024-01-15T09:30:00.000Z"), + }); + expect(response).toEqual({ + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + transactionDate: new Date("2024-01-15T09:30:00.000Z"), + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + account: "account", + contact: "contact", + totalAmount: 10000, + subTotal: 1.1, + totalTaxAmount: 1.1, + currency: "XUA", + exchangeRate: "2.9", + inclusiveOfTax: true, + company: "company", + employee: "employee", + memo: "New employee supplies", + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + netAmount: 25.54, + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", + account: "2a56344a-a491-11ec-b909-0242ac120002", + contact: "c640b80b-fac9-409f-aa19-1f9221aec445", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + description: "MacBook Pro", + exchangeRate: "2.9", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + quantity: "quantity", + unitPrice: "unit_price", + remoteWasDeleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121223", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + netAmount: 10, + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + account: "2a56344a-a491-11ec-b909-0242ac120002", + description: "Desk Lamp", + exchangeRate: "2.9", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + }, + ], + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + remoteWasDeleted: true, + accountingPeriod: "accounting_period", + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + ], + }); + }); + + test("asyncBulkCreate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { batch_items: [{ item_id: "item_id", payload: { model: {} } }] }; + const rawResponseBody = { + model: { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + transaction_date: "2024-01-15T09:30:00Z", + remote_created_at: "2020-03-31T00:00:00Z", + account: "account", + contact: "contact", + total_amount: 10000, + sub_total: 1.1, + total_tax_amount: 1.1, + currency: "XUA", + exchange_rate: "2.9", + inclusive_of_tax: true, + company: "company", + employee: "employee", + memo: "New employee supplies", + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + net_amount: 25.54, + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", + account: "2a56344a-a491-11ec-b909-0242ac120002", + contact: "c640b80b-fac9-409f-aa19-1f9221aec445", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + description: "MacBook Pro", + exchange_rate: "2.9", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + quantity: "quantity", + unit_price: "unit_price", + remote_was_deleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121223", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + net_amount: 10, + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + account: "2a56344a-a491-11ec-b909-0242ac120002", + description: "Desk Lamp", + exchange_rate: "2.9", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + }, + ], + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + remote_was_deleted: true, + accounting_period: "accounting_period", + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/accounting/v1/expenses/async/bulk") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.expenses.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [ + { + itemId: "item_id", + payload: { + model: {}, + }, + }, + ], + }); + expect(response).toEqual({ + model: { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + transactionDate: new Date("2024-01-15T09:30:00.000Z"), + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + account: "account", + contact: "contact", + totalAmount: 10000, + subTotal: 1.1, + totalTaxAmount: 1.1, + currency: "XUA", + exchangeRate: "2.9", + inclusiveOfTax: true, + company: "company", + employee: "employee", + memo: "New employee supplies", + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + netAmount: 25.54, + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", + account: "2a56344a-a491-11ec-b909-0242ac120002", + contact: "c640b80b-fac9-409f-aa19-1f9221aec445", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + description: "MacBook Pro", + exchangeRate: "2.9", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + quantity: "quantity", + unitPrice: "unit_price", + remoteWasDeleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121223", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + netAmount: 10, + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + account: "2a56344a-a491-11ec-b909-0242ac120002", + description: "Desk Lamp", + exchangeRate: "2.9", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + }, + ], + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + remoteWasDeleted: true, + accountingPeriod: "accounting_period", + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("linesRemoteFieldClassesList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "id", + display_name: "display_name", + remote_key_name: "remote_key_name", + description: "description", + is_custom: true, + is_common_model_field: true, + is_required: true, + field_type: "string", + field_format: "string", + field_choices: ["field_choices"], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/expenses/lines/remote-field-classes") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "id", + displayName: "display_name", + remoteKeyName: "remote_key_name", + description: "description", + isCustom: true, + isCommonModelField: true, + isRequired: true, + fieldType: "string", + fieldFormat: "string", + fieldChoices: ["field_choices"], + }, + ], + }; + const page = await client.accounting.expenses.linesRemoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1, + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("metaPostRetrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + request_schema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + email_address_type: { type: "string", title: "email_address_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + url_type: { type: "string", title: "url_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { type: "string", title: "first_name", description: "The first name." }, + last_name: { type: "string", title: "last_name", description: "The last name." }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + phone_number_type: { type: "string", title: "phone_number_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { type: "string", title: "id" }, + file_url: { type: "string", title: "file_url" }, + file_name: { type: "string", title: "file_name" }, + attachment_type: { type: "string", title: "attachment_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { value: "HRIS", description: "Merge HRIS Category" }, + { value: "ATS", description: "Merge ATS Category" }, + { value: "Accounting", description: "Merge Accounting Category" }, + { value: "Ticketing", description: "Merge Ticketing Category" }, + { value: "File Storage", description: "Merge File Storage Category" }, + { value: "CRM", description: "Merge CRM Category" }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remote_field_classes: { key: "value" }, + status: { linked_account_status: "linked_account_status", can_make_request: true }, + has_conditional_params: true, + has_required_linked_account_params: true, + }; + server + .mockEndpoint() + .get("/accounting/v1/expenses/meta/post") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.expenses.metaPostRetrieve(); + expect(response).toEqual({ + requestSchema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + email_address_type: { + type: "string", + title: "email_address_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + url_type: { + type: "string", + title: "url_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { + type: "string", + title: "first_name", + description: "The first name.", + }, + last_name: { + type: "string", + title: "last_name", + description: "The last name.", + }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + phone_number_type: { + type: "string", + title: "phone_number_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { + type: "string", + title: "id", + }, + file_url: { + type: "string", + title: "file_url", + }, + file_name: { + type: "string", + title: "file_name", + }, + attachment_type: { + type: "string", + title: "attachment_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { + value: "HRIS", + description: "Merge HRIS Category", + }, + { + value: "ATS", + description: "Merge ATS Category", + }, + { + value: "Accounting", + description: "Merge Accounting Category", + }, + { + value: "Ticketing", + description: "Merge Ticketing Category", + }, + { + value: "File Storage", + description: "Merge File Storage Category", + }, + { + value: "CRM", + description: "Merge CRM Category", + }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remoteFieldClasses: { + key: "value", + }, + status: { + linkedAccountStatus: "linked_account_status", + canMakeRequest: true, + }, + hasConditionalParams: true, + hasRequiredLinkedAccountParams: true, + }); + }); + + test("remoteFieldClassesList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "id", + display_name: "display_name", + remote_key_name: "remote_key_name", + description: "description", + is_custom: true, + is_common_model_field: true, + is_required: true, + field_type: "string", + field_format: "string", + field_choices: ["field_choices"], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/expenses/remote-field-classes") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "id", + displayName: "display_name", + remoteKeyName: "remote_key_name", + description: "description", + isCustom: true, + isCommonModelField: true, + isRequired: true, + fieldType: "string", + fieldFormat: "string", + fieldChoices: ["field_choices"], + }, + ], + }; + const page = await client.accounting.expenses.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1, + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); +}); diff --git a/tests/wire/Accounting/fieldMapping.test.ts b/tests/wire/Accounting/fieldMapping.test.ts new file mode 100644 index 000000000..53838b02a --- /dev/null +++ b/tests/wire/Accounting/fieldMapping.test.ts @@ -0,0 +1,2989 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("FieldMappingClient", () => { + test("field_mappings_retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + Account: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + AccountingAttachment: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + BalanceSheet: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + CashFlowStatement: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + CompanyInfo: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Contact: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + IncomeStatement: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + CreditNote: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Item: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + PurchaseOrder: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + SalesOrder: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + ItemFulfillment: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + ExpenseReport: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + TrackingCategory: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + JournalEntry: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + TaxRate: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Invoice: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Payment: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Expense: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + VendorCredit: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Transaction: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + AccountingPeriod: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + GeneralLedgerTransaction: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + BankFeedAccount: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Employee: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + PaymentMethod: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Project: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + PaymentTerm: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + }; + server + .mockEndpoint() + .get("/accounting/v1/field-mappings") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.fieldMapping.fieldMappingsRetrieve({ + excludeRemoteFieldMetadata: true, + }); + expect(response).toEqual({ + account: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + accountingAttachment: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + balanceSheet: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + cashFlowStatement: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + companyInfo: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + contact: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + incomeStatement: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + creditNote: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + item: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + purchaseOrder: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + salesOrder: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + itemFulfillment: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + expenseReport: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + trackingCategory: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + journalEntry: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + taxRate: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + invoice: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + payment: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + expense: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + vendorCredit: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + transaction: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + accountingPeriod: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + generalLedgerTransaction: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + bankFeedAccount: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + employee: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + paymentMethod: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + project: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + paymentTerm: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + }); + }); + + test("field_mappings_create", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { + target_field_name: "example_target_field_name", + target_field_description: "this is a example description of the target field", + remote_field_traversal_path: ["example_remote_field"], + remote_method: "GET", + remote_url_path: "/example-url-path", + common_model_name: "ExampleCommonModel", + }; + const rawResponseBody = { + model: { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/accounting/v1/field-mappings") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.fieldMapping.fieldMappingsCreate({ + excludeRemoteFieldMetadata: true, + remoteDataIterationCount: 1, + targetFieldName: "example_target_field_name", + targetFieldDescription: "this is a example description of the target field", + remoteFieldTraversalPath: ["example_remote_field"], + remoteMethod: "GET", + remoteUrlPath: "/example-url-path", + commonModelName: "ExampleCommonModel", + }); + expect(response).toEqual({ + model: { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("field_mappings_destroy", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + model: { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .delete("/accounting/v1/field-mappings/field_mapping_id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.fieldMapping.fieldMappingsDestroy("field_mapping_id"); + expect(response).toEqual({ + model: { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("field_mappings_partial_update", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = {}; + const rawResponseBody = { + model: { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .patch("/accounting/v1/field-mappings/field_mapping_id") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { + remoteDataIterationCount: 1, + }); + expect(response).toEqual({ + model: { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("remote_fields_retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + Account: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + AccountingAttachment: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + BalanceSheet: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + CashFlowStatement: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + CompanyInfo: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Contact: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + IncomeStatement: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + CreditNote: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Item: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + PurchaseOrder: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + SalesOrder: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + ItemFulfillment: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + ExpenseReport: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + TrackingCategory: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + JournalEntry: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + TaxRate: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Invoice: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Payment: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Expense: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + VendorCredit: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Transaction: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + AccountingPeriod: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + GeneralLedgerTransaction: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + BankFeedAccount: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Employee: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + PaymentMethod: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Project: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + PaymentTerm: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + }; + server + .mockEndpoint() + .get("/accounting/v1/remote-fields") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.fieldMapping.remoteFieldsRetrieve({ + commonModels: "common_models", + includeExampleValues: "include_example_values", + }); + expect(response).toEqual({ + account: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + accountingAttachment: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + balanceSheet: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + cashFlowStatement: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + companyInfo: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + contact: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + incomeStatement: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + creditNote: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + item: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + purchaseOrder: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + salesOrder: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + itemFulfillment: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + expenseReport: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + trackingCategory: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + journalEntry: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + taxRate: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + invoice: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + payment: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + expense: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + vendorCredit: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + transaction: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + accountingPeriod: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + generalLedgerTransaction: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + bankFeedAccount: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + employee: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + paymentMethod: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + project: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + paymentTerm: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + }); + }); + + test("target_fields_retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + Account: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + AccountingAttachment: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + BalanceSheet: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + CashFlowStatement: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + CompanyInfo: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Contact: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + IncomeStatement: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + CreditNote: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Item: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + PurchaseOrder: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + SalesOrder: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + ItemFulfillment: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + ExpenseReport: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + TrackingCategory: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + JournalEntry: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + TaxRate: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Invoice: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Payment: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Expense: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + VendorCredit: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Transaction: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + AccountingPeriod: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + GeneralLedgerTransaction: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + BankFeedAccount: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Employee: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + PaymentMethod: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Project: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + PaymentTerm: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + }; + server + .mockEndpoint() + .get("/accounting/v1/target-fields") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.fieldMapping.targetFieldsRetrieve(); + expect(response).toEqual({ + account: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + accountingAttachment: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + balanceSheet: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + cashFlowStatement: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + companyInfo: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + contact: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + incomeStatement: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + creditNote: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + item: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + purchaseOrder: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + salesOrder: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + itemFulfillment: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + expenseReport: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + trackingCategory: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + journalEntry: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + taxRate: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + invoice: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + payment: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + expense: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + vendorCredit: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + transaction: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + accountingPeriod: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + generalLedgerTransaction: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + bankFeedAccount: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + employee: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + paymentMethod: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + project: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + paymentTerm: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + }); + }); +}); diff --git a/tests/wire/accounting/forceResync.test.ts b/tests/wire/Accounting/forceResync.test.ts similarity index 100% rename from tests/wire/accounting/forceResync.test.ts rename to tests/wire/Accounting/forceResync.test.ts diff --git a/tests/wire/accounting/generalLedgerTransactions.test.ts b/tests/wire/Accounting/generalLedgerTransactions.test.ts similarity index 97% rename from tests/wire/accounting/generalLedgerTransactions.test.ts rename to tests/wire/Accounting/generalLedgerTransactions.test.ts index e8316aac2..491450112 100644 --- a/tests/wire/accounting/generalLedgerTransactions.test.ts +++ b/tests/wire/Accounting/generalLedgerTransactions.test.ts @@ -74,30 +74,14 @@ describe("GeneralLedgerTransactionsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/accounting/v1/general-ledger-transactions") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.accounting.generalLedgerTransactions.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "accounting_period", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - postedDateAfter: new Date("2024-01-15T09:30:00.000Z"), - postedDateBefore: new Date("2024-01-15T09:30:00.000Z"), - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -169,7 +153,27 @@ describe("GeneralLedgerTransactionsClient", () => { ], }, ], + }; + const page = await client.accounting.generalLedgerTransactions.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + postedDateAfter: new Date("2024-01-15T09:30:00.000Z"), + postedDateBefore: new Date("2024-01-15T09:30:00.000Z"), + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { @@ -246,7 +250,6 @@ describe("GeneralLedgerTransactionsClient", () => { .build(); const response = await client.accounting.generalLedgerTransactions.retrieve("id", { - expand: "accounting_period", includeRemoteData: true, includeShellData: true, }); diff --git a/tests/wire/accounting/generateKey.test.ts b/tests/wire/Accounting/generateKey.test.ts similarity index 100% rename from tests/wire/accounting/generateKey.test.ts rename to tests/wire/Accounting/generateKey.test.ts diff --git a/tests/wire/accounting/incomeStatements.test.ts b/tests/wire/Accounting/incomeStatements.test.ts similarity index 98% rename from tests/wire/accounting/incomeStatements.test.ts rename to tests/wire/Accounting/incomeStatements.test.ts index d4a825201..e592c767b 100644 --- a/tests/wire/accounting/incomeStatements.test.ts +++ b/tests/wire/Accounting/incomeStatements.test.ts @@ -93,28 +93,14 @@ describe("IncomeStatementsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/accounting/v1/income-statements") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.accounting.incomeStatements.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "company", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -231,7 +217,25 @@ describe("IncomeStatementsClient", () => { ], }, ], + }; + const page = await client.accounting.incomeStatements.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { @@ -329,7 +333,6 @@ describe("IncomeStatementsClient", () => { .build(); const response = await client.accounting.incomeStatements.retrieve("id", { - expand: "company", includeRemoteData: true, includeShellData: true, }); diff --git a/tests/wire/accounting/invoices.test.ts b/tests/wire/Accounting/invoices.test.ts similarity index 76% rename from tests/wire/accounting/invoices.test.ts rename to tests/wire/Accounting/invoices.test.ts index 929602226..63fbb8bed 100644 --- a/tests/wire/accounting/invoices.test.ts +++ b/tests/wire/Accounting/invoices.test.ts @@ -52,6 +52,11 @@ describe("InvoicesClient", () => { "dd70ca2f-b120-46fa-889a-9604037f45fd", "889b281d-739c-4759-95b8-0aedb3947131", ], + sales_orders: [ + "e7378d8f-3992-4c2a-8417-ebdc4f2bfeb7", + "dd70ca2f-b120-46fa-889a-9604037f45fd", + "889b281d-739c-4759-95b8-0aedb3947131", + ], payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], applied_payments: ["9017594e-dc33-4113-a5d2-b0f928e34fdd"], line_items: [ @@ -116,37 +121,14 @@ describe("InvoicesClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/accounting/v1/invoices") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.accounting.invoices.list({ - companyId: "company_id", - contactId: "contact_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "accounting_period", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - issueDateAfter: new Date("2024-01-15T09:30:00.000Z"), - issueDateBefore: new Date("2024-01-15T09:30:00.000Z"), - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - number: "number", - pageSize: 1, - remoteFields: "type", - remoteId: "remote_id", - showEnumOrigins: "type", - status: "DRAFT", - type: "ACCOUNTS_PAYABLE", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -185,6 +167,11 @@ describe("InvoicesClient", () => { "dd70ca2f-b120-46fa-889a-9604037f45fd", "889b281d-739c-4759-95b8-0aedb3947131", ], + salesOrders: [ + "e7378d8f-3992-4c2a-8417-ebdc4f2bfeb7", + "dd70ca2f-b120-46fa-889a-9604037f45fd", + "889b281d-739c-4759-95b8-0aedb3947131", + ], payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], appliedPayments: ["9017594e-dc33-4113-a5d2-b0f928e34fdd"], lineItems: [ @@ -265,7 +252,34 @@ describe("InvoicesClient", () => { ], }, ], + }; + const page = await client.accounting.invoices.list({ + companyId: "company_id", + contactId: "contact_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + issueDateAfter: new Date("2024-01-15T09:30:00.000Z"), + issueDateBefore: new Date("2024-01-15T09:30:00.000Z"), + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + number: "number", + pageSize: 1, + remoteFields: "type", + remoteId: "remote_id", + showEnumOrigins: "type", + status: "DRAFT", + type: "ACCOUNTS_PAYABLE", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("create", async () => { @@ -313,6 +327,11 @@ describe("InvoicesClient", () => { "dd70ca2f-b120-46fa-889a-9604037f45fd", "889b281d-739c-4759-95b8-0aedb3947131", ], + sales_orders: [ + "e7378d8f-3992-4c2a-8417-ebdc4f2bfeb7", + "dd70ca2f-b120-46fa-889a-9604037f45fd", + "889b281d-739c-4759-95b8-0aedb3947131", + ], payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], applied_payments: ["9017594e-dc33-4113-a5d2-b0f928e34fdd"], line_items: [ @@ -414,7 +433,9 @@ describe("InvoicesClient", () => { const response = await client.accounting.invoices.create({ isDebugMode: true, runAsync: true, - model: {}, + body: { + model: {}, + }, }); expect(response).toEqual({ model: { @@ -452,6 +473,11 @@ describe("InvoicesClient", () => { "dd70ca2f-b120-46fa-889a-9604037f45fd", "889b281d-739c-4759-95b8-0aedb3947131", ], + salesOrders: [ + "e7378d8f-3992-4c2a-8417-ebdc4f2bfeb7", + "dd70ca2f-b120-46fa-889a-9604037f45fd", + "889b281d-739c-4759-95b8-0aedb3947131", + ], payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], appliedPayments: ["9017594e-dc33-4113-a5d2-b0f928e34fdd"], lineItems: [ @@ -609,6 +635,11 @@ describe("InvoicesClient", () => { "dd70ca2f-b120-46fa-889a-9604037f45fd", "889b281d-739c-4759-95b8-0aedb3947131", ], + sales_orders: [ + "e7378d8f-3992-4c2a-8417-ebdc4f2bfeb7", + "dd70ca2f-b120-46fa-889a-9604037f45fd", + "889b281d-739c-4759-95b8-0aedb3947131", + ], payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], applied_payments: ["9017594e-dc33-4113-a5d2-b0f928e34fdd"], line_items: [ @@ -683,7 +714,6 @@ describe("InvoicesClient", () => { .build(); const response = await client.accounting.invoices.retrieve("id", { - expand: "accounting_period", includeRemoteData: true, includeRemoteFields: true, includeShellData: true, @@ -691,66 +721,689 @@ describe("InvoicesClient", () => { showEnumOrigins: "type", }); expect(response).toEqual({ - id: "9871b4a9-f5d2-4f3b-a66b-dfedbed42c46", - remoteId: "990110", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - type: "ACCOUNTS_RECEIVABLE", - contact: "contact", - number: "AIQ12546", - issueDate: new Date("2020-03-31T00:00:00.000Z"), - dueDate: new Date("2020-04-15T00:00:00.000Z"), - paidOnDate: new Date("2020-04-01T00:00:00.000Z"), - memo: "Weekly Payment", - company: "company", - employee: "employee", - currency: "XUA", - exchangeRate: "2.9", - paymentTerm: "payment_term", - totalDiscount: 1.1, - subTotal: 100, - status: "PAID", - totalTaxAmount: 5, - totalAmount: 105, - balance: 105, - remoteUpdatedAt: new Date("2020-04-01T00:00:00.000Z"), - trackingCategories: [ - "7dc5ca17-d311-44cd-9ce0-333080367a18", - "6aa0700c-48e1-4c4a-8162-02e6a582df05", - "8c933d61-8f5b-4360-ac0c-c9dc87bee763", - ], - accountingPeriod: "accounting_period", - purchaseOrders: [ - "e7378d8f-3992-4c2a-8417-ebdc4f2bfeb7", - "dd70ca2f-b120-46fa-889a-9604037f45fd", - "889b281d-739c-4759-95b8-0aedb3947131", - ], - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - appliedPayments: ["9017594e-dc33-4113-a5d2-b0f928e34fdd"], - lineItems: [ + id: "9871b4a9-f5d2-4f3b-a66b-dfedbed42c46", + remoteId: "990110", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + type: "ACCOUNTS_RECEIVABLE", + contact: "contact", + number: "AIQ12546", + issueDate: new Date("2020-03-31T00:00:00.000Z"), + dueDate: new Date("2020-04-15T00:00:00.000Z"), + paidOnDate: new Date("2020-04-01T00:00:00.000Z"), + memo: "Weekly Payment", + company: "company", + employee: "employee", + currency: "XUA", + exchangeRate: "2.9", + paymentTerm: "payment_term", + totalDiscount: 1.1, + subTotal: 100, + status: "PAID", + totalTaxAmount: 5, + totalAmount: 105, + balance: 105, + remoteUpdatedAt: new Date("2020-04-01T00:00:00.000Z"), + trackingCategories: [ + "7dc5ca17-d311-44cd-9ce0-333080367a18", + "6aa0700c-48e1-4c4a-8162-02e6a582df05", + "8c933d61-8f5b-4360-ac0c-c9dc87bee763", + ], + accountingPeriod: "accounting_period", + purchaseOrders: [ + "e7378d8f-3992-4c2a-8417-ebdc4f2bfeb7", + "dd70ca2f-b120-46fa-889a-9604037f45fd", + "889b281d-739c-4759-95b8-0aedb3947131", + ], + salesOrders: [ + "e7378d8f-3992-4c2a-8417-ebdc4f2bfeb7", + "dd70ca2f-b120-46fa-889a-9604037f45fd", + "889b281d-739c-4759-95b8-0aedb3947131", + ], + payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], + appliedPayments: ["9017594e-dc33-4113-a5d2-b0f928e34fdd"], + lineItems: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "8765432", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + description: "Pickleball lessons", + unitPrice: 50, + quantity: 1, + totalAmount: 50, + employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + contact: "908934-49j9-093f-0989-908923908", + currency: "USD", + exchangeRate: "2.9", + item: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + account: "cd0f32d4-a493-11ec-b909-0242ac120002", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + ], + appliedCreditNotes: [ + { + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + creditNote: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + appliedDate: new Date("2020-03-31T00:00:00.000Z"), + appliedAmount: "2.9", + remoteWasDeleted: true, + }, + ], + appliedVendorCredits: [ + { + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + vendorCredit: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + appliedDate: new Date("2020-03-31T00:00:00.000Z"), + appliedAmount: "2.9", + remoteWasDeleted: true, + }, + ], + inclusiveOfTax: true, + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }); + }); + + test("partialUpdate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { model: {} }; + const rawResponseBody = { + model: { + id: "9871b4a9-f5d2-4f3b-a66b-dfedbed42c46", + remote_id: "990110", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + type: "ACCOUNTS_RECEIVABLE", + contact: "contact", + number: "AIQ12546", + issue_date: "2020-03-31T00:00:00Z", + due_date: "2020-04-15T00:00:00Z", + paid_on_date: "2020-04-01T00:00:00Z", + memo: "Weekly Payment", + company: "company", + employee: "employee", + currency: "XUA", + exchange_rate: "2.9", + payment_term: "payment_term", + total_discount: 1.1, + sub_total: 100, + status: "PAID", + total_tax_amount: 5, + total_amount: 105, + balance: 105, + remote_updated_at: "2020-04-01T00:00:00Z", + tracking_categories: [ + "7dc5ca17-d311-44cd-9ce0-333080367a18", + "6aa0700c-48e1-4c4a-8162-02e6a582df05", + "8c933d61-8f5b-4360-ac0c-c9dc87bee763", + ], + accounting_period: "accounting_period", + purchase_orders: [ + "e7378d8f-3992-4c2a-8417-ebdc4f2bfeb7", + "dd70ca2f-b120-46fa-889a-9604037f45fd", + "889b281d-739c-4759-95b8-0aedb3947131", + ], + sales_orders: [ + "e7378d8f-3992-4c2a-8417-ebdc4f2bfeb7", + "dd70ca2f-b120-46fa-889a-9604037f45fd", + "889b281d-739c-4759-95b8-0aedb3947131", + ], + payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], + applied_payments: ["9017594e-dc33-4113-a5d2-b0f928e34fdd"], + line_items: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "8765432", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + description: "Pickleball lessons", + unit_price: 50, + quantity: 1, + total_amount: 50, + employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + contact: "908934-49j9-093f-0989-908923908", + currency: "USD", + exchange_rate: "2.9", + item: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + account: "cd0f32d4-a493-11ec-b909-0242ac120002", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + }, + ], + applied_credit_notes: [ + { + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + credit_note: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + applied_date: "2020-03-31T00:00:00Z", + applied_amount: "2.9", + }, + ], + applied_vendor_credits: [ + { + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + vendor_credit: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + applied_date: "2020-03-31T00:00:00Z", + applied_amount: "2.9", + }, + ], + inclusive_of_tax: true, + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .patch("/accounting/v1/invoices/id") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.invoices.partialUpdate("id", { + isDebugMode: true, + runAsync: true, + model: {}, + }); + expect(response).toEqual({ + model: { + id: "9871b4a9-f5d2-4f3b-a66b-dfedbed42c46", + remoteId: "990110", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + type: "ACCOUNTS_RECEIVABLE", + contact: "contact", + number: "AIQ12546", + issueDate: new Date("2020-03-31T00:00:00.000Z"), + dueDate: new Date("2020-04-15T00:00:00.000Z"), + paidOnDate: new Date("2020-04-01T00:00:00.000Z"), + memo: "Weekly Payment", + company: "company", + employee: "employee", + currency: "XUA", + exchangeRate: "2.9", + paymentTerm: "payment_term", + totalDiscount: 1.1, + subTotal: 100, + status: "PAID", + totalTaxAmount: 5, + totalAmount: 105, + balance: 105, + remoteUpdatedAt: new Date("2020-04-01T00:00:00.000Z"), + trackingCategories: [ + "7dc5ca17-d311-44cd-9ce0-333080367a18", + "6aa0700c-48e1-4c4a-8162-02e6a582df05", + "8c933d61-8f5b-4360-ac0c-c9dc87bee763", + ], + accountingPeriod: "accounting_period", + purchaseOrders: [ + "e7378d8f-3992-4c2a-8417-ebdc4f2bfeb7", + "dd70ca2f-b120-46fa-889a-9604037f45fd", + "889b281d-739c-4759-95b8-0aedb3947131", + ], + salesOrders: [ + "e7378d8f-3992-4c2a-8417-ebdc4f2bfeb7", + "dd70ca2f-b120-46fa-889a-9604037f45fd", + "889b281d-739c-4759-95b8-0aedb3947131", + ], + payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], + appliedPayments: ["9017594e-dc33-4113-a5d2-b0f928e34fdd"], + lineItems: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "8765432", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + description: "Pickleball lessons", + unitPrice: 50, + quantity: 1, + totalAmount: 50, + employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + contact: "908934-49j9-093f-0989-908923908", + currency: "USD", + exchangeRate: "2.9", + item: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + account: "cd0f32d4-a493-11ec-b909-0242ac120002", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + }, + ], + appliedCreditNotes: [ + { + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + creditNote: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + appliedDate: new Date("2020-03-31T00:00:00.000Z"), + appliedAmount: "2.9", + }, + ], + appliedVendorCredits: [ + { + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + vendorCredit: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + appliedDate: new Date("2020-03-31T00:00:00.000Z"), + appliedAmount: "2.9", + }, + ], + inclusiveOfTax: true, + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("batchObjectsList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "9871b4a9-f5d2-4f3b-a66b-dfedbed42c46", + remote_id: "990110", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + type: "ACCOUNTS_RECEIVABLE", + contact: "contact", + number: "AIQ12546", + issue_date: "2020-03-31T00:00:00Z", + due_date: "2020-04-15T00:00:00Z", + paid_on_date: "2020-04-01T00:00:00Z", + memo: "Weekly Payment", + company: "company", + employee: "employee", + currency: "XUA", + exchange_rate: "2.9", + payment_term: "payment_term", + total_discount: 1.1, + sub_total: 100, + status: "PAID", + total_tax_amount: 5, + total_amount: 105, + balance: 105, + remote_updated_at: "2020-04-01T00:00:00Z", + tracking_categories: [ + "7dc5ca17-d311-44cd-9ce0-333080367a18", + "6aa0700c-48e1-4c4a-8162-02e6a582df05", + "8c933d61-8f5b-4360-ac0c-c9dc87bee763", + ], + accounting_period: "accounting_period", + purchase_orders: [ + "e7378d8f-3992-4c2a-8417-ebdc4f2bfeb7", + "dd70ca2f-b120-46fa-889a-9604037f45fd", + "889b281d-739c-4759-95b8-0aedb3947131", + ], + sales_orders: [ + "e7378d8f-3992-4c2a-8417-ebdc4f2bfeb7", + "dd70ca2f-b120-46fa-889a-9604037f45fd", + "889b281d-739c-4759-95b8-0aedb3947131", + ], + payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], + applied_payments: ["9017594e-dc33-4113-a5d2-b0f928e34fdd"], + line_items: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "8765432", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + description: "Pickleball lessons", + unit_price: 50, + quantity: 1, + total_amount: 50, + employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + contact: "908934-49j9-093f-0989-908923908", + currency: "USD", + exchange_rate: "2.9", + item: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + account: "cd0f32d4-a493-11ec-b909-0242ac120002", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + }, + ], + applied_credit_notes: [ + { + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + credit_note: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + applied_date: "2020-03-31T00:00:00Z", + applied_amount: "2.9", + }, + ], + applied_vendor_credits: [ + { + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + vendor_credit: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + applied_date: "2020-03-31T00:00:00Z", + applied_amount: "2.9", + }, + ], + inclusive_of_tax: true, + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + ], + }; + server + .mockEndpoint() + .get("/accounting/v1/invoices/batch/batch_id/objects") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.invoices.batchObjectsList("batch_id", { + companyId: "company_id", + contactId: "contact_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + issueDateAfter: new Date("2024-01-15T09:30:00.000Z"), + issueDateBefore: new Date("2024-01-15T09:30:00.000Z"), + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + number: "number", + pageSize: 1, + remoteFields: "type", + remoteId: "remote_id", + showEnumOrigins: "type", + status: "DRAFT", + type: "ACCOUNTS_PAYABLE", + }); + expect(response).toEqual({ + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "8765432", + id: "9871b4a9-f5d2-4f3b-a66b-dfedbed42c46", + remoteId: "990110", createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - description: "Pickleball lessons", - unitPrice: 50, - quantity: 1, - totalAmount: 50, - employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - contact: "908934-49j9-093f-0989-908923908", - currency: "USD", + type: "ACCOUNTS_RECEIVABLE", + contact: "contact", + number: "AIQ12546", + issueDate: new Date("2020-03-31T00:00:00.000Z"), + dueDate: new Date("2020-04-15T00:00:00.000Z"), + paidOnDate: new Date("2020-04-01T00:00:00.000Z"), + memo: "Weekly Payment", + company: "company", + employee: "employee", + currency: "XUA", exchangeRate: "2.9", - item: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - account: "cd0f32d4-a493-11ec-b909-0242ac120002", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + paymentTerm: "payment_term", + totalDiscount: 1.1, + subTotal: 100, + status: "PAID", + totalTaxAmount: 5, + totalAmount: 105, + balance: 105, + remoteUpdatedAt: new Date("2020-04-01T00:00:00.000Z"), trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", + "7dc5ca17-d311-44cd-9ce0-333080367a18", + "6aa0700c-48e1-4c4a-8162-02e6a582df05", + "8c933d61-8f5b-4360-ac0c-c9dc87bee763", ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + accountingPeriod: "accounting_period", + purchaseOrders: [ + "e7378d8f-3992-4c2a-8417-ebdc4f2bfeb7", + "dd70ca2f-b120-46fa-889a-9604037f45fd", + "889b281d-739c-4759-95b8-0aedb3947131", + ], + salesOrders: [ + "e7378d8f-3992-4c2a-8417-ebdc4f2bfeb7", + "dd70ca2f-b120-46fa-889a-9604037f45fd", + "889b281d-739c-4759-95b8-0aedb3947131", + ], + payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], + appliedPayments: ["9017594e-dc33-4113-a5d2-b0f928e34fdd"], + lineItems: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "8765432", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + description: "Pickleball lessons", + unitPrice: 50, + quantity: 1, + totalAmount: 50, + employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + contact: "908934-49j9-093f-0989-908923908", + currency: "USD", + exchangeRate: "2.9", + item: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + account: "cd0f32d4-a493-11ec-b909-0242ac120002", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + }, + ], + appliedCreditNotes: [ + { + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + creditNote: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + appliedDate: new Date("2020-03-31T00:00:00.000Z"), + appliedAmount: "2.9", + }, + ], + appliedVendorCredits: [ + { + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + vendorCredit: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + appliedDate: new Date("2020-03-31T00:00:00.000Z"), + appliedAmount: "2.9", + }, + ], + inclusiveOfTax: true, remoteWasDeleted: true, fieldMappings: { organization_defined_targets: { @@ -760,6 +1413,12 @@ describe("InvoicesClient", () => { custom_key: "custom_value", }, }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], remoteFields: [ { remoteFieldClass: "remote_field_class", @@ -768,54 +1427,10 @@ describe("InvoicesClient", () => { ], }, ], - appliedCreditNotes: [ - { - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - creditNote: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - appliedDate: new Date("2020-03-31T00:00:00.000Z"), - appliedAmount: "2.9", - remoteWasDeleted: true, - }, - ], - appliedVendorCredits: [ - { - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - vendorCredit: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - appliedDate: new Date("2020-03-31T00:00:00.000Z"), - appliedAmount: "2.9", - remoteWasDeleted: true, - }, - ], - inclusiveOfTax: true, - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], }); }); - test("partialUpdate", async () => { + test("asyncBulkCreate", async () => { const server = mockServerPool.createServer(); const client = new MergeClient({ maxRetries: 0, @@ -823,7 +1438,7 @@ describe("InvoicesClient", () => { accountToken: "test", environment: server.baseUrl, }); - const rawRequestBody = { model: {} }; + const rawRequestBody = { batch_items: [{ item_id: "item_id", payload: { model: {} } }] }; const rawResponseBody = { model: { id: "9871b4a9-f5d2-4f3b-a66b-dfedbed42c46", @@ -860,6 +1475,11 @@ describe("InvoicesClient", () => { "dd70ca2f-b120-46fa-889a-9604037f45fd", "889b281d-739c-4759-95b8-0aedb3947131", ], + sales_orders: [ + "e7378d8f-3992-4c2a-8417-ebdc4f2bfeb7", + "dd70ca2f-b120-46fa-889a-9604037f45fd", + "889b281d-739c-4759-95b8-0aedb3947131", + ], payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], applied_payments: ["9017594e-dc33-4113-a5d2-b0f928e34fdd"], line_items: [ @@ -951,17 +1571,24 @@ describe("InvoicesClient", () => { }; server .mockEndpoint() - .patch("/accounting/v1/invoices/id") + .post("/accounting/v1/invoices/async/bulk") .jsonBody(rawRequestBody) .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.accounting.invoices.partialUpdate("id", { + const response = await client.accounting.invoices.asyncBulkCreate({ isDebugMode: true, runAsync: true, - model: {}, + batchItems: [ + { + itemId: "item_id", + payload: { + model: {}, + }, + }, + ], }); expect(response).toEqual({ model: { @@ -999,6 +1626,11 @@ describe("InvoicesClient", () => { "dd70ca2f-b120-46fa-889a-9604037f45fd", "889b281d-739c-4759-95b8-0aedb3947131", ], + salesOrders: [ + "e7378d8f-3992-4c2a-8417-ebdc4f2bfeb7", + "dd70ca2f-b120-46fa-889a-9604037f45fd", + "889b281d-739c-4759-95b8-0aedb3947131", + ], payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], appliedPayments: ["9017594e-dc33-4113-a5d2-b0f928e34fdd"], lineItems: [ @@ -1140,23 +1772,14 @@ describe("InvoicesClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/accounting/v1/invoices/line-items/remote-field-classes") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.accounting.invoices.lineItemsRemoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -1173,7 +1796,21 @@ describe("InvoicesClient", () => { fieldChoices: ["field_choices"], }, ], + }; + const page = await client.accounting.invoices.lineItemsRemoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1, }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("metaPatchRetrieve", async () => { @@ -2046,23 +2683,14 @@ describe("InvoicesClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/accounting/v1/invoices/remote-field-classes") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.accounting.invoices.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -2079,6 +2707,20 @@ describe("InvoicesClient", () => { fieldChoices: ["field_choices"], }, ], + }; + const page = await client.accounting.invoices.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1, }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); }); diff --git a/tests/wire/Accounting/issues.test.ts b/tests/wire/Accounting/issues.test.ts new file mode 100644 index 000000000..633d85110 --- /dev/null +++ b/tests/wire/Accounting/issues.test.ts @@ -0,0 +1,122 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("IssuesClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + status: "ONGOING", + error_description: "Missing Permissions", + end_user: { key: "value" }, + first_incident_time: "2022-12-05T16:19:15Z", + last_incident_time: "2022-12-05T16:19:15Z", + is_muted: true, + error_details: ["Missing employee permissions.", "Missing time off permissions."], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/issues") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + status: "ONGOING", + errorDescription: "Missing Permissions", + endUser: { + key: "value", + }, + firstIncidentTime: new Date("2022-12-05T16:19:15.000Z"), + lastIncidentTime: new Date("2022-12-05T16:19:15.000Z"), + isMuted: true, + errorDetails: ["Missing employee permissions.", "Missing time off permissions."], + }, + ], + }; + const page = await client.accounting.issues.list({ + accountToken: "account_token", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endDate: "end_date", + endUserOrganizationName: "end_user_organization_name", + firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + includeMuted: "include_muted", + integrationName: "integration_name", + lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + linkedAccountId: "linked_account_id", + pageSize: 1, + startDate: "start_date", + status: "ONGOING", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + status: "ONGOING", + error_description: "Missing Permissions", + end_user: { key: "value" }, + first_incident_time: "2022-12-05T16:19:15Z", + last_incident_time: "2022-12-05T16:19:15Z", + is_muted: true, + error_details: ["Missing employee permissions.", "Missing time off permissions."], + }; + server + .mockEndpoint() + .get("/accounting/v1/issues/id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.issues.retrieve("id"); + expect(response).toEqual({ + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + status: "ONGOING", + errorDescription: "Missing Permissions", + endUser: { + key: "value", + }, + firstIncidentTime: new Date("2022-12-05T16:19:15.000Z"), + lastIncidentTime: new Date("2022-12-05T16:19:15.000Z"), + isMuted: true, + errorDetails: ["Missing employee permissions.", "Missing time off permissions."], + }); + }); +}); diff --git a/tests/wire/Accounting/itemFulfillments.test.ts b/tests/wire/Accounting/itemFulfillments.test.ts new file mode 100644 index 000000000..8ac141a26 --- /dev/null +++ b/tests/wire/Accounting/itemFulfillments.test.ts @@ -0,0 +1,1161 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("ItemFulfillmentsClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remote_id: "IF-12345", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + sales_order: "sales_order", + fulfillment_date: "2022-04-10T00:00:00Z", + customer: "customer", + company: "company", + status: "DRAFT", + memo: "Shipped via FedEx", + lines: ["lines", "lines"], + remote_created_at: "2020-03-31T00:00:00Z", + remote_updated_at: "2020-03-31T00:00:00Z", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: { field: "Varies by platform" } }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/item-fulfillments") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remoteId: "IF-12345", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + salesOrder: "sales_order", + fulfillmentDate: new Date("2022-04-10T00:00:00.000Z"), + customer: "customer", + company: "company", + status: "DRAFT", + memo: "Shipped via FedEx", + lines: ["lines", "lines"], + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: { + field: "Varies by platform", + }, + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + ], + }; + const page = await client.accounting.itemFulfillments.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + pageSize: 1, + remoteFields: "status", + showEnumOrigins: "status", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("create", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { model: {} }; + const rawResponseBody = { + model: { + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remote_id: "IF-12345", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + sales_order: "sales_order", + fulfillment_date: "2022-04-10T00:00:00Z", + customer: "customer", + company: "company", + status: "DRAFT", + memo: "Shipped via FedEx", + lines: ["lines", "lines"], + remote_created_at: "2020-03-31T00:00:00Z", + remote_updated_at: "2020-03-31T00:00:00Z", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: { field: "Varies by platform" } }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/accounting/v1/item-fulfillments") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.itemFulfillments.create({ + isDebugMode: true, + runAsync: true, + body: { + model: {}, + }, + }); + expect(response).toEqual({ + model: { + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remoteId: "IF-12345", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + salesOrder: "sales_order", + fulfillmentDate: new Date("2022-04-10T00:00:00.000Z"), + customer: "customer", + company: "company", + status: "DRAFT", + memo: "Shipped via FedEx", + lines: ["lines", "lines"], + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: { + field: "Varies by platform", + }, + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remote_id: "IF-12345", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + sales_order: "sales_order", + fulfillment_date: "2022-04-10T00:00:00Z", + customer: "customer", + company: "company", + status: "DRAFT", + memo: "Shipped via FedEx", + lines: ["lines", "lines"], + remote_created_at: "2020-03-31T00:00:00Z", + remote_updated_at: "2020-03-31T00:00:00Z", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: { field: "Varies by platform" } }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }; + server + .mockEndpoint() + .get("/accounting/v1/item-fulfillments/id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.itemFulfillments.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + remoteFields: "status", + showEnumOrigins: "status", + }); + expect(response).toEqual({ + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remoteId: "IF-12345", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + salesOrder: "sales_order", + fulfillmentDate: new Date("2022-04-10T00:00:00.000Z"), + customer: "customer", + company: "company", + status: "DRAFT", + memo: "Shipped via FedEx", + lines: ["lines", "lines"], + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: { + field: "Varies by platform", + }, + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }); + }); + + test("batchObjectsList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remote_id: "IF-12345", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + sales_order: "sales_order", + fulfillment_date: "2022-04-10T00:00:00Z", + customer: "customer", + company: "company", + status: "DRAFT", + memo: "Shipped via FedEx", + lines: ["lines", "lines"], + remote_created_at: "2020-03-31T00:00:00Z", + remote_updated_at: "2020-03-31T00:00:00Z", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: { field: "Varies by platform" } }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + ], + }; + server + .mockEndpoint() + .get("/accounting/v1/item-fulfillments/batch/batch_id/objects") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.itemFulfillments.batchObjectsList("batch_id", { + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + pageSize: 1, + remoteFields: "status", + showEnumOrigins: "status", + }); + expect(response).toEqual({ + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remoteId: "IF-12345", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + salesOrder: "sales_order", + fulfillmentDate: new Date("2022-04-10T00:00:00.000Z"), + customer: "customer", + company: "company", + status: "DRAFT", + memo: "Shipped via FedEx", + lines: ["lines", "lines"], + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: { + field: "Varies by platform", + }, + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + ], + }); + }); + + test("asyncBulkCreate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { batch_items: [{ item_id: "item_id", payload: { model: {} } }] }; + const rawResponseBody = { + model: { + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remote_id: "IF-12345", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + sales_order: "sales_order", + fulfillment_date: "2022-04-10T00:00:00Z", + customer: "customer", + company: "company", + status: "DRAFT", + memo: "Shipped via FedEx", + lines: ["lines", "lines"], + remote_created_at: "2020-03-31T00:00:00Z", + remote_updated_at: "2020-03-31T00:00:00Z", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: { field: "Varies by platform" } }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/accounting/v1/item-fulfillments/async/bulk") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.itemFulfillments.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [ + { + itemId: "item_id", + payload: { + model: {}, + }, + }, + ], + }); + expect(response).toEqual({ + model: { + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remoteId: "IF-12345", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + salesOrder: "sales_order", + fulfillmentDate: new Date("2022-04-10T00:00:00.000Z"), + customer: "customer", + company: "company", + status: "DRAFT", + memo: "Shipped via FedEx", + lines: ["lines", "lines"], + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: { + field: "Varies by platform", + }, + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("linesRemoteFieldClassesList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "id", + display_name: "display_name", + remote_key_name: "remote_key_name", + description: "description", + is_custom: true, + is_common_model_field: true, + is_required: true, + field_type: "string", + field_format: "string", + field_choices: ["field_choices"], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/item-fulfillments/lines/remote-field-classes") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "id", + displayName: "display_name", + remoteKeyName: "remote_key_name", + description: "description", + isCustom: true, + isCommonModelField: true, + isRequired: true, + fieldType: "string", + fieldFormat: "string", + fieldChoices: ["field_choices"], + }, + ], + }; + const page = await client.accounting.itemFulfillments.linesRemoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1, + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("metaPostRetrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + request_schema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + email_address_type: { type: "string", title: "email_address_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + url_type: { type: "string", title: "url_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { type: "string", title: "first_name", description: "The first name." }, + last_name: { type: "string", title: "last_name", description: "The last name." }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + phone_number_type: { type: "string", title: "phone_number_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { type: "string", title: "id" }, + file_url: { type: "string", title: "file_url" }, + file_name: { type: "string", title: "file_name" }, + attachment_type: { type: "string", title: "attachment_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { value: "HRIS", description: "Merge HRIS Category" }, + { value: "ATS", description: "Merge ATS Category" }, + { value: "Accounting", description: "Merge Accounting Category" }, + { value: "Ticketing", description: "Merge Ticketing Category" }, + { value: "File Storage", description: "Merge File Storage Category" }, + { value: "CRM", description: "Merge CRM Category" }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remote_field_classes: { key: "value" }, + status: { linked_account_status: "linked_account_status", can_make_request: true }, + has_conditional_params: true, + has_required_linked_account_params: true, + }; + server + .mockEndpoint() + .get("/accounting/v1/item-fulfillments/meta/post") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.itemFulfillments.metaPostRetrieve(); + expect(response).toEqual({ + requestSchema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + email_address_type: { + type: "string", + title: "email_address_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + url_type: { + type: "string", + title: "url_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { + type: "string", + title: "first_name", + description: "The first name.", + }, + last_name: { + type: "string", + title: "last_name", + description: "The last name.", + }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + phone_number_type: { + type: "string", + title: "phone_number_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { + type: "string", + title: "id", + }, + file_url: { + type: "string", + title: "file_url", + }, + file_name: { + type: "string", + title: "file_name", + }, + attachment_type: { + type: "string", + title: "attachment_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { + value: "HRIS", + description: "Merge HRIS Category", + }, + { + value: "ATS", + description: "Merge ATS Category", + }, + { + value: "Accounting", + description: "Merge Accounting Category", + }, + { + value: "Ticketing", + description: "Merge Ticketing Category", + }, + { + value: "File Storage", + description: "Merge File Storage Category", + }, + { + value: "CRM", + description: "Merge CRM Category", + }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remoteFieldClasses: { + key: "value", + }, + status: { + linkedAccountStatus: "linked_account_status", + canMakeRequest: true, + }, + hasConditionalParams: true, + hasRequiredLinkedAccountParams: true, + }); + }); + + test("remoteFieldClassesList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "id", + display_name: "display_name", + remote_key_name: "remote_key_name", + description: "description", + is_custom: true, + is_common_model_field: true, + is_required: true, + field_type: "string", + field_format: "string", + field_choices: ["field_choices"], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/item-fulfillments/remote-field-classes") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "id", + displayName: "display_name", + remoteKeyName: "remote_key_name", + description: "description", + isCustom: true, + isCommonModelField: true, + isRequired: true, + fieldType: "string", + fieldFormat: "string", + fieldChoices: ["field_choices"], + }, + ], + }; + const page = await client.accounting.itemFulfillments.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1, + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); +}); diff --git a/tests/wire/accounting/items.test.ts b/tests/wire/Accounting/items.test.ts similarity index 85% rename from tests/wire/accounting/items.test.ts rename to tests/wire/Accounting/items.test.ts index ef3708dc8..1f641a418 100644 --- a/tests/wire/accounting/items.test.ts +++ b/tests/wire/Accounting/items.test.ts @@ -43,30 +43,14 @@ describe("ItemsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/accounting/v1/items") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.accounting.items.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "company", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteFields: "status", - remoteId: "remote_id", - showEnumOrigins: "status", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -103,7 +87,28 @@ describe("ItemsClient", () => { ], }, ], + }; + const page = await client.accounting.items.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("create", async () => { @@ -179,7 +184,9 @@ describe("ItemsClient", () => { const response = await client.accounting.items.create({ isDebugMode: true, runAsync: true, - model: {}, + body: { + model: {}, + }, }); expect(response).toEqual({ model: { @@ -289,7 +296,6 @@ describe("ItemsClient", () => { .build(); const response = await client.accounting.items.retrieve("id", { - expand: "company", includeRemoteData: true, includeShellData: true, remoteFields: "status", @@ -471,6 +477,257 @@ describe("ItemsClient", () => { }); }); + test("batchObjectsList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "d2f972d0-2526-434b-9409-4c3b468e08f0", + remote_id: "12374", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Pickleball Paddle", + status: "ACTIVE", + type: "INVENTORY", + unit_price: 10, + purchase_price: 25, + purchase_account: "purchase_account", + sales_account: "sales_account", + company: "company", + purchase_tax_rate: "purchase_tax_rate", + sales_tax_rate: "sales_tax_rate", + remote_updated_at: "2020-03-31T00:00:00Z", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + }, + ], + }; + server + .mockEndpoint() + .get("/accounting/v1/items/batch/batch_id/objects") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.items.batchObjectsList("batch_id", { + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status", + }); + expect(response).toEqual({ + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "d2f972d0-2526-434b-9409-4c3b468e08f0", + remoteId: "12374", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Pickleball Paddle", + status: "ACTIVE", + type: "INVENTORY", + unitPrice: 10, + purchasePrice: 25, + purchaseAccount: "purchase_account", + salesAccount: "sales_account", + company: "company", + purchaseTaxRate: "purchase_tax_rate", + salesTaxRate: "sales_tax_rate", + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + }, + ], + }); + }); + + test("asyncBulkCreate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { batch_items: [{ item_id: "item_id", payload: { model: {} } }] }; + const rawResponseBody = { + model: { + id: "d2f972d0-2526-434b-9409-4c3b468e08f0", + remote_id: "12374", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Pickleball Paddle", + status: "ACTIVE", + type: "INVENTORY", + unit_price: 10, + purchase_price: 25, + purchase_account: "purchase_account", + sales_account: "sales_account", + company: "company", + purchase_tax_rate: "purchase_tax_rate", + sales_tax_rate: "sales_tax_rate", + remote_updated_at: "2020-03-31T00:00:00Z", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/accounting/v1/items/async/bulk") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.items.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [ + { + itemId: "item_id", + payload: { + model: {}, + }, + }, + ], + }); + expect(response).toEqual({ + model: { + id: "d2f972d0-2526-434b-9409-4c3b468e08f0", + remoteId: "12374", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Pickleball Paddle", + status: "ACTIVE", + type: "INVENTORY", + unitPrice: 10, + purchasePrice: 25, + purchaseAccount: "purchase_account", + salesAccount: "sales_account", + company: "company", + purchaseTaxRate: "purchase_tax_rate", + salesTaxRate: "sales_tax_rate", + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + test("metaPatchRetrieve", async () => { const server = mockServerPool.createServer(); const client = new MergeClient({ diff --git a/tests/wire/Accounting/journalEntries.test.ts b/tests/wire/Accounting/journalEntries.test.ts new file mode 100644 index 000000000..40e67b18c --- /dev/null +++ b/tests/wire/Accounting/journalEntries.test.ts @@ -0,0 +1,1693 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("JournalEntriesClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + transaction_date: "2020-03-31T00:00:00Z", + payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], + applied_payments: ["4311155d-f236-4a5d-9e0f-1cb167e38f95"], + memo: "Weekly Payment", + currency: "XUA", + exchange_rate: "2.9", + company: "company", + inclusive_of_tax: true, + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + net_amount: 25.54, + tracking_categories: [ + "d25d609b-945f-4762-b55a-1c8fb220c43c", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + description: "Cash payment for lunch", + exchange_rate: "2.9", + remote_was_deleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121223", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + account: "f963f34d-3d2f-4f77-b557-cf36bc7e6498", + net_amount: 10, + tracking_categories: [ + "d25d609b-945f-4762-b55a-1c8fb220c43c", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", + contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + description: "Cash payment for lunch", + exchange_rate: "2.9", + }, + ], + journal_number: "42", + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + remote_was_deleted: true, + posting_status: "UNPOSTED", + accounting_period: "accounting_period", + remote_created_at: "2020-03-31T00:00:00Z", + remote_updated_at: "2020-03-31T00:00:00Z", + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/journal-entries") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + transactionDate: new Date("2020-03-31T00:00:00.000Z"), + payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], + appliedPayments: ["4311155d-f236-4a5d-9e0f-1cb167e38f95"], + memo: "Weekly Payment", + currency: "XUA", + exchangeRate: "2.9", + company: "company", + inclusiveOfTax: true, + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + netAmount: 25.54, + trackingCategories: [ + "d25d609b-945f-4762-b55a-1c8fb220c43c", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + description: "Cash payment for lunch", + exchangeRate: "2.9", + remoteWasDeleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121223", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + account: "f963f34d-3d2f-4f77-b557-cf36bc7e6498", + netAmount: 10, + trackingCategories: [ + "d25d609b-945f-4762-b55a-1c8fb220c43c", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", + contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + description: "Cash payment for lunch", + exchangeRate: "2.9", + }, + ], + journalNumber: "42", + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + remoteWasDeleted: true, + postingStatus: "UNPOSTED", + accountingPeriod: "accounting_period", + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + ], + }; + const page = await client.accounting.journalEntries.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + transactionDateBefore: new Date("2024-01-15T09:30:00.000Z"), + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("create", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { model: {} }; + const rawResponseBody = { + model: { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + transaction_date: "2020-03-31T00:00:00Z", + payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], + applied_payments: ["4311155d-f236-4a5d-9e0f-1cb167e38f95"], + memo: "Weekly Payment", + currency: "XUA", + exchange_rate: "2.9", + company: "company", + inclusive_of_tax: true, + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + net_amount: 25.54, + tracking_categories: [ + "d25d609b-945f-4762-b55a-1c8fb220c43c", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + description: "Cash payment for lunch", + exchange_rate: "2.9", + remote_was_deleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121223", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + account: "f963f34d-3d2f-4f77-b557-cf36bc7e6498", + net_amount: 10, + tracking_categories: [ + "d25d609b-945f-4762-b55a-1c8fb220c43c", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", + contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + description: "Cash payment for lunch", + exchange_rate: "2.9", + }, + ], + journal_number: "42", + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + remote_was_deleted: true, + posting_status: "UNPOSTED", + accounting_period: "accounting_period", + remote_created_at: "2020-03-31T00:00:00Z", + remote_updated_at: "2020-03-31T00:00:00Z", + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/accounting/v1/journal-entries") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.journalEntries.create({ + isDebugMode: true, + runAsync: true, + body: { + model: {}, + }, + }); + expect(response).toEqual({ + model: { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + transactionDate: new Date("2020-03-31T00:00:00.000Z"), + payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], + appliedPayments: ["4311155d-f236-4a5d-9e0f-1cb167e38f95"], + memo: "Weekly Payment", + currency: "XUA", + exchangeRate: "2.9", + company: "company", + inclusiveOfTax: true, + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + netAmount: 25.54, + trackingCategories: [ + "d25d609b-945f-4762-b55a-1c8fb220c43c", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + description: "Cash payment for lunch", + exchangeRate: "2.9", + remoteWasDeleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121223", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + account: "f963f34d-3d2f-4f77-b557-cf36bc7e6498", + netAmount: 10, + trackingCategories: [ + "d25d609b-945f-4762-b55a-1c8fb220c43c", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", + contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + description: "Cash payment for lunch", + exchangeRate: "2.9", + }, + ], + journalNumber: "42", + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + remoteWasDeleted: true, + postingStatus: "UNPOSTED", + accountingPeriod: "accounting_period", + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + transaction_date: "2020-03-31T00:00:00Z", + payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], + applied_payments: ["4311155d-f236-4a5d-9e0f-1cb167e38f95"], + memo: "Weekly Payment", + currency: "XUA", + exchange_rate: "2.9", + company: "company", + inclusive_of_tax: true, + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + net_amount: 25.54, + tracking_categories: [ + "d25d609b-945f-4762-b55a-1c8fb220c43c", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + currency: "XUA", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + description: "Cash payment for lunch", + exchange_rate: "2.9", + remote_was_deleted: false, + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121223", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + account: "f963f34d-3d2f-4f77-b557-cf36bc7e6498", + net_amount: 10, + tracking_categories: [ + "d25d609b-945f-4762-b55a-1c8fb220c43c", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + currency: "XUA", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", + project: "project", + contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + description: "Cash payment for lunch", + exchange_rate: "2.9", + remote_was_deleted: true, + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + ], + journal_number: "42", + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + remote_was_deleted: true, + posting_status: "UNPOSTED", + accounting_period: "accounting_period", + remote_created_at: "2020-03-31T00:00:00Z", + remote_updated_at: "2020-03-31T00:00:00Z", + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }; + server + .mockEndpoint() + .get("/accounting/v1/journal-entries/id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.journalEntries.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + }); + expect(response).toEqual({ + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + transactionDate: new Date("2020-03-31T00:00:00.000Z"), + payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], + appliedPayments: ["4311155d-f236-4a5d-9e0f-1cb167e38f95"], + memo: "Weekly Payment", + currency: "XUA", + exchangeRate: "2.9", + company: "company", + inclusiveOfTax: true, + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + netAmount: 25.54, + trackingCategories: [ + "d25d609b-945f-4762-b55a-1c8fb220c43c", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + currency: "XUA", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + description: "Cash payment for lunch", + exchangeRate: "2.9", + remoteWasDeleted: false, + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121223", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + account: "f963f34d-3d2f-4f77-b557-cf36bc7e6498", + netAmount: 10, + trackingCategories: [ + "d25d609b-945f-4762-b55a-1c8fb220c43c", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + currency: "XUA", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", + project: "project", + contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + description: "Cash payment for lunch", + exchangeRate: "2.9", + remoteWasDeleted: true, + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + ], + journalNumber: "42", + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + remoteWasDeleted: true, + postingStatus: "UNPOSTED", + accountingPeriod: "accounting_period", + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }); + }); + + test("batchObjectsList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + transaction_date: "2020-03-31T00:00:00Z", + payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], + applied_payments: ["4311155d-f236-4a5d-9e0f-1cb167e38f95"], + memo: "Weekly Payment", + currency: "XUA", + exchange_rate: "2.9", + company: "company", + inclusive_of_tax: true, + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + net_amount: 25.54, + tracking_categories: [ + "d25d609b-945f-4762-b55a-1c8fb220c43c", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + description: "Cash payment for lunch", + exchange_rate: "2.9", + remote_was_deleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121223", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + account: "f963f34d-3d2f-4f77-b557-cf36bc7e6498", + net_amount: 10, + tracking_categories: [ + "d25d609b-945f-4762-b55a-1c8fb220c43c", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", + contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + description: "Cash payment for lunch", + exchange_rate: "2.9", + }, + ], + journal_number: "42", + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + remote_was_deleted: true, + posting_status: "UNPOSTED", + accounting_period: "accounting_period", + remote_created_at: "2020-03-31T00:00:00Z", + remote_updated_at: "2020-03-31T00:00:00Z", + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + ], + }; + server + .mockEndpoint() + .get("/accounting/v1/journal-entries/batch/batch_id/objects") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.journalEntries.batchObjectsList("batch_id", { + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + transactionDateBefore: new Date("2024-01-15T09:30:00.000Z"), + }); + expect(response).toEqual({ + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + transactionDate: new Date("2020-03-31T00:00:00.000Z"), + payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], + appliedPayments: ["4311155d-f236-4a5d-9e0f-1cb167e38f95"], + memo: "Weekly Payment", + currency: "XUA", + exchangeRate: "2.9", + company: "company", + inclusiveOfTax: true, + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + netAmount: 25.54, + trackingCategories: [ + "d25d609b-945f-4762-b55a-1c8fb220c43c", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + description: "Cash payment for lunch", + exchangeRate: "2.9", + remoteWasDeleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121223", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + account: "f963f34d-3d2f-4f77-b557-cf36bc7e6498", + netAmount: 10, + trackingCategories: [ + "d25d609b-945f-4762-b55a-1c8fb220c43c", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", + contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + description: "Cash payment for lunch", + exchangeRate: "2.9", + }, + ], + journalNumber: "42", + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + remoteWasDeleted: true, + postingStatus: "UNPOSTED", + accountingPeriod: "accounting_period", + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + ], + }); + }); + + test("asyncBulkCreate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { batch_items: [{ item_id: "item_id", payload: { model: {} } }] }; + const rawResponseBody = { + model: { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + transaction_date: "2020-03-31T00:00:00Z", + payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], + applied_payments: ["4311155d-f236-4a5d-9e0f-1cb167e38f95"], + memo: "Weekly Payment", + currency: "XUA", + exchange_rate: "2.9", + company: "company", + inclusive_of_tax: true, + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + net_amount: 25.54, + tracking_categories: [ + "d25d609b-945f-4762-b55a-1c8fb220c43c", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + description: "Cash payment for lunch", + exchange_rate: "2.9", + remote_was_deleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121223", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + account: "f963f34d-3d2f-4f77-b557-cf36bc7e6498", + net_amount: 10, + tracking_categories: [ + "d25d609b-945f-4762-b55a-1c8fb220c43c", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", + contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + description: "Cash payment for lunch", + exchange_rate: "2.9", + }, + ], + journal_number: "42", + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + remote_was_deleted: true, + posting_status: "UNPOSTED", + accounting_period: "accounting_period", + remote_created_at: "2020-03-31T00:00:00Z", + remote_updated_at: "2020-03-31T00:00:00Z", + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/accounting/v1/journal-entries/async/bulk") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.journalEntries.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [ + { + itemId: "item_id", + payload: { + model: {}, + }, + }, + ], + }); + expect(response).toEqual({ + model: { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + transactionDate: new Date("2020-03-31T00:00:00.000Z"), + payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], + appliedPayments: ["4311155d-f236-4a5d-9e0f-1cb167e38f95"], + memo: "Weekly Payment", + currency: "XUA", + exchangeRate: "2.9", + company: "company", + inclusiveOfTax: true, + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + netAmount: 25.54, + trackingCategories: [ + "d25d609b-945f-4762-b55a-1c8fb220c43c", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + description: "Cash payment for lunch", + exchangeRate: "2.9", + remoteWasDeleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121223", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + account: "f963f34d-3d2f-4f77-b557-cf36bc7e6498", + netAmount: 10, + trackingCategories: [ + "d25d609b-945f-4762-b55a-1c8fb220c43c", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", + contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + description: "Cash payment for lunch", + exchangeRate: "2.9", + }, + ], + journalNumber: "42", + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + remoteWasDeleted: true, + postingStatus: "UNPOSTED", + accountingPeriod: "accounting_period", + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("linesRemoteFieldClassesList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "id", + display_name: "display_name", + remote_key_name: "remote_key_name", + description: "description", + is_custom: true, + is_common_model_field: true, + is_required: true, + field_type: "string", + field_format: "string", + field_choices: ["field_choices"], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/journal-entries/lines/remote-field-classes") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "id", + displayName: "display_name", + remoteKeyName: "remote_key_name", + description: "description", + isCustom: true, + isCommonModelField: true, + isRequired: true, + fieldType: "string", + fieldFormat: "string", + fieldChoices: ["field_choices"], + }, + ], + }; + const page = await client.accounting.journalEntries.linesRemoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1, + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("metaPostRetrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + request_schema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + email_address_type: { type: "string", title: "email_address_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + url_type: { type: "string", title: "url_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { type: "string", title: "first_name", description: "The first name." }, + last_name: { type: "string", title: "last_name", description: "The last name." }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + phone_number_type: { type: "string", title: "phone_number_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { type: "string", title: "id" }, + file_url: { type: "string", title: "file_url" }, + file_name: { type: "string", title: "file_name" }, + attachment_type: { type: "string", title: "attachment_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { value: "HRIS", description: "Merge HRIS Category" }, + { value: "ATS", description: "Merge ATS Category" }, + { value: "Accounting", description: "Merge Accounting Category" }, + { value: "Ticketing", description: "Merge Ticketing Category" }, + { value: "File Storage", description: "Merge File Storage Category" }, + { value: "CRM", description: "Merge CRM Category" }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remote_field_classes: { key: "value" }, + status: { linked_account_status: "linked_account_status", can_make_request: true }, + has_conditional_params: true, + has_required_linked_account_params: true, + }; + server + .mockEndpoint() + .get("/accounting/v1/journal-entries/meta/post") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.journalEntries.metaPostRetrieve(); + expect(response).toEqual({ + requestSchema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + email_address_type: { + type: "string", + title: "email_address_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + url_type: { + type: "string", + title: "url_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { + type: "string", + title: "first_name", + description: "The first name.", + }, + last_name: { + type: "string", + title: "last_name", + description: "The last name.", + }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + phone_number_type: { + type: "string", + title: "phone_number_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { + type: "string", + title: "id", + }, + file_url: { + type: "string", + title: "file_url", + }, + file_name: { + type: "string", + title: "file_name", + }, + attachment_type: { + type: "string", + title: "attachment_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { + value: "HRIS", + description: "Merge HRIS Category", + }, + { + value: "ATS", + description: "Merge ATS Category", + }, + { + value: "Accounting", + description: "Merge Accounting Category", + }, + { + value: "Ticketing", + description: "Merge Ticketing Category", + }, + { + value: "File Storage", + description: "Merge File Storage Category", + }, + { + value: "CRM", + description: "Merge CRM Category", + }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remoteFieldClasses: { + key: "value", + }, + status: { + linkedAccountStatus: "linked_account_status", + canMakeRequest: true, + }, + hasConditionalParams: true, + hasRequiredLinkedAccountParams: true, + }); + }); + + test("remoteFieldClassesList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "id", + display_name: "display_name", + remote_key_name: "remote_key_name", + description: "description", + is_custom: true, + is_common_model_field: true, + is_required: true, + field_type: "string", + field_format: "string", + field_choices: ["field_choices"], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/journal-entries/remote-field-classes") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "id", + displayName: "display_name", + remoteKeyName: "remote_key_name", + description: "description", + isCustom: true, + isCommonModelField: true, + isRequired: true, + fieldType: "string", + fieldFormat: "string", + fieldChoices: ["field_choices"], + }, + ], + }; + const page = await client.accounting.journalEntries.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1, + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); +}); diff --git a/tests/wire/accounting/linkToken.test.ts b/tests/wire/Accounting/linkToken.test.ts similarity index 100% rename from tests/wire/accounting/linkToken.test.ts rename to tests/wire/Accounting/linkToken.test.ts diff --git a/tests/wire/Accounting/linkedAccounts.test.ts b/tests/wire/Accounting/linkedAccounts.test.ts new file mode 100644 index 000000000..21a04aeed --- /dev/null +++ b/tests/wire/Accounting/linkedAccounts.test.ts @@ -0,0 +1,119 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("LinkedAccountsClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "e59b1821-f85c-4e28-a6b3-1804156f3563", + category: "hris", + status: "COMPLETE", + status_detail: "Invalid login credentials", + end_user_origin_id: "3ac95cde-6c7f-4eef-afec-be710b42308d", + end_user_organization_name: "Foo Bar, LLC", + end_user_email_address: "hradmin@foobar.dev", + subdomain: "foobar", + webhook_listener_url: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", + is_duplicate: true, + integration: { + name: "name", + categories: ["hris"], + color: "color", + slug: "slug", + passthrough_available: true, + available_model_operations: [ + { + model_name: "Candidate", + available_operations: ["FETCH", "CREATE"], + required_post_parameters: ["remote_user_id"], + supported_fields: ["first_name", "last_name", "company", "title"], + }, + ], + }, + account_type: "PRODUCTION", + completed_at: "2024-08-26T20:11:19Z", + integration_specific_fields: { integration_specific_field: "Varies by platform" }, + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/linked-accounts") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "e59b1821-f85c-4e28-a6b3-1804156f3563", + category: "hris", + status: "COMPLETE", + statusDetail: "Invalid login credentials", + endUserOriginId: "3ac95cde-6c7f-4eef-afec-be710b42308d", + endUserOrganizationName: "Foo Bar, LLC", + endUserEmailAddress: "hradmin@foobar.dev", + subdomain: "foobar", + webhookListenerUrl: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", + isDuplicate: true, + integration: { + name: "name", + categories: ["hris"], + color: "color", + slug: "slug", + passthroughAvailable: true, + availableModelOperations: [ + { + modelName: "Candidate", + availableOperations: ["FETCH", "CREATE"], + requiredPostParameters: ["remote_user_id"], + supportedFields: ["first_name", "last_name", "company", "title"], + }, + ], + }, + accountType: "PRODUCTION", + completedAt: new Date("2024-08-26T20:11:19.000Z"), + integrationSpecificFields: { + integration_specific_field: "Varies by platform", + }, + }, + ], + }; + const page = await client.accounting.linkedAccounts.list({ + category: "accounting", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endUserEmailAddress: "end_user_email_address", + endUserOrganizationName: "end_user_organization_name", + endUserOriginId: "end_user_origin_id", + endUserOriginIds: "end_user_origin_ids", + id: "id", + ids: "ids", + includeDuplicates: true, + integrationName: "integration_name", + isTestAccount: "is_test_account", + pageSize: 1, + status: "status", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); +}); diff --git a/tests/wire/accounting/passthrough.test.ts b/tests/wire/Accounting/passthrough.test.ts similarity index 100% rename from tests/wire/accounting/passthrough.test.ts rename to tests/wire/Accounting/passthrough.test.ts diff --git a/tests/wire/accounting/paymentMethods.test.ts b/tests/wire/Accounting/paymentMethods.test.ts similarity index 93% rename from tests/wire/accounting/paymentMethods.test.ts rename to tests/wire/Accounting/paymentMethods.test.ts index ee7f0c5e2..9e1487f9f 100644 --- a/tests/wire/accounting/paymentMethods.test.ts +++ b/tests/wire/Accounting/paymentMethods.test.ts @@ -35,21 +35,14 @@ describe("PaymentMethodsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/accounting/v1/payment-methods") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.accounting.paymentMethods.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - pageSize: 1, - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -78,7 +71,19 @@ describe("PaymentMethodsClient", () => { ], }, ], + }; + const page = await client.accounting.paymentMethods.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + pageSize: 1, }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { diff --git a/tests/wire/accounting/paymentTerms.test.ts b/tests/wire/Accounting/paymentTerms.test.ts similarity index 94% rename from tests/wire/accounting/paymentTerms.test.ts rename to tests/wire/Accounting/paymentTerms.test.ts index 7b05d7145..e35a5a937 100644 --- a/tests/wire/accounting/paymentTerms.test.ts +++ b/tests/wire/Accounting/paymentTerms.test.ts @@ -37,22 +37,14 @@ describe("PaymentTermsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/accounting/v1/payment-terms") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.accounting.paymentTerms.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "company", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - pageSize: 1, - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -83,7 +75,19 @@ describe("PaymentTermsClient", () => { ], }, ], + }; + const page = await client.accounting.paymentTerms.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + pageSize: 1, }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { @@ -121,7 +125,6 @@ describe("PaymentTermsClient", () => { .build(); const response = await client.accounting.paymentTerms.retrieve("id", { - expand: "company", includeRemoteData: true, includeShellData: true, }); diff --git a/tests/wire/accounting/payments.test.ts b/tests/wire/Accounting/payments.test.ts similarity index 81% rename from tests/wire/accounting/payments.test.ts rename to tests/wire/Accounting/payments.test.ts index d51a9570b..c8d9ceca1 100644 --- a/tests/wire/accounting/payments.test.ts +++ b/tests/wire/Accounting/payments.test.ts @@ -71,33 +71,14 @@ describe("PaymentsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/accounting/v1/payments") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.accounting.payments.list({ - accountId: "account_id", - companyId: "company_id", - contactId: "contact_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "account", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), - transactionDateBefore: new Date("2024-01-15T09:30:00.000Z"), - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -167,7 +148,30 @@ describe("PaymentsClient", () => { ], }, ], + }; + const page = await client.accounting.payments.list({ + accountId: "account_id", + companyId: "company_id", + contactId: "contact_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + transactionDateBefore: new Date("2024-01-15T09:30:00.000Z"), }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("create", async () => { @@ -271,7 +275,9 @@ describe("PaymentsClient", () => { const response = await client.accounting.payments.create({ isDebugMode: true, runAsync: true, - model: {}, + body: { + model: {}, + }, }); expect(response).toEqual({ model: { @@ -442,7 +448,6 @@ describe("PaymentsClient", () => { .build(); const response = await client.accounting.payments.retrieve("id", { - expand: "account", includeRemoteData: true, includeRemoteFields: true, includeShellData: true, @@ -717,6 +722,381 @@ describe("PaymentsClient", () => { }); }); + test("batchObjectsList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", + remote_id: "987300", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + transaction_date: "2020-03-31T00:00:00Z", + contact: "contact", + account: "account", + payment_method: "payment_method", + currency: "XUA", + exchange_rate: "2.9", + company: "company", + total_amount: 50, + type: "ACCOUNTS_PAYABLE", + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + accounting_period: "accounting_period", + applied_to_lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "234", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + applied_amount: "25", + applied_date: "2020-03-31T00:00:00Z", + related_object_id: "a47e11b6-c73b-4a0c-be31-130fc48177fa", + related_object_type: "INVOICE", + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "235", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + applied_amount: "25", + applied_date: "2020-03-31T00:00:00Z", + related_object_id: "9b96a886-29a5-452b-8733-2a1e03497cf4", + related_object_type: "CREDIT_NOTE", + }, + ], + remote_updated_at: "2020-03-31T00:00:00Z", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + ], + }; + server + .mockEndpoint() + .get("/accounting/v1/payments/batch/batch_id/objects") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.payments.batchObjectsList("batch_id", { + accountId: "account_id", + companyId: "company_id", + contactId: "contact_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + transactionDateBefore: new Date("2024-01-15T09:30:00.000Z"), + }); + expect(response).toEqual({ + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", + remoteId: "987300", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + transactionDate: new Date("2020-03-31T00:00:00.000Z"), + contact: "contact", + account: "account", + paymentMethod: "payment_method", + currency: "XUA", + exchangeRate: "2.9", + company: "company", + totalAmount: 50, + type: "ACCOUNTS_PAYABLE", + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + accountingPeriod: "accounting_period", + appliedToLines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "234", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + appliedAmount: "25", + appliedDate: new Date("2020-03-31T00:00:00.000Z"), + relatedObjectId: "a47e11b6-c73b-4a0c-be31-130fc48177fa", + relatedObjectType: "INVOICE", + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "235", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + appliedAmount: "25", + appliedDate: new Date("2020-03-31T00:00:00.000Z"), + relatedObjectId: "9b96a886-29a5-452b-8733-2a1e03497cf4", + relatedObjectType: "CREDIT_NOTE", + }, + ], + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + ], + }); + }); + + test("asyncBulkCreate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { batch_items: [{ item_id: "item_id", payload: { model: {} } }] }; + const rawResponseBody = { + model: { + id: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", + remote_id: "987300", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + transaction_date: "2020-03-31T00:00:00Z", + contact: "contact", + account: "account", + payment_method: "payment_method", + currency: "XUA", + exchange_rate: "2.9", + company: "company", + total_amount: 50, + type: "ACCOUNTS_PAYABLE", + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + accounting_period: "accounting_period", + applied_to_lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "234", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + applied_amount: "25", + applied_date: "2020-03-31T00:00:00Z", + related_object_id: "a47e11b6-c73b-4a0c-be31-130fc48177fa", + related_object_type: "INVOICE", + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "235", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + applied_amount: "25", + applied_date: "2020-03-31T00:00:00Z", + related_object_id: "9b96a886-29a5-452b-8733-2a1e03497cf4", + related_object_type: "CREDIT_NOTE", + }, + ], + remote_updated_at: "2020-03-31T00:00:00Z", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/accounting/v1/payments/async/bulk") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.payments.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [ + { + itemId: "item_id", + payload: { + model: {}, + }, + }, + ], + }); + expect(response).toEqual({ + model: { + id: "b26fd49a-cbae-470a-a8f8-bcbc119e0390", + remoteId: "987300", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + transactionDate: new Date("2020-03-31T00:00:00.000Z"), + contact: "contact", + account: "account", + paymentMethod: "payment_method", + currency: "XUA", + exchangeRate: "2.9", + company: "company", + totalAmount: 50, + type: "ACCOUNTS_PAYABLE", + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + accountingPeriod: "accounting_period", + appliedToLines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "234", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + appliedAmount: "25", + appliedDate: new Date("2020-03-31T00:00:00.000Z"), + relatedObjectId: "a47e11b6-c73b-4a0c-be31-130fc48177fa", + relatedObjectType: "INVOICE", + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "235", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + appliedAmount: "25", + appliedDate: new Date("2020-03-31T00:00:00.000Z"), + relatedObjectId: "9b96a886-29a5-452b-8733-2a1e03497cf4", + relatedObjectType: "CREDIT_NOTE", + }, + ], + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + test("lineItemsRemoteFieldClassesList", async () => { const server = mockServerPool.createServer(); const client = new MergeClient({ @@ -745,23 +1125,14 @@ describe("PaymentsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/accounting/v1/payments/line-items/remote-field-classes") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.accounting.payments.lineItemsRemoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -778,7 +1149,21 @@ describe("PaymentsClient", () => { fieldChoices: ["field_choices"], }, ], + }; + const page = await client.accounting.payments.lineItemsRemoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1, }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("metaPatchRetrieve", async () => { @@ -1651,23 +2036,14 @@ describe("PaymentsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/accounting/v1/payments/remote-field-classes") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.accounting.payments.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -1684,6 +2060,20 @@ describe("PaymentsClient", () => { fieldChoices: ["field_choices"], }, ], + }; + const page = await client.accounting.payments.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1, }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); }); diff --git a/tests/wire/accounting/phoneNumbers.test.ts b/tests/wire/Accounting/phoneNumbers.test.ts similarity index 100% rename from tests/wire/accounting/phoneNumbers.test.ts rename to tests/wire/Accounting/phoneNumbers.test.ts diff --git a/tests/wire/Accounting/projects.test.ts b/tests/wire/Accounting/projects.test.ts new file mode 100644 index 000000000..eb874dca4 --- /dev/null +++ b/tests/wire/Accounting/projects.test.ts @@ -0,0 +1,156 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("ProjectsClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Permissions Mapping", + is_active: true, + company: "company", + contact: "contact", + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/projects") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Permissions Mapping", + isActive: true, + company: "company", + contact: "contact", + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + }, + ], + }; + const page = await client.accounting.projects.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Permissions Mapping", + is_active: true, + company: "company", + contact: "contact", + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + }; + server + .mockEndpoint() + .get("/accounting/v1/projects/id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.projects.retrieve("id", { + includeRemoteData: true, + includeShellData: true, + }); + expect(response).toEqual({ + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Permissions Mapping", + isActive: true, + company: "company", + contact: "contact", + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + }); + }); +}); diff --git a/tests/wire/Accounting/purchaseOrders.test.ts b/tests/wire/Accounting/purchaseOrders.test.ts new file mode 100644 index 000000000..f2f857c18 --- /dev/null +++ b/tests/wire/Accounting/purchaseOrders.test.ts @@ -0,0 +1,1759 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("PurchaseOrdersClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remote_id: "239741", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + status: "DRAFT", + issue_date: "2020-03-31T00:00:00Z", + purchase_order_number: "PO1234", + delivery_date: "2020-04-15T00:00:00Z", + delivery_address: "delivery_address", + customer: "3e442c5d-8f51-4103-b5c9-dcee39c30a08", + vendor: "vendor", + memo: "private note", + company: "company", + total_amount: 260, + currency: "XUA", + exchange_rate: "2.9", + payment_term: "payment_term", + line_items: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + description: "Pickleball paddles", + unit_price: 25, + quantity: 10, + item: "0958cbc6-6040-430a-848e-aafacbadf4ae", + tracking_categories: [ + "f1214c24-2702-4617-b74b-3ddecfc0d384", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + tax_amount: "tax_amount", + total_line_amount: "total_line_amount", + currency: "USD", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchange_rate: "2.9", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remote_was_deleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + description: "Pickleball Balls", + unit_price: 1, + quantity: 10, + item: "249c9faa-3045-4a31-953b-8f22d3613301", + tracking_categories: [ + "f1214c24-2702-4617-b74b-3ddecfc0d384", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + tax_amount: "tax_amount", + total_line_amount: "total_line_amount", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchange_rate: "2.9", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + }, + ], + inclusive_of_tax: true, + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + accounting_period: "accounting_period", + remote_created_at: "2020-03-31T00:00:00Z", + remote_updated_at: "2020-03-31T00:00:00Z", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/purchase-orders") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remoteId: "239741", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + status: "DRAFT", + issueDate: new Date("2020-03-31T00:00:00.000Z"), + purchaseOrderNumber: "PO1234", + deliveryDate: new Date("2020-04-15T00:00:00.000Z"), + deliveryAddress: "delivery_address", + customer: "3e442c5d-8f51-4103-b5c9-dcee39c30a08", + vendor: "vendor", + memo: "private note", + company: "company", + totalAmount: 260, + currency: "XUA", + exchangeRate: "2.9", + paymentTerm: "payment_term", + lineItems: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + description: "Pickleball paddles", + unitPrice: 25, + quantity: 10, + item: "0958cbc6-6040-430a-848e-aafacbadf4ae", + trackingCategories: [ + "f1214c24-2702-4617-b74b-3ddecfc0d384", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + taxAmount: "tax_amount", + totalLineAmount: "total_line_amount", + currency: "USD", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchangeRate: "2.9", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remoteWasDeleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + description: "Pickleball Balls", + unitPrice: 1, + quantity: 10, + item: "249c9faa-3045-4a31-953b-8f22d3613301", + trackingCategories: [ + "f1214c24-2702-4617-b74b-3ddecfc0d384", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + taxAmount: "tax_amount", + totalLineAmount: "total_line_amount", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchangeRate: "2.9", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + }, + ], + inclusiveOfTax: true, + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + accountingPeriod: "accounting_period", + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + ], + }; + const page = await client.accounting.purchaseOrders.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + issueDateAfter: new Date("2024-01-15T09:30:00.000Z"), + issueDateBefore: new Date("2024-01-15T09:30:00.000Z"), + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("create", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { model: {} }; + const rawResponseBody = { + model: { + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remote_id: "239741", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + status: "DRAFT", + issue_date: "2020-03-31T00:00:00Z", + purchase_order_number: "PO1234", + delivery_date: "2020-04-15T00:00:00Z", + delivery_address: "delivery_address", + customer: "3e442c5d-8f51-4103-b5c9-dcee39c30a08", + vendor: "vendor", + memo: "private note", + company: "company", + total_amount: 260, + currency: "XUA", + exchange_rate: "2.9", + payment_term: "payment_term", + line_items: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + description: "Pickleball paddles", + unit_price: 25, + quantity: 10, + item: "0958cbc6-6040-430a-848e-aafacbadf4ae", + tracking_categories: [ + "f1214c24-2702-4617-b74b-3ddecfc0d384", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + tax_amount: "tax_amount", + total_line_amount: "total_line_amount", + currency: "USD", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchange_rate: "2.9", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remote_was_deleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + description: "Pickleball Balls", + unit_price: 1, + quantity: 10, + item: "249c9faa-3045-4a31-953b-8f22d3613301", + tracking_categories: [ + "f1214c24-2702-4617-b74b-3ddecfc0d384", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + tax_amount: "tax_amount", + total_line_amount: "total_line_amount", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchange_rate: "2.9", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + }, + ], + inclusive_of_tax: true, + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + accounting_period: "accounting_period", + remote_created_at: "2020-03-31T00:00:00Z", + remote_updated_at: "2020-03-31T00:00:00Z", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/accounting/v1/purchase-orders") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.purchaseOrders.create({ + isDebugMode: true, + runAsync: true, + body: { + model: {}, + }, + }); + expect(response).toEqual({ + model: { + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remoteId: "239741", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + status: "DRAFT", + issueDate: new Date("2020-03-31T00:00:00.000Z"), + purchaseOrderNumber: "PO1234", + deliveryDate: new Date("2020-04-15T00:00:00.000Z"), + deliveryAddress: "delivery_address", + customer: "3e442c5d-8f51-4103-b5c9-dcee39c30a08", + vendor: "vendor", + memo: "private note", + company: "company", + totalAmount: 260, + currency: "XUA", + exchangeRate: "2.9", + paymentTerm: "payment_term", + lineItems: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + description: "Pickleball paddles", + unitPrice: 25, + quantity: 10, + item: "0958cbc6-6040-430a-848e-aafacbadf4ae", + trackingCategories: [ + "f1214c24-2702-4617-b74b-3ddecfc0d384", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + taxAmount: "tax_amount", + totalLineAmount: "total_line_amount", + currency: "USD", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchangeRate: "2.9", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remoteWasDeleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + description: "Pickleball Balls", + unitPrice: 1, + quantity: 10, + item: "249c9faa-3045-4a31-953b-8f22d3613301", + trackingCategories: [ + "f1214c24-2702-4617-b74b-3ddecfc0d384", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + taxAmount: "tax_amount", + totalLineAmount: "total_line_amount", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchangeRate: "2.9", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + }, + ], + inclusiveOfTax: true, + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + accountingPeriod: "accounting_period", + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remote_id: "239741", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + status: "DRAFT", + issue_date: "2020-03-31T00:00:00Z", + purchase_order_number: "PO1234", + delivery_date: "2020-04-15T00:00:00Z", + delivery_address: "delivery_address", + customer: "3e442c5d-8f51-4103-b5c9-dcee39c30a08", + vendor: "vendor", + memo: "private note", + company: "company", + total_amount: 260, + currency: "XUA", + exchange_rate: "2.9", + payment_term: "payment_term", + line_items: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + description: "Pickleball paddles", + unit_price: 25, + quantity: 10, + item: "0958cbc6-6040-430a-848e-aafacbadf4ae", + account: "account", + tracking_categories: [ + "f1214c24-2702-4617-b74b-3ddecfc0d384", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + tax_amount: "tax_amount", + total_line_amount: "total_line_amount", + currency: "USD", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchange_rate: "2.9", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remote_was_deleted: false, + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + description: "Pickleball Balls", + unit_price: 1, + quantity: 10, + item: "249c9faa-3045-4a31-953b-8f22d3613301", + account: "account", + tracking_categories: [ + "f1214c24-2702-4617-b74b-3ddecfc0d384", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + tax_amount: "tax_amount", + total_line_amount: "total_line_amount", + currency: "XUA", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchange_rate: "2.9", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remote_was_deleted: true, + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + ], + inclusive_of_tax: true, + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + accounting_period: "accounting_period", + remote_created_at: "2020-03-31T00:00:00Z", + remote_updated_at: "2020-03-31T00:00:00Z", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }; + server + .mockEndpoint() + .get("/accounting/v1/purchase-orders/id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.purchaseOrders.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + remoteFields: "status", + showEnumOrigins: "status", + }); + expect(response).toEqual({ + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remoteId: "239741", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + status: "DRAFT", + issueDate: new Date("2020-03-31T00:00:00.000Z"), + purchaseOrderNumber: "PO1234", + deliveryDate: new Date("2020-04-15T00:00:00.000Z"), + deliveryAddress: "delivery_address", + customer: "3e442c5d-8f51-4103-b5c9-dcee39c30a08", + vendor: "vendor", + memo: "private note", + company: "company", + totalAmount: 260, + currency: "XUA", + exchangeRate: "2.9", + paymentTerm: "payment_term", + lineItems: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + description: "Pickleball paddles", + unitPrice: 25, + quantity: 10, + item: "0958cbc6-6040-430a-848e-aafacbadf4ae", + account: "account", + trackingCategories: [ + "f1214c24-2702-4617-b74b-3ddecfc0d384", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + taxAmount: "tax_amount", + totalLineAmount: "total_line_amount", + currency: "USD", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchangeRate: "2.9", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remoteWasDeleted: false, + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + description: "Pickleball Balls", + unitPrice: 1, + quantity: 10, + item: "249c9faa-3045-4a31-953b-8f22d3613301", + account: "account", + trackingCategories: [ + "f1214c24-2702-4617-b74b-3ddecfc0d384", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + taxAmount: "tax_amount", + totalLineAmount: "total_line_amount", + currency: "XUA", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchangeRate: "2.9", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remoteWasDeleted: true, + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + ], + inclusiveOfTax: true, + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + accountingPeriod: "accounting_period", + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }); + }); + + test("batchObjectsList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remote_id: "239741", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + status: "DRAFT", + issue_date: "2020-03-31T00:00:00Z", + purchase_order_number: "PO1234", + delivery_date: "2020-04-15T00:00:00Z", + delivery_address: "delivery_address", + customer: "3e442c5d-8f51-4103-b5c9-dcee39c30a08", + vendor: "vendor", + memo: "private note", + company: "company", + total_amount: 260, + currency: "XUA", + exchange_rate: "2.9", + payment_term: "payment_term", + line_items: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + description: "Pickleball paddles", + unit_price: 25, + quantity: 10, + item: "0958cbc6-6040-430a-848e-aafacbadf4ae", + tracking_categories: [ + "f1214c24-2702-4617-b74b-3ddecfc0d384", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + tax_amount: "tax_amount", + total_line_amount: "total_line_amount", + currency: "USD", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchange_rate: "2.9", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remote_was_deleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + description: "Pickleball Balls", + unit_price: 1, + quantity: 10, + item: "249c9faa-3045-4a31-953b-8f22d3613301", + tracking_categories: [ + "f1214c24-2702-4617-b74b-3ddecfc0d384", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + tax_amount: "tax_amount", + total_line_amount: "total_line_amount", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchange_rate: "2.9", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + }, + ], + inclusive_of_tax: true, + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + accounting_period: "accounting_period", + remote_created_at: "2020-03-31T00:00:00Z", + remote_updated_at: "2020-03-31T00:00:00Z", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + ], + }; + server + .mockEndpoint() + .get("/accounting/v1/purchase-orders/batch/batch_id/objects") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.purchaseOrders.batchObjectsList("batch_id", { + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + issueDateAfter: new Date("2024-01-15T09:30:00.000Z"), + issueDateBefore: new Date("2024-01-15T09:30:00.000Z"), + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status", + }); + expect(response).toEqual({ + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remoteId: "239741", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + status: "DRAFT", + issueDate: new Date("2020-03-31T00:00:00.000Z"), + purchaseOrderNumber: "PO1234", + deliveryDate: new Date("2020-04-15T00:00:00.000Z"), + deliveryAddress: "delivery_address", + customer: "3e442c5d-8f51-4103-b5c9-dcee39c30a08", + vendor: "vendor", + memo: "private note", + company: "company", + totalAmount: 260, + currency: "XUA", + exchangeRate: "2.9", + paymentTerm: "payment_term", + lineItems: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + description: "Pickleball paddles", + unitPrice: 25, + quantity: 10, + item: "0958cbc6-6040-430a-848e-aafacbadf4ae", + trackingCategories: [ + "f1214c24-2702-4617-b74b-3ddecfc0d384", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + taxAmount: "tax_amount", + totalLineAmount: "total_line_amount", + currency: "USD", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchangeRate: "2.9", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remoteWasDeleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + description: "Pickleball Balls", + unitPrice: 1, + quantity: 10, + item: "249c9faa-3045-4a31-953b-8f22d3613301", + trackingCategories: [ + "f1214c24-2702-4617-b74b-3ddecfc0d384", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + taxAmount: "tax_amount", + totalLineAmount: "total_line_amount", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchangeRate: "2.9", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + }, + ], + inclusiveOfTax: true, + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + accountingPeriod: "accounting_period", + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + ], + }); + }); + + test("asyncBulkCreate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { batch_items: [{ item_id: "item_id", payload: { model: {} } }] }; + const rawResponseBody = { + model: { + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remote_id: "239741", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + status: "DRAFT", + issue_date: "2020-03-31T00:00:00Z", + purchase_order_number: "PO1234", + delivery_date: "2020-04-15T00:00:00Z", + delivery_address: "delivery_address", + customer: "3e442c5d-8f51-4103-b5c9-dcee39c30a08", + vendor: "vendor", + memo: "private note", + company: "company", + total_amount: 260, + currency: "XUA", + exchange_rate: "2.9", + payment_term: "payment_term", + line_items: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + description: "Pickleball paddles", + unit_price: 25, + quantity: 10, + item: "0958cbc6-6040-430a-848e-aafacbadf4ae", + tracking_categories: [ + "f1214c24-2702-4617-b74b-3ddecfc0d384", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + tax_amount: "tax_amount", + total_line_amount: "total_line_amount", + currency: "USD", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchange_rate: "2.9", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remote_was_deleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + description: "Pickleball Balls", + unit_price: 1, + quantity: 10, + item: "249c9faa-3045-4a31-953b-8f22d3613301", + tracking_categories: [ + "f1214c24-2702-4617-b74b-3ddecfc0d384", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + tax_amount: "tax_amount", + total_line_amount: "total_line_amount", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchange_rate: "2.9", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + }, + ], + inclusive_of_tax: true, + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + accounting_period: "accounting_period", + remote_created_at: "2020-03-31T00:00:00Z", + remote_updated_at: "2020-03-31T00:00:00Z", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/accounting/v1/purchase-orders/async/bulk") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.purchaseOrders.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [ + { + itemId: "item_id", + payload: { + model: {}, + }, + }, + ], + }); + expect(response).toEqual({ + model: { + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remoteId: "239741", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + status: "DRAFT", + issueDate: new Date("2020-03-31T00:00:00.000Z"), + purchaseOrderNumber: "PO1234", + deliveryDate: new Date("2020-04-15T00:00:00.000Z"), + deliveryAddress: "delivery_address", + customer: "3e442c5d-8f51-4103-b5c9-dcee39c30a08", + vendor: "vendor", + memo: "private note", + company: "company", + totalAmount: 260, + currency: "XUA", + exchangeRate: "2.9", + paymentTerm: "payment_term", + lineItems: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + description: "Pickleball paddles", + unitPrice: 25, + quantity: 10, + item: "0958cbc6-6040-430a-848e-aafacbadf4ae", + trackingCategories: [ + "f1214c24-2702-4617-b74b-3ddecfc0d384", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + taxAmount: "tax_amount", + totalLineAmount: "total_line_amount", + currency: "USD", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchangeRate: "2.9", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remoteWasDeleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + description: "Pickleball Balls", + unitPrice: 1, + quantity: 10, + item: "249c9faa-3045-4a31-953b-8f22d3613301", + trackingCategories: [ + "f1214c24-2702-4617-b74b-3ddecfc0d384", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + taxAmount: "tax_amount", + totalLineAmount: "total_line_amount", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchangeRate: "2.9", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + }, + ], + inclusiveOfTax: true, + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + accountingPeriod: "accounting_period", + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("lineItemsRemoteFieldClassesList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "id", + display_name: "display_name", + remote_key_name: "remote_key_name", + description: "description", + is_custom: true, + is_common_model_field: true, + is_required: true, + field_type: "string", + field_format: "string", + field_choices: ["field_choices"], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/purchase-orders/line-items/remote-field-classes") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "id", + displayName: "display_name", + remoteKeyName: "remote_key_name", + description: "description", + isCustom: true, + isCommonModelField: true, + isRequired: true, + fieldType: "string", + fieldFormat: "string", + fieldChoices: ["field_choices"], + }, + ], + }; + const page = await client.accounting.purchaseOrders.lineItemsRemoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1, + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("metaPostRetrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + request_schema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + email_address_type: { type: "string", title: "email_address_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + url_type: { type: "string", title: "url_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { type: "string", title: "first_name", description: "The first name." }, + last_name: { type: "string", title: "last_name", description: "The last name." }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + phone_number_type: { type: "string", title: "phone_number_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { type: "string", title: "id" }, + file_url: { type: "string", title: "file_url" }, + file_name: { type: "string", title: "file_name" }, + attachment_type: { type: "string", title: "attachment_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { value: "HRIS", description: "Merge HRIS Category" }, + { value: "ATS", description: "Merge ATS Category" }, + { value: "Accounting", description: "Merge Accounting Category" }, + { value: "Ticketing", description: "Merge Ticketing Category" }, + { value: "File Storage", description: "Merge File Storage Category" }, + { value: "CRM", description: "Merge CRM Category" }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remote_field_classes: { key: "value" }, + status: { linked_account_status: "linked_account_status", can_make_request: true }, + has_conditional_params: true, + has_required_linked_account_params: true, + }; + server + .mockEndpoint() + .get("/accounting/v1/purchase-orders/meta/post") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.purchaseOrders.metaPostRetrieve(); + expect(response).toEqual({ + requestSchema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + email_address_type: { + type: "string", + title: "email_address_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + url_type: { + type: "string", + title: "url_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { + type: "string", + title: "first_name", + description: "The first name.", + }, + last_name: { + type: "string", + title: "last_name", + description: "The last name.", + }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + phone_number_type: { + type: "string", + title: "phone_number_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { + type: "string", + title: "id", + }, + file_url: { + type: "string", + title: "file_url", + }, + file_name: { + type: "string", + title: "file_name", + }, + attachment_type: { + type: "string", + title: "attachment_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { + value: "HRIS", + description: "Merge HRIS Category", + }, + { + value: "ATS", + description: "Merge ATS Category", + }, + { + value: "Accounting", + description: "Merge Accounting Category", + }, + { + value: "Ticketing", + description: "Merge Ticketing Category", + }, + { + value: "File Storage", + description: "Merge File Storage Category", + }, + { + value: "CRM", + description: "Merge CRM Category", + }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remoteFieldClasses: { + key: "value", + }, + status: { + linkedAccountStatus: "linked_account_status", + canMakeRequest: true, + }, + hasConditionalParams: true, + hasRequiredLinkedAccountParams: true, + }); + }); + + test("remoteFieldClassesList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "id", + display_name: "display_name", + remote_key_name: "remote_key_name", + description: "description", + is_custom: true, + is_common_model_field: true, + is_required: true, + field_type: "string", + field_format: "string", + field_choices: ["field_choices"], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/purchase-orders/remote-field-classes") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "id", + displayName: "display_name", + remoteKeyName: "remote_key_name", + description: "description", + isCustom: true, + isCommonModelField: true, + isRequired: true, + fieldType: "string", + fieldFormat: "string", + fieldChoices: ["field_choices"], + }, + ], + }; + const page = await client.accounting.purchaseOrders.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1, + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); +}); diff --git a/tests/wire/accounting/regenerateKey.test.ts b/tests/wire/Accounting/regenerateKey.test.ts similarity index 100% rename from tests/wire/accounting/regenerateKey.test.ts rename to tests/wire/Accounting/regenerateKey.test.ts diff --git a/tests/wire/Accounting/salesOrders.test.ts b/tests/wire/Accounting/salesOrders.test.ts new file mode 100644 index 000000000..c142ceb6a --- /dev/null +++ b/tests/wire/Accounting/salesOrders.test.ts @@ -0,0 +1,1431 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("SalesOrdersClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remote_id: "SO-12345", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + customer: "customer", + currency: "XUA", + exchange_rate: "1.0", + company: "company", + status: "DRAFT", + payment_term: "payment_term", + memo: "Quarterly subscription order", + shipping_address: "shipping_address", + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + ], + issue_date: "2020-03-31T00:00:00Z", + transaction_number: "SO-12345", + total: 495, + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + description: "Premium subscription", + unit_price: "unit_price", + quantity: "quantity", + item: "0958cbc6-6040-430a-848e-aafacbadf4ae", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + tracking_categories: [ + "f1214c24-2702-4617-b74b-3ddecfc0d384", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remote_was_deleted: false, + }, + "lines", + ], + remote_created_at: "2020-03-31T00:00:00Z", + remote_updated_at: "2020-03-31T00:00:00Z", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/sales-orders") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remoteId: "SO-12345", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + customer: "customer", + currency: "XUA", + exchangeRate: "1.0", + company: "company", + status: "DRAFT", + paymentTerm: "payment_term", + memo: "Quarterly subscription order", + shippingAddress: "shipping_address", + trackingCategories: ["b38c59b0-a9d7-4740-b1ee-5436c6751e3d", "9b840d2-686a-465a-8a8e-7b028498f8e4"], + issueDate: new Date("2020-03-31T00:00:00.000Z"), + transactionNumber: "SO-12345", + total: 495, + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + description: "Premium subscription", + unitPrice: "unit_price", + quantity: "quantity", + item: "0958cbc6-6040-430a-848e-aafacbadf4ae", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + trackingCategories: [ + "f1214c24-2702-4617-b74b-3ddecfc0d384", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remoteWasDeleted: false, + }, + "lines", + ], + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + ], + }; + const page = await client.accounting.salesOrders.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + issueDateAfter: new Date("2024-01-15T09:30:00.000Z"), + issueDateBefore: new Date("2024-01-15T09:30:00.000Z"), + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("create", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { model: {} }; + const rawResponseBody = { + model: { + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remote_id: "SO-12345", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + customer: "customer", + currency: "XUA", + exchange_rate: "1.0", + company: "company", + status: "DRAFT", + payment_term: "payment_term", + memo: "Quarterly subscription order", + shipping_address: "shipping_address", + tracking_categories: ["b38c59b0-a9d7-4740-b1ee-5436c6751e3d", "9b840d2-686a-465a-8a8e-7b028498f8e4"], + issue_date: "2020-03-31T00:00:00Z", + transaction_number: "SO-12345", + total: 495, + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + description: "Premium subscription", + unit_price: "unit_price", + quantity: "quantity", + item: "0958cbc6-6040-430a-848e-aafacbadf4ae", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + tracking_categories: [ + "f1214c24-2702-4617-b74b-3ddecfc0d384", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remote_was_deleted: false, + }, + "lines", + ], + remote_created_at: "2020-03-31T00:00:00Z", + remote_updated_at: "2020-03-31T00:00:00Z", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/accounting/v1/sales-orders") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.salesOrders.create({ + isDebugMode: true, + runAsync: true, + body: { + model: {}, + }, + }); + expect(response).toEqual({ + model: { + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remoteId: "SO-12345", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + customer: "customer", + currency: "XUA", + exchangeRate: "1.0", + company: "company", + status: "DRAFT", + paymentTerm: "payment_term", + memo: "Quarterly subscription order", + shippingAddress: "shipping_address", + trackingCategories: ["b38c59b0-a9d7-4740-b1ee-5436c6751e3d", "9b840d2-686a-465a-8a8e-7b028498f8e4"], + issueDate: new Date("2020-03-31T00:00:00.000Z"), + transactionNumber: "SO-12345", + total: 495, + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + description: "Premium subscription", + unitPrice: "unit_price", + quantity: "quantity", + item: "0958cbc6-6040-430a-848e-aafacbadf4ae", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + trackingCategories: [ + "f1214c24-2702-4617-b74b-3ddecfc0d384", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remoteWasDeleted: false, + }, + "lines", + ], + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remote_id: "SO-12345", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + customer: "customer", + currency: "XUA", + exchange_rate: "1.0", + company: "company", + status: "DRAFT", + payment_term: "payment_term", + memo: "Quarterly subscription order", + shipping_address: "shipping_address", + tracking_categories: ["b38c59b0-a9d7-4740-b1ee-5436c6751e3d", "9b840d2-686a-465a-8a8e-7b028498f8e4"], + issue_date: "2020-03-31T00:00:00Z", + transaction_number: "SO-12345", + total: 495, + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + description: "Premium subscription", + unit_price: "unit_price", + quantity: "quantity", + item: "0958cbc6-6040-430a-848e-aafacbadf4ae", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + tracking_categories: [ + "f1214c24-2702-4617-b74b-3ddecfc0d384", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remote_created_at: "2024-01-15T09:30:00Z", + remote_updated_at: "2024-01-15T09:30:00Z", + remote_was_deleted: false, + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + "lines", + ], + remote_created_at: "2020-03-31T00:00:00Z", + remote_updated_at: "2020-03-31T00:00:00Z", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }; + server + .mockEndpoint() + .get("/accounting/v1/sales-orders/id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.salesOrders.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + remoteFields: "status", + showEnumOrigins: "status", + }); + expect(response).toEqual({ + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remoteId: "SO-12345", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + customer: "customer", + currency: "XUA", + exchangeRate: "1.0", + company: "company", + status: "DRAFT", + paymentTerm: "payment_term", + memo: "Quarterly subscription order", + shippingAddress: "shipping_address", + trackingCategories: ["b38c59b0-a9d7-4740-b1ee-5436c6751e3d", "9b840d2-686a-465a-8a8e-7b028498f8e4"], + issueDate: new Date("2020-03-31T00:00:00.000Z"), + transactionNumber: "SO-12345", + total: 495, + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + description: "Premium subscription", + unitPrice: "unit_price", + quantity: "quantity", + item: "0958cbc6-6040-430a-848e-aafacbadf4ae", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + trackingCategories: ["f1214c24-2702-4617-b74b-3ddecfc0d384", "9b840d2-686a-465a-8a8e-7b028498f8e4"], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remoteCreatedAt: new Date("2024-01-15T09:30:00.000Z"), + remoteUpdatedAt: new Date("2024-01-15T09:30:00.000Z"), + remoteWasDeleted: false, + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + "lines", + ], + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }); + }); + + test("batchObjectsList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remote_id: "SO-12345", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + customer: "customer", + currency: "XUA", + exchange_rate: "1.0", + company: "company", + status: "DRAFT", + payment_term: "payment_term", + memo: "Quarterly subscription order", + shipping_address: "shipping_address", + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + ], + issue_date: "2020-03-31T00:00:00Z", + transaction_number: "SO-12345", + total: 495, + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + description: "Premium subscription", + unit_price: "unit_price", + quantity: "quantity", + item: "0958cbc6-6040-430a-848e-aafacbadf4ae", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + tracking_categories: [ + "f1214c24-2702-4617-b74b-3ddecfc0d384", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remote_was_deleted: false, + }, + "lines", + ], + remote_created_at: "2020-03-31T00:00:00Z", + remote_updated_at: "2020-03-31T00:00:00Z", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + ], + }; + server + .mockEndpoint() + .get("/accounting/v1/sales-orders/batch/batch_id/objects") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.salesOrders.batchObjectsList("batch_id", { + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + issueDateAfter: new Date("2024-01-15T09:30:00.000Z"), + issueDateBefore: new Date("2024-01-15T09:30:00.000Z"), + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status", + }); + expect(response).toEqual({ + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remoteId: "SO-12345", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + customer: "customer", + currency: "XUA", + exchangeRate: "1.0", + company: "company", + status: "DRAFT", + paymentTerm: "payment_term", + memo: "Quarterly subscription order", + shippingAddress: "shipping_address", + trackingCategories: ["b38c59b0-a9d7-4740-b1ee-5436c6751e3d", "9b840d2-686a-465a-8a8e-7b028498f8e4"], + issueDate: new Date("2020-03-31T00:00:00.000Z"), + transactionNumber: "SO-12345", + total: 495, + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + description: "Premium subscription", + unitPrice: "unit_price", + quantity: "quantity", + item: "0958cbc6-6040-430a-848e-aafacbadf4ae", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + trackingCategories: [ + "f1214c24-2702-4617-b74b-3ddecfc0d384", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remoteWasDeleted: false, + }, + "lines", + ], + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + ], + }); + }); + + test("asyncBulkCreate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { batch_items: [{ item_id: "item_id", payload: { model: {} } }] }; + const rawResponseBody = { + model: { + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remote_id: "SO-12345", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + customer: "customer", + currency: "XUA", + exchange_rate: "1.0", + company: "company", + status: "DRAFT", + payment_term: "payment_term", + memo: "Quarterly subscription order", + shipping_address: "shipping_address", + tracking_categories: ["b38c59b0-a9d7-4740-b1ee-5436c6751e3d", "9b840d2-686a-465a-8a8e-7b028498f8e4"], + issue_date: "2020-03-31T00:00:00Z", + transaction_number: "SO-12345", + total: 495, + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + description: "Premium subscription", + unit_price: "unit_price", + quantity: "quantity", + item: "0958cbc6-6040-430a-848e-aafacbadf4ae", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + tracking_categories: [ + "f1214c24-2702-4617-b74b-3ddecfc0d384", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remote_was_deleted: false, + }, + "lines", + ], + remote_created_at: "2020-03-31T00:00:00Z", + remote_updated_at: "2020-03-31T00:00:00Z", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/accounting/v1/sales-orders/async/bulk") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.salesOrders.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [ + { + itemId: "item_id", + payload: { + model: {}, + }, + }, + ], + }); + expect(response).toEqual({ + model: { + id: "0048ea5b-911e-4dff-9364-92070dea62ff", + remoteId: "SO-12345", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + customer: "customer", + currency: "XUA", + exchangeRate: "1.0", + company: "company", + status: "DRAFT", + paymentTerm: "payment_term", + memo: "Quarterly subscription order", + shippingAddress: "shipping_address", + trackingCategories: ["b38c59b0-a9d7-4740-b1ee-5436c6751e3d", "9b840d2-686a-465a-8a8e-7b028498f8e4"], + issueDate: new Date("2020-03-31T00:00:00.000Z"), + transactionNumber: "SO-12345", + total: 495, + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + description: "Premium subscription", + unitPrice: "unit_price", + quantity: "quantity", + item: "0958cbc6-6040-430a-848e-aafacbadf4ae", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + trackingCategories: [ + "f1214c24-2702-4617-b74b-3ddecfc0d384", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + ], + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + remoteWasDeleted: false, + }, + "lines", + ], + remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("linesRemoteFieldClassesList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "id", + display_name: "display_name", + remote_key_name: "remote_key_name", + description: "description", + is_custom: true, + is_common_model_field: true, + is_required: true, + field_type: "string", + field_format: "string", + field_choices: ["field_choices"], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/sales-orders/lines/remote-field-classes") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "id", + displayName: "display_name", + remoteKeyName: "remote_key_name", + description: "description", + isCustom: true, + isCommonModelField: true, + isRequired: true, + fieldType: "string", + fieldFormat: "string", + fieldChoices: ["field_choices"], + }, + ], + }; + const page = await client.accounting.salesOrders.linesRemoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1, + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("metaPostRetrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + request_schema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + email_address_type: { type: "string", title: "email_address_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + url_type: { type: "string", title: "url_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { type: "string", title: "first_name", description: "The first name." }, + last_name: { type: "string", title: "last_name", description: "The last name." }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + phone_number_type: { type: "string", title: "phone_number_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { type: "string", title: "id" }, + file_url: { type: "string", title: "file_url" }, + file_name: { type: "string", title: "file_name" }, + attachment_type: { type: "string", title: "attachment_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { value: "HRIS", description: "Merge HRIS Category" }, + { value: "ATS", description: "Merge ATS Category" }, + { value: "Accounting", description: "Merge Accounting Category" }, + { value: "Ticketing", description: "Merge Ticketing Category" }, + { value: "File Storage", description: "Merge File Storage Category" }, + { value: "CRM", description: "Merge CRM Category" }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remote_field_classes: { key: "value" }, + status: { linked_account_status: "linked_account_status", can_make_request: true }, + has_conditional_params: true, + has_required_linked_account_params: true, + }; + server + .mockEndpoint() + .get("/accounting/v1/sales-orders/meta/post") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.salesOrders.metaPostRetrieve(); + expect(response).toEqual({ + requestSchema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + email_address_type: { + type: "string", + title: "email_address_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + url_type: { + type: "string", + title: "url_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { + type: "string", + title: "first_name", + description: "The first name.", + }, + last_name: { + type: "string", + title: "last_name", + description: "The last name.", + }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + phone_number_type: { + type: "string", + title: "phone_number_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { + type: "string", + title: "id", + }, + file_url: { + type: "string", + title: "file_url", + }, + file_name: { + type: "string", + title: "file_name", + }, + attachment_type: { + type: "string", + title: "attachment_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { + value: "HRIS", + description: "Merge HRIS Category", + }, + { + value: "ATS", + description: "Merge ATS Category", + }, + { + value: "Accounting", + description: "Merge Accounting Category", + }, + { + value: "Ticketing", + description: "Merge Ticketing Category", + }, + { + value: "File Storage", + description: "Merge File Storage Category", + }, + { + value: "CRM", + description: "Merge CRM Category", + }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remoteFieldClasses: { + key: "value", + }, + status: { + linkedAccountStatus: "linked_account_status", + canMakeRequest: true, + }, + hasConditionalParams: true, + hasRequiredLinkedAccountParams: true, + }); + }); + + test("remoteFieldClassesList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "id", + display_name: "display_name", + remote_key_name: "remote_key_name", + description: "description", + is_custom: true, + is_common_model_field: true, + is_required: true, + field_type: "string", + field_format: "string", + field_choices: ["field_choices"], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/sales-orders/remote-field-classes") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "id", + displayName: "display_name", + remoteKeyName: "remote_key_name", + description: "description", + isCustom: true, + isCommonModelField: true, + isRequired: true, + fieldType: "string", + fieldFormat: "string", + fieldChoices: ["field_choices"], + }, + ], + }; + const page = await client.accounting.salesOrders.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1, + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); +}); diff --git a/tests/wire/accounting/scopes.test.ts b/tests/wire/Accounting/scopes.test.ts similarity index 100% rename from tests/wire/accounting/scopes.test.ts rename to tests/wire/Accounting/scopes.test.ts diff --git a/tests/wire/Accounting/syncStatus.test.ts b/tests/wire/Accounting/syncStatus.test.ts new file mode 100644 index 000000000..d8b1bd05d --- /dev/null +++ b/tests/wire/Accounting/syncStatus.test.ts @@ -0,0 +1,68 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("SyncStatusClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + model_name: "Invoice", + model_id: "accounting.Invoices", + last_sync_start: "2021-03-30T19:44:18Z", + next_sync_start: "2021-03-30T20:44:18Z", + last_sync_result: "SYNCING", + last_sync_finished: "2021-03-30T19:55:18Z", + status: "SYNCING", + is_initial_sync: true, + selective_sync_configurations_usage: "IN_NEXT_SYNC", + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/sync-status") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + modelName: "Invoice", + modelId: "accounting.Invoices", + lastSyncStart: new Date("2021-03-30T19:44:18.000Z"), + nextSyncStart: new Date("2021-03-30T20:44:18.000Z"), + lastSyncResult: "SYNCING", + lastSyncFinished: new Date("2021-03-30T19:55:18.000Z"), + status: "SYNCING", + isInitialSync: true, + selectiveSyncConfigurationsUsage: "IN_NEXT_SYNC", + }, + ], + }; + const page = await client.accounting.syncStatus.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + pageSize: 1, + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); +}); diff --git a/tests/wire/accounting/taxRates.test.ts b/tests/wire/Accounting/taxRates.test.ts similarity index 96% rename from tests/wire/accounting/taxRates.test.ts rename to tests/wire/Accounting/taxRates.test.ts index 4608c819e..c73de71db 100644 --- a/tests/wire/accounting/taxRates.test.ts +++ b/tests/wire/Accounting/taxRates.test.ts @@ -52,29 +52,14 @@ describe("TaxRatesClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/accounting/v1/tax-rates") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.accounting.taxRates.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "company", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - name: "name", - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -120,7 +105,26 @@ describe("TaxRatesClient", () => { ], }, ], + }; + const page = await client.accounting.taxRates.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { @@ -174,7 +178,6 @@ describe("TaxRatesClient", () => { .build(); const response = await client.accounting.taxRates.retrieve("id", { - expand: "company", includeRemoteData: true, includeShellData: true, }); diff --git a/tests/wire/accounting/trackingCategories.test.ts b/tests/wire/Accounting/trackingCategories.test.ts similarity index 94% rename from tests/wire/accounting/trackingCategories.test.ts rename to tests/wire/Accounting/trackingCategories.test.ts index 0d0a3c8fd..da31ecbc6 100644 --- a/tests/wire/accounting/trackingCategories.test.ts +++ b/tests/wire/Accounting/trackingCategories.test.ts @@ -36,33 +36,14 @@ describe("TrackingCategoriesClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/accounting/v1/tracking-categories") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.accounting.trackingCategories.list({ - categoryType: "", - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "company", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - name: "name", - pageSize: 1, - remoteFields: "status", - remoteId: "remote_id", - showEnumOrigins: "status", - status: "", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -87,7 +68,30 @@ describe("TrackingCategoriesClient", () => { }, }, ], + }; + const page = await client.accounting.trackingCategories.list({ + categoryType: "", + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status", + status: "", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { @@ -124,7 +128,6 @@ describe("TrackingCategoriesClient", () => { .build(); const response = await client.accounting.trackingCategories.retrieve("id", { - expand: "company", includeRemoteData: true, includeShellData: true, remoteFields: "status", diff --git a/tests/wire/accounting/transactions.test.ts b/tests/wire/Accounting/transactions.test.ts similarity index 97% rename from tests/wire/accounting/transactions.test.ts rename to tests/wire/Accounting/transactions.test.ts index 22c8e2ee8..cfd814644 100644 --- a/tests/wire/accounting/transactions.test.ts +++ b/tests/wire/Accounting/transactions.test.ts @@ -31,7 +31,7 @@ describe("TransactionsClient", () => { total_amount: "total_amount", currency: "XUA", exchange_rate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + company: "company", tracking_categories: [ "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", "9b840d2-686a-465a-8a8e-7b028498f8e4", @@ -92,30 +92,14 @@ describe("TransactionsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/accounting/v1/transactions") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.accounting.transactions.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "account", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), - transactionDateBefore: new Date("2024-01-15T09:30:00.000Z"), - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -133,7 +117,7 @@ describe("TransactionsClient", () => { totalAmount: "total_amount", currency: "XUA", exchangeRate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + company: "company", trackingCategories: [ "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", "9b840d2-686a-465a-8a8e-7b028498f8e4", @@ -201,7 +185,27 @@ describe("TransactionsClient", () => { ], }, ], + }; + const page = await client.accounting.transactions.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + transactionDateBefore: new Date("2024-01-15T09:30:00.000Z"), }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { @@ -227,7 +231,7 @@ describe("TransactionsClient", () => { total_amount: "total_amount", currency: "XUA", exchange_rate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + company: "company", tracking_categories: [ "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", "9b840d2-686a-465a-8a8e-7b028498f8e4", @@ -296,7 +300,6 @@ describe("TransactionsClient", () => { .build(); const response = await client.accounting.transactions.retrieve("id", { - expand: "account", includeRemoteData: true, includeShellData: true, }); @@ -314,7 +317,7 @@ describe("TransactionsClient", () => { totalAmount: "total_amount", currency: "XUA", exchangeRate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + company: "company", trackingCategories: [ "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", "9b840d2-686a-465a-8a8e-7b028498f8e4", diff --git a/tests/wire/Accounting/vendorCredits.test.ts b/tests/wire/Accounting/vendorCredits.test.ts new file mode 100644 index 000000000..5c918807c --- /dev/null +++ b/tests/wire/Accounting/vendorCredits.test.ts @@ -0,0 +1,2447 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("VendorCreditsClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + number: "6", + transaction_date: "2020-03-31T00:00:00Z", + vendor: "vendor", + total_amount: 10000, + currency: "XUA", + exchange_rate: "2.9", + inclusive_of_tax: true, + company: "company", + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + net_amount: 25.54, + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + description: "Gifted Merge Credit", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + contact: "908934-49j9-093f-0989-908923908", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchange_rate: "2.9", + remote_was_deleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121223", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + net_amount: 10, + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + description: "Refund for overpayment", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchange_rate: "2.9", + }, + ], + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + applied_to_lines: [ + { + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + applied_date: "2020-03-31T00:00:00Z", + applied_amount: "2.9", + }, + ], + remote_was_deleted: true, + accounting_period: "accounting_period", + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/accounting/v1/vendor-credits") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + number: "6", + transactionDate: new Date("2020-03-31T00:00:00.000Z"), + vendor: "vendor", + totalAmount: 10000, + currency: "XUA", + exchangeRate: "2.9", + inclusiveOfTax: true, + company: "company", + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + netAmount: 25.54, + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + description: "Gifted Merge Credit", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + contact: "908934-49j9-093f-0989-908923908", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchangeRate: "2.9", + remoteWasDeleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121223", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + netAmount: 10, + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + description: "Refund for overpayment", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchangeRate: "2.9", + }, + ], + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + appliedToLines: [ + { + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + appliedDate: new Date("2020-03-31T00:00:00.000Z"), + appliedAmount: "2.9", + }, + ], + remoteWasDeleted: true, + accountingPeriod: "accounting_period", + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + }, + ], + }; + const page = await client.accounting.vendorCredits.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + transactionDateBefore: new Date("2024-01-15T09:30:00.000Z"), + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("create", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { model: {} }; + const rawResponseBody = { + model: { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + number: "6", + transaction_date: "2020-03-31T00:00:00Z", + vendor: "vendor", + total_amount: 10000, + currency: "XUA", + exchange_rate: "2.9", + inclusive_of_tax: true, + company: "company", + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + net_amount: 25.54, + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + description: "Gifted Merge Credit", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + contact: "908934-49j9-093f-0989-908923908", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchange_rate: "2.9", + remote_was_deleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121223", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + net_amount: 10, + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + description: "Refund for overpayment", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchange_rate: "2.9", + }, + ], + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + applied_to_lines: [ + { + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + applied_date: "2020-03-31T00:00:00Z", + applied_amount: "2.9", + }, + ], + remote_was_deleted: true, + accounting_period: "accounting_period", + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/accounting/v1/vendor-credits") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.vendorCredits.create({ + isDebugMode: true, + runAsync: true, + body: { + model: {}, + }, + }); + expect(response).toEqual({ + model: { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + number: "6", + transactionDate: new Date("2020-03-31T00:00:00.000Z"), + vendor: "vendor", + totalAmount: 10000, + currency: "XUA", + exchangeRate: "2.9", + inclusiveOfTax: true, + company: "company", + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + netAmount: 25.54, + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + description: "Gifted Merge Credit", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + contact: "908934-49j9-093f-0989-908923908", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchangeRate: "2.9", + remoteWasDeleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121223", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + netAmount: 10, + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + description: "Refund for overpayment", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchangeRate: "2.9", + }, + ], + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + appliedToLines: [ + { + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + appliedDate: new Date("2020-03-31T00:00:00.000Z"), + appliedAmount: "2.9", + }, + ], + remoteWasDeleted: true, + accountingPeriod: "accounting_period", + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + number: "6", + transaction_date: "2020-03-31T00:00:00Z", + vendor: "vendor", + total_amount: 10000, + currency: "XUA", + exchange_rate: "2.9", + inclusive_of_tax: true, + company: "company", + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + net_amount: 25.54, + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + description: "Gifted Merge Credit", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + contact: "908934-49j9-093f-0989-908923908", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchange_rate: "2.9", + remote_was_deleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121223", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + net_amount: 10, + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + description: "Refund for overpayment", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + project: "project", + contact: "contact", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchange_rate: "2.9", + remote_was_deleted: true, + }, + ], + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + applied_to_lines: [ + { + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + applied_date: "2020-03-31T00:00:00Z", + applied_amount: "2.9", + remote_was_deleted: true, + }, + ], + remote_was_deleted: true, + accounting_period: "accounting_period", + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + }; + server + .mockEndpoint() + .get("/accounting/v1/vendor-credits/id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.vendorCredits.retrieve("id", { + includeRemoteData: true, + includeShellData: true, + }); + expect(response).toEqual({ + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + number: "6", + transactionDate: new Date("2020-03-31T00:00:00.000Z"), + vendor: "vendor", + totalAmount: 10000, + currency: "XUA", + exchangeRate: "2.9", + inclusiveOfTax: true, + company: "company", + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + netAmount: 25.54, + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + description: "Gifted Merge Credit", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + contact: "908934-49j9-093f-0989-908923908", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchangeRate: "2.9", + remoteWasDeleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121223", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + netAmount: 10, + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + description: "Refund for overpayment", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + project: "project", + contact: "contact", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchangeRate: "2.9", + remoteWasDeleted: true, + }, + ], + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + appliedToLines: [ + { + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + appliedDate: new Date("2020-03-31T00:00:00.000Z"), + appliedAmount: "2.9", + remoteWasDeleted: true, + }, + ], + remoteWasDeleted: true, + accountingPeriod: "accounting_period", + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + }); + }); + + test("partialUpdate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { model: {} }; + const rawResponseBody = { + model: { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + number: "6", + transaction_date: "2020-03-31T00:00:00Z", + vendor: "vendor", + total_amount: 10000, + currency: "XUA", + exchange_rate: "2.9", + inclusive_of_tax: true, + company: "company", + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + net_amount: 25.54, + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + description: "Gifted Merge Credit", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + contact: "908934-49j9-093f-0989-908923908", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchange_rate: "2.9", + remote_was_deleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121223", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + net_amount: 10, + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + description: "Refund for overpayment", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchange_rate: "2.9", + }, + ], + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + applied_to_lines: [ + { + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + applied_date: "2020-03-31T00:00:00Z", + applied_amount: "2.9", + }, + ], + remote_was_deleted: true, + accounting_period: "accounting_period", + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .patch("/accounting/v1/vendor-credits/id") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.vendorCredits.partialUpdate("id", { + isDebugMode: true, + runAsync: true, + model: {}, + }); + expect(response).toEqual({ + model: { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + number: "6", + transactionDate: new Date("2020-03-31T00:00:00.000Z"), + vendor: "vendor", + totalAmount: 10000, + currency: "XUA", + exchangeRate: "2.9", + inclusiveOfTax: true, + company: "company", + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + netAmount: 25.54, + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + description: "Gifted Merge Credit", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + contact: "908934-49j9-093f-0989-908923908", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchangeRate: "2.9", + remoteWasDeleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121223", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + netAmount: 10, + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + description: "Refund for overpayment", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchangeRate: "2.9", + }, + ], + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + appliedToLines: [ + { + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + appliedDate: new Date("2020-03-31T00:00:00.000Z"), + appliedAmount: "2.9", + }, + ], + remoteWasDeleted: true, + accountingPeriod: "accounting_period", + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("batchObjectsList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + number: "6", + transaction_date: "2020-03-31T00:00:00Z", + vendor: "vendor", + total_amount: 10000, + currency: "XUA", + exchange_rate: "2.9", + inclusive_of_tax: true, + company: "company", + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + net_amount: 25.54, + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + description: "Gifted Merge Credit", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + contact: "908934-49j9-093f-0989-908923908", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchange_rate: "2.9", + remote_was_deleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121223", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + net_amount: 10, + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + description: "Refund for overpayment", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchange_rate: "2.9", + }, + ], + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + applied_to_lines: [ + { + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + applied_date: "2020-03-31T00:00:00Z", + applied_amount: "2.9", + }, + ], + remote_was_deleted: true, + accounting_period: "accounting_period", + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + }, + ], + }; + server + .mockEndpoint() + .get("/accounting/v1/vendor-credits/batch/batch_id/objects") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.vendorCredits.batchObjectsList("batch_id", { + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), + transactionDateBefore: new Date("2024-01-15T09:30:00.000Z"), + }); + expect(response).toEqual({ + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + number: "6", + transactionDate: new Date("2020-03-31T00:00:00.000Z"), + vendor: "vendor", + totalAmount: 10000, + currency: "XUA", + exchangeRate: "2.9", + inclusiveOfTax: true, + company: "company", + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + netAmount: 25.54, + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + description: "Gifted Merge Credit", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + contact: "908934-49j9-093f-0989-908923908", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchangeRate: "2.9", + remoteWasDeleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121223", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + netAmount: 10, + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + description: "Refund for overpayment", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchangeRate: "2.9", + }, + ], + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + appliedToLines: [ + { + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + appliedDate: new Date("2020-03-31T00:00:00.000Z"), + appliedAmount: "2.9", + }, + ], + remoteWasDeleted: true, + accountingPeriod: "accounting_period", + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + }, + ], + }); + }); + + test("asyncBulkCreate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { batch_items: [{ item_id: "item_id", payload: { model: {} } }] }; + const rawResponseBody = { + model: { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + number: "6", + transaction_date: "2020-03-31T00:00:00Z", + vendor: "vendor", + total_amount: 10000, + currency: "XUA", + exchange_rate: "2.9", + inclusive_of_tax: true, + company: "company", + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + net_amount: 25.54, + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + description: "Gifted Merge Credit", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + contact: "908934-49j9-093f-0989-908923908", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchange_rate: "2.9", + remote_was_deleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121223", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + net_amount: 10, + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + description: "Refund for overpayment", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchange_rate: "2.9", + }, + ], + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + applied_to_lines: [ + { + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + applied_date: "2020-03-31T00:00:00Z", + applied_amount: "2.9", + }, + ], + remote_was_deleted: true, + accounting_period: "accounting_period", + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/accounting/v1/vendor-credits/async/bulk") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.vendorCredits.asyncBulkCreate({ + isDebugMode: true, + runAsync: true, + batchItems: [ + { + itemId: "item_id", + payload: { + model: {}, + }, + }, + ], + }); + expect(response).toEqual({ + model: { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + number: "6", + transactionDate: new Date("2020-03-31T00:00:00.000Z"), + vendor: "vendor", + totalAmount: 10000, + currency: "XUA", + exchangeRate: "2.9", + inclusiveOfTax: true, + company: "company", + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + netAmount: 25.54, + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + description: "Gifted Merge Credit", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + contact: "908934-49j9-093f-0989-908923908", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchangeRate: "2.9", + remoteWasDeleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121223", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + netAmount: 10, + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + description: "Refund for overpayment", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchangeRate: "2.9", + }, + ], + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + appliedToLines: [ + { + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + appliedDate: new Date("2020-03-31T00:00:00.000Z"), + appliedAmount: "2.9", + }, + ], + remoteWasDeleted: true, + accountingPeriod: "accounting_period", + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("applicationCreate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { applied_date: "2024-01-15T09:30:00Z", applied_amount: "applied_amount" }; + const rawResponseBody = { + model: { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + number: "6", + transaction_date: "2020-03-31T00:00:00Z", + vendor: "vendor", + total_amount: 10000, + currency: "XUA", + exchange_rate: "2.9", + inclusive_of_tax: true, + company: "company", + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121222", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + net_amount: 25.54, + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + description: "Gifted Merge Credit", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + contact: "908934-49j9-093f-0989-908923908", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchange_rate: "2.9", + remote_was_deleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remote_id: "121223", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + net_amount: 10, + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + description: "Refund for overpayment", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchange_rate: "2.9", + }, + ], + tracking_categories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + applied_to_lines: [ + { + remote_id: "088899", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + applied_date: "2020-03-31T00:00:00Z", + applied_amount: "2.9", + }, + ], + remote_was_deleted: true, + accounting_period: "accounting_period", + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/accounting/v1/vendor-credits/id/application") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.vendorCredits.applicationCreate("id", { + isDebugMode: true, + runAsync: true, + appliedDate: new Date("2024-01-15T09:30:00.000Z"), + appliedAmount: "applied_amount", + }); + expect(response).toEqual({ + model: { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + number: "6", + transactionDate: new Date("2020-03-31T00:00:00.000Z"), + vendor: "vendor", + totalAmount: 10000, + currency: "XUA", + exchangeRate: "2.9", + inclusiveOfTax: true, + company: "company", + lines: [ + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121222", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + netAmount: 25.54, + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + description: "Gifted Merge Credit", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + project: "22e65a5d-2df5-4e6e-884a-e538d0339000", + contact: "908934-49j9-093f-0989-908923908", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchangeRate: "2.9", + remoteWasDeleted: false, + }, + { + id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", + remoteId: "121223", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + netAmount: 10, + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + description: "Refund for overpayment", + account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", + company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", + taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", + exchangeRate: "2.9", + }, + ], + trackingCategories: [ + "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", + "9b840d2-686a-465a-8a8e-7b028498f8e4", + "a47e11b6-c73b-4a0c-be31-130fc48177fa", + ], + appliedToLines: [ + { + remoteId: "088899", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", + appliedDate: new Date("2020-03-31T00:00:00.000Z"), + appliedAmount: "2.9", + }, + ], + remoteWasDeleted: true, + accountingPeriod: "accounting_period", + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("metaPatchRetrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + request_schema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + email_address_type: { type: "string", title: "email_address_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + url_type: { type: "string", title: "url_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { type: "string", title: "first_name", description: "The first name." }, + last_name: { type: "string", title: "last_name", description: "The last name." }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + phone_number_type: { type: "string", title: "phone_number_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { type: "string", title: "id" }, + file_url: { type: "string", title: "file_url" }, + file_name: { type: "string", title: "file_name" }, + attachment_type: { type: "string", title: "attachment_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { value: "HRIS", description: "Merge HRIS Category" }, + { value: "ATS", description: "Merge ATS Category" }, + { value: "Accounting", description: "Merge Accounting Category" }, + { value: "Ticketing", description: "Merge Ticketing Category" }, + { value: "File Storage", description: "Merge File Storage Category" }, + { value: "CRM", description: "Merge CRM Category" }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remote_field_classes: { key: "value" }, + status: { linked_account_status: "linked_account_status", can_make_request: true }, + has_conditional_params: true, + has_required_linked_account_params: true, + }; + server + .mockEndpoint() + .get("/accounting/v1/vendor-credits/meta/patch/id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.vendorCredits.metaPatchRetrieve("id"); + expect(response).toEqual({ + requestSchema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + email_address_type: { + type: "string", + title: "email_address_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + url_type: { + type: "string", + title: "url_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { + type: "string", + title: "first_name", + description: "The first name.", + }, + last_name: { + type: "string", + title: "last_name", + description: "The last name.", + }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + phone_number_type: { + type: "string", + title: "phone_number_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { + type: "string", + title: "id", + }, + file_url: { + type: "string", + title: "file_url", + }, + file_name: { + type: "string", + title: "file_name", + }, + attachment_type: { + type: "string", + title: "attachment_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { + value: "HRIS", + description: "Merge HRIS Category", + }, + { + value: "ATS", + description: "Merge ATS Category", + }, + { + value: "Accounting", + description: "Merge Accounting Category", + }, + { + value: "Ticketing", + description: "Merge Ticketing Category", + }, + { + value: "File Storage", + description: "Merge File Storage Category", + }, + { + value: "CRM", + description: "Merge CRM Category", + }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remoteFieldClasses: { + key: "value", + }, + status: { + linkedAccountStatus: "linked_account_status", + canMakeRequest: true, + }, + hasConditionalParams: true, + hasRequiredLinkedAccountParams: true, + }); + }); + + test("metaPostRetrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + request_schema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + email_address_type: { type: "string", title: "email_address_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + url_type: { type: "string", title: "url_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { type: "string", title: "first_name", description: "The first name." }, + last_name: { type: "string", title: "last_name", description: "The last name." }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + phone_number_type: { type: "string", title: "phone_number_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { type: "string", title: "id" }, + file_url: { type: "string", title: "file_url" }, + file_name: { type: "string", title: "file_name" }, + attachment_type: { type: "string", title: "attachment_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { value: "HRIS", description: "Merge HRIS Category" }, + { value: "ATS", description: "Merge ATS Category" }, + { value: "Accounting", description: "Merge Accounting Category" }, + { value: "Ticketing", description: "Merge Ticketing Category" }, + { value: "File Storage", description: "Merge File Storage Category" }, + { value: "CRM", description: "Merge CRM Category" }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remote_field_classes: { key: "value" }, + status: { linked_account_status: "linked_account_status", can_make_request: true }, + has_conditional_params: true, + has_required_linked_account_params: true, + }; + server + .mockEndpoint() + .get("/accounting/v1/vendor-credits/meta/post") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.accounting.vendorCredits.metaPostRetrieve(); + expect(response).toEqual({ + requestSchema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + email_address_type: { + type: "string", + title: "email_address_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + url_type: { + type: "string", + title: "url_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { + type: "string", + title: "first_name", + description: "The first name.", + }, + last_name: { + type: "string", + title: "last_name", + description: "The last name.", + }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + phone_number_type: { + type: "string", + title: "phone_number_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { + type: "string", + title: "id", + }, + file_url: { + type: "string", + title: "file_url", + }, + file_name: { + type: "string", + title: "file_name", + }, + attachment_type: { + type: "string", + title: "attachment_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { + value: "HRIS", + description: "Merge HRIS Category", + }, + { + value: "ATS", + description: "Merge ATS Category", + }, + { + value: "Accounting", + description: "Merge Accounting Category", + }, + { + value: "Ticketing", + description: "Merge Ticketing Category", + }, + { + value: "File Storage", + description: "Merge File Storage Category", + }, + { + value: "CRM", + description: "Merge CRM Category", + }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remoteFieldClasses: { + key: "value", + }, + status: { + linkedAccountStatus: "linked_account_status", + canMakeRequest: true, + }, + hasConditionalParams: true, + hasRequiredLinkedAccountParams: true, + }); + }); +}); diff --git a/tests/wire/accounting/webhookReceivers.test.ts b/tests/wire/Accounting/webhookReceivers.test.ts similarity index 100% rename from tests/wire/accounting/webhookReceivers.test.ts rename to tests/wire/Accounting/webhookReceivers.test.ts diff --git a/tests/wire/crm/accountDetails.test.ts b/tests/wire/CRM/accountDetails.test.ts similarity index 100% rename from tests/wire/crm/accountDetails.test.ts rename to tests/wire/CRM/accountDetails.test.ts diff --git a/tests/wire/CRM/accountToken.test.ts b/tests/wire/CRM/accountToken.test.ts new file mode 100644 index 000000000..2ab2b09f1 --- /dev/null +++ b/tests/wire/CRM/accountToken.test.ts @@ -0,0 +1,90 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("AccountTokenClient", () => { + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + account_token: "T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB", + integration: { + name: "name", + abbreviated_name: "abbreviated_name", + categories: ["hris"], + image: "image", + square_image: "square_image", + color: "color", + slug: "slug", + api_endpoints_to_documentation_urls: { key: "value" }, + webhook_setup_guide_url: "webhook_setup_guide_url", + category_beta_status: { key: "value" }, + }, + id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", + }; + server + .mockEndpoint() + .get("/crm/v1/account-token/public_token") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.crm.accountToken.retrieve("public_token"); + expect(response).toEqual({ + accountToken: "T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB", + integration: { + name: "name", + abbreviatedName: "abbreviated_name", + categories: ["hris"], + image: "image", + squareImage: "square_image", + color: "color", + slug: "slug", + apiEndpointsToDocumentationUrls: { + key: "value", + }, + webhookSetupGuideUrl: "webhook_setup_guide_url", + categoryBetaStatus: { + key: "value", + }, + }, + id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", + }); + }); + + test("regenerateCreate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + linked_account_id: "e59b1821-f85c-4e28-a6b3-1804156f3563", + account_token: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", + }; + server + .mockEndpoint() + .post("/crm/v1/account-token/regenerate") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.crm.accountToken.regenerateCreate(); + expect(response).toEqual({ + linkedAccountId: "e59b1821-f85c-4e28-a6b3-1804156f3563", + accountToken: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", + }); + }); +}); diff --git a/tests/wire/CRM/accounts.test.ts b/tests/wire/CRM/accounts.test.ts new file mode 100644 index 000000000..5c21e8292 --- /dev/null +++ b/tests/wire/CRM/accounts.test.ts @@ -0,0 +1,1567 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("AccountsClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "0958cbc6-6040-430a-848e-aafacbadf4ae", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + owner: "owner", + name: "Merge API", + description: "One API for all integrations", + industry: "API's", + website: "https://merge.dev/", + number_of_employees: 276000, + addresses: [ + { + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + street_1: "50 Bowling Green Dr", + street_2: "Golden Gate Park", + city: "San Francisco", + state: "CA", + postal_code: "94122", + country: "US", + address_type: "Shipping", + }, + ], + phone_numbers: [ + { + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + phone_number: "+16788879833", + phone_number_type: "Mobile", + }, + ], + last_activity_at: "2022-02-10T00:00:00Z", + remote_updated_at: "2022-01-09T00:00:00Z", + remote_created_at: "2021-11-10T00:00:00Z", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/accounts", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/crm/v1/accounts") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "0958cbc6-6040-430a-848e-aafacbadf4ae", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + owner: "owner", + name: "Merge API", + description: "One API for all integrations", + industry: "API's", + website: "https://merge.dev/", + numberOfEmployees: 276000, + addresses: [ + { + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + street1: "50 Bowling Green Dr", + street2: "Golden Gate Park", + city: "San Francisco", + state: "CA", + postalCode: "94122", + country: "US", + addressType: "Shipping", + }, + ], + phoneNumbers: [ + { + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + phoneNumber: "+16788879833", + phoneNumberType: "Mobile", + }, + ], + lastActivityAt: new Date("2022-02-10T00:00:00.000Z"), + remoteUpdatedAt: new Date("2022-01-09T00:00:00.000Z"), + remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/accounts", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + ], + }; + const page = await client.crm.accounts.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + ownerId: "owner_id", + pageSize: 1, + remoteId: "remote_id", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("create", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { model: {} }; + const rawResponseBody = { + model: { + id: "0958cbc6-6040-430a-848e-aafacbadf4ae", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + owner: "owner", + name: "Merge API", + description: "One API for all integrations", + industry: "API's", + website: "https://merge.dev/", + number_of_employees: 276000, + addresses: [ + { + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + street_1: "50 Bowling Green Dr", + street_2: "Golden Gate Park", + city: "San Francisco", + state: "CA", + postal_code: "94122", + country: "US", + address_type: "Shipping", + }, + ], + phone_numbers: [ + { + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + phone_number: "+16788879833", + phone_number_type: "Mobile", + }, + ], + last_activity_at: "2022-02-10T00:00:00Z", + remote_updated_at: "2022-01-09T00:00:00Z", + remote_created_at: "2021-11-10T00:00:00Z", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/accounts", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/crm/v1/accounts") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.crm.accounts.create({ + isDebugMode: true, + runAsync: true, + model: {}, + }); + expect(response).toEqual({ + model: { + id: "0958cbc6-6040-430a-848e-aafacbadf4ae", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + owner: "owner", + name: "Merge API", + description: "One API for all integrations", + industry: "API's", + website: "https://merge.dev/", + numberOfEmployees: 276000, + addresses: [ + { + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + street1: "50 Bowling Green Dr", + street2: "Golden Gate Park", + city: "San Francisco", + state: "CA", + postalCode: "94122", + country: "US", + addressType: "Shipping", + }, + ], + phoneNumbers: [ + { + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + phoneNumber: "+16788879833", + phoneNumberType: "Mobile", + }, + ], + lastActivityAt: new Date("2022-02-10T00:00:00.000Z"), + remoteUpdatedAt: new Date("2022-01-09T00:00:00.000Z"), + remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/accounts", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + id: "0958cbc6-6040-430a-848e-aafacbadf4ae", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + owner: "owner", + name: "Merge API", + description: "One API for all integrations", + industry: "API's", + website: "https://merge.dev/", + number_of_employees: 276000, + addresses: [ + { + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + street_1: "50 Bowling Green Dr", + street_2: "Golden Gate Park", + city: "San Francisco", + state: "CA", + postal_code: "94122", + country: "US", + address_type: "Shipping", + }, + ], + phone_numbers: [ + { + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + phone_number: "+16788879833", + phone_number_type: "Mobile", + }, + ], + last_activity_at: "2022-02-10T00:00:00Z", + remote_updated_at: "2022-01-09T00:00:00Z", + remote_created_at: "2021-11-10T00:00:00Z", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/accounts", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }; + server + .mockEndpoint() + .get("/crm/v1/accounts/id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.crm.accounts.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + }); + expect(response).toEqual({ + id: "0958cbc6-6040-430a-848e-aafacbadf4ae", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + owner: "owner", + name: "Merge API", + description: "One API for all integrations", + industry: "API's", + website: "https://merge.dev/", + numberOfEmployees: 276000, + addresses: [ + { + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + street1: "50 Bowling Green Dr", + street2: "Golden Gate Park", + city: "San Francisco", + state: "CA", + postalCode: "94122", + country: "US", + addressType: "Shipping", + }, + ], + phoneNumbers: [ + { + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + phoneNumber: "+16788879833", + phoneNumberType: "Mobile", + }, + ], + lastActivityAt: new Date("2022-02-10T00:00:00.000Z"), + remoteUpdatedAt: new Date("2022-01-09T00:00:00.000Z"), + remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/accounts", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }); + }); + + test("partialUpdate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { model: {} }; + const rawResponseBody = { + model: { + id: "0958cbc6-6040-430a-848e-aafacbadf4ae", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + owner: "owner", + name: "Merge API", + description: "One API for all integrations", + industry: "API's", + website: "https://merge.dev/", + number_of_employees: 276000, + addresses: [ + { + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + street_1: "50 Bowling Green Dr", + street_2: "Golden Gate Park", + city: "San Francisco", + state: "CA", + postal_code: "94122", + country: "US", + address_type: "Shipping", + }, + ], + phone_numbers: [ + { + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + phone_number: "+16788879833", + phone_number_type: "Mobile", + }, + ], + last_activity_at: "2022-02-10T00:00:00Z", + remote_updated_at: "2022-01-09T00:00:00Z", + remote_created_at: "2021-11-10T00:00:00Z", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/accounts", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .patch("/crm/v1/accounts/id") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.crm.accounts.partialUpdate("id", { + isDebugMode: true, + runAsync: true, + model: {}, + }); + expect(response).toEqual({ + model: { + id: "0958cbc6-6040-430a-848e-aafacbadf4ae", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + owner: "owner", + name: "Merge API", + description: "One API for all integrations", + industry: "API's", + website: "https://merge.dev/", + numberOfEmployees: 276000, + addresses: [ + { + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + street1: "50 Bowling Green Dr", + street2: "Golden Gate Park", + city: "San Francisco", + state: "CA", + postalCode: "94122", + country: "US", + addressType: "Shipping", + }, + ], + phoneNumbers: [ + { + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + phoneNumber: "+16788879833", + phoneNumberType: "Mobile", + }, + ], + lastActivityAt: new Date("2022-02-10T00:00:00.000Z"), + remoteUpdatedAt: new Date("2022-01-09T00:00:00.000Z"), + remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/accounts", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("metaPatchRetrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + request_schema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + email_address_type: { type: "string", title: "email_address_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + url_type: { type: "string", title: "url_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { type: "string", title: "first_name", description: "The first name." }, + last_name: { type: "string", title: "last_name", description: "The last name." }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + phone_number_type: { type: "string", title: "phone_number_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { type: "string", title: "id" }, + file_url: { type: "string", title: "file_url" }, + file_name: { type: "string", title: "file_name" }, + attachment_type: { type: "string", title: "attachment_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { value: "HRIS", description: "Merge HRIS Category" }, + { value: "ATS", description: "Merge ATS Category" }, + { value: "Accounting", description: "Merge Accounting Category" }, + { value: "Ticketing", description: "Merge Ticketing Category" }, + { value: "File Storage", description: "Merge File Storage Category" }, + { value: "CRM", description: "Merge CRM Category" }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remote_field_classes: { key: "value" }, + status: { linked_account_status: "linked_account_status", can_make_request: true }, + has_conditional_params: true, + has_required_linked_account_params: true, + }; + server + .mockEndpoint() + .get("/crm/v1/accounts/meta/patch/id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.crm.accounts.metaPatchRetrieve("id"); + expect(response).toEqual({ + requestSchema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + email_address_type: { + type: "string", + title: "email_address_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + url_type: { + type: "string", + title: "url_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { + type: "string", + title: "first_name", + description: "The first name.", + }, + last_name: { + type: "string", + title: "last_name", + description: "The last name.", + }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + phone_number_type: { + type: "string", + title: "phone_number_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { + type: "string", + title: "id", + }, + file_url: { + type: "string", + title: "file_url", + }, + file_name: { + type: "string", + title: "file_name", + }, + attachment_type: { + type: "string", + title: "attachment_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { + value: "HRIS", + description: "Merge HRIS Category", + }, + { + value: "ATS", + description: "Merge ATS Category", + }, + { + value: "Accounting", + description: "Merge Accounting Category", + }, + { + value: "Ticketing", + description: "Merge Ticketing Category", + }, + { + value: "File Storage", + description: "Merge File Storage Category", + }, + { + value: "CRM", + description: "Merge CRM Category", + }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remoteFieldClasses: { + key: "value", + }, + status: { + linkedAccountStatus: "linked_account_status", + canMakeRequest: true, + }, + hasConditionalParams: true, + hasRequiredLinkedAccountParams: true, + }); + }); + + test("metaPostRetrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + request_schema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + email_address_type: { type: "string", title: "email_address_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + url_type: { type: "string", title: "url_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { type: "string", title: "first_name", description: "The first name." }, + last_name: { type: "string", title: "last_name", description: "The last name." }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + phone_number_type: { type: "string", title: "phone_number_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { type: "string", title: "id" }, + file_url: { type: "string", title: "file_url" }, + file_name: { type: "string", title: "file_name" }, + attachment_type: { type: "string", title: "attachment_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { value: "HRIS", description: "Merge HRIS Category" }, + { value: "ATS", description: "Merge ATS Category" }, + { value: "Accounting", description: "Merge Accounting Category" }, + { value: "Ticketing", description: "Merge Ticketing Category" }, + { value: "File Storage", description: "Merge File Storage Category" }, + { value: "CRM", description: "Merge CRM Category" }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remote_field_classes: { key: "value" }, + status: { linked_account_status: "linked_account_status", can_make_request: true }, + has_conditional_params: true, + has_required_linked_account_params: true, + }; + server + .mockEndpoint() + .get("/crm/v1/accounts/meta/post") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.crm.accounts.metaPostRetrieve(); + expect(response).toEqual({ + requestSchema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + email_address_type: { + type: "string", + title: "email_address_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + url_type: { + type: "string", + title: "url_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { + type: "string", + title: "first_name", + description: "The first name.", + }, + last_name: { + type: "string", + title: "last_name", + description: "The last name.", + }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + phone_number_type: { + type: "string", + title: "phone_number_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { + type: "string", + title: "id", + }, + file_url: { + type: "string", + title: "file_url", + }, + file_name: { + type: "string", + title: "file_name", + }, + attachment_type: { + type: "string", + title: "attachment_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { + value: "HRIS", + description: "Merge HRIS Category", + }, + { + value: "ATS", + description: "Merge ATS Category", + }, + { + value: "Accounting", + description: "Merge Accounting Category", + }, + { + value: "Ticketing", + description: "Merge Ticketing Category", + }, + { + value: "File Storage", + description: "Merge File Storage Category", + }, + { + value: "CRM", + description: "Merge CRM Category", + }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remoteFieldClasses: { + key: "value", + }, + status: { + linkedAccountStatus: "linked_account_status", + canMakeRequest: true, + }, + hasConditionalParams: true, + hasRequiredLinkedAccountParams: true, + }); + }); + + test("remoteFieldClassesList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "id", + display_name: "display_name", + remote_key_name: "remote_key_name", + description: "description", + is_custom: true, + is_common_model_field: true, + is_required: true, + field_type: "string", + field_format: "string", + field_choices: [{}], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/crm/v1/accounts/remote-field-classes") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "id", + displayName: "display_name", + remoteKeyName: "remote_key_name", + description: "description", + isCustom: true, + isCommonModelField: true, + isRequired: true, + fieldType: "string", + fieldFormat: "string", + fieldChoices: [{}], + }, + ], + }; + const page = await client.crm.accounts.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1, + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); +}); diff --git a/tests/wire/crm/associationTypes.test.ts b/tests/wire/CRM/associationTypes.test.ts similarity index 98% rename from tests/wire/crm/associationTypes.test.ts rename to tests/wire/CRM/associationTypes.test.ts index 2dae7eefe..e60cd419a 100644 --- a/tests/wire/crm/associationTypes.test.ts +++ b/tests/wire/CRM/associationTypes.test.ts @@ -32,30 +32,14 @@ describe("AssociationTypesClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/crm/v1/custom-object-classes/custom_object_class_id/association-types") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.crm.associationTypes.customObjectClassesAssociationTypesList( - "custom_object_class_id", - { - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "target_object_classes", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }, - ); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -80,7 +64,27 @@ describe("AssociationTypesClient", () => { isRequired: true, }, ], - }); + }; + const page = await client.crm.associationTypes.customObjectClassesAssociationTypesList( + "custom_object_class_id", + { + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + }, + ); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("custom_object_classes_association_types_create", async () => { @@ -263,7 +267,6 @@ describe("AssociationTypesClient", () => { "custom_object_class_id", "id", { - expand: "target_object_classes", includeRemoteData: true, includeShellData: true, }, diff --git a/tests/wire/crm/associations.test.ts b/tests/wire/CRM/associations.test.ts similarity index 91% rename from tests/wire/crm/associations.test.ts rename to tests/wire/CRM/associations.test.ts index 58d2b8392..1297ac132 100644 --- a/tests/wire/crm/associations.test.ts +++ b/tests/wire/CRM/associations.test.ts @@ -27,14 +27,27 @@ describe("AssociationsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/crm/v1/custom-object-classes/custom_object_class_id/custom-objects/object_id/associations") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.crm.associations.customObjectClassesCustomObjectsAssociationsList( + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + sourceObject: "a8f5d29f-4e50-473f-8f12-27128ffcd37a", + targetObject: "da0b1963-be70-469c-9f8c-06a81d0fe759", + associationType: "association_type", + }, + ], + }; + const page = await client.crm.associations.customObjectClassesCustomObjectsAssociationsList( "custom_object_class_id", "object_id", { @@ -42,7 +55,6 @@ describe("AssociationsClient", () => { createdAfter: new Date("2024-01-15T09:30:00.000Z"), createdBefore: new Date("2024-01-15T09:30:00.000Z"), cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "association_type", includeDeletedData: true, includeRemoteData: true, includeShellData: true, @@ -52,19 +64,11 @@ describe("AssociationsClient", () => { remoteId: "remote_id", }, ); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - sourceObject: "a8f5d29f-4e50-473f-8f12-27128ffcd37a", - targetObject: "da0b1963-be70-469c-9f8c-06a81d0fe759", - associationType: "association_type", - }, - ], - }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("custom_object_classes_custom_objects_associations_update", async () => { diff --git a/tests/wire/crm/asyncPassthrough.test.ts b/tests/wire/CRM/asyncPassthrough.test.ts similarity index 100% rename from tests/wire/crm/asyncPassthrough.test.ts rename to tests/wire/CRM/asyncPassthrough.test.ts diff --git a/tests/wire/CRM/auditTrail.test.ts b/tests/wire/CRM/auditTrail.test.ts new file mode 100644 index 000000000..033448a4a --- /dev/null +++ b/tests/wire/CRM/auditTrail.test.ts @@ -0,0 +1,72 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("AuditTrailClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "b5ceea2a-7171-47ce-8090-165cfce5572c", + user_name: "Gil Feig", + user_email: "hello@merge.dev", + role: "ADMIN", + ip_address: "192.0.2.123", + event_type: "CREATED_REMOTE_PRODUCTION_API_KEY", + event_description: + "Organization-wide Scopes for model hris.Employee updated from Read to Read+Write", + created_at: "2024-01-15T09:30:00Z", + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/crm/v1/audit-trail") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "b5ceea2a-7171-47ce-8090-165cfce5572c", + userName: "Gil Feig", + userEmail: "hello@merge.dev", + role: "ADMIN", + ipAddress: "192.0.2.123", + eventType: "CREATED_REMOTE_PRODUCTION_API_KEY", + eventDescription: + "Organization-wide Scopes for model hris.Employee updated from Read to Read+Write", + createdAt: new Date("2024-01-15T09:30:00.000Z"), + }, + ], + }; + const page = await client.crm.auditTrail.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endDate: "end_date", + eventType: "event_type", + pageSize: 1, + startDate: "start_date", + userEmail: "user_email", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); +}); diff --git a/tests/wire/crm/availableActions.test.ts b/tests/wire/CRM/availableActions.test.ts similarity index 100% rename from tests/wire/crm/availableActions.test.ts rename to tests/wire/CRM/availableActions.test.ts diff --git a/tests/wire/CRM/contacts.test.ts b/tests/wire/CRM/contacts.test.ts new file mode 100644 index 000000000..07888e1bf --- /dev/null +++ b/tests/wire/CRM/contacts.test.ts @@ -0,0 +1,1632 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("ContactsClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "550e8400-e29b-41d4-a716-446655440000", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + first_name: "Gil", + last_name: "Feig", + account: "account", + owner: "owner", + addresses: [ + { + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + street_1: "50 Bowling Green Dr", + street_2: "Golden Gate Park", + city: "San Francisco", + state: "CA", + postal_code: "94122", + country: "US", + address_type: "Shipping", + }, + ], + email_addresses: [ + { + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + email_address: "hello@merge.dev", + email_address_type: "Work", + }, + ], + phone_numbers: [ + { + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + phone_number: "+13785579223", + phone_number_type: "Mobile", + }, + ], + last_activity_at: "2022-02-10T00:00:00Z", + remote_created_at: "2021-11-10T00:00:00Z", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/contacts", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/crm/v1/contacts") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "550e8400-e29b-41d4-a716-446655440000", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + firstName: "Gil", + lastName: "Feig", + account: "account", + owner: "owner", + addresses: [ + { + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + street1: "50 Bowling Green Dr", + street2: "Golden Gate Park", + city: "San Francisco", + state: "CA", + postalCode: "94122", + country: "US", + addressType: "Shipping", + }, + ], + emailAddresses: [ + { + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + emailAddress: "hello@merge.dev", + emailAddressType: "Work", + }, + ], + phoneNumbers: [ + { + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + phoneNumber: "+13785579223", + phoneNumberType: "Mobile", + }, + ], + lastActivityAt: new Date("2022-02-10T00:00:00.000Z"), + remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/contacts", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + ], + }; + const page = await client.crm.contacts.list({ + accountId: "account_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + emailAddresses: "email_addresses", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + phoneNumbers: "phone_numbers", + remoteId: "remote_id", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("create", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { model: {} }; + const rawResponseBody = { + model: { + id: "550e8400-e29b-41d4-a716-446655440000", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + first_name: "Gil", + last_name: "Feig", + account: "account", + owner: "owner", + addresses: [ + { + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + street_1: "50 Bowling Green Dr", + street_2: "Golden Gate Park", + city: "San Francisco", + state: "CA", + postal_code: "94122", + country: "US", + address_type: "Shipping", + }, + ], + email_addresses: [ + { + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + email_address: "hello@merge.dev", + email_address_type: "Work", + }, + ], + phone_numbers: [ + { + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + phone_number: "+13785579223", + phone_number_type: "Mobile", + }, + ], + last_activity_at: "2022-02-10T00:00:00Z", + remote_created_at: "2021-11-10T00:00:00Z", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/contacts", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/crm/v1/contacts") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.crm.contacts.create({ + isDebugMode: true, + runAsync: true, + model: {}, + }); + expect(response).toEqual({ + model: { + id: "550e8400-e29b-41d4-a716-446655440000", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + firstName: "Gil", + lastName: "Feig", + account: "account", + owner: "owner", + addresses: [ + { + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + street1: "50 Bowling Green Dr", + street2: "Golden Gate Park", + city: "San Francisco", + state: "CA", + postalCode: "94122", + country: "US", + addressType: "Shipping", + }, + ], + emailAddresses: [ + { + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + emailAddress: "hello@merge.dev", + emailAddressType: "Work", + }, + ], + phoneNumbers: [ + { + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + phoneNumber: "+13785579223", + phoneNumberType: "Mobile", + }, + ], + lastActivityAt: new Date("2022-02-10T00:00:00.000Z"), + remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/contacts", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + id: "550e8400-e29b-41d4-a716-446655440000", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + first_name: "Gil", + last_name: "Feig", + account: "account", + owner: "owner", + addresses: [ + { + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + street_1: "50 Bowling Green Dr", + street_2: "Golden Gate Park", + city: "San Francisco", + state: "CA", + postal_code: "94122", + country: "US", + address_type: "Shipping", + }, + ], + email_addresses: [ + { + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + email_address: "hello@merge.dev", + email_address_type: "Work", + }, + ], + phone_numbers: [ + { + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + phone_number: "+13785579223", + phone_number_type: "Mobile", + }, + ], + last_activity_at: "2022-02-10T00:00:00Z", + remote_created_at: "2021-11-10T00:00:00Z", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/contacts", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }; + server + .mockEndpoint() + .get("/crm/v1/contacts/id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.crm.contacts.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + }); + expect(response).toEqual({ + id: "550e8400-e29b-41d4-a716-446655440000", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + firstName: "Gil", + lastName: "Feig", + account: "account", + owner: "owner", + addresses: [ + { + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + street1: "50 Bowling Green Dr", + street2: "Golden Gate Park", + city: "San Francisco", + state: "CA", + postalCode: "94122", + country: "US", + addressType: "Shipping", + }, + ], + emailAddresses: [ + { + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + emailAddress: "hello@merge.dev", + emailAddressType: "Work", + }, + ], + phoneNumbers: [ + { + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + phoneNumber: "+13785579223", + phoneNumberType: "Mobile", + }, + ], + lastActivityAt: new Date("2022-02-10T00:00:00.000Z"), + remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/contacts", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }); + }); + + test("partialUpdate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { model: {} }; + const rawResponseBody = { + model: { + id: "550e8400-e29b-41d4-a716-446655440000", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + first_name: "Gil", + last_name: "Feig", + account: "account", + owner: "owner", + addresses: [ + { + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + street_1: "50 Bowling Green Dr", + street_2: "Golden Gate Park", + city: "San Francisco", + state: "CA", + postal_code: "94122", + country: "US", + address_type: "Shipping", + }, + ], + email_addresses: [ + { + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + email_address: "hello@merge.dev", + email_address_type: "Work", + }, + ], + phone_numbers: [ + { + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + phone_number: "+13785579223", + phone_number_type: "Mobile", + }, + ], + last_activity_at: "2022-02-10T00:00:00Z", + remote_created_at: "2021-11-10T00:00:00Z", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/contacts", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .patch("/crm/v1/contacts/id") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.crm.contacts.partialUpdate("id", { + isDebugMode: true, + runAsync: true, + model: {}, + }); + expect(response).toEqual({ + model: { + id: "550e8400-e29b-41d4-a716-446655440000", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + firstName: "Gil", + lastName: "Feig", + account: "account", + owner: "owner", + addresses: [ + { + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + street1: "50 Bowling Green Dr", + street2: "Golden Gate Park", + city: "San Francisco", + state: "CA", + postalCode: "94122", + country: "US", + addressType: "Shipping", + }, + ], + emailAddresses: [ + { + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + emailAddress: "hello@merge.dev", + emailAddressType: "Work", + }, + ], + phoneNumbers: [ + { + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + phoneNumber: "+13785579223", + phoneNumberType: "Mobile", + }, + ], + lastActivityAt: new Date("2022-02-10T00:00:00.000Z"), + remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/contacts", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("ignoreCreate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { reason: "GENERAL_CUSTOMER_REQUEST" }; + + server + .mockEndpoint() + .post("/crm/v1/contacts/ignore/model_id") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .build(); + + const response = await client.crm.contacts.ignoreCreate("model_id", { + reason: "GENERAL_CUSTOMER_REQUEST", + }); + expect(response).toEqual(undefined); + }); + + test("metaPatchRetrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + request_schema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + email_address_type: { type: "string", title: "email_address_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + url_type: { type: "string", title: "url_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { type: "string", title: "first_name", description: "The first name." }, + last_name: { type: "string", title: "last_name", description: "The last name." }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + phone_number_type: { type: "string", title: "phone_number_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { type: "string", title: "id" }, + file_url: { type: "string", title: "file_url" }, + file_name: { type: "string", title: "file_name" }, + attachment_type: { type: "string", title: "attachment_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { value: "HRIS", description: "Merge HRIS Category" }, + { value: "ATS", description: "Merge ATS Category" }, + { value: "Accounting", description: "Merge Accounting Category" }, + { value: "Ticketing", description: "Merge Ticketing Category" }, + { value: "File Storage", description: "Merge File Storage Category" }, + { value: "CRM", description: "Merge CRM Category" }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remote_field_classes: { key: "value" }, + status: { linked_account_status: "linked_account_status", can_make_request: true }, + has_conditional_params: true, + has_required_linked_account_params: true, + }; + server + .mockEndpoint() + .get("/crm/v1/contacts/meta/patch/id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.crm.contacts.metaPatchRetrieve("id"); + expect(response).toEqual({ + requestSchema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + email_address_type: { + type: "string", + title: "email_address_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + url_type: { + type: "string", + title: "url_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { + type: "string", + title: "first_name", + description: "The first name.", + }, + last_name: { + type: "string", + title: "last_name", + description: "The last name.", + }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + phone_number_type: { + type: "string", + title: "phone_number_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { + type: "string", + title: "id", + }, + file_url: { + type: "string", + title: "file_url", + }, + file_name: { + type: "string", + title: "file_name", + }, + attachment_type: { + type: "string", + title: "attachment_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { + value: "HRIS", + description: "Merge HRIS Category", + }, + { + value: "ATS", + description: "Merge ATS Category", + }, + { + value: "Accounting", + description: "Merge Accounting Category", + }, + { + value: "Ticketing", + description: "Merge Ticketing Category", + }, + { + value: "File Storage", + description: "Merge File Storage Category", + }, + { + value: "CRM", + description: "Merge CRM Category", + }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remoteFieldClasses: { + key: "value", + }, + status: { + linkedAccountStatus: "linked_account_status", + canMakeRequest: true, + }, + hasConditionalParams: true, + hasRequiredLinkedAccountParams: true, + }); + }); + + test("metaPostRetrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + request_schema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + email_address_type: { type: "string", title: "email_address_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + url_type: { type: "string", title: "url_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { type: "string", title: "first_name", description: "The first name." }, + last_name: { type: "string", title: "last_name", description: "The last name." }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + phone_number_type: { type: "string", title: "phone_number_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { type: "string", title: "id" }, + file_url: { type: "string", title: "file_url" }, + file_name: { type: "string", title: "file_name" }, + attachment_type: { type: "string", title: "attachment_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { value: "HRIS", description: "Merge HRIS Category" }, + { value: "ATS", description: "Merge ATS Category" }, + { value: "Accounting", description: "Merge Accounting Category" }, + { value: "Ticketing", description: "Merge Ticketing Category" }, + { value: "File Storage", description: "Merge File Storage Category" }, + { value: "CRM", description: "Merge CRM Category" }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remote_field_classes: { key: "value" }, + status: { linked_account_status: "linked_account_status", can_make_request: true }, + has_conditional_params: true, + has_required_linked_account_params: true, + }; + server + .mockEndpoint() + .get("/crm/v1/contacts/meta/post") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.crm.contacts.metaPostRetrieve(); + expect(response).toEqual({ + requestSchema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + email_address_type: { + type: "string", + title: "email_address_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + url_type: { + type: "string", + title: "url_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { + type: "string", + title: "first_name", + description: "The first name.", + }, + last_name: { + type: "string", + title: "last_name", + description: "The last name.", + }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + phone_number_type: { + type: "string", + title: "phone_number_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { + type: "string", + title: "id", + }, + file_url: { + type: "string", + title: "file_url", + }, + file_name: { + type: "string", + title: "file_name", + }, + attachment_type: { + type: "string", + title: "attachment_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { + value: "HRIS", + description: "Merge HRIS Category", + }, + { + value: "ATS", + description: "Merge ATS Category", + }, + { + value: "Accounting", + description: "Merge Accounting Category", + }, + { + value: "Ticketing", + description: "Merge Ticketing Category", + }, + { + value: "File Storage", + description: "Merge File Storage Category", + }, + { + value: "CRM", + description: "Merge CRM Category", + }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remoteFieldClasses: { + key: "value", + }, + status: { + linkedAccountStatus: "linked_account_status", + canMakeRequest: true, + }, + hasConditionalParams: true, + hasRequiredLinkedAccountParams: true, + }); + }); + + test("remoteFieldClassesList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "id", + display_name: "display_name", + remote_key_name: "remote_key_name", + description: "description", + is_custom: true, + is_common_model_field: true, + is_required: true, + field_type: "string", + field_format: "string", + field_choices: [{}], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/crm/v1/contacts/remote-field-classes") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "id", + displayName: "display_name", + remoteKeyName: "remote_key_name", + description: "description", + isCustom: true, + isCommonModelField: true, + isRequired: true, + fieldType: "string", + fieldFormat: "string", + fieldChoices: [{}], + }, + ], + }; + const page = await client.crm.contacts.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1, + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); +}); diff --git a/tests/wire/crm/customObjectClasses.test.ts b/tests/wire/CRM/customObjectClasses.test.ts similarity index 96% rename from tests/wire/crm/customObjectClasses.test.ts rename to tests/wire/CRM/customObjectClasses.test.ts index d319575ba..5bb8636f0 100644 --- a/tests/wire/crm/customObjectClasses.test.ts +++ b/tests/wire/CRM/customObjectClasses.test.ts @@ -61,27 +61,14 @@ describe("CustomObjectClassesClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/crm/v1/custom-object-classes") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.crm.customObjectClasses.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "fields", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -134,7 +121,24 @@ describe("CustomObjectClassesClient", () => { ], }, ], + }; + const page = await client.crm.customObjectClasses.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { @@ -202,7 +206,6 @@ describe("CustomObjectClassesClient", () => { .build(); const response = await client.crm.customObjectClasses.retrieve("id", { - expand: "fields", includeRemoteData: true, includeShellData: true, }); diff --git a/tests/wire/crm/customObjects.test.ts b/tests/wire/CRM/customObjects.test.ts similarity index 97% rename from tests/wire/crm/customObjects.test.ts rename to tests/wire/CRM/customObjects.test.ts index 9796e03a0..7825a3135 100644 --- a/tests/wire/crm/customObjects.test.ts +++ b/tests/wire/CRM/customObjects.test.ts @@ -29,27 +29,14 @@ describe("CustomObjectsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/crm/v1/custom-object-classes/custom_object_class_id/custom-objects") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.crm.customObjects.customObjectClassesCustomObjectsList("custom_object_class_id", { - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -72,7 +59,25 @@ describe("CustomObjectsClient", () => { ], }, ], + }; + const page = await client.crm.customObjects.customObjectClassesCustomObjectsList("custom_object_class_id", { + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("custom_object_classes_custom_objects_create", async () => { @@ -701,24 +706,14 @@ describe("CustomObjectsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/crm/v1/custom-object-classes/custom-objects/remote-field-classes") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -735,6 +730,21 @@ describe("CustomObjectsClient", () => { fieldChoices: [{}], }, ], + }; + const page = await client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1, }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); }); diff --git a/tests/wire/crm/deleteAccount.test.ts b/tests/wire/CRM/deleteAccount.test.ts similarity index 100% rename from tests/wire/crm/deleteAccount.test.ts rename to tests/wire/CRM/deleteAccount.test.ts diff --git a/tests/wire/crm/engagementTypes.test.ts b/tests/wire/CRM/engagementTypes.test.ts similarity index 90% rename from tests/wire/crm/engagementTypes.test.ts rename to tests/wire/CRM/engagementTypes.test.ts index 61f296094..863e85cd4 100644 --- a/tests/wire/crm/engagementTypes.test.ts +++ b/tests/wire/CRM/engagementTypes.test.ts @@ -29,27 +29,14 @@ describe("EngagementTypesClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/crm/v1/engagement-types") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.crm.engagementTypes.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -68,7 +55,25 @@ describe("EngagementTypesClient", () => { ], }, ], + }; + const page = await client.crm.engagementTypes.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { @@ -146,24 +151,14 @@ describe("EngagementTypesClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/crm/v1/engagement-types/remote-field-classes") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.crm.engagementTypes.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -180,6 +175,21 @@ describe("EngagementTypesClient", () => { fieldChoices: [{}], }, ], + }; + const page = await client.crm.engagementTypes.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1, }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); }); diff --git a/tests/wire/crm/engagements.test.ts b/tests/wire/CRM/engagements.test.ts similarity index 98% rename from tests/wire/crm/engagements.test.ts rename to tests/wire/CRM/engagements.test.ts index 906513dda..1df9dbc0a 100644 --- a/tests/wire/crm/engagements.test.ts +++ b/tests/wire/CRM/engagements.test.ts @@ -42,30 +42,14 @@ describe("EngagementsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/crm/v1/engagements") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.crm.engagements.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "account", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - startedAfter: new Date("2024-01-15T09:30:00.000Z"), - startedBefore: new Date("2024-01-15T09:30:00.000Z"), - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -106,7 +90,27 @@ describe("EngagementsClient", () => { ], }, ], + }; + const page = await client.crm.engagements.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + startedAfter: new Date("2024-01-15T09:30:00.000Z"), + startedBefore: new Date("2024-01-15T09:30:00.000Z"), }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("create", async () => { @@ -294,7 +298,6 @@ describe("EngagementsClient", () => { .build(); const response = await client.crm.engagements.retrieve("id", { - expand: "account", includeRemoteData: true, includeRemoteFields: true, includeShellData: true, @@ -1352,24 +1355,14 @@ describe("EngagementsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/crm/v1/engagements/remote-field-classes") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.crm.engagements.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -1386,6 +1379,21 @@ describe("EngagementsClient", () => { fieldChoices: [{}], }, ], + }; + const page = await client.crm.engagements.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1, }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); }); diff --git a/tests/wire/CRM/fieldMapping.test.ts b/tests/wire/CRM/fieldMapping.test.ts new file mode 100644 index 000000000..f47abf216 --- /dev/null +++ b/tests/wire/CRM/fieldMapping.test.ts @@ -0,0 +1,1279 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("FieldMappingClient", () => { + test("field_mappings_retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + Account: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Contact: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Lead: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Note: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Opportunity: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Stage: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + User: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Task: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Engagement: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + }; + server + .mockEndpoint() + .get("/crm/v1/field-mappings") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.crm.fieldMapping.fieldMappingsRetrieve({ + excludeRemoteFieldMetadata: true, + }); + expect(response).toEqual({ + account: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + contact: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + lead: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + note: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + opportunity: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + stage: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + user: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + task: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + engagement: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + }); + }); + + test("field_mappings_create", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { + target_field_name: "example_target_field_name", + target_field_description: "this is a example description of the target field", + remote_field_traversal_path: ["example_remote_field"], + remote_method: "GET", + remote_url_path: "/example-url-path", + common_model_name: "ExampleCommonModel", + }; + const rawResponseBody = { + model: { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/crm/v1/field-mappings") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.crm.fieldMapping.fieldMappingsCreate({ + excludeRemoteFieldMetadata: true, + remoteDataIterationCount: 1, + targetFieldName: "example_target_field_name", + targetFieldDescription: "this is a example description of the target field", + remoteFieldTraversalPath: ["example_remote_field"], + remoteMethod: "GET", + remoteUrlPath: "/example-url-path", + commonModelName: "ExampleCommonModel", + }); + expect(response).toEqual({ + model: { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("field_mappings_destroy", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + model: { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .delete("/crm/v1/field-mappings/field_mapping_id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.crm.fieldMapping.fieldMappingsDestroy("field_mapping_id"); + expect(response).toEqual({ + model: { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("field_mappings_partial_update", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = {}; + const rawResponseBody = { + model: { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .patch("/crm/v1/field-mappings/field_mapping_id") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.crm.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { + remoteDataIterationCount: 1, + }); + expect(response).toEqual({ + model: { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("remote_fields_retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + Account: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Contact: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Lead: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Note: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Opportunity: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Stage: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + User: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Task: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Engagement: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + }; + server + .mockEndpoint() + .get("/crm/v1/remote-fields") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.crm.fieldMapping.remoteFieldsRetrieve({ + commonModels: "common_models", + includeExampleValues: "include_example_values", + }); + expect(response).toEqual({ + account: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + contact: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + lead: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + note: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + opportunity: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + stage: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + user: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + task: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + engagement: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + }); + }); + + test("target_fields_retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + Account: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Contact: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Lead: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Note: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Opportunity: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Stage: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + User: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Task: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Engagement: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + }; + server + .mockEndpoint() + .get("/crm/v1/target-fields") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.crm.fieldMapping.targetFieldsRetrieve(); + expect(response).toEqual({ + account: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + contact: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + lead: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + note: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + opportunity: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + stage: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + user: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + task: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + engagement: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + }); + }); +}); diff --git a/tests/wire/crm/forceResync.test.ts b/tests/wire/CRM/forceResync.test.ts similarity index 100% rename from tests/wire/crm/forceResync.test.ts rename to tests/wire/CRM/forceResync.test.ts diff --git a/tests/wire/crm/generateKey.test.ts b/tests/wire/CRM/generateKey.test.ts similarity index 100% rename from tests/wire/crm/generateKey.test.ts rename to tests/wire/CRM/generateKey.test.ts diff --git a/tests/wire/CRM/issues.test.ts b/tests/wire/CRM/issues.test.ts new file mode 100644 index 000000000..f9c2cff88 --- /dev/null +++ b/tests/wire/CRM/issues.test.ts @@ -0,0 +1,116 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("IssuesClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + status: "ONGOING", + error_description: "Missing Permissions", + end_user: { key: "value" }, + first_incident_time: "2022-12-05T16:19:15Z", + last_incident_time: "2022-12-05T16:19:15Z", + is_muted: true, + error_details: ["Missing employee permissions.", "Missing time off permissions."], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/crm/v1/issues") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + status: "ONGOING", + errorDescription: "Missing Permissions", + endUser: { + key: "value", + }, + firstIncidentTime: new Date("2022-12-05T16:19:15.000Z"), + lastIncidentTime: new Date("2022-12-05T16:19:15.000Z"), + isMuted: true, + errorDetails: ["Missing employee permissions.", "Missing time off permissions."], + }, + ], + }; + const page = await client.crm.issues.list({ + accountToken: "account_token", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endDate: "end_date", + endUserOrganizationName: "end_user_organization_name", + firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + includeMuted: "include_muted", + integrationName: "integration_name", + lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + linkedAccountId: "linked_account_id", + pageSize: 1, + startDate: "start_date", + status: "ONGOING", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + status: "ONGOING", + error_description: "Missing Permissions", + end_user: { key: "value" }, + first_incident_time: "2022-12-05T16:19:15Z", + last_incident_time: "2022-12-05T16:19:15Z", + is_muted: true, + error_details: ["Missing employee permissions.", "Missing time off permissions."], + }; + server.mockEndpoint().get("/crm/v1/issues/id").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + + const response = await client.crm.issues.retrieve("id"); + expect(response).toEqual({ + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + status: "ONGOING", + errorDescription: "Missing Permissions", + endUser: { + key: "value", + }, + firstIncidentTime: new Date("2022-12-05T16:19:15.000Z"), + lastIncidentTime: new Date("2022-12-05T16:19:15.000Z"), + isMuted: true, + errorDetails: ["Missing employee permissions.", "Missing time off permissions."], + }); + }); +}); diff --git a/tests/wire/crm/leads.test.ts b/tests/wire/CRM/leads.test.ts similarity index 97% rename from tests/wire/crm/leads.test.ts rename to tests/wire/CRM/leads.test.ts index 5815896aa..5205be352 100644 --- a/tests/wire/crm/leads.test.ts +++ b/tests/wire/CRM/leads.test.ts @@ -62,6 +62,7 @@ describe("LeadsClient", () => { converted_date: "2022-03-10T00:00:00Z", converted_contact: "converted_contact", converted_account: "converted_account", + status: "OPEN", remote_was_deleted: true, field_mappings: { organization_defined_targets: { custom_key: "custom_value" }, @@ -72,28 +73,15 @@ describe("LeadsClient", () => { }, ], }; - server.mockEndpoint().get("/crm/v1/leads").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + server + .mockEndpoint({ once: false }) + .get("/crm/v1/leads") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); - const response = await client.crm.leads.list({ - convertedAccountId: "converted_account_id", - convertedContactId: "converted_contact_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - emailAddresses: "email_addresses", - expand: "converted_account", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - ownerId: "owner_id", - pageSize: 1, - phoneNumbers: "phone_numbers", - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -142,6 +130,7 @@ describe("LeadsClient", () => { convertedDate: new Date("2022-03-10T00:00:00.000Z"), convertedContact: "converted_contact", convertedAccount: "converted_account", + status: "OPEN", remoteWasDeleted: true, fieldMappings: { organization_defined_targets: { @@ -165,7 +154,30 @@ describe("LeadsClient", () => { ], }, ], + }; + const page = await client.crm.leads.list({ + convertedAccountId: "converted_account_id", + convertedContactId: "converted_contact_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + emailAddresses: "email_addresses", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + ownerId: "owner_id", + pageSize: 1, + phoneNumbers: "phone_numbers", + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("create", async () => { @@ -223,6 +235,7 @@ describe("LeadsClient", () => { converted_date: "2022-03-10T00:00:00Z", converted_contact: "converted_contact", converted_account: "converted_account", + status: "OPEN", remote_was_deleted: true, field_mappings: { organization_defined_targets: { custom_key: "custom_value" }, @@ -319,6 +332,7 @@ describe("LeadsClient", () => { convertedDate: new Date("2022-03-10T00:00:00.000Z"), convertedContact: "converted_contact", convertedAccount: "converted_account", + status: "OPEN", remoteWasDeleted: true, fieldMappings: { organization_defined_targets: { @@ -429,6 +443,7 @@ describe("LeadsClient", () => { converted_date: "2022-03-10T00:00:00Z", converted_contact: "converted_contact", converted_account: "converted_account", + status: "OPEN", remote_was_deleted: true, field_mappings: { organization_defined_targets: { custom_key: "custom_value" }, @@ -440,7 +455,6 @@ describe("LeadsClient", () => { server.mockEndpoint().get("/crm/v1/leads/id").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); const response = await client.crm.leads.retrieve("id", { - expand: "converted_account", includeRemoteData: true, includeRemoteFields: true, includeShellData: true, @@ -490,6 +504,7 @@ describe("LeadsClient", () => { convertedDate: new Date("2022-03-10T00:00:00.000Z"), convertedContact: "converted_contact", convertedAccount: "converted_account", + status: "OPEN", remoteWasDeleted: true, fieldMappings: { organization_defined_targets: { @@ -963,24 +978,14 @@ describe("LeadsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/crm/v1/leads/remote-field-classes") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.crm.leads.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -997,6 +1002,21 @@ describe("LeadsClient", () => { fieldChoices: [{}], }, ], + }; + const page = await client.crm.leads.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1, }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); }); diff --git a/tests/wire/crm/linkToken.test.ts b/tests/wire/CRM/linkToken.test.ts similarity index 100% rename from tests/wire/crm/linkToken.test.ts rename to tests/wire/CRM/linkToken.test.ts diff --git a/tests/wire/CRM/linkedAccounts.test.ts b/tests/wire/CRM/linkedAccounts.test.ts new file mode 100644 index 000000000..c5215a0a3 --- /dev/null +++ b/tests/wire/CRM/linkedAccounts.test.ts @@ -0,0 +1,119 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("LinkedAccountsClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "e59b1821-f85c-4e28-a6b3-1804156f3563", + category: "hris", + status: "COMPLETE", + status_detail: "Invalid login credentials", + end_user_origin_id: "3ac95cde-6c7f-4eef-afec-be710b42308d", + end_user_organization_name: "Foo Bar, LLC", + end_user_email_address: "hradmin@foobar.dev", + subdomain: "foobar", + webhook_listener_url: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", + is_duplicate: true, + integration: { + name: "name", + categories: ["hris"], + color: "color", + slug: "slug", + passthrough_available: true, + available_model_operations: [ + { + model_name: "Candidate", + available_operations: ["FETCH", "CREATE"], + required_post_parameters: ["remote_user_id"], + supported_fields: ["first_name", "last_name", "company", "title"], + }, + ], + }, + account_type: "PRODUCTION", + completed_at: "2024-08-26T20:11:19Z", + integration_specific_fields: { integration_specific_field: "Varies by platform" }, + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/crm/v1/linked-accounts") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "e59b1821-f85c-4e28-a6b3-1804156f3563", + category: "hris", + status: "COMPLETE", + statusDetail: "Invalid login credentials", + endUserOriginId: "3ac95cde-6c7f-4eef-afec-be710b42308d", + endUserOrganizationName: "Foo Bar, LLC", + endUserEmailAddress: "hradmin@foobar.dev", + subdomain: "foobar", + webhookListenerUrl: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", + isDuplicate: true, + integration: { + name: "name", + categories: ["hris"], + color: "color", + slug: "slug", + passthroughAvailable: true, + availableModelOperations: [ + { + modelName: "Candidate", + availableOperations: ["FETCH", "CREATE"], + requiredPostParameters: ["remote_user_id"], + supportedFields: ["first_name", "last_name", "company", "title"], + }, + ], + }, + accountType: "PRODUCTION", + completedAt: new Date("2024-08-26T20:11:19.000Z"), + integrationSpecificFields: { + integration_specific_field: "Varies by platform", + }, + }, + ], + }; + const page = await client.crm.linkedAccounts.list({ + category: "accounting", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endUserEmailAddress: "end_user_email_address", + endUserOrganizationName: "end_user_organization_name", + endUserOriginId: "end_user_origin_id", + endUserOriginIds: "end_user_origin_ids", + id: "id", + ids: "ids", + includeDuplicates: true, + integrationName: "integration_name", + isTestAccount: "is_test_account", + pageSize: 1, + status: "status", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); +}); diff --git a/tests/wire/crm/notes.test.ts b/tests/wire/CRM/notes.test.ts similarity index 97% rename from tests/wire/crm/notes.test.ts rename to tests/wire/CRM/notes.test.ts index bb2f59fe5..80b5b83e0 100644 --- a/tests/wire/crm/notes.test.ts +++ b/tests/wire/CRM/notes.test.ts @@ -39,27 +39,15 @@ describe("NotesClient", () => { }, ], }; - server.mockEndpoint().get("/crm/v1/notes").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + server + .mockEndpoint({ once: false }) + .get("/crm/v1/notes") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); - const response = await client.crm.notes.list({ - accountId: "account_id", - contactId: "contact_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "account", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - opportunityId: "opportunity_id", - ownerId: "owner_id", - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -98,7 +86,29 @@ describe("NotesClient", () => { ], }, ], + }; + const page = await client.crm.notes.list({ + accountId: "account_id", + contactId: "contact_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + opportunityId: "opportunity_id", + ownerId: "owner_id", + pageSize: 1, + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("create", async () => { @@ -274,7 +284,6 @@ describe("NotesClient", () => { server.mockEndpoint().get("/crm/v1/notes/id").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); const response = await client.crm.notes.retrieve("id", { - expand: "account", includeRemoteData: true, includeRemoteFields: true, includeShellData: true, @@ -764,24 +773,14 @@ describe("NotesClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/crm/v1/notes/remote-field-classes") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.crm.notes.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -798,6 +797,21 @@ describe("NotesClient", () => { fieldChoices: [{}], }, ], + }; + const page = await client.crm.notes.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1, }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); }); diff --git a/tests/wire/crm/opportunities.test.ts b/tests/wire/CRM/opportunities.test.ts similarity index 98% rename from tests/wire/crm/opportunities.test.ts rename to tests/wire/CRM/opportunities.test.ts index 1fde575e3..3bd4d1360 100644 --- a/tests/wire/crm/opportunities.test.ts +++ b/tests/wire/CRM/opportunities.test.ts @@ -43,35 +43,14 @@ describe("OpportunitiesClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/crm/v1/opportunities") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.crm.opportunities.list({ - accountId: "account_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "account", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - ownerId: "owner_id", - pageSize: 1, - remoteCreatedAfter: new Date("2024-01-15T09:30:00.000Z"), - remoteFields: "status", - remoteId: "remote_id", - showEnumOrigins: "status", - stageId: "stage_id", - status: "LOST", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -113,7 +92,32 @@ describe("OpportunitiesClient", () => { ], }, ], + }; + const page = await client.crm.opportunities.list({ + accountId: "account_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + ownerId: "owner_id", + pageSize: 1, + remoteCreatedAfter: new Date("2024-01-15T09:30:00.000Z"), + remoteFields: "status", + remoteId: "remote_id", + showEnumOrigins: "status", + stageId: "stage_id", + status: "LOST", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("create", async () => { @@ -304,7 +308,6 @@ describe("OpportunitiesClient", () => { .build(); const response = await client.crm.opportunities.retrieve("id", { - expand: "account", includeRemoteData: true, includeRemoteFields: true, includeShellData: true, @@ -1367,24 +1370,14 @@ describe("OpportunitiesClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/crm/v1/opportunities/remote-field-classes") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.crm.opportunities.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -1401,6 +1394,21 @@ describe("OpportunitiesClient", () => { fieldChoices: [{}], }, ], + }; + const page = await client.crm.opportunities.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1, }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); }); diff --git a/tests/wire/crm/passthrough.test.ts b/tests/wire/CRM/passthrough.test.ts similarity index 100% rename from tests/wire/crm/passthrough.test.ts rename to tests/wire/CRM/passthrough.test.ts diff --git a/tests/wire/crm/regenerateKey.test.ts b/tests/wire/CRM/regenerateKey.test.ts similarity index 100% rename from tests/wire/crm/regenerateKey.test.ts rename to tests/wire/CRM/regenerateKey.test.ts diff --git a/tests/wire/crm/scopes.test.ts b/tests/wire/CRM/scopes.test.ts similarity index 100% rename from tests/wire/crm/scopes.test.ts rename to tests/wire/CRM/scopes.test.ts diff --git a/tests/wire/crm/stages.test.ts b/tests/wire/CRM/stages.test.ts similarity index 89% rename from tests/wire/crm/stages.test.ts rename to tests/wire/CRM/stages.test.ts index 48a3eaa75..e801bc3be 100644 --- a/tests/wire/crm/stages.test.ts +++ b/tests/wire/CRM/stages.test.ts @@ -33,22 +33,15 @@ describe("StagesClient", () => { }, ], }; - server.mockEndpoint().get("/crm/v1/stages").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + server + .mockEndpoint({ once: false }) + .get("/crm/v1/stages") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); - const response = await client.crm.stages.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -81,7 +74,25 @@ describe("StagesClient", () => { ], }, ], + }; + const page = await client.crm.stages.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { @@ -172,24 +183,14 @@ describe("StagesClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/crm/v1/stages/remote-field-classes") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.crm.stages.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -206,6 +207,21 @@ describe("StagesClient", () => { fieldChoices: [{}], }, ], + }; + const page = await client.crm.stages.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1, }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); }); diff --git a/tests/wire/CRM/syncStatus.test.ts b/tests/wire/CRM/syncStatus.test.ts new file mode 100644 index 000000000..c0aa8552e --- /dev/null +++ b/tests/wire/CRM/syncStatus.test.ts @@ -0,0 +1,68 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("SyncStatusClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + model_name: "Account", + model_id: "crm.Account", + last_sync_start: "2021-03-30T19:44:18Z", + next_sync_start: "2021-03-30T20:44:18Z", + last_sync_result: "SYNCING", + last_sync_finished: "2021-03-30T19:55:18Z", + status: "SYNCING", + is_initial_sync: true, + selective_sync_configurations_usage: "IN_NEXT_SYNC", + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/crm/v1/sync-status") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + modelName: "Account", + modelId: "crm.Account", + lastSyncStart: new Date("2021-03-30T19:44:18.000Z"), + nextSyncStart: new Date("2021-03-30T20:44:18.000Z"), + lastSyncResult: "SYNCING", + lastSyncFinished: new Date("2021-03-30T19:55:18.000Z"), + status: "SYNCING", + isInitialSync: true, + selectiveSyncConfigurationsUsage: "IN_NEXT_SYNC", + }, + ], + }; + const page = await client.crm.syncStatus.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + pageSize: 1, + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); +}); diff --git a/tests/wire/crm/tasks.test.ts b/tests/wire/CRM/tasks.test.ts similarity index 98% rename from tests/wire/crm/tasks.test.ts rename to tests/wire/CRM/tasks.test.ts index 0a16f7a9f..c1aa937b2 100644 --- a/tests/wire/crm/tasks.test.ts +++ b/tests/wire/CRM/tasks.test.ts @@ -27,6 +27,7 @@ describe("TasksClient", () => { owner: "owner", account: "account", opportunity: "opportunity", + contact: "contact", completed_date: "2022-02-11T00:00:00Z", due_date: "2022-02-10T00:00:00Z", status: "OPEN", @@ -40,23 +41,15 @@ describe("TasksClient", () => { }, ], }; - server.mockEndpoint().get("/crm/v1/tasks").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + server + .mockEndpoint({ once: false }) + .get("/crm/v1/tasks") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); - const response = await client.crm.tasks.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "account", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -70,6 +63,7 @@ describe("TasksClient", () => { owner: "owner", account: "account", opportunity: "opportunity", + contact: "contact", completedDate: new Date("2022-02-11T00:00:00.000Z"), dueDate: new Date("2022-02-10T00:00:00.000Z"), status: "OPEN", @@ -96,7 +90,25 @@ describe("TasksClient", () => { ], }, ], + }; + const page = await client.crm.tasks.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("create", async () => { @@ -119,6 +131,7 @@ describe("TasksClient", () => { owner: "owner", account: "account", opportunity: "opportunity", + contact: "contact", completed_date: "2022-02-11T00:00:00Z", due_date: "2022-02-10T00:00:00Z", status: "OPEN", @@ -183,6 +196,7 @@ describe("TasksClient", () => { owner: "owner", account: "account", opportunity: "opportunity", + contact: "contact", completedDate: new Date("2022-02-11T00:00:00.000Z"), dueDate: new Date("2022-02-10T00:00:00.000Z"), status: "OPEN", @@ -261,6 +275,7 @@ describe("TasksClient", () => { owner: "owner", account: "account", opportunity: "opportunity", + contact: "contact", completed_date: "2022-02-11T00:00:00Z", due_date: "2022-02-10T00:00:00Z", status: "OPEN", @@ -275,7 +290,6 @@ describe("TasksClient", () => { server.mockEndpoint().get("/crm/v1/tasks/id").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); const response = await client.crm.tasks.retrieve("id", { - expand: "account", includeRemoteData: true, includeRemoteFields: true, includeShellData: true, @@ -290,6 +304,7 @@ describe("TasksClient", () => { owner: "owner", account: "account", opportunity: "opportunity", + contact: "contact", completedDate: new Date("2022-02-11T00:00:00.000Z"), dueDate: new Date("2022-02-10T00:00:00.000Z"), status: "OPEN", @@ -337,6 +352,7 @@ describe("TasksClient", () => { owner: "owner", account: "account", opportunity: "opportunity", + contact: "contact", completed_date: "2022-02-11T00:00:00Z", due_date: "2022-02-10T00:00:00Z", status: "OPEN", @@ -401,6 +417,7 @@ describe("TasksClient", () => { owner: "owner", account: "account", opportunity: "opportunity", + contact: "contact", completedDate: new Date("2022-02-11T00:00:00.000Z"), dueDate: new Date("2022-02-10T00:00:00.000Z"), status: "OPEN", @@ -1330,24 +1347,14 @@ describe("TasksClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/crm/v1/tasks/remote-field-classes") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.crm.tasks.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -1364,6 +1371,21 @@ describe("TasksClient", () => { fieldChoices: [{}], }, ], + }; + const page = await client.crm.tasks.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1, }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); }); diff --git a/tests/wire/CRM/users.test.ts b/tests/wire/CRM/users.test.ts new file mode 100644 index 000000000..9cab50677 --- /dev/null +++ b/tests/wire/CRM/users.test.ts @@ -0,0 +1,260 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("UsersClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "0358cbc6-2040-430a-848e-aafacbadf3aa", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Gil Feig", + email: "merge_is_hiring@merge.dev", + is_active: true, + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/users", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/crm/v1/users") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "0358cbc6-2040-430a-848e-aafacbadf3aa", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Gil Feig", + email: "merge_is_hiring@merge.dev", + isActive: true, + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/users", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }, + ], + }; + const page = await client.crm.users.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + email: "email", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + id: "0358cbc6-2040-430a-848e-aafacbadf3aa", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Gil Feig", + email: "merge_is_hiring@merge.dev", + is_active: true, + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/users", data: ["Varies by platform"] }], + remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], + }; + server.mockEndpoint().get("/crm/v1/users/id").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + + const response = await client.crm.users.retrieve("id", { + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + }); + expect(response).toEqual({ + id: "0358cbc6-2040-430a-848e-aafacbadf3aa", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Gil Feig", + email: "merge_is_hiring@merge.dev", + isActive: true, + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/users", + data: ["Varies by platform"], + }, + ], + remoteFields: [ + { + remoteFieldClass: "remote_field_class", + value: "string", + }, + ], + }); + }); + + test("ignoreCreate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { reason: "GENERAL_CUSTOMER_REQUEST" }; + + server + .mockEndpoint() + .post("/crm/v1/users/ignore/model_id") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .build(); + + const response = await client.crm.users.ignoreCreate("model_id", { + reason: "GENERAL_CUSTOMER_REQUEST", + }); + expect(response).toEqual(undefined); + }); + + test("remoteFieldClassesList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "id", + display_name: "display_name", + remote_key_name: "remote_key_name", + description: "description", + is_custom: true, + is_common_model_field: true, + is_required: true, + field_type: "string", + field_format: "string", + field_choices: [{}], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/crm/v1/users/remote-field-classes") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "id", + displayName: "display_name", + remoteKeyName: "remote_key_name", + description: "description", + isCustom: true, + isCommonModelField: true, + isRequired: true, + fieldType: "string", + fieldFormat: "string", + fieldChoices: [{}], + }, + ], + }; + const page = await client.crm.users.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1, + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); +}); diff --git a/tests/wire/crm/webhookReceivers.test.ts b/tests/wire/CRM/webhookReceivers.test.ts similarity index 100% rename from tests/wire/crm/webhookReceivers.test.ts rename to tests/wire/CRM/webhookReceivers.test.ts diff --git a/tests/wire/hris/accountDetails.test.ts b/tests/wire/HRIS/accountDetails.test.ts similarity index 100% rename from tests/wire/hris/accountDetails.test.ts rename to tests/wire/HRIS/accountDetails.test.ts diff --git a/tests/wire/HRIS/accountToken.test.ts b/tests/wire/HRIS/accountToken.test.ts new file mode 100644 index 000000000..a0c0ce40a --- /dev/null +++ b/tests/wire/HRIS/accountToken.test.ts @@ -0,0 +1,90 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("AccountTokenClient", () => { + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + account_token: "T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB", + integration: { + name: "name", + abbreviated_name: "abbreviated_name", + categories: ["hris"], + image: "image", + square_image: "square_image", + color: "color", + slug: "slug", + api_endpoints_to_documentation_urls: { key: "value" }, + webhook_setup_guide_url: "webhook_setup_guide_url", + category_beta_status: { key: "value" }, + }, + id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", + }; + server + .mockEndpoint() + .get("/hris/v1/account-token/public_token") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.hris.accountToken.retrieve("public_token"); + expect(response).toEqual({ + accountToken: "T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB", + integration: { + name: "name", + abbreviatedName: "abbreviated_name", + categories: ["hris"], + image: "image", + squareImage: "square_image", + color: "color", + slug: "slug", + apiEndpointsToDocumentationUrls: { + key: "value", + }, + webhookSetupGuideUrl: "webhook_setup_guide_url", + categoryBetaStatus: { + key: "value", + }, + }, + id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", + }); + }); + + test("regenerateCreate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + linked_account_id: "e59b1821-f85c-4e28-a6b3-1804156f3563", + account_token: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", + }; + server + .mockEndpoint() + .post("/hris/v1/account-token/regenerate") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.hris.accountToken.regenerateCreate(); + expect(response).toEqual({ + linkedAccountId: "e59b1821-f85c-4e28-a6b3-1804156f3563", + accountToken: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", + }); + }); +}); diff --git a/tests/wire/hris/asyncPassthrough.test.ts b/tests/wire/HRIS/asyncPassthrough.test.ts similarity index 100% rename from tests/wire/hris/asyncPassthrough.test.ts rename to tests/wire/HRIS/asyncPassthrough.test.ts diff --git a/tests/wire/HRIS/auditTrail.test.ts b/tests/wire/HRIS/auditTrail.test.ts new file mode 100644 index 000000000..51eef444b --- /dev/null +++ b/tests/wire/HRIS/auditTrail.test.ts @@ -0,0 +1,72 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("AuditTrailClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "b5ceea2a-7171-47ce-8090-165cfce5572c", + user_name: "Gil Feig", + user_email: "hello@merge.dev", + role: "ADMIN", + ip_address: "192.0.2.123", + event_type: "CREATED_REMOTE_PRODUCTION_API_KEY", + event_description: + "Organization-wide Scopes for model hris.Employee updated from Read to Read+Write", + created_at: "2024-01-15T09:30:00Z", + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/hris/v1/audit-trail") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "b5ceea2a-7171-47ce-8090-165cfce5572c", + userName: "Gil Feig", + userEmail: "hello@merge.dev", + role: "ADMIN", + ipAddress: "192.0.2.123", + eventType: "CREATED_REMOTE_PRODUCTION_API_KEY", + eventDescription: + "Organization-wide Scopes for model hris.Employee updated from Read to Read+Write", + createdAt: new Date("2024-01-15T09:30:00.000Z"), + }, + ], + }; + const page = await client.hris.auditTrail.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endDate: "end_date", + eventType: "event_type", + pageSize: 1, + startDate: "start_date", + userEmail: "user_email", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); +}); diff --git a/tests/wire/hris/availableActions.test.ts b/tests/wire/HRIS/availableActions.test.ts similarity index 100% rename from tests/wire/hris/availableActions.test.ts rename to tests/wire/HRIS/availableActions.test.ts diff --git a/tests/wire/hris/bankInfo.test.ts b/tests/wire/HRIS/bankInfo.test.ts similarity index 92% rename from tests/wire/hris/bankInfo.test.ts rename to tests/wire/HRIS/bankInfo.test.ts index e8b363486..f7c3887e4 100644 --- a/tests/wire/hris/bankInfo.test.ts +++ b/tests/wire/HRIS/bankInfo.test.ts @@ -37,28 +37,15 @@ describe("BankInfoClient", () => { }, ], }; - server.mockEndpoint().get("/hris/v1/bank-info").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + server + .mockEndpoint({ once: false }) + .get("/hris/v1/bank-info") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); - const response = await client.hris.bankInfo.list({ - accountType: "CHECKING", - bankName: "bank_name", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employeeId: "employee_id", - expand: "employee", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - orderBy: "-remote_created_at", - pageSize: 1, - remoteFields: "account_type", - remoteId: "remote_id", - showEnumOrigins: "account_type", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -90,7 +77,30 @@ describe("BankInfoClient", () => { ], }, ], + }; + const page = await client.hris.bankInfo.list({ + accountType: "CHECKING", + bankName: "bank_name", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + employeeId: "employee_id", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + orderBy: "-remote_created_at", + pageSize: 1, + remoteFields: "account_type", + remoteId: "remote_id", + showEnumOrigins: "account_type", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { @@ -129,7 +139,6 @@ describe("BankInfoClient", () => { .build(); const response = await client.hris.bankInfo.retrieve("id", { - expand: "employee", includeRemoteData: true, includeShellData: true, remoteFields: "account_type", diff --git a/tests/wire/hris/benefits.test.ts b/tests/wire/HRIS/benefits.test.ts similarity index 92% rename from tests/wire/hris/benefits.test.ts rename to tests/wire/HRIS/benefits.test.ts index eaa19de8e..6ea157490 100644 --- a/tests/wire/hris/benefits.test.ts +++ b/tests/wire/HRIS/benefits.test.ts @@ -38,23 +38,15 @@ describe("BenefitsClient", () => { }, ], }; - server.mockEndpoint().get("/hris/v1/benefits").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + server + .mockEndpoint({ once: false }) + .get("/hris/v1/benefits") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); - const response = await client.hris.benefits.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employeeId: "employee_id", - expand: "employee", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -87,7 +79,25 @@ describe("BenefitsClient", () => { ], }, ], + }; + const page = await client.hris.benefits.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + employeeId: "employee_id", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { @@ -127,7 +137,6 @@ describe("BenefitsClient", () => { .build(); const response = await client.hris.benefits.retrieve("id", { - expand: "employee", includeRemoteData: true, includeShellData: true, }); diff --git a/tests/wire/hris/companies.test.ts b/tests/wire/HRIS/companies.test.ts similarity index 91% rename from tests/wire/hris/companies.test.ts rename to tests/wire/HRIS/companies.test.ts index 909e629ab..a70d3c4e5 100644 --- a/tests/wire/hris/companies.test.ts +++ b/tests/wire/HRIS/companies.test.ts @@ -34,21 +34,15 @@ describe("CompaniesClient", () => { }, ], }; - server.mockEndpoint().get("/hris/v1/companies").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + server + .mockEndpoint({ once: false }) + .get("/hris/v1/companies") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); - const response = await client.hris.companies.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -77,7 +71,24 @@ describe("CompaniesClient", () => { ], }, ], + }; + const page = await client.hris.companies.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { diff --git a/tests/wire/hris/deleteAccount.test.ts b/tests/wire/HRIS/deleteAccount.test.ts similarity index 100% rename from tests/wire/hris/deleteAccount.test.ts rename to tests/wire/HRIS/deleteAccount.test.ts diff --git a/tests/wire/hris/dependents.test.ts b/tests/wire/HRIS/dependents.test.ts similarity index 95% rename from tests/wire/hris/dependents.test.ts rename to tests/wire/HRIS/dependents.test.ts index d7da45bb7..a2d34a32a 100644 --- a/tests/wire/hris/dependents.test.ts +++ b/tests/wire/HRIS/dependents.test.ts @@ -43,28 +43,14 @@ describe("DependentsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/hris/v1/dependents") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.hris.dependents.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employeeId: "employee_id", - includeDeletedData: true, - includeRemoteData: true, - includeSensitiveFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -101,7 +87,26 @@ describe("DependentsClient", () => { ], }, ], + }; + const page = await client.hris.dependents.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + employeeId: "employee_id", + includeDeletedData: true, + includeRemoteData: true, + includeSensitiveFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { diff --git a/tests/wire/hris/employeePayrollRuns.test.ts b/tests/wire/HRIS/employeePayrollRuns.test.ts similarity index 98% rename from tests/wire/hris/employeePayrollRuns.test.ts rename to tests/wire/HRIS/employeePayrollRuns.test.ts index 0950c78cd..e482450d7 100644 --- a/tests/wire/hris/employeePayrollRuns.test.ts +++ b/tests/wire/HRIS/employeePayrollRuns.test.ts @@ -100,33 +100,14 @@ describe("EmployeePayrollRunsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/hris/v1/employee-payroll-runs") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.hris.employeePayrollRuns.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employeeId: "employee_id", - endedAfter: new Date("2024-01-15T09:30:00.000Z"), - endedBefore: new Date("2024-01-15T09:30:00.000Z"), - expand: "employee", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - payrollRunId: "payroll_run_id", - remoteId: "remote_id", - startedAfter: new Date("2024-01-15T09:30:00.000Z"), - startedBefore: new Date("2024-01-15T09:30:00.000Z"), - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -241,7 +222,30 @@ describe("EmployeePayrollRunsClient", () => { ], }, ], + }; + const page = await client.hris.employeePayrollRuns.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + employeeId: "employee_id", + endedAfter: new Date("2024-01-15T09:30:00.000Z"), + endedBefore: new Date("2024-01-15T09:30:00.000Z"), + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + payrollRunId: "payroll_run_id", + remoteId: "remote_id", + startedAfter: new Date("2024-01-15T09:30:00.000Z"), + startedBefore: new Date("2024-01-15T09:30:00.000Z"), }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { @@ -349,7 +353,6 @@ describe("EmployeePayrollRunsClient", () => { .build(); const response = await client.hris.employeePayrollRuns.retrieve("id", { - expand: "employee", includeRemoteData: true, includeShellData: true, }); diff --git a/tests/wire/HRIS/employees.test.ts b/tests/wire/HRIS/employees.test.ts new file mode 100644 index 000000000..1aad1f763 --- /dev/null +++ b/tests/wire/HRIS/employees.test.ts @@ -0,0 +1,904 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("EmployeesClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "0958cbc6-6040-430a-848e-aafacbadf4ae", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + employee_number: "2", + company: "company", + first_name: "Greg", + last_name: "Hirsch", + preferred_name: "Greg the egg", + display_full_name: "Cousin Greg Hirsch", + username: "cousingreg", + groups: ["21a54124-397f-494d-985e-3c5b330b8a68"], + work_email: "greg@merge.dev", + personal_email: "greg@gmail.com", + mobile_phone_number: "+1234567890", + employments: ["17a54124-287f-494d-965e-3c5b330c9a68"], + home_location: "home_location", + work_location: "work_location", + manager: "manager", + pay_group: "pay_group", + ssn: "1234567890", + gender: "MALE", + ethnicity: "AMERICAN_INDIAN_OR_ALASKA_NATIVE", + marital_status: "SINGLE", + date_of_birth: "1990-11-10T00:00:00Z", + start_date: "2020-10-11T00:00:00Z", + remote_created_at: "2020-10-11T00:00:00Z", + employment_status: "ACTIVE", + termination_date: "2021-10-12T00:00:00Z", + avatar: "http://alturl.com/h2h8m", + custom_fields: { key: "value" }, + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/people", data: ["Varies by platform"] }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/hris/v1/employees") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "0958cbc6-6040-430a-848e-aafacbadf4ae", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + employeeNumber: "2", + company: "company", + firstName: "Greg", + lastName: "Hirsch", + preferredName: "Greg the egg", + displayFullName: "Cousin Greg Hirsch", + username: "cousingreg", + groups: ["21a54124-397f-494d-985e-3c5b330b8a68"], + workEmail: "greg@merge.dev", + personalEmail: "greg@gmail.com", + mobilePhoneNumber: "+1234567890", + employments: ["17a54124-287f-494d-965e-3c5b330c9a68"], + homeLocation: "home_location", + workLocation: "work_location", + manager: "manager", + payGroup: "pay_group", + ssn: "1234567890", + gender: "MALE", + ethnicity: "AMERICAN_INDIAN_OR_ALASKA_NATIVE", + maritalStatus: "SINGLE", + dateOfBirth: new Date("1990-11-10T00:00:00.000Z"), + startDate: new Date("2020-10-11T00:00:00.000Z"), + remoteCreatedAt: new Date("2020-10-11T00:00:00.000Z"), + employmentStatus: "ACTIVE", + terminationDate: new Date("2021-10-12T00:00:00.000Z"), + avatar: "http://alturl.com/h2h8m", + customFields: { + key: "value", + }, + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/people", + data: ["Varies by platform"], + }, + ], + }, + ], + }; + const page = await client.hris.employees.list({ + companyId: "company_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + displayFullName: "display_full_name", + employeeNumber: "employee_number", + employmentStatus: "ACTIVE", + employmentType: "employment_type", + firstName: "first_name", + groups: "groups", + homeLocationId: "home_location_id", + includeDeletedData: true, + includeRemoteData: true, + includeSensitiveFields: true, + includeShellData: true, + jobTitle: "job_title", + lastName: "last_name", + managerId: "manager_id", + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + payGroupId: "pay_group_id", + personalEmail: "personal_email", + remoteFields: "employment_status", + remoteId: "remote_id", + showEnumOrigins: "employment_status", + startedAfter: new Date("2024-01-15T09:30:00.000Z"), + startedBefore: new Date("2024-01-15T09:30:00.000Z"), + teamId: "team_id", + terminatedAfter: new Date("2024-01-15T09:30:00.000Z"), + terminatedBefore: new Date("2024-01-15T09:30:00.000Z"), + workEmail: "work_email", + workLocationId: "work_location_id", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("create", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { model: {} }; + const rawResponseBody = { + model: { + id: "0958cbc6-6040-430a-848e-aafacbadf4ae", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + employee_number: "2", + company: "company", + first_name: "Greg", + last_name: "Hirsch", + preferred_name: "Greg the egg", + display_full_name: "Cousin Greg Hirsch", + username: "cousingreg", + groups: ["21a54124-397f-494d-985e-3c5b330b8a68"], + work_email: "greg@merge.dev", + personal_email: "greg@gmail.com", + mobile_phone_number: "+1234567890", + employments: ["17a54124-287f-494d-965e-3c5b330c9a68"], + home_location: "home_location", + work_location: "work_location", + manager: "manager", + pay_group: "pay_group", + ssn: "1234567890", + gender: "MALE", + ethnicity: "AMERICAN_INDIAN_OR_ALASKA_NATIVE", + marital_status: "SINGLE", + date_of_birth: "1990-11-10T00:00:00Z", + start_date: "2020-10-11T00:00:00Z", + remote_created_at: "2020-10-11T00:00:00Z", + employment_status: "ACTIVE", + termination_date: "2021-10-12T00:00:00Z", + avatar: "http://alturl.com/h2h8m", + custom_fields: { key: "value" }, + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/people", data: ["Varies by platform"] }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/hris/v1/employees") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.hris.employees.create({ + isDebugMode: true, + runAsync: true, + model: {}, + }); + expect(response).toEqual({ + model: { + id: "0958cbc6-6040-430a-848e-aafacbadf4ae", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + employeeNumber: "2", + company: "company", + firstName: "Greg", + lastName: "Hirsch", + preferredName: "Greg the egg", + displayFullName: "Cousin Greg Hirsch", + username: "cousingreg", + groups: ["21a54124-397f-494d-985e-3c5b330b8a68"], + workEmail: "greg@merge.dev", + personalEmail: "greg@gmail.com", + mobilePhoneNumber: "+1234567890", + employments: ["17a54124-287f-494d-965e-3c5b330c9a68"], + homeLocation: "home_location", + workLocation: "work_location", + manager: "manager", + payGroup: "pay_group", + ssn: "1234567890", + gender: "MALE", + ethnicity: "AMERICAN_INDIAN_OR_ALASKA_NATIVE", + maritalStatus: "SINGLE", + dateOfBirth: new Date("1990-11-10T00:00:00.000Z"), + startDate: new Date("2020-10-11T00:00:00.000Z"), + remoteCreatedAt: new Date("2020-10-11T00:00:00.000Z"), + employmentStatus: "ACTIVE", + terminationDate: new Date("2021-10-12T00:00:00.000Z"), + avatar: "http://alturl.com/h2h8m", + customFields: { + key: "value", + }, + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/people", + data: ["Varies by platform"], + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + id: "0958cbc6-6040-430a-848e-aafacbadf4ae", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + employee_number: "2", + company: "company", + first_name: "Greg", + last_name: "Hirsch", + preferred_name: "Greg the egg", + display_full_name: "Cousin Greg Hirsch", + username: "cousingreg", + groups: ["21a54124-397f-494d-985e-3c5b330b8a68"], + work_email: "greg@merge.dev", + personal_email: "greg@gmail.com", + mobile_phone_number: "+1234567890", + employments: ["17a54124-287f-494d-965e-3c5b330c9a68"], + home_location: "home_location", + work_location: "work_location", + manager: "manager", + pay_group: "pay_group", + ssn: "1234567890", + gender: "MALE", + ethnicity: "AMERICAN_INDIAN_OR_ALASKA_NATIVE", + marital_status: "SINGLE", + date_of_birth: "1990-11-10T00:00:00Z", + start_date: "2020-10-11T00:00:00Z", + remote_created_at: "2020-10-11T00:00:00Z", + employment_status: "ACTIVE", + termination_date: "2021-10-12T00:00:00Z", + avatar: "http://alturl.com/h2h8m", + custom_fields: { key: "value" }, + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/people", data: ["Varies by platform"] }], + }; + server + .mockEndpoint() + .get("/hris/v1/employees/id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.hris.employees.retrieve("id", { + includeRemoteData: true, + includeSensitiveFields: true, + includeShellData: true, + remoteFields: "employment_status", + showEnumOrigins: "employment_status", + }); + expect(response).toEqual({ + id: "0958cbc6-6040-430a-848e-aafacbadf4ae", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + employeeNumber: "2", + company: "company", + firstName: "Greg", + lastName: "Hirsch", + preferredName: "Greg the egg", + displayFullName: "Cousin Greg Hirsch", + username: "cousingreg", + groups: ["21a54124-397f-494d-985e-3c5b330b8a68"], + workEmail: "greg@merge.dev", + personalEmail: "greg@gmail.com", + mobilePhoneNumber: "+1234567890", + employments: ["17a54124-287f-494d-965e-3c5b330c9a68"], + homeLocation: "home_location", + workLocation: "work_location", + manager: "manager", + payGroup: "pay_group", + ssn: "1234567890", + gender: "MALE", + ethnicity: "AMERICAN_INDIAN_OR_ALASKA_NATIVE", + maritalStatus: "SINGLE", + dateOfBirth: new Date("1990-11-10T00:00:00.000Z"), + startDate: new Date("2020-10-11T00:00:00.000Z"), + remoteCreatedAt: new Date("2020-10-11T00:00:00.000Z"), + employmentStatus: "ACTIVE", + terminationDate: new Date("2021-10-12T00:00:00.000Z"), + avatar: "http://alturl.com/h2h8m", + customFields: { + key: "value", + }, + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/people", + data: ["Varies by platform"], + }, + ], + }); + }); + + test("ignoreCreate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { reason: "GENERAL_CUSTOMER_REQUEST" }; + + server + .mockEndpoint() + .post("/hris/v1/employees/ignore/model_id") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .build(); + + const response = await client.hris.employees.ignoreCreate("model_id", { + reason: "GENERAL_CUSTOMER_REQUEST", + }); + expect(response).toEqual(undefined); + }); + + test("metaPostRetrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + request_schema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + email_address_type: { type: "string", title: "email_address_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + url_type: { type: "string", title: "url_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { type: "string", title: "first_name", description: "The first name." }, + last_name: { type: "string", title: "last_name", description: "The last name." }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + phone_number_type: { type: "string", title: "phone_number_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { type: "string", title: "id" }, + file_url: { type: "string", title: "file_url" }, + file_name: { type: "string", title: "file_name" }, + attachment_type: { type: "string", title: "attachment_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { value: "HRIS", description: "Merge HRIS Category" }, + { value: "ATS", description: "Merge ATS Category" }, + { value: "Accounting", description: "Merge Accounting Category" }, + { value: "Ticketing", description: "Merge Ticketing Category" }, + { value: "File Storage", description: "Merge File Storage Category" }, + { value: "CRM", description: "Merge CRM Category" }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remote_field_classes: { key: "value" }, + status: { linked_account_status: "linked_account_status", can_make_request: true }, + has_conditional_params: true, + has_required_linked_account_params: true, + remote_fields: ["remote_fields"], + }; + server + .mockEndpoint() + .get("/hris/v1/employees/meta/post") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.hris.employees.metaPostRetrieve(); + expect(response).toEqual({ + requestSchema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + email_address_type: { + type: "string", + title: "email_address_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + url_type: { + type: "string", + title: "url_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { + type: "string", + title: "first_name", + description: "The first name.", + }, + last_name: { + type: "string", + title: "last_name", + description: "The last name.", + }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + phone_number_type: { + type: "string", + title: "phone_number_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { + type: "string", + title: "id", + }, + file_url: { + type: "string", + title: "file_url", + }, + file_name: { + type: "string", + title: "file_name", + }, + attachment_type: { + type: "string", + title: "attachment_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { + value: "HRIS", + description: "Merge HRIS Category", + }, + { + value: "ATS", + description: "Merge ATS Category", + }, + { + value: "Accounting", + description: "Merge Accounting Category", + }, + { + value: "Ticketing", + description: "Merge Ticketing Category", + }, + { + value: "File Storage", + description: "Merge File Storage Category", + }, + { + value: "CRM", + description: "Merge CRM Category", + }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remoteFieldClasses: { + key: "value", + }, + status: { + linkedAccountStatus: "linked_account_status", + canMakeRequest: true, + }, + hasConditionalParams: true, + hasRequiredLinkedAccountParams: true, + remoteFields: ["remote_fields"], + }); + }); +}); diff --git a/tests/wire/hris/employerBenefits.test.ts b/tests/wire/HRIS/employerBenefits.test.ts similarity index 94% rename from tests/wire/hris/employerBenefits.test.ts rename to tests/wire/HRIS/employerBenefits.test.ts index f07a5960e..8197f342a 100644 --- a/tests/wire/hris/employerBenefits.test.ts +++ b/tests/wire/HRIS/employerBenefits.test.ts @@ -36,26 +36,14 @@ describe("EmployerBenefitsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/hris/v1/employer-benefits") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.hris.employerBenefits.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -85,7 +73,24 @@ describe("EmployerBenefitsClient", () => { ], }, ], + }; + const page = await client.hris.employerBenefits.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { diff --git a/tests/wire/hris/employments.test.ts b/tests/wire/HRIS/employments.test.ts similarity index 95% rename from tests/wire/hris/employments.test.ts rename to tests/wire/HRIS/employments.test.ts index 4070d1d16..951e0abd0 100644 --- a/tests/wire/hris/employments.test.ts +++ b/tests/wire/HRIS/employments.test.ts @@ -42,31 +42,14 @@ describe("EmploymentsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/hris/v1/employments") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.hris.employments.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employeeId: "employee_id", - expand: "employee", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - orderBy: "-effective_date", - pageSize: 1, - remoteFields: "employment_type", - remoteId: "remote_id", - showEnumOrigins: "employment_type", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -102,7 +85,28 @@ describe("EmploymentsClient", () => { ], }, ], + }; + const page = await client.hris.employments.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + employeeId: "employee_id", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + orderBy: "-effective_date", + pageSize: 1, + remoteFields: "employment_type", + remoteId: "remote_id", + showEnumOrigins: "employment_type", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { @@ -145,7 +149,6 @@ describe("EmploymentsClient", () => { .build(); const response = await client.hris.employments.retrieve("id", { - expand: "employee", includeRemoteData: true, includeShellData: true, remoteFields: "employment_type", diff --git a/tests/wire/HRIS/fieldMapping.test.ts b/tests/wire/HRIS/fieldMapping.test.ts new file mode 100644 index 000000000..8458b9dce --- /dev/null +++ b/tests/wire/HRIS/fieldMapping.test.ts @@ -0,0 +1,1908 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("FieldMappingClient", () => { + test("field_mappings_retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + Benefit: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + EmployerBenefit: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Company: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + EmployeePayrollRun: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Employee: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Employment: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Location: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + PayrollRun: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Team: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + TimeOff: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + TimeOffBalance: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + BankInfo: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + PayGroup: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Group: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Dependent: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + TimesheetEntry: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + }; + server + .mockEndpoint() + .get("/hris/v1/field-mappings") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.hris.fieldMapping.fieldMappingsRetrieve({ + excludeRemoteFieldMetadata: true, + }); + expect(response).toEqual({ + benefit: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + employerBenefit: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + company: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + employeePayrollRun: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + employee: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + employment: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + location: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + payrollRun: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + team: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + timeOff: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + timeOffBalance: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + bankInfo: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + payGroup: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + group: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + dependent: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + timesheetEntry: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + }); + }); + + test("field_mappings_create", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { + target_field_name: "example_target_field_name", + target_field_description: "this is a example description of the target field", + remote_field_traversal_path: ["example_remote_field"], + remote_method: "GET", + remote_url_path: "/example-url-path", + common_model_name: "ExampleCommonModel", + }; + const rawResponseBody = { + model: { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/hris/v1/field-mappings") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.hris.fieldMapping.fieldMappingsCreate({ + excludeRemoteFieldMetadata: true, + targetFieldName: "example_target_field_name", + targetFieldDescription: "this is a example description of the target field", + remoteFieldTraversalPath: ["example_remote_field"], + remoteMethod: "GET", + remoteUrlPath: "/example-url-path", + commonModelName: "ExampleCommonModel", + }); + expect(response).toEqual({ + model: { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("field_mappings_destroy", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + model: { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .delete("/hris/v1/field-mappings/field_mapping_id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.hris.fieldMapping.fieldMappingsDestroy("field_mapping_id"); + expect(response).toEqual({ + model: { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("field_mappings_partial_update", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = {}; + const rawResponseBody = { + model: { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .patch("/hris/v1/field-mappings/field_mapping_id") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.hris.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { + remoteDataIterationCount: 1, + }); + expect(response).toEqual({ + model: { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("remote_fields_retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + Benefit: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + EmployerBenefit: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Company: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + EmployeePayrollRun: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Employee: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Employment: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Location: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + PayrollRun: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Team: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + TimeOff: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + TimeOffBalance: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + BankInfo: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + PayGroup: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Group: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Dependent: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + TimesheetEntry: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + }; + server + .mockEndpoint() + .get("/hris/v1/remote-fields") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.hris.fieldMapping.remoteFieldsRetrieve({ + commonModels: "common_models", + includeExampleValues: "include_example_values", + }); + expect(response).toEqual({ + benefit: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + employerBenefit: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + company: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + employeePayrollRun: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + employee: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + employment: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + location: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + payrollRun: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + team: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + timeOff: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + timeOffBalance: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + bankInfo: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + payGroup: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + group: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + dependent: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + timesheetEntry: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + }); + }); + + test("target_fields_retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + Benefit: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + EmployerBenefit: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Company: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + EmployeePayrollRun: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Employee: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Employment: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Location: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + PayrollRun: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Team: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + TimeOff: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + TimeOffBalance: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + BankInfo: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + PayGroup: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Group: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Dependent: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + TimesheetEntry: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + }; + server + .mockEndpoint() + .get("/hris/v1/target-fields") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.hris.fieldMapping.targetFieldsRetrieve(); + expect(response).toEqual({ + benefit: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + employerBenefit: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + company: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + employeePayrollRun: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + employee: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + employment: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + location: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + payrollRun: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + team: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + timeOff: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + timeOffBalance: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + bankInfo: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + payGroup: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + group: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + dependent: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + timesheetEntry: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + }); + }); +}); diff --git a/tests/wire/hris/forceResync.test.ts b/tests/wire/HRIS/forceResync.test.ts similarity index 100% rename from tests/wire/hris/forceResync.test.ts rename to tests/wire/HRIS/forceResync.test.ts diff --git a/tests/wire/hris/generateKey.test.ts b/tests/wire/HRIS/generateKey.test.ts similarity index 100% rename from tests/wire/hris/generateKey.test.ts rename to tests/wire/HRIS/generateKey.test.ts diff --git a/tests/wire/hris/groups.test.ts b/tests/wire/HRIS/groups.test.ts similarity index 82% rename from tests/wire/hris/groups.test.ts rename to tests/wire/HRIS/groups.test.ts index 486cec172..a92d4065c 100644 --- a/tests/wire/hris/groups.test.ts +++ b/tests/wire/HRIS/groups.test.ts @@ -35,26 +35,15 @@ describe("GroupsClient", () => { }, ], }; - server.mockEndpoint().get("/hris/v1/groups").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + server + .mockEndpoint({ once: false }) + .get("/hris/v1/groups") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); - const response = await client.hris.groups.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonlyUsedAsTeam: "is_commonly_used_as_team", - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - names: "names", - pageSize: 1, - remoteFields: "type", - remoteId: "remote_id", - showEnumOrigins: "type", - types: "types", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -84,7 +73,29 @@ describe("GroupsClient", () => { ], }, ], + }; + const page = await client.hris.groups.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonlyUsedAsTeam: "is_commonly_used_as_team", + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + names: "names", + pageSize: 1, + remoteFields: "type", + remoteId: "remote_id", + showEnumOrigins: "type", + types: "types", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { @@ -146,4 +157,31 @@ describe("GroupsClient", () => { ], }); }); + + test("typesList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { types: ["DEPARTMENT", "COST_CENTER"] }; + server + .mockEndpoint() + .get("/hris/v1/groups/types") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.hris.groups.typesList({ + includeDeletedData: true, + showEnumOrigins: "show_enum_origins", + }); + expect(response).toEqual({ + types: ["DEPARTMENT", "COST_CENTER"], + }); + }); }); diff --git a/tests/wire/HRIS/issues.test.ts b/tests/wire/HRIS/issues.test.ts new file mode 100644 index 000000000..1649699eb --- /dev/null +++ b/tests/wire/HRIS/issues.test.ts @@ -0,0 +1,116 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("IssuesClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + status: "ONGOING", + error_description: "Missing Permissions", + end_user: { key: "value" }, + first_incident_time: "2022-12-05T16:19:15Z", + last_incident_time: "2022-12-05T16:19:15Z", + is_muted: true, + error_details: ["Missing employee permissions.", "Missing time off permissions."], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/hris/v1/issues") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + status: "ONGOING", + errorDescription: "Missing Permissions", + endUser: { + key: "value", + }, + firstIncidentTime: new Date("2022-12-05T16:19:15.000Z"), + lastIncidentTime: new Date("2022-12-05T16:19:15.000Z"), + isMuted: true, + errorDetails: ["Missing employee permissions.", "Missing time off permissions."], + }, + ], + }; + const page = await client.hris.issues.list({ + accountToken: "account_token", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endDate: "end_date", + endUserOrganizationName: "end_user_organization_name", + firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + includeMuted: "include_muted", + integrationName: "integration_name", + lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + linkedAccountId: "linked_account_id", + pageSize: 1, + startDate: "start_date", + status: "ONGOING", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + status: "ONGOING", + error_description: "Missing Permissions", + end_user: { key: "value" }, + first_incident_time: "2022-12-05T16:19:15Z", + last_incident_time: "2022-12-05T16:19:15Z", + is_muted: true, + error_details: ["Missing employee permissions.", "Missing time off permissions."], + }; + server.mockEndpoint().get("/hris/v1/issues/id").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + + const response = await client.hris.issues.retrieve("id"); + expect(response).toEqual({ + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + status: "ONGOING", + errorDescription: "Missing Permissions", + endUser: { + key: "value", + }, + firstIncidentTime: new Date("2022-12-05T16:19:15.000Z"), + lastIncidentTime: new Date("2022-12-05T16:19:15.000Z"), + isMuted: true, + errorDetails: ["Missing employee permissions.", "Missing time off permissions."], + }); + }); +}); diff --git a/tests/wire/hris/linkToken.test.ts b/tests/wire/HRIS/linkToken.test.ts similarity index 100% rename from tests/wire/hris/linkToken.test.ts rename to tests/wire/HRIS/linkToken.test.ts diff --git a/tests/wire/HRIS/linkedAccounts.test.ts b/tests/wire/HRIS/linkedAccounts.test.ts new file mode 100644 index 000000000..53378d34f --- /dev/null +++ b/tests/wire/HRIS/linkedAccounts.test.ts @@ -0,0 +1,119 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("LinkedAccountsClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "e59b1821-f85c-4e28-a6b3-1804156f3563", + category: "hris", + status: "COMPLETE", + status_detail: "Invalid login credentials", + end_user_origin_id: "3ac95cde-6c7f-4eef-afec-be710b42308d", + end_user_organization_name: "Foo Bar, LLC", + end_user_email_address: "hradmin@foobar.dev", + subdomain: "foobar", + webhook_listener_url: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", + is_duplicate: true, + integration: { + name: "name", + categories: ["hris"], + color: "color", + slug: "slug", + passthrough_available: true, + available_model_operations: [ + { + model_name: "Candidate", + available_operations: ["FETCH", "CREATE"], + required_post_parameters: ["remote_user_id"], + supported_fields: ["first_name", "last_name", "company", "title"], + }, + ], + }, + account_type: "PRODUCTION", + completed_at: "2024-08-26T20:11:19Z", + integration_specific_fields: { integration_specific_field: "Varies by platform" }, + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/hris/v1/linked-accounts") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "e59b1821-f85c-4e28-a6b3-1804156f3563", + category: "hris", + status: "COMPLETE", + statusDetail: "Invalid login credentials", + endUserOriginId: "3ac95cde-6c7f-4eef-afec-be710b42308d", + endUserOrganizationName: "Foo Bar, LLC", + endUserEmailAddress: "hradmin@foobar.dev", + subdomain: "foobar", + webhookListenerUrl: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", + isDuplicate: true, + integration: { + name: "name", + categories: ["hris"], + color: "color", + slug: "slug", + passthroughAvailable: true, + availableModelOperations: [ + { + modelName: "Candidate", + availableOperations: ["FETCH", "CREATE"], + requiredPostParameters: ["remote_user_id"], + supportedFields: ["first_name", "last_name", "company", "title"], + }, + ], + }, + accountType: "PRODUCTION", + completedAt: new Date("2024-08-26T20:11:19.000Z"), + integrationSpecificFields: { + integration_specific_field: "Varies by platform", + }, + }, + ], + }; + const page = await client.hris.linkedAccounts.list({ + category: "accounting", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endUserEmailAddress: "end_user_email_address", + endUserOrganizationName: "end_user_organization_name", + endUserOriginId: "end_user_origin_id", + endUserOriginIds: "end_user_origin_ids", + id: "id", + ids: "ids", + includeDuplicates: true, + integrationName: "integration_name", + isTestAccount: "is_test_account", + pageSize: 1, + status: "status", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); +}); diff --git a/tests/wire/hris/locations.test.ts b/tests/wire/HRIS/locations.test.ts similarity index 92% rename from tests/wire/hris/locations.test.ts rename to tests/wire/HRIS/locations.test.ts index 33f45fc18..5d19cd321 100644 --- a/tests/wire/hris/locations.test.ts +++ b/tests/wire/HRIS/locations.test.ts @@ -40,24 +40,15 @@ describe("LocationsClient", () => { }, ], }; - server.mockEndpoint().get("/hris/v1/locations").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + server + .mockEndpoint({ once: false }) + .get("/hris/v1/locations") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); - const response = await client.hris.locations.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - locationType: "HOME", - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteFields: "country", - remoteId: "remote_id", - showEnumOrigins: "country", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -92,7 +83,27 @@ describe("LocationsClient", () => { ], }, ], + }; + const page = await client.hris.locations.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + locationType: "HOME", + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "country", + remoteId: "remote_id", + showEnumOrigins: "country", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { diff --git a/tests/wire/hris/passthrough.test.ts b/tests/wire/HRIS/passthrough.test.ts similarity index 100% rename from tests/wire/hris/passthrough.test.ts rename to tests/wire/HRIS/passthrough.test.ts diff --git a/tests/wire/hris/payGroups.test.ts b/tests/wire/HRIS/payGroups.test.ts similarity index 93% rename from tests/wire/hris/payGroups.test.ts rename to tests/wire/HRIS/payGroups.test.ts index 5fb7f32d2..bba653851 100644 --- a/tests/wire/hris/payGroups.test.ts +++ b/tests/wire/HRIS/payGroups.test.ts @@ -33,26 +33,14 @@ describe("PayGroupsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/hris/v1/pay-groups") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.hris.payGroups.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -79,7 +67,24 @@ describe("PayGroupsClient", () => { ], }, ], + }; + const page = await client.hris.payGroups.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { diff --git a/tests/wire/hris/payrollRuns.test.ts b/tests/wire/HRIS/payrollRuns.test.ts similarity index 94% rename from tests/wire/hris/payrollRuns.test.ts rename to tests/wire/HRIS/payrollRuns.test.ts index 582ffa247..6429c40de 100644 --- a/tests/wire/hris/payrollRuns.test.ts +++ b/tests/wire/HRIS/payrollRuns.test.ts @@ -37,33 +37,14 @@ describe("PayrollRunsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/hris/v1/payroll-runs") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.hris.payrollRuns.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endedAfter: new Date("2024-01-15T09:30:00.000Z"), - endedBefore: new Date("2024-01-15T09:30:00.000Z"), - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteFields: "run_state", - remoteId: "remote_id", - runType: "CORRECTION", - showEnumOrigins: "run_state", - startedAfter: new Date("2024-01-15T09:30:00.000Z"), - startedBefore: new Date("2024-01-15T09:30:00.000Z"), - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -94,7 +75,31 @@ describe("PayrollRunsClient", () => { ], }, ], + }; + const page = await client.hris.payrollRuns.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endedAfter: new Date("2024-01-15T09:30:00.000Z"), + endedBefore: new Date("2024-01-15T09:30:00.000Z"), + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "run_state", + remoteId: "remote_id", + runType: "CORRECTION", + showEnumOrigins: "run_state", + startedAfter: new Date("2024-01-15T09:30:00.000Z"), + startedBefore: new Date("2024-01-15T09:30:00.000Z"), }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { diff --git a/tests/wire/hris/regenerateKey.test.ts b/tests/wire/HRIS/regenerateKey.test.ts similarity index 100% rename from tests/wire/hris/regenerateKey.test.ts rename to tests/wire/HRIS/regenerateKey.test.ts diff --git a/tests/wire/hris/scopes.test.ts b/tests/wire/HRIS/scopes.test.ts similarity index 100% rename from tests/wire/hris/scopes.test.ts rename to tests/wire/HRIS/scopes.test.ts diff --git a/tests/wire/HRIS/syncStatus.test.ts b/tests/wire/HRIS/syncStatus.test.ts new file mode 100644 index 000000000..2c0a64925 --- /dev/null +++ b/tests/wire/HRIS/syncStatus.test.ts @@ -0,0 +1,68 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("SyncStatusClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + model_name: "Employee", + model_id: "hris.Employee", + last_sync_start: "2021-03-30T19:44:18Z", + next_sync_start: "2021-03-30T20:44:18Z", + last_sync_result: "SYNCING", + last_sync_finished: "2021-03-30T19:55:18Z", + status: "SYNCING", + is_initial_sync: true, + selective_sync_configurations_usage: "IN_NEXT_SYNC", + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/hris/v1/sync-status") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + modelName: "Employee", + modelId: "hris.Employee", + lastSyncStart: new Date("2021-03-30T19:44:18.000Z"), + nextSyncStart: new Date("2021-03-30T20:44:18.000Z"), + lastSyncResult: "SYNCING", + lastSyncFinished: new Date("2021-03-30T19:55:18.000Z"), + status: "SYNCING", + isInitialSync: true, + selectiveSyncConfigurationsUsage: "IN_NEXT_SYNC", + }, + ], + }; + const page = await client.hris.syncStatus.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + pageSize: 1, + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); +}); diff --git a/tests/wire/HRIS/teams.test.ts b/tests/wire/HRIS/teams.test.ts new file mode 100644 index 000000000..c24afbe42 --- /dev/null +++ b/tests/wire/HRIS/teams.test.ts @@ -0,0 +1,146 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("TeamsClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "13a72919-9fae-4f54-81ca-ddfd8712a1ba", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Engineering", + parent_team: "parent_team", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/teams", data: ["Varies by platform"] }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/hris/v1/teams") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "13a72919-9fae-4f54-81ca-ddfd8712a1ba", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Engineering", + parentTeam: "parent_team", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/teams", + data: ["Varies by platform"], + }, + ], + }, + ], + }; + const page = await client.hris.teams.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + parentTeamId: "parent_team_id", + remoteId: "remote_id", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + id: "13a72919-9fae-4f54-81ca-ddfd8712a1ba", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Engineering", + parent_team: "parent_team", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/teams", data: ["Varies by platform"] }], + }; + server.mockEndpoint().get("/hris/v1/teams/id").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + + const response = await client.hris.teams.retrieve("id", { + includeRemoteData: true, + includeShellData: true, + }); + expect(response).toEqual({ + id: "13a72919-9fae-4f54-81ca-ddfd8712a1ba", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Engineering", + parentTeam: "parent_team", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/teams", + data: ["Varies by platform"], + }, + ], + }); + }); +}); diff --git a/tests/wire/hris/timeOff.test.ts b/tests/wire/HRIS/timeOff.test.ts similarity index 98% rename from tests/wire/hris/timeOff.test.ts rename to tests/wire/HRIS/timeOff.test.ts index 018cd5231..4bafb6dd7 100644 --- a/tests/wire/hris/timeOff.test.ts +++ b/tests/wire/HRIS/timeOff.test.ts @@ -40,32 +40,15 @@ describe("TimeOffClient", () => { }, ], }; - server.mockEndpoint().get("/hris/v1/time-off").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); + server + .mockEndpoint({ once: false }) + .get("/hris/v1/time-off") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); - const response = await client.hris.timeOff.list({ - approverId: "approver_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employeeId: "employee_id", - endedAfter: new Date("2024-01-15T09:30:00.000Z"), - endedBefore: new Date("2024-01-15T09:30:00.000Z"), - expand: "approver", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteFields: "request_type", - remoteId: "remote_id", - requestType: "BEREAVEMENT", - showEnumOrigins: "request_type", - startedAfter: new Date("2024-01-15T09:30:00.000Z"), - startedBefore: new Date("2024-01-15T09:30:00.000Z"), - status: "APPROVED", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -100,7 +83,34 @@ describe("TimeOffClient", () => { ], }, ], + }; + const page = await client.hris.timeOff.list({ + approverId: "approver_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + employeeId: "employee_id", + endedAfter: new Date("2024-01-15T09:30:00.000Z"), + endedBefore: new Date("2024-01-15T09:30:00.000Z"), + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteFields: "request_type", + remoteId: "remote_id", + requestType: "BEREAVEMENT", + showEnumOrigins: "request_type", + startedAfter: new Date("2024-01-15T09:30:00.000Z"), + startedBefore: new Date("2024-01-15T09:30:00.000Z"), + status: "APPROVED", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("create", async () => { @@ -280,7 +290,6 @@ describe("TimeOffClient", () => { .build(); const response = await client.hris.timeOff.retrieve("id", { - expand: "approver", includeRemoteData: true, includeShellData: true, remoteFields: "request_type", @@ -493,6 +502,7 @@ describe("TimeOffClient", () => { status: { linked_account_status: "linked_account_status", can_make_request: true }, has_conditional_params: true, has_required_linked_account_params: true, + remote_fields: ["remote_fields"], }; server .mockEndpoint() @@ -736,6 +746,7 @@ describe("TimeOffClient", () => { }, hasConditionalParams: true, hasRequiredLinkedAccountParams: true, + remoteFields: ["remote_fields"], }); }); }); diff --git a/tests/wire/hris/timeOffBalances.test.ts b/tests/wire/HRIS/timeOffBalances.test.ts similarity index 94% rename from tests/wire/hris/timeOffBalances.test.ts rename to tests/wire/HRIS/timeOffBalances.test.ts index 49f13d589..f0c1864b6 100644 --- a/tests/wire/hris/timeOffBalances.test.ts +++ b/tests/wire/HRIS/timeOffBalances.test.ts @@ -36,31 +36,14 @@ describe("TimeOffBalancesClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/hris/v1/time-off-balances") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.hris.timeOffBalances.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employeeId: "employee_id", - expand: "employee", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - policyType: "BEREAVEMENT", - remoteFields: "policy_type", - remoteId: "remote_id", - showEnumOrigins: "policy_type", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -90,7 +73,28 @@ describe("TimeOffBalancesClient", () => { ], }, ], + }; + const page = await client.hris.timeOffBalances.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + employeeId: "employee_id", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + policyType: "BEREAVEMENT", + remoteFields: "policy_type", + remoteId: "remote_id", + showEnumOrigins: "policy_type", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { @@ -127,7 +131,6 @@ describe("TimeOffBalancesClient", () => { .build(); const response = await client.hris.timeOffBalances.retrieve("id", { - expand: "employee", includeRemoteData: true, includeShellData: true, remoteFields: "policy_type", diff --git a/tests/wire/hris/timesheetEntries.test.ts b/tests/wire/HRIS/timesheetEntries.test.ts similarity index 98% rename from tests/wire/hris/timesheetEntries.test.ts rename to tests/wire/HRIS/timesheetEntries.test.ts index f53c9f738..e81768183 100644 --- a/tests/wire/hris/timesheetEntries.test.ts +++ b/tests/wire/HRIS/timesheetEntries.test.ts @@ -36,33 +36,14 @@ describe("TimesheetEntriesClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/hris/v1/timesheet-entries") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.hris.timesheetEntries.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - employeeId: "employee_id", - endedAfter: new Date("2024-01-15T09:30:00.000Z"), - endedBefore: new Date("2024-01-15T09:30:00.000Z"), - expand: "employee", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - orderBy: "-start_time", - pageSize: 1, - remoteId: "remote_id", - startedAfter: new Date("2024-01-15T09:30:00.000Z"), - startedBefore: new Date("2024-01-15T09:30:00.000Z"), - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -92,7 +73,30 @@ describe("TimesheetEntriesClient", () => { ], }, ], + }; + const page = await client.hris.timesheetEntries.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + employeeId: "employee_id", + endedAfter: new Date("2024-01-15T09:30:00.000Z"), + endedBefore: new Date("2024-01-15T09:30:00.000Z"), + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + orderBy: "-start_time", + pageSize: 1, + remoteId: "remote_id", + startedAfter: new Date("2024-01-15T09:30:00.000Z"), + startedBefore: new Date("2024-01-15T09:30:00.000Z"), }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("create", async () => { @@ -257,7 +261,6 @@ describe("TimesheetEntriesClient", () => { .build(); const response = await client.hris.timesheetEntries.retrieve("id", { - expand: "employee", includeRemoteData: true, includeShellData: true, }); @@ -463,6 +466,7 @@ describe("TimesheetEntriesClient", () => { status: { linked_account_status: "linked_account_status", can_make_request: true }, has_conditional_params: true, has_required_linked_account_params: true, + remote_fields: ["remote_fields"], }; server .mockEndpoint() @@ -706,6 +710,7 @@ describe("TimesheetEntriesClient", () => { }, hasConditionalParams: true, hasRequiredLinkedAccountParams: true, + remoteFields: ["remote_fields"], }); }); }); diff --git a/tests/wire/hris/webhookReceivers.test.ts b/tests/wire/HRIS/webhookReceivers.test.ts similarity index 100% rename from tests/wire/hris/webhookReceivers.test.ts rename to tests/wire/HRIS/webhookReceivers.test.ts diff --git a/tests/wire/ticketing/accountDetails.test.ts b/tests/wire/Ticketing/accountDetails.test.ts similarity index 100% rename from tests/wire/ticketing/accountDetails.test.ts rename to tests/wire/Ticketing/accountDetails.test.ts diff --git a/tests/wire/Ticketing/accountToken.test.ts b/tests/wire/Ticketing/accountToken.test.ts new file mode 100644 index 000000000..caeb43822 --- /dev/null +++ b/tests/wire/Ticketing/accountToken.test.ts @@ -0,0 +1,90 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("AccountTokenClient", () => { + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + account_token: "T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB", + integration: { + name: "name", + abbreviated_name: "abbreviated_name", + categories: ["hris"], + image: "image", + square_image: "square_image", + color: "color", + slug: "slug", + api_endpoints_to_documentation_urls: { key: "value" }, + webhook_setup_guide_url: "webhook_setup_guide_url", + category_beta_status: { key: "value" }, + }, + id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", + }; + server + .mockEndpoint() + .get("/ticketing/v1/account-token/public_token") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.ticketing.accountToken.retrieve("public_token"); + expect(response).toEqual({ + accountToken: "T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB", + integration: { + name: "name", + abbreviatedName: "abbreviated_name", + categories: ["hris"], + image: "image", + squareImage: "square_image", + color: "color", + slug: "slug", + apiEndpointsToDocumentationUrls: { + key: "value", + }, + webhookSetupGuideUrl: "webhook_setup_guide_url", + categoryBetaStatus: { + key: "value", + }, + }, + id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", + }); + }); + + test("regenerateCreate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + linked_account_id: "e59b1821-f85c-4e28-a6b3-1804156f3563", + account_token: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", + }; + server + .mockEndpoint() + .post("/ticketing/v1/account-token/regenerate") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.ticketing.accountToken.regenerateCreate(); + expect(response).toEqual({ + linkedAccountId: "e59b1821-f85c-4e28-a6b3-1804156f3563", + accountToken: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", + }); + }); +}); diff --git a/tests/wire/Ticketing/accounts.test.ts b/tests/wire/Ticketing/accounts.test.ts new file mode 100644 index 000000000..052cd1a4c --- /dev/null +++ b/tests/wire/Ticketing/accounts.test.ts @@ -0,0 +1,151 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("AccountsClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Waystar Royco", + domains: ["waystar-royco.com", "royco.com"], + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/ticketing/v1/accounts") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Waystar Royco", + domains: ["waystar-royco.com", "royco.com"], + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + }, + ], + }; + const page = await client.ticketing.accounts.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Waystar Royco", + domains: ["waystar-royco.com", "royco.com"], + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/actions", data: ["Varies by platform"] }], + }; + server + .mockEndpoint() + .get("/ticketing/v1/accounts/id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.ticketing.accounts.retrieve("id", { + includeRemoteData: true, + includeShellData: true, + }); + expect(response).toEqual({ + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Waystar Royco", + domains: ["waystar-royco.com", "royco.com"], + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/actions", + data: ["Varies by platform"], + }, + ], + }); + }); +}); diff --git a/tests/wire/ticketing/asyncPassthrough.test.ts b/tests/wire/Ticketing/asyncPassthrough.test.ts similarity index 100% rename from tests/wire/ticketing/asyncPassthrough.test.ts rename to tests/wire/Ticketing/asyncPassthrough.test.ts diff --git a/tests/wire/Ticketing/attachments.test.ts b/tests/wire/Ticketing/attachments.test.ts new file mode 100644 index 000000000..8d61e25ab --- /dev/null +++ b/tests/wire/Ticketing/attachments.test.ts @@ -0,0 +1,722 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("AttachmentsClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + file_name: "Screenshot.png", + ticket: "ticket", + file_url: "http://alturl.com/p749b", + content_type: "jpeg", + uploaded_by: "28b54125-287f-494d-965e-3c5b330c9a68", + remote_created_at: "2022-11-10T00:00:00Z", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/ticketing/v1/attachments") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + fileName: "Screenshot.png", + ticket: "ticket", + fileUrl: "http://alturl.com/p749b", + contentType: "jpeg", + uploadedBy: "28b54125-287f-494d-965e-3c5b330c9a68", + remoteCreatedAt: new Date("2022-11-10T00:00:00.000Z"), + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/platform-endpoint", + data: ["Varies by platform"], + }, + ], + }, + ], + }; + const page = await client.ticketing.attachments.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteCreatedAfter: new Date("2024-01-15T09:30:00.000Z"), + remoteId: "remote_id", + ticketId: "ticket_id", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("create", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { model: {} }; + const rawResponseBody = { + model: { + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + file_name: "Screenshot.png", + ticket: "ticket", + file_url: "http://alturl.com/p749b", + content_type: "jpeg", + uploaded_by: "28b54125-287f-494d-965e-3c5b330c9a68", + remote_created_at: "2022-11-10T00:00:00Z", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/ticketing/v1/attachments") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.ticketing.attachments.create({ + isDebugMode: true, + runAsync: true, + model: {}, + }); + expect(response).toEqual({ + model: { + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + fileName: "Screenshot.png", + ticket: "ticket", + fileUrl: "http://alturl.com/p749b", + contentType: "jpeg", + uploadedBy: "28b54125-287f-494d-965e-3c5b330c9a68", + remoteCreatedAt: new Date("2022-11-10T00:00:00.000Z"), + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/platform-endpoint", + data: ["Varies by platform"], + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + file_name: "Screenshot.png", + ticket: "ticket", + file_url: "http://alturl.com/p749b", + content_type: "jpeg", + uploaded_by: "28b54125-287f-494d-965e-3c5b330c9a68", + remote_created_at: "2022-11-10T00:00:00Z", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], + }; + server + .mockEndpoint() + .get("/ticketing/v1/attachments/id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.ticketing.attachments.retrieve("id", { + includeRemoteData: true, + includeShellData: true, + }); + expect(response).toEqual({ + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + fileName: "Screenshot.png", + ticket: "ticket", + fileUrl: "http://alturl.com/p749b", + contentType: "jpeg", + uploadedBy: "28b54125-287f-494d-965e-3c5b330c9a68", + remoteCreatedAt: new Date("2022-11-10T00:00:00.000Z"), + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/platform-endpoint", + data: ["Varies by platform"], + }, + ], + }); + }); + + test("metaPostRetrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + request_schema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + email_address_type: { type: "string", title: "email_address_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + url_type: { type: "string", title: "url_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { type: "string", title: "first_name", description: "The first name." }, + last_name: { type: "string", title: "last_name", description: "The last name." }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + phone_number_type: { type: "string", title: "phone_number_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { type: "string", title: "id" }, + file_url: { type: "string", title: "file_url" }, + file_name: { type: "string", title: "file_name" }, + attachment_type: { type: "string", title: "attachment_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { value: "HRIS", description: "Merge HRIS Category" }, + { value: "ATS", description: "Merge ATS Category" }, + { value: "Accounting", description: "Merge Accounting Category" }, + { value: "Ticketing", description: "Merge Ticketing Category" }, + { value: "File Storage", description: "Merge File Storage Category" }, + { value: "CRM", description: "Merge CRM Category" }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remote_field_classes: { key: "value" }, + status: { linked_account_status: "linked_account_status", can_make_request: true }, + has_conditional_params: true, + has_required_linked_account_params: true, + }; + server + .mockEndpoint() + .get("/ticketing/v1/attachments/meta/post") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.ticketing.attachments.metaPostRetrieve(); + expect(response).toEqual({ + requestSchema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + email_address_type: { + type: "string", + title: "email_address_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + url_type: { + type: "string", + title: "url_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { + type: "string", + title: "first_name", + description: "The first name.", + }, + last_name: { + type: "string", + title: "last_name", + description: "The last name.", + }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + phone_number_type: { + type: "string", + title: "phone_number_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { + type: "string", + title: "id", + }, + file_url: { + type: "string", + title: "file_url", + }, + file_name: { + type: "string", + title: "file_name", + }, + attachment_type: { + type: "string", + title: "attachment_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { + value: "HRIS", + description: "Merge HRIS Category", + }, + { + value: "ATS", + description: "Merge ATS Category", + }, + { + value: "Accounting", + description: "Merge Accounting Category", + }, + { + value: "Ticketing", + description: "Merge Ticketing Category", + }, + { + value: "File Storage", + description: "Merge File Storage Category", + }, + { + value: "CRM", + description: "Merge CRM Category", + }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remoteFieldClasses: { + key: "value", + }, + status: { + linkedAccountStatus: "linked_account_status", + canMakeRequest: true, + }, + hasConditionalParams: true, + hasRequiredLinkedAccountParams: true, + }); + }); +}); diff --git a/tests/wire/Ticketing/auditTrail.test.ts b/tests/wire/Ticketing/auditTrail.test.ts new file mode 100644 index 000000000..629b805c6 --- /dev/null +++ b/tests/wire/Ticketing/auditTrail.test.ts @@ -0,0 +1,72 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("AuditTrailClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "b5ceea2a-7171-47ce-8090-165cfce5572c", + user_name: "Gil Feig", + user_email: "hello@merge.dev", + role: "ADMIN", + ip_address: "192.0.2.123", + event_type: "CREATED_REMOTE_PRODUCTION_API_KEY", + event_description: + "Organization-wide Scopes for model hris.Employee updated from Read to Read+Write", + created_at: "2024-01-15T09:30:00Z", + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/ticketing/v1/audit-trail") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "b5ceea2a-7171-47ce-8090-165cfce5572c", + userName: "Gil Feig", + userEmail: "hello@merge.dev", + role: "ADMIN", + ipAddress: "192.0.2.123", + eventType: "CREATED_REMOTE_PRODUCTION_API_KEY", + eventDescription: + "Organization-wide Scopes for model hris.Employee updated from Read to Read+Write", + createdAt: new Date("2024-01-15T09:30:00.000Z"), + }, + ], + }; + const page = await client.ticketing.auditTrail.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endDate: "end_date", + eventType: "event_type", + pageSize: 1, + startDate: "start_date", + userEmail: "user_email", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); +}); diff --git a/tests/wire/ticketing/availableActions.test.ts b/tests/wire/Ticketing/availableActions.test.ts similarity index 100% rename from tests/wire/ticketing/availableActions.test.ts rename to tests/wire/Ticketing/availableActions.test.ts diff --git a/tests/wire/ticketing/collections.test.ts b/tests/wire/Ticketing/collections.test.ts similarity index 89% rename from tests/wire/ticketing/collections.test.ts rename to tests/wire/Ticketing/collections.test.ts index 8def1180f..3efece10c 100644 --- a/tests/wire/ticketing/collections.test.ts +++ b/tests/wire/Ticketing/collections.test.ts @@ -27,6 +27,7 @@ describe("CollectionsClient", () => { access_level: "PRIVATE", collection_type: "LIST", parent_collection: "parent_collection", + permissions: ["17a54124-287f-494d-965e-3c5b330c9a68"], collection_url: "https://example.com", remote_created_at: "2022-01-01T00:00:00Z", remote_updated_at: "2022-01-01T00:00:00Z", @@ -40,32 +41,14 @@ describe("CollectionsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/ticketing/v1/collections") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.ticketing.collections.list({ - collectionType: "", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "parent_collection", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - name: "name", - pageSize: 1, - parentCollectionId: "parent_collection_id", - remoteFields: "collection_type", - remoteId: "remote_id", - showEnumOrigins: "collection_type", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -79,6 +62,7 @@ describe("CollectionsClient", () => { accessLevel: "PRIVATE", collectionType: "LIST", parentCollection: "parent_collection", + permissions: ["17a54124-287f-494d-965e-3c5b330c9a68"], collectionUrl: "https://example.com", remoteCreatedAt: new Date("2022-01-01T00:00:00.000Z"), remoteUpdatedAt: new Date("2022-01-01T00:00:00.000Z"), @@ -99,7 +83,29 @@ describe("CollectionsClient", () => { ], }, ], + }; + const page = await client.ticketing.collections.list({ + collectionType: "", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + parentCollectionId: "parent_collection_id", + remoteFields: "collection_type", + remoteId: "remote_id", + showEnumOrigins: "collection_type", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("viewersList", async () => { @@ -126,22 +132,14 @@ describe("CollectionsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/ticketing/v1/collections/collection_id/viewers") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.ticketing.collections.viewersList("collection_id", { - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "team", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - pageSize: 1, - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -154,7 +152,19 @@ describe("CollectionsClient", () => { user: "user", }, ], + }; + const page = await client.ticketing.collections.viewersList("collection_id", { + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + pageSize: 1, }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { @@ -176,6 +186,7 @@ describe("CollectionsClient", () => { access_level: "PRIVATE", collection_type: "LIST", parent_collection: "parent_collection", + permissions: ["17a54124-287f-494d-965e-3c5b330c9a68"], collection_url: "https://example.com", remote_created_at: "2022-01-01T00:00:00Z", remote_updated_at: "2022-01-01T00:00:00Z", @@ -195,7 +206,6 @@ describe("CollectionsClient", () => { .build(); const response = await client.ticketing.collections.retrieve("id", { - expand: "parent_collection", includeRemoteData: true, includeShellData: true, remoteFields: "collection_type", @@ -211,6 +221,7 @@ describe("CollectionsClient", () => { accessLevel: "PRIVATE", collectionType: "LIST", parentCollection: "parent_collection", + permissions: ["17a54124-287f-494d-965e-3c5b330c9a68"], collectionUrl: "https://example.com", remoteCreatedAt: new Date("2022-01-01T00:00:00.000Z"), remoteUpdatedAt: new Date("2022-01-01T00:00:00.000Z"), diff --git a/tests/wire/ticketing/comments.test.ts b/tests/wire/Ticketing/comments.test.ts similarity index 98% rename from tests/wire/ticketing/comments.test.ts rename to tests/wire/Ticketing/comments.test.ts index b59014d04..88e26b657 100644 --- a/tests/wire/ticketing/comments.test.ts +++ b/tests/wire/Ticketing/comments.test.ts @@ -39,29 +39,14 @@ describe("CommentsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/ticketing/v1/comments") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.ticketing.comments.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "contact", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteCreatedAfter: new Date("2024-01-15T09:30:00.000Z"), - remoteId: "remote_id", - ticketId: "ticket_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -94,7 +79,26 @@ describe("CommentsClient", () => { ], }, ], + }; + const page = await client.ticketing.comments.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteCreatedAfter: new Date("2024-01-15T09:30:00.000Z"), + remoteId: "remote_id", + ticketId: "ticket_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("create", async () => { @@ -268,7 +272,6 @@ describe("CommentsClient", () => { .build(); const response = await client.ticketing.comments.retrieve("id", { - expand: "contact", includeRemoteData: true, includeShellData: true, }); diff --git a/tests/wire/Ticketing/contacts.test.ts b/tests/wire/Ticketing/contacts.test.ts new file mode 100644 index 000000000..ae9783968 --- /dev/null +++ b/tests/wire/Ticketing/contacts.test.ts @@ -0,0 +1,715 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("ContactsClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Cousin Greg", + email_address: "greg@waystar-royco.com", + phone_number: "5108890293", + details: "Executive Assistant to Tom Wambsgans", + account: "account", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/ticketing/v1/contacts") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Cousin Greg", + emailAddress: "greg@waystar-royco.com", + phoneNumber: "5108890293", + details: "Executive Assistant to Tom Wambsgans", + account: "account", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/platform-endpoint", + data: ["Varies by platform"], + }, + ], + }, + ], + }; + const page = await client.ticketing.contacts.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + emailAddress: "email_address", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("create", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { model: {} }; + const rawResponseBody = { + model: { + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Cousin Greg", + email_address: "greg@waystar-royco.com", + phone_number: "5108890293", + details: "Executive Assistant to Tom Wambsgans", + account: "account", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/ticketing/v1/contacts") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.ticketing.contacts.create({ + isDebugMode: true, + runAsync: true, + model: {}, + }); + expect(response).toEqual({ + model: { + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Cousin Greg", + emailAddress: "greg@waystar-royco.com", + phoneNumber: "5108890293", + details: "Executive Assistant to Tom Wambsgans", + account: "account", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/platform-endpoint", + data: ["Varies by platform"], + }, + ], + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Cousin Greg", + email_address: "greg@waystar-royco.com", + phone_number: "5108890293", + details: "Executive Assistant to Tom Wambsgans", + account: "account", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], + }; + server + .mockEndpoint() + .get("/ticketing/v1/contacts/id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.ticketing.contacts.retrieve("id", { + includeRemoteData: true, + includeShellData: true, + }); + expect(response).toEqual({ + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Cousin Greg", + emailAddress: "greg@waystar-royco.com", + phoneNumber: "5108890293", + details: "Executive Assistant to Tom Wambsgans", + account: "account", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/platform-endpoint", + data: ["Varies by platform"], + }, + ], + }); + }); + + test("metaPostRetrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + request_schema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + email_address_type: { type: "string", title: "email_address_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + url_type: { type: "string", title: "url_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { type: "string", title: "first_name", description: "The first name." }, + last_name: { type: "string", title: "last_name", description: "The last name." }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { type: "string", title: "value" }, + phone_number_type: { type: "string", title: "phone_number_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { type: "string", title: "id" }, + file_url: { type: "string", title: "file_url" }, + file_name: { type: "string", title: "file_name" }, + attachment_type: { type: "string", title: "attachment_type" }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { value: "HRIS", description: "Merge HRIS Category" }, + { value: "ATS", description: "Merge ATS Category" }, + { value: "Accounting", description: "Merge Accounting Category" }, + { value: "Ticketing", description: "Merge Ticketing Category" }, + { value: "File Storage", description: "Merge File Storage Category" }, + { value: "CRM", description: "Merge CRM Category" }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { type: "string", format: "uuid" }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remote_field_classes: { key: "value" }, + status: { linked_account_status: "linked_account_status", can_make_request: true }, + has_conditional_params: true, + has_required_linked_account_params: true, + }; + server + .mockEndpoint() + .get("/ticketing/v1/contacts/meta/post") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.ticketing.contacts.metaPostRetrieve(); + expect(response).toEqual({ + requestSchema: { + type: "object", + properties: { + model: { + type: "object", + required: [ + "last_name", + "first_name", + "merge_categories", + "new_york_city_neighborhood", + "favorite_tv_shows", + "favorite_watch", + ], + properties: { + email_addresses: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + email_address_type: { + type: "string", + title: "email_address_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "email_addresses", + description: "Array of email_addresses objects", + }, + urls: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + url_type: { + type: "string", + title: "url_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "urls", + description: "Array of urls objects", + }, + first_name: { + type: "string", + title: "first_name", + description: "The first name.", + }, + last_name: { + type: "string", + title: "last_name", + description: "The last name.", + }, + phone_numbers: { + type: "array", + items: { + type: "object", + properties: { + value: { + type: "string", + title: "value", + }, + phone_number_type: { + type: "string", + title: "phone_number_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "phone_numbers", + description: "Array of phone_numbers objects", + }, + tags: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "tags", + description: "Array of tags names", + }, + attachments: { + type: "array", + items: { + type: "object", + properties: { + id: { + type: "string", + title: "id", + }, + file_url: { + type: "string", + title: "file_url", + }, + file_name: { + type: "string", + title: "file_name", + }, + attachment_type: { + type: "string", + title: "attachment_type", + }, + integration_params: { + type: "object", + title: "integration_params", + properties: {}, + }, + linked_account_params: { + type: "object", + title: "linked_account_params", + properties: {}, + }, + }, + }, + title: "attachments", + description: "Array of attachments objects ", + }, + merge_categories: { + type: "array", + categories: { + type: "string", + enum: [ + "HRIS", + "ATS", + "Accounting", + "Ticketing", + "File Storage", + "CRM", + "Marketing Automation", + ], + enum_information: [ + { + value: "HRIS", + description: "Merge HRIS Category", + }, + { + value: "ATS", + description: "Merge ATS Category", + }, + { + value: "Accounting", + description: "Merge Accounting Category", + }, + { + value: "Ticketing", + description: "Merge Ticketing Category", + }, + { + value: "File Storage", + description: "Merge File Storage Category", + }, + { + value: "CRM", + description: "Merge CRM Category", + }, + { + value: "Marketing Automation", + description: "Merge Marketing Automation Category", + }, + ], + }, + title: "Merge Categories", + description: "Array of Merge's Unified API Categories", + }, + new_york_city_neighborhood: { + type: "string", + title: "Borough", + description: "One of the 5 Boroughs of New York City", + }, + favorite_tv_shows: { + type: "array", + items: { + type: "string", + format: "uuid", + }, + title: "Favorite TV Shows", + description: "Array of TV Show objects on merge.tv_shows", + }, + favorite_watch: { + type: "string", + title: "Favorite Watch", + description: "Favorite watch of all time", + }, + }, + }, + }, + }, + remoteFieldClasses: { + key: "value", + }, + status: { + linkedAccountStatus: "linked_account_status", + canMakeRequest: true, + }, + hasConditionalParams: true, + hasRequiredLinkedAccountParams: true, + }); + }); +}); diff --git a/tests/wire/ticketing/deleteAccount.test.ts b/tests/wire/Ticketing/deleteAccount.test.ts similarity index 100% rename from tests/wire/ticketing/deleteAccount.test.ts rename to tests/wire/Ticketing/deleteAccount.test.ts diff --git a/tests/wire/Ticketing/fieldMapping.test.ts b/tests/wire/Ticketing/fieldMapping.test.ts new file mode 100644 index 000000000..500bc3f9f --- /dev/null +++ b/tests/wire/Ticketing/fieldMapping.test.ts @@ -0,0 +1,1459 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("FieldMappingClient", () => { + test("field_mappings_retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + Ticket: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Comment: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Project: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Collection: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + User: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Role: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Account: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Team: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Attachment: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Tag: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + Contact: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + ], + }; + server + .mockEndpoint() + .get("/ticketing/v1/field-mappings") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.ticketing.fieldMapping.fieldMappingsRetrieve({ + excludeRemoteFieldMetadata: true, + }); + expect(response).toEqual({ + ticket: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + comment: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + project: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + collection: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + user: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + role: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + account: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + team: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + attachment: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + tag: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + contact: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + ], + }); + }); + + test("field_mappings_create", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = { + target_field_name: "example_target_field_name", + target_field_description: "this is a example description of the target field", + remote_field_traversal_path: ["example_remote_field"], + remote_method: "GET", + remote_url_path: "/example-url-path", + common_model_name: "ExampleCommonModel", + }; + const rawResponseBody = { + model: { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .post("/ticketing/v1/field-mappings") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.ticketing.fieldMapping.fieldMappingsCreate({ + excludeRemoteFieldMetadata: true, + remoteDataIterationCount: 1, + targetFieldName: "example_target_field_name", + targetFieldDescription: "this is a example description of the target field", + remoteFieldTraversalPath: ["example_remote_field"], + remoteMethod: "GET", + remoteUrlPath: "/example-url-path", + commonModelName: "ExampleCommonModel", + }); + expect(response).toEqual({ + model: { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("field_mappings_destroy", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + model: { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .delete("/ticketing/v1/field-mappings/field_mapping_id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.ticketing.fieldMapping.fieldMappingsDestroy("field_mapping_id"); + expect(response).toEqual({ + model: { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("field_mappings_partial_update", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + const rawRequestBody = {}; + const rawResponseBody = { + model: { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + is_integration_wide: true, + target_field: { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_organization_wide: true, + }, + remote_field: { + remote_key_name: "example_remote_field_key", + schema: { type: "string" }, + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_remote_field_key"], + }, + }, + jmes_path: "[0].example_jmes_path", + }, + warnings: [ + { + source: { pointer: "pointer" }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problem_type: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { pointer: "pointer" }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problem_type: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + log_id: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + log_summary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + status_code: 200, + }, + }, + ], + }; + server + .mockEndpoint() + .patch("/ticketing/v1/field-mappings/field_mapping_id") + .jsonBody(rawRequestBody) + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.ticketing.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { + remoteDataIterationCount: 1, + }); + expect(response).toEqual({ + model: { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + isIntegrationWide: true, + targetField: { + name: "example_target_field_name", + description: "this is a example description of a target field", + isOrganizationWide: true, + }, + remoteField: { + remoteKeyName: "example_remote_field_key", + schema: { + type: "string", + }, + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_remote_field_key"], + }, + }, + jmesPath: "[0].example_jmes_path", + }, + warnings: [ + { + source: { + pointer: "pointer", + }, + title: "Unrecognized Field", + detail: "An unrecognized field, age, was passed in with request data.", + problemType: "UNRECOGNIZED_FIELD", + }, + ], + errors: [ + { + source: { + pointer: "pointer", + }, + title: "Missing Required Field", + detail: "custom_fields is a required field on model.", + problemType: "MISSING_REQUIRED_FIELD", + }, + ], + logs: [ + { + logId: "99433219-8017-4acd-bb3c-ceb23d663832", + dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", + logSummary: { + url: "www.exampleintegration.com/api/v1/exampleapi", + method: "POST", + statusCode: 200, + }, + }, + ], + }); + }); + + test("remote_fields_retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + Ticket: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Comment: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Project: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Collection: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + User: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Role: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Account: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Team: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Attachment: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Tag: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + Contact: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], + }; + server + .mockEndpoint() + .get("/ticketing/v1/remote-fields") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.ticketing.fieldMapping.remoteFieldsRetrieve({ + commonModels: "common_models", + includeExampleValues: "include_example_values", + }); + expect(response).toEqual({ + ticket: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + comment: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + project: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + collection: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + user: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + role: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + account: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + team: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + attachment: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + tag: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + contact: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], + }); + }); + + test("target_fields_retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + Ticket: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Comment: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Project: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Collection: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + User: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Role: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Account: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Team: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Attachment: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Tag: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + Contact: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + is_mapped: "is_mapped", + }, + ], + }; + server + .mockEndpoint() + .get("/ticketing/v1/target-fields") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.ticketing.fieldMapping.targetFieldsRetrieve(); + expect(response).toEqual({ + ticket: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + comment: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + project: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + collection: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + user: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + role: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + account: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + team: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + attachment: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + tag: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + contact: [ + { + name: "example_target_field_name", + description: "this is a example description of a target field", + isMapped: "is_mapped", + }, + ], + }); + }); +}); diff --git a/tests/wire/ticketing/forceResync.test.ts b/tests/wire/Ticketing/forceResync.test.ts similarity index 100% rename from tests/wire/ticketing/forceResync.test.ts rename to tests/wire/Ticketing/forceResync.test.ts diff --git a/tests/wire/ticketing/generateKey.test.ts b/tests/wire/Ticketing/generateKey.test.ts similarity index 100% rename from tests/wire/ticketing/generateKey.test.ts rename to tests/wire/Ticketing/generateKey.test.ts diff --git a/tests/wire/Ticketing/issues.test.ts b/tests/wire/Ticketing/issues.test.ts new file mode 100644 index 000000000..380585a3e --- /dev/null +++ b/tests/wire/Ticketing/issues.test.ts @@ -0,0 +1,122 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("IssuesClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + status: "ONGOING", + error_description: "Missing Permissions", + end_user: { key: "value" }, + first_incident_time: "2022-12-05T16:19:15Z", + last_incident_time: "2022-12-05T16:19:15Z", + is_muted: true, + error_details: ["Missing employee permissions.", "Missing time off permissions."], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/ticketing/v1/issues") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + status: "ONGOING", + errorDescription: "Missing Permissions", + endUser: { + key: "value", + }, + firstIncidentTime: new Date("2022-12-05T16:19:15.000Z"), + lastIncidentTime: new Date("2022-12-05T16:19:15.000Z"), + isMuted: true, + errorDetails: ["Missing employee permissions.", "Missing time off permissions."], + }, + ], + }; + const page = await client.ticketing.issues.list({ + accountToken: "account_token", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endDate: "end_date", + endUserOrganizationName: "end_user_organization_name", + firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + includeMuted: "include_muted", + integrationName: "integration_name", + lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + linkedAccountId: "linked_account_id", + pageSize: 1, + startDate: "start_date", + status: "ONGOING", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + status: "ONGOING", + error_description: "Missing Permissions", + end_user: { key: "value" }, + first_incident_time: "2022-12-05T16:19:15Z", + last_incident_time: "2022-12-05T16:19:15Z", + is_muted: true, + error_details: ["Missing employee permissions.", "Missing time off permissions."], + }; + server + .mockEndpoint() + .get("/ticketing/v1/issues/id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.ticketing.issues.retrieve("id"); + expect(response).toEqual({ + id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", + status: "ONGOING", + errorDescription: "Missing Permissions", + endUser: { + key: "value", + }, + firstIncidentTime: new Date("2022-12-05T16:19:15.000Z"), + lastIncidentTime: new Date("2022-12-05T16:19:15.000Z"), + isMuted: true, + errorDetails: ["Missing employee permissions.", "Missing time off permissions."], + }); + }); +}); diff --git a/tests/wire/ticketing/linkToken.test.ts b/tests/wire/Ticketing/linkToken.test.ts similarity index 100% rename from tests/wire/ticketing/linkToken.test.ts rename to tests/wire/Ticketing/linkToken.test.ts diff --git a/tests/wire/Ticketing/linkedAccounts.test.ts b/tests/wire/Ticketing/linkedAccounts.test.ts new file mode 100644 index 000000000..4f48aac2d --- /dev/null +++ b/tests/wire/Ticketing/linkedAccounts.test.ts @@ -0,0 +1,119 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("LinkedAccountsClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "e59b1821-f85c-4e28-a6b3-1804156f3563", + category: "hris", + status: "COMPLETE", + status_detail: "Invalid login credentials", + end_user_origin_id: "3ac95cde-6c7f-4eef-afec-be710b42308d", + end_user_organization_name: "Foo Bar, LLC", + end_user_email_address: "hradmin@foobar.dev", + subdomain: "foobar", + webhook_listener_url: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", + is_duplicate: true, + integration: { + name: "name", + categories: ["hris"], + color: "color", + slug: "slug", + passthrough_available: true, + available_model_operations: [ + { + model_name: "Candidate", + available_operations: ["FETCH", "CREATE"], + required_post_parameters: ["remote_user_id"], + supported_fields: ["first_name", "last_name", "company", "title"], + }, + ], + }, + account_type: "PRODUCTION", + completed_at: "2024-08-26T20:11:19Z", + integration_specific_fields: { integration_specific_field: "Varies by platform" }, + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/ticketing/v1/linked-accounts") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "e59b1821-f85c-4e28-a6b3-1804156f3563", + category: "hris", + status: "COMPLETE", + statusDetail: "Invalid login credentials", + endUserOriginId: "3ac95cde-6c7f-4eef-afec-be710b42308d", + endUserOrganizationName: "Foo Bar, LLC", + endUserEmailAddress: "hradmin@foobar.dev", + subdomain: "foobar", + webhookListenerUrl: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", + isDuplicate: true, + integration: { + name: "name", + categories: ["hris"], + color: "color", + slug: "slug", + passthroughAvailable: true, + availableModelOperations: [ + { + modelName: "Candidate", + availableOperations: ["FETCH", "CREATE"], + requiredPostParameters: ["remote_user_id"], + supportedFields: ["first_name", "last_name", "company", "title"], + }, + ], + }, + accountType: "PRODUCTION", + completedAt: new Date("2024-08-26T20:11:19.000Z"), + integrationSpecificFields: { + integration_specific_field: "Varies by platform", + }, + }, + ], + }; + const page = await client.ticketing.linkedAccounts.list({ + category: "accounting", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endUserEmailAddress: "end_user_email_address", + endUserOrganizationName: "end_user_organization_name", + endUserOriginId: "end_user_origin_id", + endUserOriginIds: "end_user_origin_ids", + id: "id", + ids: "ids", + includeDuplicates: true, + integrationName: "integration_name", + isTestAccount: "is_test_account", + pageSize: 1, + status: "status", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); +}); diff --git a/tests/wire/ticketing/passthrough.test.ts b/tests/wire/Ticketing/passthrough.test.ts similarity index 100% rename from tests/wire/ticketing/passthrough.test.ts rename to tests/wire/Ticketing/passthrough.test.ts diff --git a/tests/wire/Ticketing/projects.test.ts b/tests/wire/Ticketing/projects.test.ts new file mode 100644 index 000000000..f4c66080d --- /dev/null +++ b/tests/wire/Ticketing/projects.test.ts @@ -0,0 +1,239 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("ProjectsClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "fb8c55b6-1cb8-4b4c-9fb6-17924231619d", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Q1 Platform", + description: "For tracking all tasks related to Platform for Q1", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/ticketing/v1/projects") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "fb8c55b6-1cb8-4b4c-9fb6-17924231619d", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Q1 Platform", + description: "For tracking all tasks related to Platform for Q1", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/platform-endpoint", + data: ["Varies by platform"], + }, + ], + }, + ], + }; + const page = await client.ticketing.projects.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + id: "fb8c55b6-1cb8-4b4c-9fb6-17924231619d", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Q1 Platform", + description: "For tracking all tasks related to Platform for Q1", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], + }; + server + .mockEndpoint() + .get("/ticketing/v1/projects/id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.ticketing.projects.retrieve("id", { + includeRemoteData: true, + includeShellData: true, + }); + expect(response).toEqual({ + id: "fb8c55b6-1cb8-4b4c-9fb6-17924231619d", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Q1 Platform", + description: "For tracking all tasks related to Platform for Q1", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/platform-endpoint", + data: ["Varies by platform"], + }, + ], + }); + }); + + test("usersList", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Gil Feig", + email_address: "help@merge.dev", + is_active: true, + teams: ["28b54125-287f-494d-965e-3c5b330c9a68", "17a54124-287f-494d-965e-3c5b330c9a68"], + roles: ["23454124-387f-494d-265e-345b330c9123"], + avatar: "https://merge.dev/user_profile_pic.png", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/ticketing/v1/projects/parent_id/users") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Gil Feig", + emailAddress: "help@merge.dev", + isActive: true, + teams: ["28b54125-287f-494d-965e-3c5b330c9a68", "17a54124-287f-494d-965e-3c5b330c9a68"], + roles: ["23454124-387f-494d-265e-345b330c9123"], + avatar: "https://merge.dev/user_profile_pic.png", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/platform-endpoint", + data: ["Varies by platform"], + }, + ], + }, + ], + }; + const page = await client.ticketing.projects.usersList("parent_id", { + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + pageSize: 1, + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); +}); diff --git a/tests/wire/ticketing/regenerateKey.test.ts b/tests/wire/Ticketing/regenerateKey.test.ts similarity index 100% rename from tests/wire/ticketing/regenerateKey.test.ts rename to tests/wire/Ticketing/regenerateKey.test.ts diff --git a/tests/wire/ticketing/roles.test.ts b/tests/wire/Ticketing/roles.test.ts similarity index 94% rename from tests/wire/ticketing/roles.test.ts rename to tests/wire/Ticketing/roles.test.ts index 16392d806..5ba44f215 100644 --- a/tests/wire/ticketing/roles.test.ts +++ b/tests/wire/Ticketing/roles.test.ts @@ -35,26 +35,14 @@ describe("RolesClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/ticketing/v1/roles") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.ticketing.roles.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -83,7 +71,24 @@ describe("RolesClient", () => { ], }, ], + }; + const page = await client.ticketing.roles.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { diff --git a/tests/wire/ticketing/scopes.test.ts b/tests/wire/Ticketing/scopes.test.ts similarity index 100% rename from tests/wire/ticketing/scopes.test.ts rename to tests/wire/Ticketing/scopes.test.ts diff --git a/tests/wire/Ticketing/syncStatus.test.ts b/tests/wire/Ticketing/syncStatus.test.ts new file mode 100644 index 000000000..a9c6a5c26 --- /dev/null +++ b/tests/wire/Ticketing/syncStatus.test.ts @@ -0,0 +1,68 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("SyncStatusClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + model_name: "Ticket", + model_id: "ticketing.Ticket", + last_sync_start: "2021-03-30T19:44:18Z", + next_sync_start: "2021-03-30T20:44:18Z", + last_sync_result: "SYNCING", + last_sync_finished: "2021-03-30T19:55:18Z", + status: "SYNCING", + is_initial_sync: true, + selective_sync_configurations_usage: "IN_NEXT_SYNC", + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/ticketing/v1/sync-status") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + modelName: "Ticket", + modelId: "ticketing.Ticket", + lastSyncStart: new Date("2021-03-30T19:44:18.000Z"), + nextSyncStart: new Date("2021-03-30T20:44:18.000Z"), + lastSyncResult: "SYNCING", + lastSyncFinished: new Date("2021-03-30T19:55:18.000Z"), + status: "SYNCING", + isInitialSync: true, + selectiveSyncConfigurationsUsage: "IN_NEXT_SYNC", + }, + ], + }; + const page = await client.ticketing.syncStatus.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + pageSize: 1, + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); +}); diff --git a/tests/wire/Ticketing/tags.test.ts b/tests/wire/Ticketing/tags.test.ts new file mode 100644 index 000000000..d80e41b72 --- /dev/null +++ b/tests/wire/Ticketing/tags.test.ts @@ -0,0 +1,147 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("TagsClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + id: "17a54124-287f-494d-965e-3c5b330c9a68", + name: "Ticketing API", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/ticketing/v1/tags") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + id: "17a54124-287f-494d-965e-3c5b330c9a68", + name: "Ticketing API", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/platform-endpoint", + data: ["Varies by platform"], + }, + ], + }, + ], + }; + const page = await client.ticketing.tags.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + id: "17a54124-287f-494d-965e-3c5b330c9a68", + name: "Ticketing API", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], + }; + server + .mockEndpoint() + .get("/ticketing/v1/tags/id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.ticketing.tags.retrieve("id", { + includeRemoteData: true, + includeShellData: true, + }); + expect(response).toEqual({ + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + id: "17a54124-287f-494d-965e-3c5b330c9a68", + name: "Ticketing API", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/platform-endpoint", + data: ["Varies by platform"], + }, + ], + }); + }); +}); diff --git a/tests/wire/Ticketing/teams.test.ts b/tests/wire/Ticketing/teams.test.ts new file mode 100644 index 000000000..a833ee0a7 --- /dev/null +++ b/tests/wire/Ticketing/teams.test.ts @@ -0,0 +1,151 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("TeamsClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Platform", + description: "Platform and Integrations Team", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/ticketing/v1/teams") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Platform", + description: "Platform and Integrations Team", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/platform-endpoint", + data: ["Varies by platform"], + }, + ], + }, + ], + }; + const page = await client.ticketing.teams.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Platform", + description: "Platform and Integrations Team", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], + }; + server + .mockEndpoint() + .get("/ticketing/v1/teams/id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.ticketing.teams.retrieve("id", { + includeRemoteData: true, + includeShellData: true, + }); + expect(response).toEqual({ + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Platform", + description: "Platform and Integrations Team", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/platform-endpoint", + data: ["Varies by platform"], + }, + ], + }); + }); +}); diff --git a/tests/wire/ticketing/tickets.test.ts b/tests/wire/Ticketing/tickets.test.ts similarity index 88% rename from tests/wire/ticketing/tickets.test.ts rename to tests/wire/Ticketing/tickets.test.ts index 2befcf4f4..d2c37bb46 100644 --- a/tests/wire/ticketing/tickets.test.ts +++ b/tests/wire/Ticketing/tickets.test.ts @@ -36,14 +36,31 @@ describe("TicketsClient", () => { parent_ticket: "parent_ticket", attachments: ["42747df1-95e7-46e2-93cc-66f1191edca5", "92f972d0-2526-434b-9409-4c3b468e08f0"], access_level: "COMPANY", + permissions: [ + { + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + actions: ["VIEW", "EDIT", "CREATE"], + applied_to_users: ["28b54125-287f-494d-965e-3c5b330c9a68"], + applied_to_roles: ["23454124-387f-494d-265e-345b330c9123"], + applied_to_teams: ["17a54124-287f-494d-965e-3c5b330c9a68"], + applied_to_collections: ["fb8c55b6-1cb8-4b4c-9fb6-17924231619d"], + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + }, + ], tags: ["enterprise", "other-tag"], roles: ["21a54124-397f-494d-985e-3c5b330b8a68", "17a54124-287f-494d-965e-3c5b330c9a68"], + ticket_url: "https://thirdpartysoftware.com/project/3/issue/1", + priority: "URGENT", remote_created_at: "2021-11-10T00:00:00Z", remote_updated_at: "2021-12-09T00:00:00Z", completed_at: "2021-12-09T00:00:00Z", remote_was_deleted: true, - ticket_url: "https://thirdpartysoftware.com/project/3/issue/1", - priority: "URGENT", field_mappings: { organization_defined_targets: { custom_key: "custom_value" }, linked_account_defined_targets: { custom_key: "custom_value" }, @@ -54,51 +71,14 @@ describe("TicketsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/ticketing/v1/tickets") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.ticketing.tickets.list({ - accountId: "account_id", - assigneeIds: "assignee_ids", - collectionIds: "collection_ids", - completedAfter: new Date("2024-01-15T09:30:00.000Z"), - completedBefore: new Date("2024-01-15T09:30:00.000Z"), - contactId: "contact_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - creatorId: "creator_id", - creatorIds: "creator_ids", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - dueAfter: new Date("2024-01-15T09:30:00.000Z"), - dueBefore: new Date("2024-01-15T09:30:00.000Z"), - expand: "account", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - name: "name", - pageSize: 1, - parentTicketId: "parent_ticket_id", - priority: "HIGH", - remoteCreatedAfter: new Date("2024-01-15T09:30:00.000Z"), - remoteCreatedBefore: new Date("2024-01-15T09:30:00.000Z"), - remoteFields: "priority", - remoteId: "remote_id", - remoteUpdatedAfter: new Date("2024-01-15T09:30:00.000Z"), - remoteUpdatedBefore: new Date("2024-01-15T09:30:00.000Z"), - showEnumOrigins: "priority", - status: "", - tags: "tags", - ticketType: "ticket_type", - ticketUrl: "ticket_url", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -121,14 +101,35 @@ describe("TicketsClient", () => { parentTicket: "parent_ticket", attachments: ["42747df1-95e7-46e2-93cc-66f1191edca5", "92f972d0-2526-434b-9409-4c3b468e08f0"], accessLevel: "COMPANY", + permissions: [ + { + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + actions: ["VIEW", "EDIT", "CREATE"], + appliedToUsers: ["28b54125-287f-494d-965e-3c5b330c9a68"], + appliedToRoles: ["23454124-387f-494d-265e-345b330c9123"], + appliedToTeams: ["17a54124-287f-494d-965e-3c5b330c9a68"], + appliedToCollections: ["fb8c55b6-1cb8-4b4c-9fb6-17924231619d"], + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + }, + ], tags: ["enterprise", "other-tag"], roles: ["21a54124-397f-494d-985e-3c5b330b8a68", "17a54124-287f-494d-965e-3c5b330c9a68"], + ticketUrl: "https://thirdpartysoftware.com/project/3/issue/1", + priority: "URGENT", remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), remoteUpdatedAt: new Date("2021-12-09T00:00:00.000Z"), completedAt: new Date("2021-12-09T00:00:00.000Z"), remoteWasDeleted: true, - ticketUrl: "https://thirdpartysoftware.com/project/3/issue/1", - priority: "URGENT", fieldMappings: { organization_defined_targets: { custom_key: "custom_value", @@ -151,7 +152,49 @@ describe("TicketsClient", () => { ], }, ], + }; + const page = await client.ticketing.tickets.list({ + accountId: "account_id", + assigneeIds: "assignee_ids", + collectionIds: "collection_ids", + completedAfter: new Date("2024-01-15T09:30:00.000Z"), + completedBefore: new Date("2024-01-15T09:30:00.000Z"), + contactId: "contact_id", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + creatorId: "creator_id", + creatorIds: "creator_ids", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + dueAfter: new Date("2024-01-15T09:30:00.000Z"), + dueBefore: new Date("2024-01-15T09:30:00.000Z"), + includeDeletedData: true, + includeRemoteData: true, + includeRemoteFields: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + parentTicketId: "parent_ticket_id", + priority: "HIGH", + remoteCreatedAfter: new Date("2024-01-15T09:30:00.000Z"), + remoteCreatedBefore: new Date("2024-01-15T09:30:00.000Z"), + remoteFields: "priority", + remoteId: "remote_id", + remoteIds: "remote_ids", + remoteUpdatedAfter: new Date("2024-01-15T09:30:00.000Z"), + remoteUpdatedBefore: new Date("2024-01-15T09:30:00.000Z"), + showEnumOrigins: "priority", + status: "", + tags: "tags", + ticketType: "ticket_type", + ticketUrl: "ticket_url", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("create", async () => { @@ -183,14 +226,31 @@ describe("TicketsClient", () => { parent_ticket: "parent_ticket", attachments: ["42747df1-95e7-46e2-93cc-66f1191edca5", "92f972d0-2526-434b-9409-4c3b468e08f0"], access_level: "COMPANY", + permissions: [ + { + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + actions: ["VIEW", "EDIT", "CREATE"], + applied_to_users: ["28b54125-287f-494d-965e-3c5b330c9a68"], + applied_to_roles: ["23454124-387f-494d-265e-345b330c9123"], + applied_to_teams: ["17a54124-287f-494d-965e-3c5b330c9a68"], + applied_to_collections: ["fb8c55b6-1cb8-4b4c-9fb6-17924231619d"], + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + }, + ], tags: ["enterprise", "other-tag"], roles: ["21a54124-397f-494d-985e-3c5b330b8a68", "17a54124-287f-494d-965e-3c5b330c9a68"], + ticket_url: "https://thirdpartysoftware.com/project/3/issue/1", + priority: "URGENT", remote_created_at: "2021-11-10T00:00:00Z", remote_updated_at: "2021-12-09T00:00:00Z", completed_at: "2021-12-09T00:00:00Z", remote_was_deleted: true, - ticket_url: "https://thirdpartysoftware.com/project/3/issue/1", - priority: "URGENT", field_mappings: { organization_defined_targets: { custom_key: "custom_value" }, linked_account_defined_targets: { custom_key: "custom_value" }, @@ -260,14 +320,35 @@ describe("TicketsClient", () => { parentTicket: "parent_ticket", attachments: ["42747df1-95e7-46e2-93cc-66f1191edca5", "92f972d0-2526-434b-9409-4c3b468e08f0"], accessLevel: "COMPANY", + permissions: [ + { + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + actions: ["VIEW", "EDIT", "CREATE"], + appliedToUsers: ["28b54125-287f-494d-965e-3c5b330c9a68"], + appliedToRoles: ["23454124-387f-494d-265e-345b330c9123"], + appliedToTeams: ["17a54124-287f-494d-965e-3c5b330c9a68"], + appliedToCollections: ["fb8c55b6-1cb8-4b4c-9fb6-17924231619d"], + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + }, + ], tags: ["enterprise", "other-tag"], roles: ["21a54124-397f-494d-985e-3c5b330b8a68", "17a54124-287f-494d-965e-3c5b330c9a68"], + ticketUrl: "https://thirdpartysoftware.com/project/3/issue/1", + priority: "URGENT", remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), remoteUpdatedAt: new Date("2021-12-09T00:00:00.000Z"), completedAt: new Date("2021-12-09T00:00:00.000Z"), remoteWasDeleted: true, - ticketUrl: "https://thirdpartysoftware.com/project/3/issue/1", - priority: "URGENT", fieldMappings: { organization_defined_targets: { custom_key: "custom_value", @@ -351,14 +432,33 @@ describe("TicketsClient", () => { parent_ticket: "parent_ticket", attachments: ["42747df1-95e7-46e2-93cc-66f1191edca5", "92f972d0-2526-434b-9409-4c3b468e08f0"], access_level: "COMPANY", + permissions: [ + { + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + effect: "ALLOWED", + actions: ["VIEW", "EDIT", "CREATE"], + applied_to_users: ["28b54125-287f-494d-965e-3c5b330c9a68"], + applied_to_roles: ["23454124-387f-494d-265e-345b330c9123"], + applied_to_teams: ["17a54124-287f-494d-965e-3c5b330c9a68"], + applied_to_collections: ["fb8c55b6-1cb8-4b4c-9fb6-17924231619d"], + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + }, + ], tags: ["enterprise", "other-tag"], roles: ["21a54124-397f-494d-985e-3c5b330b8a68", "17a54124-287f-494d-965e-3c5b330c9a68"], + ticket_url: "https://thirdpartysoftware.com/project/3/issue/1", + priority: "URGENT", remote_created_at: "2021-11-10T00:00:00Z", remote_updated_at: "2021-12-09T00:00:00Z", completed_at: "2021-12-09T00:00:00Z", remote_was_deleted: true, - ticket_url: "https://thirdpartysoftware.com/project/3/issue/1", - priority: "URGENT", field_mappings: { organization_defined_targets: { custom_key: "custom_value" }, linked_account_defined_targets: { custom_key: "custom_value" }, @@ -375,7 +475,6 @@ describe("TicketsClient", () => { .build(); const response = await client.ticketing.tickets.retrieve("id", { - expand: "account", includeRemoteData: true, includeRemoteFields: true, includeShellData: true, @@ -401,14 +500,37 @@ describe("TicketsClient", () => { parentTicket: "parent_ticket", attachments: ["42747df1-95e7-46e2-93cc-66f1191edca5", "92f972d0-2526-434b-9409-4c3b468e08f0"], accessLevel: "COMPANY", + permissions: [ + { + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + effect: "ALLOWED", + actions: ["VIEW", "EDIT", "CREATE"], + appliedToUsers: ["28b54125-287f-494d-965e-3c5b330c9a68"], + appliedToRoles: ["23454124-387f-494d-265e-345b330c9123"], + appliedToTeams: ["17a54124-287f-494d-965e-3c5b330c9a68"], + appliedToCollections: ["fb8c55b6-1cb8-4b4c-9fb6-17924231619d"], + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + }, + ], tags: ["enterprise", "other-tag"], roles: ["21a54124-397f-494d-985e-3c5b330b8a68", "17a54124-287f-494d-965e-3c5b330c9a68"], + ticketUrl: "https://thirdpartysoftware.com/project/3/issue/1", + priority: "URGENT", remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), remoteUpdatedAt: new Date("2021-12-09T00:00:00.000Z"), completedAt: new Date("2021-12-09T00:00:00.000Z"), remoteWasDeleted: true, - ticketUrl: "https://thirdpartysoftware.com/project/3/issue/1", - priority: "URGENT", fieldMappings: { organization_defined_targets: { custom_key: "custom_value", @@ -461,14 +583,31 @@ describe("TicketsClient", () => { parent_ticket: "parent_ticket", attachments: ["42747df1-95e7-46e2-93cc-66f1191edca5", "92f972d0-2526-434b-9409-4c3b468e08f0"], access_level: "COMPANY", + permissions: [ + { + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + actions: ["VIEW", "EDIT", "CREATE"], + applied_to_users: ["28b54125-287f-494d-965e-3c5b330c9a68"], + applied_to_roles: ["23454124-387f-494d-265e-345b330c9123"], + applied_to_teams: ["17a54124-287f-494d-965e-3c5b330c9a68"], + applied_to_collections: ["fb8c55b6-1cb8-4b4c-9fb6-17924231619d"], + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + }, + ], tags: ["enterprise", "other-tag"], roles: ["21a54124-397f-494d-985e-3c5b330b8a68", "17a54124-287f-494d-965e-3c5b330c9a68"], + ticket_url: "https://thirdpartysoftware.com/project/3/issue/1", + priority: "URGENT", remote_created_at: "2021-11-10T00:00:00Z", remote_updated_at: "2021-12-09T00:00:00Z", completed_at: "2021-12-09T00:00:00Z", remote_was_deleted: true, - ticket_url: "https://thirdpartysoftware.com/project/3/issue/1", - priority: "URGENT", field_mappings: { organization_defined_targets: { custom_key: "custom_value" }, linked_account_defined_targets: { custom_key: "custom_value" }, @@ -538,14 +677,35 @@ describe("TicketsClient", () => { parentTicket: "parent_ticket", attachments: ["42747df1-95e7-46e2-93cc-66f1191edca5", "92f972d0-2526-434b-9409-4c3b468e08f0"], accessLevel: "COMPANY", + permissions: [ + { + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + actions: ["VIEW", "EDIT", "CREATE"], + appliedToUsers: ["28b54125-287f-494d-965e-3c5b330c9a68"], + appliedToRoles: ["23454124-387f-494d-265e-345b330c9123"], + appliedToTeams: ["17a54124-287f-494d-965e-3c5b330c9a68"], + appliedToCollections: ["fb8c55b6-1cb8-4b4c-9fb6-17924231619d"], + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + }, + ], tags: ["enterprise", "other-tag"], roles: ["21a54124-397f-494d-985e-3c5b330b8a68", "17a54124-287f-494d-965e-3c5b330c9a68"], + ticketUrl: "https://thirdpartysoftware.com/project/3/issue/1", + priority: "URGENT", remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), remoteUpdatedAt: new Date("2021-12-09T00:00:00.000Z"), completedAt: new Date("2021-12-09T00:00:00.000Z"), remoteWasDeleted: true, - ticketUrl: "https://thirdpartysoftware.com/project/3/issue/1", - priority: "URGENT", fieldMappings: { organization_defined_targets: { custom_key: "custom_value", @@ -625,22 +785,14 @@ describe("TicketsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/ticketing/v1/tickets/ticket_id/viewers") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.ticketing.tickets.viewersList("ticket_id", { - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "team", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - pageSize: 1, - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -653,7 +805,19 @@ describe("TicketsClient", () => { user: "user", }, ], + }; + const page = await client.ticketing.tickets.viewersList("ticket_id", { + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + pageSize: 1, }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("metaPatchRetrieve", async () => { @@ -1529,24 +1693,14 @@ describe("TicketsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/ticketing/v1/tickets/remote-field-classes") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.ticketing.tickets.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - ids: "ids", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -1563,6 +1717,21 @@ describe("TicketsClient", () => { fieldChoices: [{}], }, ], + }; + const page = await client.ticketing.tickets.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + ids: "ids", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isCommonModelField: true, + isCustom: true, + pageSize: 1, }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); }); diff --git a/tests/wire/Ticketing/users.test.ts b/tests/wire/Ticketing/users.test.ts new file mode 100644 index 000000000..57b5e2cb9 --- /dev/null +++ b/tests/wire/Ticketing/users.test.ts @@ -0,0 +1,172 @@ +// This file was auto-generated by Fern from our API Definition. + +import { MergeClient } from "../../../src/Client"; +import { mockServerPool } from "../../mock-server/MockServerPool"; + +describe("UsersClient", () => { + test("list", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Gil Feig", + email_address: "help@merge.dev", + is_active: true, + teams: ["28b54125-287f-494d-965e-3c5b330c9a68", "17a54124-287f-494d-965e-3c5b330c9a68"], + roles: ["23454124-387f-494d-265e-345b330c9123"], + avatar: "https://merge.dev/user_profile_pic.png", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], + }, + ], + }; + server + .mockEndpoint({ once: false }) + .get("/ticketing/v1/users") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const expected = { + next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", + results: [ + { + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Gil Feig", + emailAddress: "help@merge.dev", + isActive: true, + teams: ["28b54125-287f-494d-965e-3c5b330c9a68", "17a54124-287f-494d-965e-3c5b330c9a68"], + roles: ["23454124-387f-494d-265e-345b330c9123"], + avatar: "https://merge.dev/user_profile_pic.png", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/platform-endpoint", + data: ["Varies by platform"], + }, + ], + }, + ], + }; + const page = await client.ticketing.users.list({ + collections: "collections", + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + emailAddress: "email_address", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", + roles: "roles", + team: "team", + teams: "teams", + }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); + }); + + test("retrieve", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remote_id: "19202938", + created_at: "2021-09-15T00:00:00Z", + modified_at: "2021-10-16T00:00:00Z", + name: "Gil Feig", + email_address: "help@merge.dev", + is_active: true, + teams: ["28b54125-287f-494d-965e-3c5b330c9a68", "17a54124-287f-494d-965e-3c5b330c9a68"], + roles: ["23454124-387f-494d-265e-345b330c9123"], + avatar: "https://merge.dev/user_profile_pic.png", + remote_was_deleted: true, + field_mappings: { + organization_defined_targets: { custom_key: "custom_value" }, + linked_account_defined_targets: { custom_key: "custom_value" }, + }, + remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], + }; + server + .mockEndpoint() + .get("/ticketing/v1/users/id") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.ticketing.users.retrieve("id", { + includeRemoteData: true, + includeShellData: true, + }); + expect(response).toEqual({ + id: "17a54124-287f-494d-965e-3c5b330c9a68", + remoteId: "19202938", + createdAt: new Date("2021-09-15T00:00:00.000Z"), + modifiedAt: new Date("2021-10-16T00:00:00.000Z"), + name: "Gil Feig", + emailAddress: "help@merge.dev", + isActive: true, + teams: ["28b54125-287f-494d-965e-3c5b330c9a68", "17a54124-287f-494d-965e-3c5b330c9a68"], + roles: ["23454124-387f-494d-265e-345b330c9123"], + avatar: "https://merge.dev/user_profile_pic.png", + remoteWasDeleted: true, + fieldMappings: { + organization_defined_targets: { + custom_key: "custom_value", + }, + linked_account_defined_targets: { + custom_key: "custom_value", + }, + }, + remoteData: [ + { + path: "/platform-endpoint", + data: ["Varies by platform"], + }, + ], + }); + }); +}); diff --git a/tests/wire/ticketing/webhookReceivers.test.ts b/tests/wire/Ticketing/webhookReceivers.test.ts similarity index 100% rename from tests/wire/ticketing/webhookReceivers.test.ts rename to tests/wire/Ticketing/webhookReceivers.test.ts diff --git a/tests/wire/accounting/accountToken.test.ts b/tests/wire/accounting/accountToken.test.ts deleted file mode 100644 index b2c44fe84..000000000 --- a/tests/wire/accounting/accountToken.test.ts +++ /dev/null @@ -1,62 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AccountTokenClient", () => { - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - account_token: "T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB", - integration: { - name: "name", - abbreviated_name: "abbreviated_name", - categories: ["hris"], - image: "image", - square_image: "square_image", - color: "color", - slug: "slug", - api_endpoints_to_documentation_urls: { key: "value" }, - webhook_setup_guide_url: "webhook_setup_guide_url", - category_beta_status: { key: "value" }, - }, - id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", - }; - server - .mockEndpoint() - .get("/accounting/v1/account-token/public_token") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.accountToken.retrieve("public_token"); - expect(response).toEqual({ - accountToken: "T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB", - integration: { - name: "name", - abbreviatedName: "abbreviated_name", - categories: ["hris"], - image: "image", - squareImage: "square_image", - color: "color", - slug: "slug", - apiEndpointsToDocumentationUrls: { - key: "value", - }, - webhookSetupGuideUrl: "webhook_setup_guide_url", - categoryBetaStatus: { - key: "value", - }, - }, - id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", - }); - }); -}); diff --git a/tests/wire/accounting/accounts.test.ts b/tests/wire/accounting/accounts.test.ts deleted file mode 100644 index c40158350..000000000 --- a/tests/wire/accounting/accounts.test.ts +++ /dev/null @@ -1,756 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AccountsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "21", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Cash", - description: "Cash", - classification: "ASSET", - type: "Asset", - account_type: "BANK", - status: "ACTIVE", - current_balance: 1.1, - currency: "XUA", - account_number: "X12Y9AB", - parent_account: "22d92d6c-22f9-11ed-861d-0242ac120002", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/accounts") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.accounts.list({ - accountType: "account_type", - classification: "", - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "company", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - name: "name", - pageSize: 1, - remoteFields: "classification", - remoteId: "remote_id", - showEnumOrigins: "classification", - status: "", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "21", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Cash", - description: "Cash", - classification: "ASSET", - type: "Asset", - accountType: "BANK", - status: "ACTIVE", - currentBalance: 1.1, - currency: "XUA", - accountNumber: "X12Y9AB", - parentAccount: "22d92d6c-22f9-11ed-861d-0242ac120002", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "21", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Cash", - description: "Cash", - classification: "ASSET", - type: "Asset", - account_type: "BANK", - status: "ACTIVE", - current_balance: 1.1, - currency: "XUA", - account_number: "X12Y9AB", - parent_account: "22d92d6c-22f9-11ed-861d-0242ac120002", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/accounting/v1/accounts") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.accounts.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "21", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Cash", - description: "Cash", - classification: "ASSET", - type: "Asset", - accountType: "BANK", - status: "ACTIVE", - currentBalance: 1.1, - currency: "XUA", - accountNumber: "X12Y9AB", - parentAccount: "22d92d6c-22f9-11ed-861d-0242ac120002", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "21", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Cash", - description: "Cash", - classification: "ASSET", - type: "Asset", - account_type: "BANK", - status: "ACTIVE", - current_balance: 1.1, - currency: "XUA", - account_number: "X12Y9AB", - parent_account: "22d92d6c-22f9-11ed-861d-0242ac120002", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/accounting/v1/accounts/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.accounts.retrieve("id", { - expand: "company", - includeRemoteData: true, - includeShellData: true, - remoteFields: "classification", - showEnumOrigins: "classification", - }); - expect(response).toEqual({ - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "21", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Cash", - description: "Cash", - classification: "ASSET", - type: "Asset", - accountType: "BANK", - status: "ACTIVE", - currentBalance: 1.1, - currency: "XUA", - accountNumber: "X12Y9AB", - parentAccount: "22d92d6c-22f9-11ed-861d-0242ac120002", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/accounting/v1/accounts/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.accounts.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); -}); diff --git a/tests/wire/accounting/attachments.test.ts b/tests/wire/accounting/attachments.test.ts deleted file mode 100644 index 009f8a317..000000000 --- a/tests/wire/accounting/attachments.test.ts +++ /dev/null @@ -1,698 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AttachmentsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "1018270", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - file_name: "invoice.png", - file_url: "https://merge-brand.s3.amazonaws.com/20210315/rect-logo-270x80%402x.png", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/attachments") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.attachments.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "1018270", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - fileName: "invoice.png", - fileUrl: "https://merge-brand.s3.amazonaws.com/20210315/rect-logo-270x80%402x.png", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "1018270", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - file_name: "invoice.png", - file_url: "https://merge-brand.s3.amazonaws.com/20210315/rect-logo-270x80%402x.png", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/accounting/v1/attachments") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.attachments.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "1018270", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - fileName: "invoice.png", - fileUrl: "https://merge-brand.s3.amazonaws.com/20210315/rect-logo-270x80%402x.png", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "1018270", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - file_name: "invoice.png", - file_url: "https://merge-brand.s3.amazonaws.com/20210315/rect-logo-270x80%402x.png", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/accounting/v1/attachments/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.attachments.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "1018270", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - fileName: "invoice.png", - fileUrl: "https://merge-brand.s3.amazonaws.com/20210315/rect-logo-270x80%402x.png", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/accounting/v1/attachments/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.attachments.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); -}); diff --git a/tests/wire/accounting/auditTrail.test.ts b/tests/wire/accounting/auditTrail.test.ts deleted file mode 100644 index 365ee5008..000000000 --- a/tests/wire/accounting/auditTrail.test.ts +++ /dev/null @@ -1,67 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AuditTrailClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "b5ceea2a-7171-47ce-8090-165cfce5572c", - user_name: "Gil Feig", - user_email: "hello@merge.dev", - role: "ADMIN", - ip_address: "192.0.2.123", - event_type: "CREATED_REMOTE_PRODUCTION_API_KEY", - event_description: - "Organization-wide Scopes for model hris.Employee updated from Read to Read+Write", - created_at: "2024-01-15T09:30:00Z", - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/audit-trail") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.auditTrail.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - eventType: "event_type", - pageSize: 1, - startDate: "start_date", - userEmail: "user_email", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "b5ceea2a-7171-47ce-8090-165cfce5572c", - userName: "Gil Feig", - userEmail: "hello@merge.dev", - role: "ADMIN", - ipAddress: "192.0.2.123", - eventType: "CREATED_REMOTE_PRODUCTION_API_KEY", - eventDescription: - "Organization-wide Scopes for model hris.Employee updated from Read to Read+Write", - createdAt: new Date("2024-01-15T09:30:00.000Z"), - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/contacts.test.ts b/tests/wire/accounting/contacts.test.ts deleted file mode 100644 index 8d1f23295..000000000 --- a/tests/wire/accounting/contacts.test.ts +++ /dev/null @@ -1,1470 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("ContactsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remote_id: "11167", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Gil Feig's pickleball store", - is_supplier: true, - is_customer: true, - email_address: "pickleball@merge.dev", - tax_number: "12-3456789", - status: "ACTIVE", - currency: "USD", - remote_updated_at: "2020-03-31T00:00:00Z", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - number: "+3198675309", - type: "Mobile", - }, - ], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/contacts") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.contacts.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - emailAddress: "email_address", - expand: "addresses", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCustomer: "is_customer", - isSupplier: "is_supplier", - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - name: "name", - pageSize: 1, - remoteFields: "status", - remoteId: "remote_id", - showEnumOrigins: "status", - status: "", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remoteId: "11167", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Gil Feig's pickleball store", - isSupplier: true, - isCustomer: true, - emailAddress: "pickleball@merge.dev", - taxNumber: "12-3456789", - status: "ACTIVE", - currency: "USD", - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - number: "+3198675309", - type: "Mobile", - }, - ], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remote_id: "11167", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Gil Feig's pickleball store", - is_supplier: true, - is_customer: true, - email_address: "pickleball@merge.dev", - tax_number: "12-3456789", - status: "ACTIVE", - currency: "USD", - remote_updated_at: "2020-03-31T00:00:00Z", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - number: "+3198675309", - type: "Mobile", - }, - ], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/accounting/v1/contacts") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.contacts.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remoteId: "11167", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Gil Feig's pickleball store", - isSupplier: true, - isCustomer: true, - emailAddress: "pickleball@merge.dev", - taxNumber: "12-3456789", - status: "ACTIVE", - currency: "USD", - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - number: "+3198675309", - type: "Mobile", - }, - ], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remote_id: "11167", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Gil Feig's pickleball store", - is_supplier: true, - is_customer: true, - email_address: "pickleball@merge.dev", - tax_number: "12-3456789", - status: "ACTIVE", - currency: "USD", - remote_updated_at: "2020-03-31T00:00:00Z", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - number: "+3198675309", - type: "Mobile", - }, - ], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }; - server - .mockEndpoint() - .get("/accounting/v1/contacts/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.contacts.retrieve("id", { - expand: "addresses", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - remoteFields: "status", - showEnumOrigins: "status", - }); - expect(response).toEqual({ - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remoteId: "11167", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Gil Feig's pickleball store", - isSupplier: true, - isCustomer: true, - emailAddress: "pickleball@merge.dev", - taxNumber: "12-3456789", - status: "ACTIVE", - currency: "USD", - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - number: "+3198675309", - type: "Mobile", - }, - ], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }); - }); - - test("partialUpdate", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remote_id: "11167", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Gil Feig's pickleball store", - is_supplier: true, - is_customer: true, - email_address: "pickleball@merge.dev", - tax_number: "12-3456789", - status: "ACTIVE", - currency: "USD", - remote_updated_at: "2020-03-31T00:00:00Z", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - number: "+3198675309", - type: "Mobile", - }, - ], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .patch("/accounting/v1/contacts/id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.contacts.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remoteId: "11167", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Gil Feig's pickleball store", - isSupplier: true, - isCustomer: true, - emailAddress: "pickleball@merge.dev", - taxNumber: "12-3456789", - status: "ACTIVE", - currency: "USD", - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - addresses: ["2f2702aa-8948-492b-a412-2acdf6d2c499", "d98c7428-8dda-48a8-a1da-c570f65e2375"], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - number: "+3198675309", - type: "Mobile", - }, - ], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("metaPatchRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/accounting/v1/contacts/meta/patch/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.contacts.metaPatchRetrieve("id"); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/accounting/v1/contacts/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.contacts.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("remoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: ["field_choices"], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/contacts/remote-field-classes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.contacts.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: ["field_choices"], - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/creditNotes.test.ts b/tests/wire/accounting/creditNotes.test.ts deleted file mode 100644 index f5de767b0..000000000 --- a/tests/wire/accounting/creditNotes.test.ts +++ /dev/null @@ -1,1026 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("CreditNotesClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - remote_id: "123877", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - transaction_date: "2020-03-31T00:00:00Z", - status: "SUBMITTED", - number: "CN-29", - contact: "contact", - company: "company", - exchange_rate: "2.9", - total_amount: 50, - remaining_credit: 20, - inclusive_of_tax: true, - line_items: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - item: "0e3fd929-436c-4fd4-a48b-0c61f68d6178", - name: "Basic Monthly", - description: "prorated amount for items", - quantity: "quantity", - memo: "privNote", - unit_price: "5.0", - tax_rate: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - total_line_amount: "5.0", - tracking_categories: [ - "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - account: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - contact: "908934-49j9-093f-0989-908923908", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - remote_was_deleted: true, - }, - ], - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - currency: "XUA", - remote_created_at: "2020-03-31T00:00:00Z", - remote_updated_at: "2020-03-31T00:00:00Z", - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - applied_payments: ["a9a94a75-19c1-41fe-90d8-d9ba959c38e5"], - accounting_period: "accounting_period", - applied_to_lines: [ - { - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - applied_date: "2020-03-31T00:00:00Z", - applied_amount: "2.9", - }, - ], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/credit-notes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.creditNotes.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "accounting_period", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteFields: "status", - remoteId: "remote_id", - showEnumOrigins: "status", - transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), - transactionDateBefore: new Date("2024-01-15T09:30:00.000Z"), - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - remoteId: "123877", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - transactionDate: new Date("2020-03-31T00:00:00.000Z"), - status: "SUBMITTED", - number: "CN-29", - contact: "contact", - company: "company", - exchangeRate: "2.9", - totalAmount: 50, - remainingCredit: 20, - inclusiveOfTax: true, - lineItems: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - item: "0e3fd929-436c-4fd4-a48b-0c61f68d6178", - name: "Basic Monthly", - description: "prorated amount for items", - quantity: "quantity", - memo: "privNote", - unitPrice: "5.0", - taxRate: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - totalLineAmount: "5.0", - trackingCategories: [ - "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - account: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - contact: "908934-49j9-093f-0989-908923908", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - remoteWasDeleted: true, - }, - ], - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - currency: "XUA", - remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - appliedPayments: ["a9a94a75-19c1-41fe-90d8-d9ba959c38e5"], - accountingPeriod: "accounting_period", - appliedToLines: [ - { - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - appliedDate: new Date("2020-03-31T00:00:00.000Z"), - appliedAmount: "2.9", - }, - ], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - remote_id: "123877", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - transaction_date: "2020-03-31T00:00:00Z", - status: "SUBMITTED", - number: "CN-29", - contact: "contact", - company: "company", - exchange_rate: "2.9", - total_amount: 50, - remaining_credit: 20, - inclusive_of_tax: true, - line_items: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - item: "0e3fd929-436c-4fd4-a48b-0c61f68d6178", - name: "Basic Monthly", - description: "prorated amount for items", - quantity: "quantity", - memo: "privNote", - unit_price: "5.0", - tax_rate: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - total_line_amount: "5.0", - tracking_categories: [ - "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - account: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - contact: "908934-49j9-093f-0989-908923908", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - remote_was_deleted: true, - }, - ], - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - currency: "XUA", - remote_created_at: "2020-03-31T00:00:00Z", - remote_updated_at: "2020-03-31T00:00:00Z", - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - applied_payments: ["a9a94a75-19c1-41fe-90d8-d9ba959c38e5"], - accounting_period: "accounting_period", - applied_to_lines: [ - { - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - applied_date: "2020-03-31T00:00:00Z", - applied_amount: "2.9", - }, - ], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/accounting/v1/credit-notes") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.creditNotes.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - remoteId: "123877", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - transactionDate: new Date("2020-03-31T00:00:00.000Z"), - status: "SUBMITTED", - number: "CN-29", - contact: "contact", - company: "company", - exchangeRate: "2.9", - totalAmount: 50, - remainingCredit: 20, - inclusiveOfTax: true, - lineItems: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - item: "0e3fd929-436c-4fd4-a48b-0c61f68d6178", - name: "Basic Monthly", - description: "prorated amount for items", - quantity: "quantity", - memo: "privNote", - unitPrice: "5.0", - taxRate: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - totalLineAmount: "5.0", - trackingCategories: [ - "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - account: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - contact: "908934-49j9-093f-0989-908923908", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - remoteWasDeleted: true, - }, - ], - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - currency: "XUA", - remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - appliedPayments: ["a9a94a75-19c1-41fe-90d8-d9ba959c38e5"], - accountingPeriod: "accounting_period", - appliedToLines: [ - { - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - appliedDate: new Date("2020-03-31T00:00:00.000Z"), - appliedAmount: "2.9", - }, - ], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - remote_id: "123877", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - transaction_date: "2020-03-31T00:00:00Z", - status: "SUBMITTED", - number: "CN-29", - contact: "contact", - company: "company", - exchange_rate: "2.9", - total_amount: 50, - remaining_credit: 20, - inclusive_of_tax: true, - line_items: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - item: "0e3fd929-436c-4fd4-a48b-0c61f68d6178", - name: "Basic Monthly", - description: "prorated amount for items", - quantity: "quantity", - memo: "privNote", - unit_price: "5.0", - tax_rate: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - total_line_amount: "5.0", - tracking_categories: [ - "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - account: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - contact: "908934-49j9-093f-0989-908923908", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - remote_was_deleted: true, - }, - ], - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - currency: "XUA", - remote_created_at: "2020-03-31T00:00:00Z", - remote_updated_at: "2020-03-31T00:00:00Z", - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - applied_payments: ["a9a94a75-19c1-41fe-90d8-d9ba959c38e5"], - accounting_period: "accounting_period", - applied_to_lines: [ - { - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - applied_date: "2020-03-31T00:00:00Z", - applied_amount: "2.9", - remote_was_deleted: true, - }, - ], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/accounting/v1/credit-notes/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.creditNotes.retrieve("id", { - expand: "accounting_period", - includeRemoteData: true, - includeShellData: true, - remoteFields: "status", - showEnumOrigins: "status", - }); - expect(response).toEqual({ - id: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - remoteId: "123877", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - transactionDate: new Date("2020-03-31T00:00:00.000Z"), - status: "SUBMITTED", - number: "CN-29", - contact: "contact", - company: "company", - exchangeRate: "2.9", - totalAmount: 50, - remainingCredit: 20, - inclusiveOfTax: true, - lineItems: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - item: "0e3fd929-436c-4fd4-a48b-0c61f68d6178", - name: "Basic Monthly", - description: "prorated amount for items", - quantity: "quantity", - memo: "privNote", - unitPrice: "5.0", - taxRate: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - totalLineAmount: "5.0", - trackingCategories: [ - "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - account: "8d9fd929-436c-4fd4-a48b-0c61f68d6178", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - contact: "908934-49j9-093f-0989-908923908", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - remoteWasDeleted: true, - }, - ], - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - currency: "XUA", - remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - appliedPayments: ["a9a94a75-19c1-41fe-90d8-d9ba959c38e5"], - accountingPeriod: "accounting_period", - appliedToLines: [ - { - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - appliedDate: new Date("2020-03-31T00:00:00.000Z"), - appliedAmount: "2.9", - remoteWasDeleted: true, - }, - ], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/accounting/v1/credit-notes/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.creditNotes.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); -}); diff --git a/tests/wire/accounting/employees.test.ts b/tests/wire/accounting/employees.test.ts deleted file mode 100644 index c9499783c..000000000 --- a/tests/wire/accounting/employees.test.ts +++ /dev/null @@ -1,169 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("EmployeesClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remote_id: "11167", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - first_name: "John", - last_name: "Smith", - is_contractor: true, - employee_number: "325462", - email_address: "johnsmith@merge.dev", - company: "company", - status: "ACTIVE", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/employees") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.employees.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "company", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remoteId: "11167", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - firstName: "John", - lastName: "Smith", - isContractor: true, - employeeNumber: "325462", - emailAddress: "johnsmith@merge.dev", - company: "company", - status: "ACTIVE", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remote_id: "11167", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - first_name: "John", - last_name: "Smith", - is_contractor: true, - employee_number: "325462", - email_address: "johnsmith@merge.dev", - company: "company", - status: "ACTIVE", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/accounting/v1/employees/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.employees.retrieve("id", { - expand: "company", - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remoteId: "11167", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - firstName: "John", - lastName: "Smith", - isContractor: true, - employeeNumber: "325462", - emailAddress: "johnsmith@merge.dev", - company: "company", - status: "ACTIVE", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/expenseReports.test.ts b/tests/wire/accounting/expenseReports.test.ts deleted file mode 100644 index 3ce433651..000000000 --- a/tests/wire/accounting/expenseReports.test.ts +++ /dev/null @@ -1,1171 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("ExpenseReportsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "123e4567-e89b-12d3-a456-426614174000", - remote_id: "exp_123e4567-e89b-12d3-a456-426614174000", - created_at: "2024-01-31T12:00:00Z", - modified_at: "2024-01-31T14:30:00Z", - report_date: "2024-01-31T00:00:00Z", - report_identifier: "EXP-2024-001", - employee: "b9a9b824-6172-4d63-9d90-1c8a86c4f3b1", - status: "DRAFT", - total_amount: 150, - lines: [ - { - id: "1234", - remote_id: "abcd-1234", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - account: "acc-1234", - description: "Client lunch meeting", - expense_date: "2024-01-15T00:00:00Z", - amount: 50, - currency: "USD", - exchange_rate: "exchange_rate", - is_billable: true, - tracking_categories: ["cat-1", "cat-2"], - employee: "emp-1234", - project: "proj-5678", - company: "comp-1234", - contact: "cont-5678", - quantity: 1, - unit_price: 50, - non_reimbursable: false, - tax_amount: 5, - inclusive_of_tax: false, - tax_rate: "tax-1234", - remote_was_deleted: false, - }, - ], - currency: "XUA", - description: "January 2024 Travel Expenses", - accounting_period: "7d793c67-9f72-4a6b-9256-3936f237b0d9", - company: "company", - tracking_categories: [ - "a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", - "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p", - ], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/expense-reports") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.expenseReports.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "accounting_period", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "123e4567-e89b-12d3-a456-426614174000", - remoteId: "exp_123e4567-e89b-12d3-a456-426614174000", - createdAt: new Date("2024-01-31T12:00:00.000Z"), - modifiedAt: new Date("2024-01-31T14:30:00.000Z"), - reportDate: new Date("2024-01-31T00:00:00.000Z"), - reportIdentifier: "EXP-2024-001", - employee: "b9a9b824-6172-4d63-9d90-1c8a86c4f3b1", - status: "DRAFT", - totalAmount: 150, - lines: [ - { - id: "1234", - remoteId: "abcd-1234", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - account: "acc-1234", - description: "Client lunch meeting", - expenseDate: new Date("2024-01-15T00:00:00.000Z"), - amount: 50, - currency: "USD", - exchangeRate: "exchange_rate", - isBillable: true, - trackingCategories: ["cat-1", "cat-2"], - employee: "emp-1234", - project: "proj-5678", - company: "comp-1234", - contact: "cont-5678", - quantity: 1, - unitPrice: 50, - nonReimbursable: false, - taxAmount: 5, - inclusiveOfTax: false, - taxRate: "tax-1234", - remoteWasDeleted: false, - }, - ], - currency: "XUA", - description: "January 2024 Travel Expenses", - accountingPeriod: "7d793c67-9f72-4a6b-9256-3936f237b0d9", - company: "company", - trackingCategories: [ - "a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", - "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p", - ], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { - model: { - tracking_categories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"], - }, - }; - const rawResponseBody = { - model: { - id: "123e4567-e89b-12d3-a456-426614174000", - remote_id: "exp_123e4567-e89b-12d3-a456-426614174000", - created_at: "2024-01-31T12:00:00Z", - modified_at: "2024-01-31T14:30:00Z", - report_date: "2024-01-31T00:00:00Z", - report_identifier: "EXP-2024-001", - employee: "b9a9b824-6172-4d63-9d90-1c8a86c4f3b1", - status: "DRAFT", - total_amount: 150, - lines: [ - { - id: "1234", - remote_id: "abcd-1234", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - account: "acc-1234", - description: "Client lunch meeting", - expense_date: "2024-01-15T00:00:00Z", - amount: 50, - currency: "USD", - exchange_rate: "exchange_rate", - is_billable: true, - tracking_categories: ["cat-1", "cat-2"], - employee: "emp-1234", - project: "proj-5678", - company: "comp-1234", - contact: "cont-5678", - quantity: 1, - unit_price: 50, - non_reimbursable: false, - tax_amount: 5, - inclusive_of_tax: false, - tax_rate: "tax-1234", - remote_was_deleted: false, - }, - ], - currency: "XUA", - description: "January 2024 Travel Expenses", - accounting_period: "7d793c67-9f72-4a6b-9256-3936f237b0d9", - company: "company", - tracking_categories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/accounting/v1/expense-reports") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.expenseReports.create({ - isDebugMode: true, - runAsync: true, - model: { - trackingCategories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"], - }, - }); - expect(response).toEqual({ - model: { - id: "123e4567-e89b-12d3-a456-426614174000", - remoteId: "exp_123e4567-e89b-12d3-a456-426614174000", - createdAt: new Date("2024-01-31T12:00:00.000Z"), - modifiedAt: new Date("2024-01-31T14:30:00.000Z"), - reportDate: new Date("2024-01-31T00:00:00.000Z"), - reportIdentifier: "EXP-2024-001", - employee: "b9a9b824-6172-4d63-9d90-1c8a86c4f3b1", - status: "DRAFT", - totalAmount: 150, - lines: [ - { - id: "1234", - remoteId: "abcd-1234", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - account: "acc-1234", - description: "Client lunch meeting", - expenseDate: new Date("2024-01-15T00:00:00.000Z"), - amount: 50, - currency: "USD", - exchangeRate: "exchange_rate", - isBillable: true, - trackingCategories: ["cat-1", "cat-2"], - employee: "emp-1234", - project: "proj-5678", - company: "comp-1234", - contact: "cont-5678", - quantity: 1, - unitPrice: 50, - nonReimbursable: false, - taxAmount: 5, - inclusiveOfTax: false, - taxRate: "tax-1234", - remoteWasDeleted: false, - }, - ], - currency: "XUA", - description: "January 2024 Travel Expenses", - accountingPeriod: "7d793c67-9f72-4a6b-9256-3936f237b0d9", - company: "company", - trackingCategories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("linesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "1234", - remote_id: "abcd-1234", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - account: "account", - description: "Client lunch meeting", - expense_date: "2024-01-15T00:00:00Z", - amount: 50, - currency: "XUA", - exchange_rate: "exchange_rate", - is_billable: true, - tracking_categories: ["cat-1", "cat-2"], - employee: "employee", - project: "project", - company: "company", - contact: "contact", - quantity: 1, - unit_price: 50, - non_reimbursable: true, - tax_amount: 5, - inclusive_of_tax: true, - tax_rate: "tax_rate", - remote_was_deleted: true, - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/expense-reports/expense_report_id/lines") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.expenseReports.linesList("expense_report_id", { - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "account", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "1234", - remoteId: "abcd-1234", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - account: "account", - description: "Client lunch meeting", - expenseDate: new Date("2024-01-15T00:00:00.000Z"), - amount: 50, - currency: "XUA", - exchangeRate: "exchange_rate", - isBillable: true, - trackingCategories: ["cat-1", "cat-2"], - employee: "employee", - project: "project", - company: "company", - contact: "contact", - quantity: 1, - unitPrice: 50, - nonReimbursable: true, - taxAmount: 5, - inclusiveOfTax: true, - taxRate: "tax_rate", - remoteWasDeleted: true, - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "123e4567-e89b-12d3-a456-426614174000", - remote_id: "exp_123e4567-e89b-12d3-a456-426614174000", - created_at: "2024-01-31T12:00:00Z", - modified_at: "2024-01-31T14:30:00Z", - report_date: "2024-01-31T00:00:00Z", - report_identifier: "EXP-2024-001", - employee: "b9a9b824-6172-4d63-9d90-1c8a86c4f3b1", - status: "DRAFT", - total_amount: 150, - lines: [ - { - id: "1234", - remote_id: "abcd-1234", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - account: "acc-1234", - description: "Client lunch meeting", - expense_date: "2024-01-15T00:00:00Z", - amount: 50, - currency: "USD", - exchange_rate: "exchange_rate", - is_billable: true, - tracking_categories: ["cat-1", "cat-2"], - employee: "emp-1234", - project: "proj-5678", - company: "comp-1234", - contact: "cont-5678", - quantity: 1, - unit_price: 50, - non_reimbursable: false, - tax_amount: 5, - inclusive_of_tax: false, - tax_rate: "tax-1234", - remote_was_deleted: false, - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - currency: "XUA", - description: "January 2024 Travel Expenses", - accounting_period: "7d793c67-9f72-4a6b-9256-3936f237b0d9", - company: "company", - tracking_categories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }; - server - .mockEndpoint() - .get("/accounting/v1/expense-reports/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.expenseReports.retrieve("id", { - expand: "accounting_period", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "123e4567-e89b-12d3-a456-426614174000", - remoteId: "exp_123e4567-e89b-12d3-a456-426614174000", - createdAt: new Date("2024-01-31T12:00:00.000Z"), - modifiedAt: new Date("2024-01-31T14:30:00.000Z"), - reportDate: new Date("2024-01-31T00:00:00.000Z"), - reportIdentifier: "EXP-2024-001", - employee: "b9a9b824-6172-4d63-9d90-1c8a86c4f3b1", - status: "DRAFT", - totalAmount: 150, - lines: [ - { - id: "1234", - remoteId: "abcd-1234", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - account: "acc-1234", - description: "Client lunch meeting", - expenseDate: new Date("2024-01-15T00:00:00.000Z"), - amount: 50, - currency: "USD", - exchangeRate: "exchange_rate", - isBillable: true, - trackingCategories: ["cat-1", "cat-2"], - employee: "emp-1234", - project: "proj-5678", - company: "comp-1234", - contact: "cont-5678", - quantity: 1, - unitPrice: 50, - nonReimbursable: false, - taxAmount: 5, - inclusiveOfTax: false, - taxRate: "tax-1234", - remoteWasDeleted: false, - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - currency: "XUA", - description: "January 2024 Travel Expenses", - accountingPeriod: "7d793c67-9f72-4a6b-9256-3936f237b0d9", - company: "company", - trackingCategories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }); - }); - - test("linesRemoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: ["field_choices"], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/expense-reports/lines/remote-field-classes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.expenseReports.linesRemoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: ["field_choices"], - }, - ], - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/accounting/v1/expense-reports/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.expenseReports.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("remoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: ["field_choices"], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/expense-reports/remote-field-classes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.expenseReports.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: ["field_choices"], - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/expenses.test.ts b/tests/wire/accounting/expenses.test.ts deleted file mode 100644 index 6664d2db7..000000000 --- a/tests/wire/accounting/expenses.test.ts +++ /dev/null @@ -1,1229 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("ExpensesClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - transaction_date: "2024-01-15T09:30:00Z", - remote_created_at: "2020-03-31T00:00:00Z", - account: "account", - contact: "contact", - total_amount: 10000, - sub_total: 1.1, - total_tax_amount: 1.1, - currency: "XUA", - exchange_rate: "2.9", - inclusive_of_tax: true, - company: "company", - employee: "employee", - memo: "New employee supplies", - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - net_amount: 25.54, - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", - account: "2a56344a-a491-11ec-b909-0242ac120002", - contact: "c640b80b-fac9-409f-aa19-1f9221aec445", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - description: "MacBook Pro", - exchange_rate: "2.9", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - quantity: "quantity", - unit_price: "unit_price", - remote_was_deleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121223", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - net_amount: 10, - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - account: "2a56344a-a491-11ec-b909-0242ac120002", - description: "Desk Lamp", - exchange_rate: "2.9", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - }, - ], - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - remote_was_deleted: true, - accounting_period: "accounting_period", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/expenses") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.expenses.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "account", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), - transactionDateBefore: new Date("2024-01-15T09:30:00.000Z"), - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - transactionDate: new Date("2024-01-15T09:30:00.000Z"), - remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), - account: "account", - contact: "contact", - totalAmount: 10000, - subTotal: 1.1, - totalTaxAmount: 1.1, - currency: "XUA", - exchangeRate: "2.9", - inclusiveOfTax: true, - company: "company", - employee: "employee", - memo: "New employee supplies", - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - netAmount: 25.54, - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", - account: "2a56344a-a491-11ec-b909-0242ac120002", - contact: "c640b80b-fac9-409f-aa19-1f9221aec445", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - description: "MacBook Pro", - exchangeRate: "2.9", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - quantity: "quantity", - unitPrice: "unit_price", - remoteWasDeleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121223", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - netAmount: 10, - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - account: "2a56344a-a491-11ec-b909-0242ac120002", - description: "Desk Lamp", - exchangeRate: "2.9", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - }, - ], - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - remoteWasDeleted: true, - accountingPeriod: "accounting_period", - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - transaction_date: "2024-01-15T09:30:00Z", - remote_created_at: "2020-03-31T00:00:00Z", - account: "account", - contact: "contact", - total_amount: 10000, - sub_total: 1.1, - total_tax_amount: 1.1, - currency: "XUA", - exchange_rate: "2.9", - inclusive_of_tax: true, - company: "company", - employee: "employee", - memo: "New employee supplies", - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - net_amount: 25.54, - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", - account: "2a56344a-a491-11ec-b909-0242ac120002", - contact: "c640b80b-fac9-409f-aa19-1f9221aec445", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - description: "MacBook Pro", - exchange_rate: "2.9", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - quantity: "quantity", - unit_price: "unit_price", - remote_was_deleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121223", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - net_amount: 10, - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - account: "2a56344a-a491-11ec-b909-0242ac120002", - description: "Desk Lamp", - exchange_rate: "2.9", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - }, - ], - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - remote_was_deleted: true, - accounting_period: "accounting_period", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/accounting/v1/expenses") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.expenses.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - transactionDate: new Date("2024-01-15T09:30:00.000Z"), - remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), - account: "account", - contact: "contact", - totalAmount: 10000, - subTotal: 1.1, - totalTaxAmount: 1.1, - currency: "XUA", - exchangeRate: "2.9", - inclusiveOfTax: true, - company: "company", - employee: "employee", - memo: "New employee supplies", - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - netAmount: 25.54, - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", - account: "2a56344a-a491-11ec-b909-0242ac120002", - contact: "c640b80b-fac9-409f-aa19-1f9221aec445", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - description: "MacBook Pro", - exchangeRate: "2.9", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - quantity: "quantity", - unitPrice: "unit_price", - remoteWasDeleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121223", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - netAmount: 10, - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - account: "2a56344a-a491-11ec-b909-0242ac120002", - description: "Desk Lamp", - exchangeRate: "2.9", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - }, - ], - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - remoteWasDeleted: true, - accountingPeriod: "accounting_period", - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - transaction_date: "2024-01-15T09:30:00Z", - remote_created_at: "2020-03-31T00:00:00Z", - account: "account", - contact: "contact", - total_amount: 10000, - sub_total: 1.1, - total_tax_amount: 1.1, - currency: "XUA", - exchange_rate: "2.9", - inclusive_of_tax: true, - company: "company", - employee: "employee", - memo: "New employee supplies", - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - net_amount: 25.54, - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", - currency: "XUA", - account: "2a56344a-a491-11ec-b909-0242ac120002", - contact: "c640b80b-fac9-409f-aa19-1f9221aec445", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - description: "MacBook Pro", - exchange_rate: "2.9", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - quantity: "quantity", - unit_price: "unit_price", - remote_was_deleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121223", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - net_amount: 10, - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "employee", - currency: "XUA", - account: "2a56344a-a491-11ec-b909-0242ac120002", - contact: "contact", - project: "project", - description: "Desk Lamp", - exchange_rate: "2.9", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - quantity: "quantity", - unit_price: "unit_price", - remote_was_deleted: true, - }, - ], - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - remote_was_deleted: true, - accounting_period: "accounting_period", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }; - server - .mockEndpoint() - .get("/accounting/v1/expenses/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.expenses.retrieve("id", { - expand: "account", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - transactionDate: new Date("2024-01-15T09:30:00.000Z"), - remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), - account: "account", - contact: "contact", - totalAmount: 10000, - subTotal: 1.1, - totalTaxAmount: 1.1, - currency: "XUA", - exchangeRate: "2.9", - inclusiveOfTax: true, - company: "company", - employee: "employee", - memo: "New employee supplies", - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - netAmount: 25.54, - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", - currency: "XUA", - account: "2a56344a-a491-11ec-b909-0242ac120002", - contact: "c640b80b-fac9-409f-aa19-1f9221aec445", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - description: "MacBook Pro", - exchangeRate: "2.9", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - quantity: "quantity", - unitPrice: "unit_price", - remoteWasDeleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121223", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - item: "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - netAmount: 10, - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "employee", - currency: "XUA", - account: "2a56344a-a491-11ec-b909-0242ac120002", - contact: "contact", - project: "project", - description: "Desk Lamp", - exchangeRate: "2.9", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - quantity: "quantity", - unitPrice: "unit_price", - remoteWasDeleted: true, - }, - ], - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - remoteWasDeleted: true, - accountingPeriod: "accounting_period", - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }); - }); - - test("linesRemoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: ["field_choices"], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/expenses/lines/remote-field-classes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.expenses.linesRemoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: ["field_choices"], - }, - ], - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/accounting/v1/expenses/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.expenses.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("remoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: ["field_choices"], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/expenses/remote-field-classes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.expenses.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: ["field_choices"], - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/fieldMapping.test.ts b/tests/wire/accounting/fieldMapping.test.ts deleted file mode 100644 index 876cba868..000000000 --- a/tests/wire/accounting/fieldMapping.test.ts +++ /dev/null @@ -1,2716 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("FieldMappingClient", () => { - test("field_mappings_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - Account: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - AccountingAttachment: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - BalanceSheet: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - CashFlowStatement: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - CompanyInfo: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Contact: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - IncomeStatement: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - CreditNote: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Item: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - PurchaseOrder: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - ExpenseReport: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - TrackingCategory: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - JournalEntry: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - TaxRate: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Invoice: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Payment: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Expense: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - VendorCredit: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Transaction: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - AccountingPeriod: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - GeneralLedgerTransaction: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - BankFeedAccount: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Employee: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - PaymentMethod: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Project: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - PaymentTerm: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/field-mappings") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.fieldMapping.fieldMappingsRetrieve({ - excludeRemoteFieldMetadata: true, - }); - expect(response).toEqual({ - account: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - accountingAttachment: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - balanceSheet: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - cashFlowStatement: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - companyInfo: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - contact: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - incomeStatement: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - creditNote: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - item: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - purchaseOrder: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - expenseReport: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - trackingCategory: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - journalEntry: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - taxRate: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - invoice: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - payment: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - expense: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - vendorCredit: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - transaction: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - accountingPeriod: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - generalLedgerTransaction: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - bankFeedAccount: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - employee: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - paymentMethod: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - project: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - paymentTerm: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - }); - }); - - test("field_mappings_create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { - target_field_name: "example_target_field_name", - target_field_description: "this is a example description of the target field", - remote_field_traversal_path: ["example_remote_field"], - remote_method: "GET", - remote_url_path: "/example-url-path", - common_model_name: "ExampleCommonModel", - }; - const rawResponseBody = { - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/accounting/v1/field-mappings") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.fieldMapping.fieldMappingsCreate({ - excludeRemoteFieldMetadata: true, - targetFieldName: "example_target_field_name", - targetFieldDescription: "this is a example description of the target field", - remoteFieldTraversalPath: ["example_remote_field"], - remoteMethod: "GET", - remoteUrlPath: "/example-url-path", - commonModelName: "ExampleCommonModel", - }); - expect(response).toEqual({ - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("field_mappings_destroy", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .delete("/accounting/v1/field-mappings/field_mapping_id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.fieldMapping.fieldMappingsDestroy("field_mapping_id"); - expect(response).toEqual({ - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("field_mappings_partial_update", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = {}; - const rawResponseBody = { - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .patch("/accounting/v1/field-mappings/field_mapping_id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); - expect(response).toEqual({ - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("remote_fields_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - Account: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - AccountingAttachment: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - BalanceSheet: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - CashFlowStatement: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - CompanyInfo: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Contact: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - IncomeStatement: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - CreditNote: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Item: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - PurchaseOrder: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - TrackingCategory: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - JournalEntry: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - TaxRate: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Invoice: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Payment: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Expense: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - VendorCredit: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Transaction: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - AccountingPeriod: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - GeneralLedgerTransaction: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - BankFeedAccount: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Employee: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - PaymentMethod: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Project: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - PaymentTerm: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/remote-fields") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.fieldMapping.remoteFieldsRetrieve({ - commonModels: "common_models", - includeExampleValues: "include_example_values", - }); - expect(response).toEqual({ - account: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - accountingAttachment: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - balanceSheet: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - cashFlowStatement: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - companyInfo: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - contact: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - incomeStatement: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - creditNote: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - item: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - purchaseOrder: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - trackingCategory: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - journalEntry: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - taxRate: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - invoice: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - payment: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - expense: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - vendorCredit: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - transaction: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - accountingPeriod: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - generalLedgerTransaction: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - bankFeedAccount: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - employee: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - paymentMethod: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - project: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - paymentTerm: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - }); - }); - - test("target_fields_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - Account: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - AccountingAttachment: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - BalanceSheet: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - CashFlowStatement: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - CompanyInfo: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Contact: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - IncomeStatement: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - CreditNote: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Item: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - PurchaseOrder: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - ExpenseReport: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - TrackingCategory: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - JournalEntry: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - TaxRate: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Invoice: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Payment: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Expense: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - VendorCredit: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Transaction: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - AccountingPeriod: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - GeneralLedgerTransaction: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - BankFeedAccount: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Employee: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - PaymentMethod: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Project: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - PaymentTerm: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/target-fields") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.fieldMapping.targetFieldsRetrieve(); - expect(response).toEqual({ - account: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - accountingAttachment: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - balanceSheet: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - cashFlowStatement: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - companyInfo: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - contact: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - incomeStatement: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - creditNote: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - item: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - purchaseOrder: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - expenseReport: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - trackingCategory: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - journalEntry: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - taxRate: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - invoice: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - payment: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - expense: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - vendorCredit: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - transaction: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - accountingPeriod: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - generalLedgerTransaction: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - bankFeedAccount: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - employee: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - paymentMethod: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - project: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - paymentTerm: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/issues.test.ts b/tests/wire/accounting/issues.test.ts deleted file mode 100644 index c1f081d95..000000000 --- a/tests/wire/accounting/issues.test.ts +++ /dev/null @@ -1,117 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("IssuesClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - error_description: "Missing Permissions", - end_user: { key: "value" }, - first_incident_time: "2022-12-05T16:19:15Z", - last_incident_time: "2022-12-05T16:19:15Z", - is_muted: true, - error_details: ["Missing employee permissions.", "Missing time off permissions."], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/issues") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.issues.list({ - accountToken: "account_token", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - endUserOrganizationName: "end_user_organization_name", - firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - includeMuted: "include_muted", - integrationName: "integration_name", - lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - linkedAccountId: "linked_account_id", - pageSize: 1, - startDate: "start_date", - status: "ONGOING", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - errorDescription: "Missing Permissions", - endUser: { - key: "value", - }, - firstIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - lastIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - isMuted: true, - errorDetails: ["Missing employee permissions.", "Missing time off permissions."], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - error_description: "Missing Permissions", - end_user: { key: "value" }, - first_incident_time: "2022-12-05T16:19:15Z", - last_incident_time: "2022-12-05T16:19:15Z", - is_muted: true, - error_details: ["Missing employee permissions.", "Missing time off permissions."], - }; - server - .mockEndpoint() - .get("/accounting/v1/issues/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.issues.retrieve("id"); - expect(response).toEqual({ - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - errorDescription: "Missing Permissions", - endUser: { - key: "value", - }, - firstIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - lastIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - isMuted: true, - errorDetails: ["Missing employee permissions.", "Missing time off permissions."], - }); - }); -}); diff --git a/tests/wire/accounting/journalEntries.test.ts b/tests/wire/accounting/journalEntries.test.ts deleted file mode 100644 index ad3c41642..000000000 --- a/tests/wire/accounting/journalEntries.test.ts +++ /dev/null @@ -1,1217 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("JournalEntriesClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - transaction_date: "2020-03-31T00:00:00Z", - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - applied_payments: ["4311155d-f236-4a5d-9e0f-1cb167e38f95"], - memo: "Weekly Payment", - currency: "XUA", - exchange_rate: "2.9", - company: "company", - inclusive_of_tax: true, - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - net_amount: 25.54, - tracking_categories: [ - "d25d609b-945f-4762-b55a-1c8fb220c43c", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - description: "Cash payment for lunch", - exchange_rate: "2.9", - remote_was_deleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121223", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - account: "f963f34d-3d2f-4f77-b557-cf36bc7e6498", - net_amount: 10, - tracking_categories: [ - "d25d609b-945f-4762-b55a-1c8fb220c43c", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", - contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - description: "Cash payment for lunch", - exchange_rate: "2.9", - }, - ], - journal_number: "42", - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - remote_was_deleted: true, - posting_status: "UNPOSTED", - accounting_period: "accounting_period", - remote_created_at: "2020-03-31T00:00:00Z", - remote_updated_at: "2020-03-31T00:00:00Z", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/journal-entries") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.journalEntries.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "accounting_period", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), - transactionDateBefore: new Date("2024-01-15T09:30:00.000Z"), - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - transactionDate: new Date("2020-03-31T00:00:00.000Z"), - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - appliedPayments: ["4311155d-f236-4a5d-9e0f-1cb167e38f95"], - memo: "Weekly Payment", - currency: "XUA", - exchangeRate: "2.9", - company: "company", - inclusiveOfTax: true, - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - netAmount: 25.54, - trackingCategories: [ - "d25d609b-945f-4762-b55a-1c8fb220c43c", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - description: "Cash payment for lunch", - exchangeRate: "2.9", - remoteWasDeleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121223", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - account: "f963f34d-3d2f-4f77-b557-cf36bc7e6498", - netAmount: 10, - trackingCategories: [ - "d25d609b-945f-4762-b55a-1c8fb220c43c", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", - contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - description: "Cash payment for lunch", - exchangeRate: "2.9", - }, - ], - journalNumber: "42", - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - remoteWasDeleted: true, - postingStatus: "UNPOSTED", - accountingPeriod: "accounting_period", - remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - transaction_date: "2020-03-31T00:00:00Z", - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - applied_payments: ["4311155d-f236-4a5d-9e0f-1cb167e38f95"], - memo: "Weekly Payment", - currency: "XUA", - exchange_rate: "2.9", - company: "company", - inclusive_of_tax: true, - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - net_amount: 25.54, - tracking_categories: [ - "d25d609b-945f-4762-b55a-1c8fb220c43c", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - description: "Cash payment for lunch", - exchange_rate: "2.9", - remote_was_deleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121223", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - account: "f963f34d-3d2f-4f77-b557-cf36bc7e6498", - net_amount: 10, - tracking_categories: [ - "d25d609b-945f-4762-b55a-1c8fb220c43c", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", - contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - description: "Cash payment for lunch", - exchange_rate: "2.9", - }, - ], - journal_number: "42", - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - remote_was_deleted: true, - posting_status: "UNPOSTED", - accounting_period: "accounting_period", - remote_created_at: "2020-03-31T00:00:00Z", - remote_updated_at: "2020-03-31T00:00:00Z", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/accounting/v1/journal-entries") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.journalEntries.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - transactionDate: new Date("2020-03-31T00:00:00.000Z"), - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - appliedPayments: ["4311155d-f236-4a5d-9e0f-1cb167e38f95"], - memo: "Weekly Payment", - currency: "XUA", - exchangeRate: "2.9", - company: "company", - inclusiveOfTax: true, - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - netAmount: 25.54, - trackingCategories: [ - "d25d609b-945f-4762-b55a-1c8fb220c43c", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - description: "Cash payment for lunch", - exchangeRate: "2.9", - remoteWasDeleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121223", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - account: "f963f34d-3d2f-4f77-b557-cf36bc7e6498", - netAmount: 10, - trackingCategories: [ - "d25d609b-945f-4762-b55a-1c8fb220c43c", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", - contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - description: "Cash payment for lunch", - exchangeRate: "2.9", - }, - ], - journalNumber: "42", - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - remoteWasDeleted: true, - postingStatus: "UNPOSTED", - accountingPeriod: "accounting_period", - remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - transaction_date: "2020-03-31T00:00:00Z", - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - applied_payments: ["4311155d-f236-4a5d-9e0f-1cb167e38f95"], - memo: "Weekly Payment", - currency: "XUA", - exchange_rate: "2.9", - company: "company", - inclusive_of_tax: true, - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - net_amount: 25.54, - tracking_categories: [ - "d25d609b-945f-4762-b55a-1c8fb220c43c", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - currency: "XUA", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - description: "Cash payment for lunch", - exchange_rate: "2.9", - remote_was_deleted: false, - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121223", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - account: "f963f34d-3d2f-4f77-b557-cf36bc7e6498", - net_amount: 10, - tracking_categories: [ - "d25d609b-945f-4762-b55a-1c8fb220c43c", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - currency: "XUA", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", - project: "project", - contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - description: "Cash payment for lunch", - exchange_rate: "2.9", - remote_was_deleted: true, - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - journal_number: "42", - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - remote_was_deleted: true, - posting_status: "UNPOSTED", - accounting_period: "accounting_period", - remote_created_at: "2020-03-31T00:00:00Z", - remote_updated_at: "2020-03-31T00:00:00Z", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }; - server - .mockEndpoint() - .get("/accounting/v1/journal-entries/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.journalEntries.retrieve("id", { - expand: "accounting_period", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - transactionDate: new Date("2020-03-31T00:00:00.000Z"), - payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], - appliedPayments: ["4311155d-f236-4a5d-9e0f-1cb167e38f95"], - memo: "Weekly Payment", - currency: "XUA", - exchangeRate: "2.9", - company: "company", - inclusiveOfTax: true, - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - netAmount: 25.54, - trackingCategories: [ - "d25d609b-945f-4762-b55a-1c8fb220c43c", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - currency: "XUA", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - description: "Cash payment for lunch", - exchangeRate: "2.9", - remoteWasDeleted: false, - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121223", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - account: "f963f34d-3d2f-4f77-b557-cf36bc7e6498", - netAmount: 10, - trackingCategories: [ - "d25d609b-945f-4762-b55a-1c8fb220c43c", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - currency: "XUA", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", - project: "project", - contact: "d2d5ea3c-b032-11ec-b909-0242ac120002", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - description: "Cash payment for lunch", - exchangeRate: "2.9", - remoteWasDeleted: true, - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - journalNumber: "42", - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - remoteWasDeleted: true, - postingStatus: "UNPOSTED", - accountingPeriod: "accounting_period", - remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }); - }); - - test("linesRemoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: ["field_choices"], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/journal-entries/lines/remote-field-classes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.journalEntries.linesRemoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: ["field_choices"], - }, - ], - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/accounting/v1/journal-entries/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.journalEntries.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("remoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: ["field_choices"], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/journal-entries/remote-field-classes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.journalEntries.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: ["field_choices"], - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/linkedAccounts.test.ts b/tests/wire/accounting/linkedAccounts.test.ts deleted file mode 100644 index fbe46bcb1..000000000 --- a/tests/wire/accounting/linkedAccounts.test.ts +++ /dev/null @@ -1,114 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("LinkedAccountsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "e59b1821-f85c-4e28-a6b3-1804156f3563", - category: "hris", - status: "COMPLETE", - status_detail: "Invalid login credentials", - end_user_origin_id: "3ac95cde-6c7f-4eef-afec-be710b42308d", - end_user_organization_name: "Foo Bar, LLC", - end_user_email_address: "hradmin@foobar.dev", - subdomain: "foobar", - webhook_listener_url: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", - is_duplicate: true, - integration: { - name: "name", - categories: ["hris"], - color: "color", - slug: "slug", - passthrough_available: true, - available_model_operations: [ - { - model_name: "Candidate", - available_operations: ["FETCH", "CREATE"], - required_post_parameters: ["remote_user_id"], - supported_fields: ["first_name", "last_name", "company", "title"], - }, - ], - }, - account_type: "PRODUCTION", - completed_at: "2024-08-26T20:11:19Z", - integration_specific_fields: { integration_specific_field: "Varies by platform" }, - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/linked-accounts") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.linkedAccounts.list({ - category: "accounting", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endUserEmailAddress: "end_user_email_address", - endUserOrganizationName: "end_user_organization_name", - endUserOriginId: "end_user_origin_id", - endUserOriginIds: "end_user_origin_ids", - id: "id", - ids: "ids", - includeDuplicates: true, - integrationName: "integration_name", - isTestAccount: "is_test_account", - pageSize: 1, - status: "status", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "e59b1821-f85c-4e28-a6b3-1804156f3563", - category: "hris", - status: "COMPLETE", - statusDetail: "Invalid login credentials", - endUserOriginId: "3ac95cde-6c7f-4eef-afec-be710b42308d", - endUserOrganizationName: "Foo Bar, LLC", - endUserEmailAddress: "hradmin@foobar.dev", - subdomain: "foobar", - webhookListenerUrl: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", - isDuplicate: true, - integration: { - name: "name", - categories: ["hris"], - color: "color", - slug: "slug", - passthroughAvailable: true, - availableModelOperations: [ - { - modelName: "Candidate", - availableOperations: ["FETCH", "CREATE"], - requiredPostParameters: ["remote_user_id"], - supportedFields: ["first_name", "last_name", "company", "title"], - }, - ], - }, - accountType: "PRODUCTION", - completedAt: new Date("2024-08-26T20:11:19.000Z"), - integrationSpecificFields: { - integration_specific_field: "Varies by platform", - }, - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/projects.test.ts b/tests/wire/accounting/projects.test.ts deleted file mode 100644 index ee68e23b7..000000000 --- a/tests/wire/accounting/projects.test.ts +++ /dev/null @@ -1,153 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("ProjectsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Permissions Mapping", - is_active: true, - company: "company", - contact: "contact", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/projects") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.projects.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "company", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Permissions Mapping", - isActive: true, - company: "company", - contact: "contact", - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Permissions Mapping", - is_active: true, - company: "company", - contact: "contact", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/accounting/v1/projects/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.projects.retrieve("id", { - expand: "company", - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Permissions Mapping", - isActive: true, - company: "company", - contact: "contact", - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/purchaseOrders.test.ts b/tests/wire/accounting/purchaseOrders.test.ts deleted file mode 100644 index 684e0fc4b..000000000 --- a/tests/wire/accounting/purchaseOrders.test.ts +++ /dev/null @@ -1,1257 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("PurchaseOrdersClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "0048ea5b-911e-4dff-9364-92070dea62ff", - remote_id: "239741", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - status: "DRAFT", - issue_date: "2020-03-31T00:00:00Z", - purchase_order_number: "PO1234", - delivery_date: "2020-04-15T00:00:00Z", - delivery_address: "delivery_address", - customer: "3e442c5d-8f51-4103-b5c9-dcee39c30a08", - vendor: "vendor", - memo: "private note", - company: "company", - total_amount: 260, - currency: "XUA", - exchange_rate: "2.9", - payment_term: "payment_term", - line_items: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - description: "Pickleball paddles", - unit_price: 25, - quantity: 10, - item: "0958cbc6-6040-430a-848e-aafacbadf4ae", - tracking_categories: [ - "f1214c24-2702-4617-b74b-3ddecfc0d384", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - tax_amount: "tax_amount", - total_line_amount: "total_line_amount", - currency: "USD", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchange_rate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remote_was_deleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - description: "Pickleball Balls", - unit_price: 1, - quantity: 10, - item: "249c9faa-3045-4a31-953b-8f22d3613301", - tracking_categories: [ - "f1214c24-2702-4617-b74b-3ddecfc0d384", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - tax_amount: "tax_amount", - total_line_amount: "total_line_amount", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchange_rate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - }, - ], - inclusive_of_tax: true, - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - accounting_period: "accounting_period", - remote_created_at: "2020-03-31T00:00:00Z", - remote_updated_at: "2020-03-31T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/purchase-orders") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.purchaseOrders.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "accounting_period", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - issueDateAfter: new Date("2024-01-15T09:30:00.000Z"), - issueDateBefore: new Date("2024-01-15T09:30:00.000Z"), - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteFields: "status", - remoteId: "remote_id", - showEnumOrigins: "status", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "0048ea5b-911e-4dff-9364-92070dea62ff", - remoteId: "239741", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - status: "DRAFT", - issueDate: new Date("2020-03-31T00:00:00.000Z"), - purchaseOrderNumber: "PO1234", - deliveryDate: new Date("2020-04-15T00:00:00.000Z"), - deliveryAddress: "delivery_address", - customer: "3e442c5d-8f51-4103-b5c9-dcee39c30a08", - vendor: "vendor", - memo: "private note", - company: "company", - totalAmount: 260, - currency: "XUA", - exchangeRate: "2.9", - paymentTerm: "payment_term", - lineItems: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - description: "Pickleball paddles", - unitPrice: 25, - quantity: 10, - item: "0958cbc6-6040-430a-848e-aafacbadf4ae", - trackingCategories: [ - "f1214c24-2702-4617-b74b-3ddecfc0d384", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - taxAmount: "tax_amount", - totalLineAmount: "total_line_amount", - currency: "USD", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchangeRate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remoteWasDeleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - description: "Pickleball Balls", - unitPrice: 1, - quantity: 10, - item: "249c9faa-3045-4a31-953b-8f22d3613301", - trackingCategories: [ - "f1214c24-2702-4617-b74b-3ddecfc0d384", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - taxAmount: "tax_amount", - totalLineAmount: "total_line_amount", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchangeRate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - }, - ], - inclusiveOfTax: true, - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - accountingPeriod: "accounting_period", - remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "0048ea5b-911e-4dff-9364-92070dea62ff", - remote_id: "239741", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - status: "DRAFT", - issue_date: "2020-03-31T00:00:00Z", - purchase_order_number: "PO1234", - delivery_date: "2020-04-15T00:00:00Z", - delivery_address: "delivery_address", - customer: "3e442c5d-8f51-4103-b5c9-dcee39c30a08", - vendor: "vendor", - memo: "private note", - company: "company", - total_amount: 260, - currency: "XUA", - exchange_rate: "2.9", - payment_term: "payment_term", - line_items: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - description: "Pickleball paddles", - unit_price: 25, - quantity: 10, - item: "0958cbc6-6040-430a-848e-aafacbadf4ae", - tracking_categories: [ - "f1214c24-2702-4617-b74b-3ddecfc0d384", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - tax_amount: "tax_amount", - total_line_amount: "total_line_amount", - currency: "USD", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchange_rate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remote_was_deleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - description: "Pickleball Balls", - unit_price: 1, - quantity: 10, - item: "249c9faa-3045-4a31-953b-8f22d3613301", - tracking_categories: [ - "f1214c24-2702-4617-b74b-3ddecfc0d384", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - tax_amount: "tax_amount", - total_line_amount: "total_line_amount", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchange_rate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - }, - ], - inclusive_of_tax: true, - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - accounting_period: "accounting_period", - remote_created_at: "2020-03-31T00:00:00Z", - remote_updated_at: "2020-03-31T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/accounting/v1/purchase-orders") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.purchaseOrders.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "0048ea5b-911e-4dff-9364-92070dea62ff", - remoteId: "239741", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - status: "DRAFT", - issueDate: new Date("2020-03-31T00:00:00.000Z"), - purchaseOrderNumber: "PO1234", - deliveryDate: new Date("2020-04-15T00:00:00.000Z"), - deliveryAddress: "delivery_address", - customer: "3e442c5d-8f51-4103-b5c9-dcee39c30a08", - vendor: "vendor", - memo: "private note", - company: "company", - totalAmount: 260, - currency: "XUA", - exchangeRate: "2.9", - paymentTerm: "payment_term", - lineItems: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - description: "Pickleball paddles", - unitPrice: 25, - quantity: 10, - item: "0958cbc6-6040-430a-848e-aafacbadf4ae", - trackingCategories: [ - "f1214c24-2702-4617-b74b-3ddecfc0d384", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - taxAmount: "tax_amount", - totalLineAmount: "total_line_amount", - currency: "USD", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchangeRate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remoteWasDeleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - description: "Pickleball Balls", - unitPrice: 1, - quantity: 10, - item: "249c9faa-3045-4a31-953b-8f22d3613301", - trackingCategories: [ - "f1214c24-2702-4617-b74b-3ddecfc0d384", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - taxAmount: "tax_amount", - totalLineAmount: "total_line_amount", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchangeRate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - }, - ], - inclusiveOfTax: true, - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - accountingPeriod: "accounting_period", - remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "0048ea5b-911e-4dff-9364-92070dea62ff", - remote_id: "239741", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - status: "DRAFT", - issue_date: "2020-03-31T00:00:00Z", - purchase_order_number: "PO1234", - delivery_date: "2020-04-15T00:00:00Z", - delivery_address: "delivery_address", - customer: "3e442c5d-8f51-4103-b5c9-dcee39c30a08", - vendor: "vendor", - memo: "private note", - company: "company", - total_amount: 260, - currency: "XUA", - exchange_rate: "2.9", - payment_term: "payment_term", - line_items: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - description: "Pickleball paddles", - unit_price: 25, - quantity: 10, - item: "0958cbc6-6040-430a-848e-aafacbadf4ae", - account: "account", - tracking_categories: [ - "f1214c24-2702-4617-b74b-3ddecfc0d384", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - tax_amount: "tax_amount", - total_line_amount: "total_line_amount", - currency: "USD", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchange_rate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remote_was_deleted: false, - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - description: "Pickleball Balls", - unit_price: 1, - quantity: 10, - item: "249c9faa-3045-4a31-953b-8f22d3613301", - account: "account", - tracking_categories: [ - "f1214c24-2702-4617-b74b-3ddecfc0d384", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - tax_amount: "tax_amount", - total_line_amount: "total_line_amount", - currency: "XUA", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchange_rate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remote_was_deleted: true, - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - inclusive_of_tax: true, - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - accounting_period: "accounting_period", - remote_created_at: "2020-03-31T00:00:00Z", - remote_updated_at: "2020-03-31T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }; - server - .mockEndpoint() - .get("/accounting/v1/purchase-orders/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.purchaseOrders.retrieve("id", { - expand: "accounting_period", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - remoteFields: "status", - showEnumOrigins: "status", - }); - expect(response).toEqual({ - id: "0048ea5b-911e-4dff-9364-92070dea62ff", - remoteId: "239741", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - status: "DRAFT", - issueDate: new Date("2020-03-31T00:00:00.000Z"), - purchaseOrderNumber: "PO1234", - deliveryDate: new Date("2020-04-15T00:00:00.000Z"), - deliveryAddress: "delivery_address", - customer: "3e442c5d-8f51-4103-b5c9-dcee39c30a08", - vendor: "vendor", - memo: "private note", - company: "company", - totalAmount: 260, - currency: "XUA", - exchangeRate: "2.9", - paymentTerm: "payment_term", - lineItems: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - description: "Pickleball paddles", - unitPrice: 25, - quantity: 10, - item: "0958cbc6-6040-430a-848e-aafacbadf4ae", - account: "account", - trackingCategories: [ - "f1214c24-2702-4617-b74b-3ddecfc0d384", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - taxAmount: "tax_amount", - totalLineAmount: "total_line_amount", - currency: "USD", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchangeRate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remoteWasDeleted: false, - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - description: "Pickleball Balls", - unitPrice: 1, - quantity: 10, - item: "249c9faa-3045-4a31-953b-8f22d3613301", - account: "account", - trackingCategories: [ - "f1214c24-2702-4617-b74b-3ddecfc0d384", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - taxAmount: "tax_amount", - totalLineAmount: "total_line_amount", - currency: "XUA", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchangeRate: "2.9", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - remoteWasDeleted: true, - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - inclusiveOfTax: true, - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - accountingPeriod: "accounting_period", - remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }); - }); - - test("lineItemsRemoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: ["field_choices"], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/purchase-orders/line-items/remote-field-classes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.purchaseOrders.lineItemsRemoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: ["field_choices"], - }, - ], - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/accounting/v1/purchase-orders/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.purchaseOrders.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("remoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: ["field_choices"], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/purchase-orders/remote-field-classes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.purchaseOrders.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: ["field_choices"], - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/syncStatus.test.ts b/tests/wire/accounting/syncStatus.test.ts deleted file mode 100644 index 6af1e3c70..000000000 --- a/tests/wire/accounting/syncStatus.test.ts +++ /dev/null @@ -1,63 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("SyncStatusClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - model_name: "Invoice", - model_id: "accounting.Invoices", - last_sync_start: "2021-03-30T19:44:18Z", - next_sync_start: "2021-03-30T20:44:18Z", - last_sync_result: "SYNCING", - last_sync_finished: "2021-03-30T19:55:18Z", - status: "SYNCING", - is_initial_sync: true, - selective_sync_configurations_usage: "IN_NEXT_SYNC", - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/sync-status") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.syncStatus.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - modelName: "Invoice", - modelId: "accounting.Invoices", - lastSyncStart: new Date("2021-03-30T19:44:18.000Z"), - nextSyncStart: new Date("2021-03-30T20:44:18.000Z"), - lastSyncResult: "SYNCING", - lastSyncFinished: new Date("2021-03-30T19:55:18.000Z"), - status: "SYNCING", - isInitialSync: true, - selectiveSyncConfigurationsUsage: "IN_NEXT_SYNC", - }, - ], - }); - }); -}); diff --git a/tests/wire/accounting/vendorCredits.test.ts b/tests/wire/accounting/vendorCredits.test.ts deleted file mode 100644 index 36f2b1c46..000000000 --- a/tests/wire/accounting/vendorCredits.test.ts +++ /dev/null @@ -1,1070 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("VendorCreditsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - number: "6", - transaction_date: "2020-03-31T00:00:00Z", - vendor: "vendor", - total_amount: 10000, - currency: "XUA", - exchange_rate: "2.9", - inclusive_of_tax: true, - company: "company", - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - net_amount: 25.54, - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - description: "Gifted Merge Credit", - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - contact: "908934-49j9-093f-0989-908923908", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchange_rate: "2.9", - remote_was_deleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121223", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - net_amount: 10, - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - description: "Refund for overpayment", - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchange_rate: "2.9", - }, - ], - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - applied_to_lines: [ - { - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - applied_date: "2020-03-31T00:00:00Z", - applied_amount: "2.9", - }, - ], - remote_was_deleted: true, - accounting_period: "accounting_period", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/accounting/v1/vendor-credits") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.vendorCredits.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "accounting_period", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - transactionDateAfter: new Date("2024-01-15T09:30:00.000Z"), - transactionDateBefore: new Date("2024-01-15T09:30:00.000Z"), - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - number: "6", - transactionDate: new Date("2020-03-31T00:00:00.000Z"), - vendor: "vendor", - totalAmount: 10000, - currency: "XUA", - exchangeRate: "2.9", - inclusiveOfTax: true, - company: "company", - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - netAmount: 25.54, - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - description: "Gifted Merge Credit", - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - contact: "908934-49j9-093f-0989-908923908", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchangeRate: "2.9", - remoteWasDeleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121223", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - netAmount: 10, - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - description: "Refund for overpayment", - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchangeRate: "2.9", - }, - ], - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - appliedToLines: [ - { - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - appliedDate: new Date("2020-03-31T00:00:00.000Z"), - appliedAmount: "2.9", - }, - ], - remoteWasDeleted: true, - accountingPeriod: "accounting_period", - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - number: "6", - transaction_date: "2020-03-31T00:00:00Z", - vendor: "vendor", - total_amount: 10000, - currency: "XUA", - exchange_rate: "2.9", - inclusive_of_tax: true, - company: "company", - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - net_amount: 25.54, - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - description: "Gifted Merge Credit", - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - contact: "908934-49j9-093f-0989-908923908", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchange_rate: "2.9", - remote_was_deleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121223", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - net_amount: 10, - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - description: "Refund for overpayment", - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchange_rate: "2.9", - }, - ], - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - applied_to_lines: [ - { - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - applied_date: "2020-03-31T00:00:00Z", - applied_amount: "2.9", - }, - ], - remote_was_deleted: true, - accounting_period: "accounting_period", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/accounting/v1/vendor-credits") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.vendorCredits.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - number: "6", - transactionDate: new Date("2020-03-31T00:00:00.000Z"), - vendor: "vendor", - totalAmount: 10000, - currency: "XUA", - exchangeRate: "2.9", - inclusiveOfTax: true, - company: "company", - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - netAmount: 25.54, - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - description: "Gifted Merge Credit", - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - contact: "908934-49j9-093f-0989-908923908", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchangeRate: "2.9", - remoteWasDeleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121223", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - netAmount: 10, - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - description: "Refund for overpayment", - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchangeRate: "2.9", - }, - ], - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - appliedToLines: [ - { - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - appliedDate: new Date("2020-03-31T00:00:00.000Z"), - appliedAmount: "2.9", - }, - ], - remoteWasDeleted: true, - accountingPeriod: "accounting_period", - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - number: "6", - transaction_date: "2020-03-31T00:00:00Z", - vendor: "vendor", - total_amount: 10000, - currency: "XUA", - exchange_rate: "2.9", - inclusive_of_tax: true, - company: "company", - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121222", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - net_amount: 25.54, - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - description: "Gifted Merge Credit", - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - contact: "908934-49j9-093f-0989-908923908", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchange_rate: "2.9", - remote_was_deleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remote_id: "121223", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - net_amount: 10, - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - description: "Refund for overpayment", - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - project: "project", - contact: "contact", - tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchange_rate: "2.9", - remote_was_deleted: true, - }, - ], - tracking_categories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - applied_to_lines: [ - { - remote_id: "088899", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - applied_date: "2020-03-31T00:00:00Z", - applied_amount: "2.9", - remote_was_deleted: true, - }, - ], - remote_was_deleted: true, - accounting_period: "accounting_period", - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/accounting/v1/vendor-credits/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.vendorCredits.retrieve("id", { - expand: "accounting_period", - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - number: "6", - transactionDate: new Date("2020-03-31T00:00:00.000Z"), - vendor: "vendor", - totalAmount: 10000, - currency: "XUA", - exchangeRate: "2.9", - inclusiveOfTax: true, - company: "company", - lines: [ - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121222", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - netAmount: 25.54, - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - description: "Gifted Merge Credit", - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - project: "22e65a5d-2df5-4e6e-884a-e538d0339000", - contact: "908934-49j9-093f-0989-908923908", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchangeRate: "2.9", - remoteWasDeleted: false, - }, - { - id: "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4", - remoteId: "121223", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - netAmount: 10, - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - description: "Refund for overpayment", - account: "9d892439-5fab-4dbb-8bd8-34f7f96c7912", - company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", - project: "project", - contact: "contact", - taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - exchangeRate: "2.9", - remoteWasDeleted: true, - }, - ], - trackingCategories: [ - "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", - "9b840d2-686a-465a-8a8e-7b028498f8e4", - "a47e11b6-c73b-4a0c-be31-130fc48177fa", - ], - appliedToLines: [ - { - remoteId: "088899", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - invoice: "5b3c1341-a20f-4e51-b72c-f3830a16c97b", - appliedDate: new Date("2020-03-31T00:00:00.000Z"), - appliedAmount: "2.9", - remoteWasDeleted: true, - }, - ], - remoteWasDeleted: true, - accountingPeriod: "accounting_period", - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/accounting/v1/vendor-credits/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accounting.vendorCredits.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); -}); diff --git a/tests/wire/ats/accountToken.test.ts b/tests/wire/ats/accountToken.test.ts deleted file mode 100644 index b4e867950..000000000 --- a/tests/wire/ats/accountToken.test.ts +++ /dev/null @@ -1,62 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AccountTokenClient", () => { - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - account_token: "T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB", - integration: { - name: "name", - abbreviated_name: "abbreviated_name", - categories: ["hris"], - image: "image", - square_image: "square_image", - color: "color", - slug: "slug", - api_endpoints_to_documentation_urls: { key: "value" }, - webhook_setup_guide_url: "webhook_setup_guide_url", - category_beta_status: { key: "value" }, - }, - id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", - }; - server - .mockEndpoint() - .get("/ats/v1/account-token/public_token") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.accountToken.retrieve("public_token"); - expect(response).toEqual({ - accountToken: "T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB", - integration: { - name: "name", - abbreviatedName: "abbreviated_name", - categories: ["hris"], - image: "image", - squareImage: "square_image", - color: "color", - slug: "slug", - apiEndpointsToDocumentationUrls: { - key: "value", - }, - webhookSetupGuideUrl: "webhook_setup_guide_url", - categoryBetaStatus: { - key: "value", - }, - }, - id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", - }); - }); -}); diff --git a/tests/wire/ats/attachments.test.ts b/tests/wire/ats/attachments.test.ts deleted file mode 100644 index 5f4000281..000000000 --- a/tests/wire/ats/attachments.test.ts +++ /dev/null @@ -1,711 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AttachmentsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remote_id: "11167", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - file_name: "Candidate Resume", - file_url: "http://alturl.com/p749b", - candidate: "2872ba14-4084-492b-be96-e5eee6fc33ef", - attachment_type: "RESUME", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/attachments", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/ats/v1/attachments") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.attachments.list({ - candidateId: "candidate_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "candidate", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteFields: "attachment_type", - remoteId: "remote_id", - showEnumOrigins: "attachment_type", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remoteId: "11167", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - fileName: "Candidate Resume", - fileUrl: "http://alturl.com/p749b", - candidate: "2872ba14-4084-492b-be96-e5eee6fc33ef", - attachmentType: "RESUME", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/attachments", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {}, remote_user_id: "remote_user_id" }; - const rawResponseBody = { - model: { - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remote_id: "11167", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - file_name: "Candidate Resume", - file_url: "http://alturl.com/p749b", - candidate: "2872ba14-4084-492b-be96-e5eee6fc33ef", - attachment_type: "RESUME", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/attachments", data: ["Varies by platform"] }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/ats/v1/attachments") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.attachments.create({ - isDebugMode: true, - runAsync: true, - model: {}, - remoteUserId: "remote_user_id", - }); - expect(response).toEqual({ - model: { - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remoteId: "11167", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - fileName: "Candidate Resume", - fileUrl: "http://alturl.com/p749b", - candidate: "2872ba14-4084-492b-be96-e5eee6fc33ef", - attachmentType: "RESUME", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/attachments", - data: ["Varies by platform"], - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remote_id: "11167", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - file_name: "Candidate Resume", - file_url: "http://alturl.com/p749b", - candidate: "2872ba14-4084-492b-be96-e5eee6fc33ef", - attachment_type: "RESUME", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/attachments", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/ats/v1/attachments/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.attachments.retrieve("id", { - expand: "candidate", - includeRemoteData: true, - includeShellData: true, - remoteFields: "attachment_type", - showEnumOrigins: "attachment_type", - }); - expect(response).toEqual({ - id: "c640b80b-fac9-409f-aa19-1f9221aec445", - remoteId: "11167", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - fileName: "Candidate Resume", - fileUrl: "http://alturl.com/p749b", - candidate: "2872ba14-4084-492b-be96-e5eee6fc33ef", - attachmentType: "RESUME", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/attachments", - data: ["Varies by platform"], - }, - ], - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/ats/v1/attachments/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.attachments.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); -}); diff --git a/tests/wire/ats/auditTrail.test.ts b/tests/wire/ats/auditTrail.test.ts deleted file mode 100644 index a3cff831b..000000000 --- a/tests/wire/ats/auditTrail.test.ts +++ /dev/null @@ -1,67 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AuditTrailClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "b5ceea2a-7171-47ce-8090-165cfce5572c", - user_name: "Gil Feig", - user_email: "hello@merge.dev", - role: "ADMIN", - ip_address: "192.0.2.123", - event_type: "CREATED_REMOTE_PRODUCTION_API_KEY", - event_description: - "Organization-wide Scopes for model hris.Employee updated from Read to Read+Write", - created_at: "2024-01-15T09:30:00Z", - }, - ], - }; - server - .mockEndpoint() - .get("/ats/v1/audit-trail") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.auditTrail.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - eventType: "event_type", - pageSize: 1, - startDate: "start_date", - userEmail: "user_email", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "b5ceea2a-7171-47ce-8090-165cfce5572c", - userName: "Gil Feig", - userEmail: "hello@merge.dev", - role: "ADMIN", - ipAddress: "192.0.2.123", - eventType: "CREATED_REMOTE_PRODUCTION_API_KEY", - eventDescription: - "Organization-wide Scopes for model hris.Employee updated from Read to Read+Write", - createdAt: new Date("2024-01-15T09:30:00.000Z"), - }, - ], - }); - }); -}); diff --git a/tests/wire/ats/fieldMapping.test.ts b/tests/wire/ats/fieldMapping.test.ts deleted file mode 100644 index d90790a9a..000000000 --- a/tests/wire/ats/fieldMapping.test.ts +++ /dev/null @@ -1,1868 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("FieldMappingClient", () => { - test("field_mappings_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - Activity: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Application: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Attachment: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Candidate: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Department: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - EEOC: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - ScheduledInterview: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Job: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - JobPosting: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - JobInterviewStage: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Offer: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Office: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - RejectReason: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Scorecard: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Tag: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - RemoteUser: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - }; - server - .mockEndpoint() - .get("/ats/v1/field-mappings") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.fieldMapping.fieldMappingsRetrieve({ - excludeRemoteFieldMetadata: true, - }); - expect(response).toEqual({ - activity: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - application: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - attachment: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - candidate: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - department: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - eeoc: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - scheduledInterview: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - job: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - jobPosting: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - jobInterviewStage: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - offer: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - office: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - rejectReason: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - scorecard: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - tag: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - remoteUser: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - }); - }); - - test("field_mappings_create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { - target_field_name: "example_target_field_name", - target_field_description: "this is a example description of the target field", - remote_field_traversal_path: ["example_remote_field"], - remote_method: "GET", - remote_url_path: "/example-url-path", - common_model_name: "ExampleCommonModel", - }; - const rawResponseBody = { - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/ats/v1/field-mappings") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.fieldMapping.fieldMappingsCreate({ - excludeRemoteFieldMetadata: true, - targetFieldName: "example_target_field_name", - targetFieldDescription: "this is a example description of the target field", - remoteFieldTraversalPath: ["example_remote_field"], - remoteMethod: "GET", - remoteUrlPath: "/example-url-path", - commonModelName: "ExampleCommonModel", - }); - expect(response).toEqual({ - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("field_mappings_destroy", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .delete("/ats/v1/field-mappings/field_mapping_id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.fieldMapping.fieldMappingsDestroy("field_mapping_id"); - expect(response).toEqual({ - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("field_mappings_partial_update", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = {}; - const rawResponseBody = { - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .patch("/ats/v1/field-mappings/field_mapping_id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); - expect(response).toEqual({ - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("remote_fields_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - Activity: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Application: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Attachment: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Candidate: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Department: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - EEOC: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - ScheduledInterview: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Job: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - JobPosting: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - JobInterviewStage: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Offer: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Office: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - RejectReason: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Scorecard: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Tag: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - RemoteUser: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - }; - server - .mockEndpoint() - .get("/ats/v1/remote-fields") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.fieldMapping.remoteFieldsRetrieve({ - commonModels: "common_models", - includeExampleValues: "include_example_values", - }); - expect(response).toEqual({ - activity: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - application: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - attachment: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - candidate: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - department: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - eeoc: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - scheduledInterview: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - job: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - jobPosting: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - jobInterviewStage: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - offer: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - office: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - rejectReason: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - scorecard: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - tag: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - remoteUser: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - }); - }); - - test("target_fields_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - Activity: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Application: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Attachment: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Candidate: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Department: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - EEOC: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - ScheduledInterview: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Job: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - JobPosting: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - JobInterviewStage: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Offer: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Office: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - RejectReason: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Scorecard: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Tag: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - RemoteUser: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - }; - server - .mockEndpoint() - .get("/ats/v1/target-fields") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.fieldMapping.targetFieldsRetrieve(); - expect(response).toEqual({ - activity: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - application: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - attachment: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - candidate: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - department: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - eeoc: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - scheduledInterview: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - job: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - jobPosting: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - jobInterviewStage: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - offer: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - office: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - rejectReason: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - scorecard: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - tag: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - remoteUser: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - }); - }); -}); diff --git a/tests/wire/ats/issues.test.ts b/tests/wire/ats/issues.test.ts deleted file mode 100644 index 6ebf9b39c..000000000 --- a/tests/wire/ats/issues.test.ts +++ /dev/null @@ -1,105 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("IssuesClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - error_description: "Missing Permissions", - end_user: { key: "value" }, - first_incident_time: "2022-12-05T16:19:15Z", - last_incident_time: "2022-12-05T16:19:15Z", - is_muted: true, - error_details: ["Missing employee permissions.", "Missing time off permissions."], - }, - ], - }; - server.mockEndpoint().get("/ats/v1/issues").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.ats.issues.list({ - accountToken: "account_token", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - endUserOrganizationName: "end_user_organization_name", - firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - includeMuted: "include_muted", - integrationName: "integration_name", - lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - linkedAccountId: "linked_account_id", - pageSize: 1, - startDate: "start_date", - status: "ONGOING", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - errorDescription: "Missing Permissions", - endUser: { - key: "value", - }, - firstIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - lastIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - isMuted: true, - errorDetails: ["Missing employee permissions.", "Missing time off permissions."], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - error_description: "Missing Permissions", - end_user: { key: "value" }, - first_incident_time: "2022-12-05T16:19:15Z", - last_incident_time: "2022-12-05T16:19:15Z", - is_muted: true, - error_details: ["Missing employee permissions.", "Missing time off permissions."], - }; - server.mockEndpoint().get("/ats/v1/issues/id").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.ats.issues.retrieve("id"); - expect(response).toEqual({ - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - errorDescription: "Missing Permissions", - endUser: { - key: "value", - }, - firstIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - lastIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - isMuted: true, - errorDetails: ["Missing employee permissions.", "Missing time off permissions."], - }); - }); -}); diff --git a/tests/wire/ats/linkedAccounts.test.ts b/tests/wire/ats/linkedAccounts.test.ts deleted file mode 100644 index b8d173ea3..000000000 --- a/tests/wire/ats/linkedAccounts.test.ts +++ /dev/null @@ -1,114 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("LinkedAccountsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "e59b1821-f85c-4e28-a6b3-1804156f3563", - category: "hris", - status: "COMPLETE", - status_detail: "Invalid login credentials", - end_user_origin_id: "3ac95cde-6c7f-4eef-afec-be710b42308d", - end_user_organization_name: "Foo Bar, LLC", - end_user_email_address: "hradmin@foobar.dev", - subdomain: "foobar", - webhook_listener_url: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", - is_duplicate: true, - integration: { - name: "name", - categories: ["hris"], - color: "color", - slug: "slug", - passthrough_available: true, - available_model_operations: [ - { - model_name: "Candidate", - available_operations: ["FETCH", "CREATE"], - required_post_parameters: ["remote_user_id"], - supported_fields: ["first_name", "last_name", "company", "title"], - }, - ], - }, - account_type: "PRODUCTION", - completed_at: "2024-08-26T20:11:19Z", - integration_specific_fields: { integration_specific_field: "Varies by platform" }, - }, - ], - }; - server - .mockEndpoint() - .get("/ats/v1/linked-accounts") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.linkedAccounts.list({ - category: "accounting", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endUserEmailAddress: "end_user_email_address", - endUserOrganizationName: "end_user_organization_name", - endUserOriginId: "end_user_origin_id", - endUserOriginIds: "end_user_origin_ids", - id: "id", - ids: "ids", - includeDuplicates: true, - integrationName: "integration_name", - isTestAccount: "is_test_account", - pageSize: 1, - status: "status", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "e59b1821-f85c-4e28-a6b3-1804156f3563", - category: "hris", - status: "COMPLETE", - statusDetail: "Invalid login credentials", - endUserOriginId: "3ac95cde-6c7f-4eef-afec-be710b42308d", - endUserOrganizationName: "Foo Bar, LLC", - endUserEmailAddress: "hradmin@foobar.dev", - subdomain: "foobar", - webhookListenerUrl: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", - isDuplicate: true, - integration: { - name: "name", - categories: ["hris"], - color: "color", - slug: "slug", - passthroughAvailable: true, - availableModelOperations: [ - { - modelName: "Candidate", - availableOperations: ["FETCH", "CREATE"], - requiredPostParameters: ["remote_user_id"], - supportedFields: ["first_name", "last_name", "company", "title"], - }, - ], - }, - accountType: "PRODUCTION", - completedAt: new Date("2024-08-26T20:11:19.000Z"), - integrationSpecificFields: { - integration_specific_field: "Varies by platform", - }, - }, - ], - }); - }); -}); diff --git a/tests/wire/ats/syncStatus.test.ts b/tests/wire/ats/syncStatus.test.ts deleted file mode 100644 index 7fefb7080..000000000 --- a/tests/wire/ats/syncStatus.test.ts +++ /dev/null @@ -1,63 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("SyncStatusClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - model_name: "Candidate", - model_id: "ats.Candidate", - last_sync_start: "2021-03-30T19:44:18Z", - next_sync_start: "2021-03-30T20:44:18Z", - last_sync_result: "SYNCING", - last_sync_finished: "2021-03-30T19:55:18Z", - status: "SYNCING", - is_initial_sync: true, - selective_sync_configurations_usage: "IN_NEXT_SYNC", - }, - ], - }; - server - .mockEndpoint() - .get("/ats/v1/sync-status") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ats.syncStatus.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - modelName: "Candidate", - modelId: "ats.Candidate", - lastSyncStart: new Date("2021-03-30T19:44:18.000Z"), - nextSyncStart: new Date("2021-03-30T20:44:18.000Z"), - lastSyncResult: "SYNCING", - lastSyncFinished: new Date("2021-03-30T19:55:18.000Z"), - status: "SYNCING", - isInitialSync: true, - selectiveSyncConfigurationsUsage: "IN_NEXT_SYNC", - }, - ], - }); - }); -}); diff --git a/tests/wire/ats/tags.test.ts b/tests/wire/ats/tags.test.ts deleted file mode 100644 index 8aee34a45..000000000 --- a/tests/wire/ats/tags.test.ts +++ /dev/null @@ -1,76 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("TagsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - remote_id: "4567", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "High-Priority", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/tags", data: ["Varies by platform"] }], - }, - ], - }; - server.mockEndpoint().get("/ats/v1/tags").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.ats.tags.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - remoteId: "4567", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "High-Priority", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/tags", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); -}); diff --git a/tests/wire/ats/users.test.ts b/tests/wire/ats/users.test.ts deleted file mode 100644 index 47221bdcc..000000000 --- a/tests/wire/ats/users.test.ts +++ /dev/null @@ -1,155 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("UsersClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "b82302de-852e-4e60-b050-edf9da3b7c02", - remote_id: "344321", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - first_name: "Shensi", - last_name: "Ding", - email: "hello@merge.dev", - disabled: true, - remote_created_at: "2020-11-10T00:00:00Z", - access_role: "SUPER_ADMIN", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/users", data: ["Varies by platform"] }], - }, - ], - }; - server.mockEndpoint().get("/ats/v1/users").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.ats.users.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - email: "email", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteFields: "access_role", - remoteId: "remote_id", - showEnumOrigins: "access_role", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "b82302de-852e-4e60-b050-edf9da3b7c02", - remoteId: "344321", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - firstName: "Shensi", - lastName: "Ding", - email: "hello@merge.dev", - disabled: true, - remoteCreatedAt: new Date("2020-11-10T00:00:00.000Z"), - accessRole: "SUPER_ADMIN", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/users", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "b82302de-852e-4e60-b050-edf9da3b7c02", - remote_id: "344321", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - first_name: "Shensi", - last_name: "Ding", - email: "hello@merge.dev", - disabled: true, - remote_created_at: "2020-11-10T00:00:00Z", - access_role: "SUPER_ADMIN", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/users", data: ["Varies by platform"] }], - }; - server.mockEndpoint().get("/ats/v1/users/id").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.ats.users.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - remoteFields: "access_role", - showEnumOrigins: "access_role", - }); - expect(response).toEqual({ - id: "b82302de-852e-4e60-b050-edf9da3b7c02", - remoteId: "344321", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - firstName: "Shensi", - lastName: "Ding", - email: "hello@merge.dev", - disabled: true, - remoteCreatedAt: new Date("2020-11-10T00:00:00.000Z"), - accessRole: "SUPER_ADMIN", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/users", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/crm/accountToken.test.ts b/tests/wire/crm/accountToken.test.ts deleted file mode 100644 index fe76aa052..000000000 --- a/tests/wire/crm/accountToken.test.ts +++ /dev/null @@ -1,62 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AccountTokenClient", () => { - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - account_token: "T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB", - integration: { - name: "name", - abbreviated_name: "abbreviated_name", - categories: ["hris"], - image: "image", - square_image: "square_image", - color: "color", - slug: "slug", - api_endpoints_to_documentation_urls: { key: "value" }, - webhook_setup_guide_url: "webhook_setup_guide_url", - category_beta_status: { key: "value" }, - }, - id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", - }; - server - .mockEndpoint() - .get("/crm/v1/account-token/public_token") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.accountToken.retrieve("public_token"); - expect(response).toEqual({ - accountToken: "T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB", - integration: { - name: "name", - abbreviatedName: "abbreviated_name", - categories: ["hris"], - image: "image", - squareImage: "square_image", - color: "color", - slug: "slug", - apiEndpointsToDocumentationUrls: { - key: "value", - }, - webhookSetupGuideUrl: "webhook_setup_guide_url", - categoryBetaStatus: { - key: "value", - }, - }, - id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", - }); - }); -}); diff --git a/tests/wire/crm/accounts.test.ts b/tests/wire/crm/accounts.test.ts deleted file mode 100644 index 1b48deea4..000000000 --- a/tests/wire/crm/accounts.test.ts +++ /dev/null @@ -1,1553 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AccountsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - owner: "owner", - name: "Merge API", - description: "One API for all integrations", - industry: "API's", - website: "https://merge.dev/", - number_of_employees: 276000, - addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - street_1: "50 Bowling Green Dr", - street_2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postal_code: "94122", - country: "US", - address_type: "Shipping", - }, - ], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - phone_number: "+16788879833", - phone_number_type: "Mobile", - }, - ], - last_activity_at: "2022-02-10T00:00:00Z", - remote_updated_at: "2022-01-09T00:00:00Z", - remote_created_at: "2021-11-10T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/accounts", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - }; - server.mockEndpoint().get("/crm/v1/accounts").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.crm.accounts.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "owner", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - name: "name", - ownerId: "owner_id", - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - owner: "owner", - name: "Merge API", - description: "One API for all integrations", - industry: "API's", - website: "https://merge.dev/", - numberOfEmployees: 276000, - addresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - street1: "50 Bowling Green Dr", - street2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postalCode: "94122", - country: "US", - addressType: "Shipping", - }, - ], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - phoneNumber: "+16788879833", - phoneNumberType: "Mobile", - }, - ], - lastActivityAt: new Date("2022-02-10T00:00:00.000Z"), - remoteUpdatedAt: new Date("2022-01-09T00:00:00.000Z"), - remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/accounts", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - owner: "owner", - name: "Merge API", - description: "One API for all integrations", - industry: "API's", - website: "https://merge.dev/", - number_of_employees: 276000, - addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - street_1: "50 Bowling Green Dr", - street_2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postal_code: "94122", - country: "US", - address_type: "Shipping", - }, - ], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - phone_number: "+16788879833", - phone_number_type: "Mobile", - }, - ], - last_activity_at: "2022-02-10T00:00:00Z", - remote_updated_at: "2022-01-09T00:00:00Z", - remote_created_at: "2021-11-10T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/accounts", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/crm/v1/accounts") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.accounts.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - owner: "owner", - name: "Merge API", - description: "One API for all integrations", - industry: "API's", - website: "https://merge.dev/", - numberOfEmployees: 276000, - addresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - street1: "50 Bowling Green Dr", - street2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postalCode: "94122", - country: "US", - addressType: "Shipping", - }, - ], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - phoneNumber: "+16788879833", - phoneNumberType: "Mobile", - }, - ], - lastActivityAt: new Date("2022-02-10T00:00:00.000Z"), - remoteUpdatedAt: new Date("2022-01-09T00:00:00.000Z"), - remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/accounts", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - owner: "owner", - name: "Merge API", - description: "One API for all integrations", - industry: "API's", - website: "https://merge.dev/", - number_of_employees: 276000, - addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - street_1: "50 Bowling Green Dr", - street_2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postal_code: "94122", - country: "US", - address_type: "Shipping", - }, - ], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - phone_number: "+16788879833", - phone_number_type: "Mobile", - }, - ], - last_activity_at: "2022-02-10T00:00:00Z", - remote_updated_at: "2022-01-09T00:00:00Z", - remote_created_at: "2021-11-10T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/accounts", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }; - server - .mockEndpoint() - .get("/crm/v1/accounts/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.accounts.retrieve("id", { - expand: "owner", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - owner: "owner", - name: "Merge API", - description: "One API for all integrations", - industry: "API's", - website: "https://merge.dev/", - numberOfEmployees: 276000, - addresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - street1: "50 Bowling Green Dr", - street2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postalCode: "94122", - country: "US", - addressType: "Shipping", - }, - ], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - phoneNumber: "+16788879833", - phoneNumberType: "Mobile", - }, - ], - lastActivityAt: new Date("2022-02-10T00:00:00.000Z"), - remoteUpdatedAt: new Date("2022-01-09T00:00:00.000Z"), - remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/accounts", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }); - }); - - test("partialUpdate", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - owner: "owner", - name: "Merge API", - description: "One API for all integrations", - industry: "API's", - website: "https://merge.dev/", - number_of_employees: 276000, - addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - street_1: "50 Bowling Green Dr", - street_2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postal_code: "94122", - country: "US", - address_type: "Shipping", - }, - ], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - phone_number: "+16788879833", - phone_number_type: "Mobile", - }, - ], - last_activity_at: "2022-02-10T00:00:00Z", - remote_updated_at: "2022-01-09T00:00:00Z", - remote_created_at: "2021-11-10T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/accounts", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .patch("/crm/v1/accounts/id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.accounts.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - owner: "owner", - name: "Merge API", - description: "One API for all integrations", - industry: "API's", - website: "https://merge.dev/", - numberOfEmployees: 276000, - addresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - street1: "50 Bowling Green Dr", - street2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postalCode: "94122", - country: "US", - addressType: "Shipping", - }, - ], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - phoneNumber: "+16788879833", - phoneNumberType: "Mobile", - }, - ], - lastActivityAt: new Date("2022-02-10T00:00:00.000Z"), - remoteUpdatedAt: new Date("2022-01-09T00:00:00.000Z"), - remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/accounts", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("metaPatchRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/crm/v1/accounts/meta/patch/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.accounts.metaPatchRetrieve("id"); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/crm/v1/accounts/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.accounts.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("remoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: [{}], - }, - ], - }; - server - .mockEndpoint() - .get("/crm/v1/accounts/remote-field-classes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.accounts.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: [{}], - }, - ], - }); - }); -}); diff --git a/tests/wire/crm/auditTrail.test.ts b/tests/wire/crm/auditTrail.test.ts deleted file mode 100644 index edae76d15..000000000 --- a/tests/wire/crm/auditTrail.test.ts +++ /dev/null @@ -1,67 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AuditTrailClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "b5ceea2a-7171-47ce-8090-165cfce5572c", - user_name: "Gil Feig", - user_email: "hello@merge.dev", - role: "ADMIN", - ip_address: "192.0.2.123", - event_type: "CREATED_REMOTE_PRODUCTION_API_KEY", - event_description: - "Organization-wide Scopes for model hris.Employee updated from Read to Read+Write", - created_at: "2024-01-15T09:30:00Z", - }, - ], - }; - server - .mockEndpoint() - .get("/crm/v1/audit-trail") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.auditTrail.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - eventType: "event_type", - pageSize: 1, - startDate: "start_date", - userEmail: "user_email", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "b5ceea2a-7171-47ce-8090-165cfce5572c", - userName: "Gil Feig", - userEmail: "hello@merge.dev", - role: "ADMIN", - ipAddress: "192.0.2.123", - eventType: "CREATED_REMOTE_PRODUCTION_API_KEY", - eventDescription: - "Organization-wide Scopes for model hris.Employee updated from Read to Read+Write", - createdAt: new Date("2024-01-15T09:30:00.000Z"), - }, - ], - }); - }); -}); diff --git a/tests/wire/crm/contacts.test.ts b/tests/wire/crm/contacts.test.ts deleted file mode 100644 index f37b6a709..000000000 --- a/tests/wire/crm/contacts.test.ts +++ /dev/null @@ -1,1618 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("ContactsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "550e8400-e29b-41d4-a716-446655440000", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - first_name: "Gil", - last_name: "Feig", - account: "account", - owner: "owner", - addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - street_1: "50 Bowling Green Dr", - street_2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postal_code: "94122", - country: "US", - address_type: "Shipping", - }, - ], - email_addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - email_address: "hello@merge.dev", - email_address_type: "Work", - }, - ], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - phone_number: "+13785579223", - phone_number_type: "Mobile", - }, - ], - last_activity_at: "2022-02-10T00:00:00Z", - remote_created_at: "2021-11-10T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/contacts", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - }; - server.mockEndpoint().get("/crm/v1/contacts").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.crm.contacts.list({ - accountId: "account_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - emailAddresses: "email_addresses", - expand: "account", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - phoneNumbers: "phone_numbers", - remoteId: "remote_id", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "550e8400-e29b-41d4-a716-446655440000", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - firstName: "Gil", - lastName: "Feig", - account: "account", - owner: "owner", - addresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - street1: "50 Bowling Green Dr", - street2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postalCode: "94122", - country: "US", - addressType: "Shipping", - }, - ], - emailAddresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - emailAddress: "hello@merge.dev", - emailAddressType: "Work", - }, - ], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - phoneNumber: "+13785579223", - phoneNumberType: "Mobile", - }, - ], - lastActivityAt: new Date("2022-02-10T00:00:00.000Z"), - remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/contacts", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "550e8400-e29b-41d4-a716-446655440000", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - first_name: "Gil", - last_name: "Feig", - account: "account", - owner: "owner", - addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - street_1: "50 Bowling Green Dr", - street_2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postal_code: "94122", - country: "US", - address_type: "Shipping", - }, - ], - email_addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - email_address: "hello@merge.dev", - email_address_type: "Work", - }, - ], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - phone_number: "+13785579223", - phone_number_type: "Mobile", - }, - ], - last_activity_at: "2022-02-10T00:00:00Z", - remote_created_at: "2021-11-10T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/contacts", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/crm/v1/contacts") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.contacts.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "550e8400-e29b-41d4-a716-446655440000", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - firstName: "Gil", - lastName: "Feig", - account: "account", - owner: "owner", - addresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - street1: "50 Bowling Green Dr", - street2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postalCode: "94122", - country: "US", - addressType: "Shipping", - }, - ], - emailAddresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - emailAddress: "hello@merge.dev", - emailAddressType: "Work", - }, - ], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - phoneNumber: "+13785579223", - phoneNumberType: "Mobile", - }, - ], - lastActivityAt: new Date("2022-02-10T00:00:00.000Z"), - remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/contacts", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "550e8400-e29b-41d4-a716-446655440000", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - first_name: "Gil", - last_name: "Feig", - account: "account", - owner: "owner", - addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - street_1: "50 Bowling Green Dr", - street_2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postal_code: "94122", - country: "US", - address_type: "Shipping", - }, - ], - email_addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - email_address: "hello@merge.dev", - email_address_type: "Work", - }, - ], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - phone_number: "+13785579223", - phone_number_type: "Mobile", - }, - ], - last_activity_at: "2022-02-10T00:00:00Z", - remote_created_at: "2021-11-10T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/contacts", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }; - server - .mockEndpoint() - .get("/crm/v1/contacts/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.contacts.retrieve("id", { - expand: "account", - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "550e8400-e29b-41d4-a716-446655440000", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - firstName: "Gil", - lastName: "Feig", - account: "account", - owner: "owner", - addresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - street1: "50 Bowling Green Dr", - street2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postalCode: "94122", - country: "US", - addressType: "Shipping", - }, - ], - emailAddresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - emailAddress: "hello@merge.dev", - emailAddressType: "Work", - }, - ], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - phoneNumber: "+13785579223", - phoneNumberType: "Mobile", - }, - ], - lastActivityAt: new Date("2022-02-10T00:00:00.000Z"), - remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/contacts", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }); - }); - - test("partialUpdate", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "550e8400-e29b-41d4-a716-446655440000", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - first_name: "Gil", - last_name: "Feig", - account: "account", - owner: "owner", - addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - street_1: "50 Bowling Green Dr", - street_2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postal_code: "94122", - country: "US", - address_type: "Shipping", - }, - ], - email_addresses: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - email_address: "hello@merge.dev", - email_address_type: "Work", - }, - ], - phone_numbers: [ - { - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - phone_number: "+13785579223", - phone_number_type: "Mobile", - }, - ], - last_activity_at: "2022-02-10T00:00:00Z", - remote_created_at: "2021-11-10T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/contacts", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .patch("/crm/v1/contacts/id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.contacts.partialUpdate("id", { - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "550e8400-e29b-41d4-a716-446655440000", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - firstName: "Gil", - lastName: "Feig", - account: "account", - owner: "owner", - addresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - street1: "50 Bowling Green Dr", - street2: "Golden Gate Park", - city: "San Francisco", - state: "CA", - postalCode: "94122", - country: "US", - addressType: "Shipping", - }, - ], - emailAddresses: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - emailAddress: "hello@merge.dev", - emailAddressType: "Work", - }, - ], - phoneNumbers: [ - { - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - phoneNumber: "+13785579223", - phoneNumberType: "Mobile", - }, - ], - lastActivityAt: new Date("2022-02-10T00:00:00.000Z"), - remoteCreatedAt: new Date("2021-11-10T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/contacts", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("ignoreCreate", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { reason: "GENERAL_CUSTOMER_REQUEST" }; - - server - .mockEndpoint() - .post("/crm/v1/contacts/ignore/model_id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .build(); - - const response = await client.crm.contacts.ignoreCreate("model_id", { - reason: "GENERAL_CUSTOMER_REQUEST", - }); - expect(response).toEqual(undefined); - }); - - test("metaPatchRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/crm/v1/contacts/meta/patch/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.contacts.metaPatchRetrieve("id"); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/crm/v1/contacts/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.contacts.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); - - test("remoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: [{}], - }, - ], - }; - server - .mockEndpoint() - .get("/crm/v1/contacts/remote-field-classes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.contacts.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: [{}], - }, - ], - }); - }); -}); diff --git a/tests/wire/crm/fieldMapping.test.ts b/tests/wire/crm/fieldMapping.test.ts deleted file mode 100644 index 9cc55e8ab..000000000 --- a/tests/wire/crm/fieldMapping.test.ts +++ /dev/null @@ -1,1252 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("FieldMappingClient", () => { - test("field_mappings_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - Account: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Contact: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Lead: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Note: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Opportunity: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Stage: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - User: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Task: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - Engagement: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - ], - }; - server - .mockEndpoint() - .get("/crm/v1/field-mappings") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.fieldMapping.fieldMappingsRetrieve({ - excludeRemoteFieldMetadata: true, - }); - expect(response).toEqual({ - account: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - contact: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - lead: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - note: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - opportunity: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - stage: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - user: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - task: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - engagement: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - ], - }); - }); - - test("field_mappings_create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { - target_field_name: "example_target_field_name", - target_field_description: "this is a example description of the target field", - remote_field_traversal_path: ["example_remote_field"], - remote_method: "GET", - remote_url_path: "/example-url-path", - common_model_name: "ExampleCommonModel", - }; - const rawResponseBody = { - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/crm/v1/field-mappings") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.fieldMapping.fieldMappingsCreate({ - excludeRemoteFieldMetadata: true, - targetFieldName: "example_target_field_name", - targetFieldDescription: "this is a example description of the target field", - remoteFieldTraversalPath: ["example_remote_field"], - remoteMethod: "GET", - remoteUrlPath: "/example-url-path", - commonModelName: "ExampleCommonModel", - }); - expect(response).toEqual({ - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("field_mappings_destroy", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .delete("/crm/v1/field-mappings/field_mapping_id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.fieldMapping.fieldMappingsDestroy("field_mapping_id"); - expect(response).toEqual({ - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("field_mappings_partial_update", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = {}; - const rawResponseBody = { - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .patch("/crm/v1/field-mappings/field_mapping_id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); - expect(response).toEqual({ - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("remote_fields_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - Account: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Contact: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Lead: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Note: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Opportunity: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Stage: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - User: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Task: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Engagement: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - }; - server - .mockEndpoint() - .get("/crm/v1/remote-fields") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.fieldMapping.remoteFieldsRetrieve({ - commonModels: "common_models", - includeExampleValues: "include_example_values", - }); - expect(response).toEqual({ - account: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - contact: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - lead: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - note: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - opportunity: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - stage: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - user: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - task: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - engagement: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - }); - }); - - test("target_fields_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - Account: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Contact: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Lead: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Note: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Opportunity: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Stage: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - User: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Task: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Engagement: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - }; - server - .mockEndpoint() - .get("/crm/v1/target-fields") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.fieldMapping.targetFieldsRetrieve(); - expect(response).toEqual({ - account: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - contact: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - lead: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - note: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - opportunity: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - stage: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - user: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - task: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - engagement: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - }); - }); -}); diff --git a/tests/wire/crm/issues.test.ts b/tests/wire/crm/issues.test.ts deleted file mode 100644 index ed98b91fc..000000000 --- a/tests/wire/crm/issues.test.ts +++ /dev/null @@ -1,105 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("IssuesClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - error_description: "Missing Permissions", - end_user: { key: "value" }, - first_incident_time: "2022-12-05T16:19:15Z", - last_incident_time: "2022-12-05T16:19:15Z", - is_muted: true, - error_details: ["Missing employee permissions.", "Missing time off permissions."], - }, - ], - }; - server.mockEndpoint().get("/crm/v1/issues").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.crm.issues.list({ - accountToken: "account_token", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - endUserOrganizationName: "end_user_organization_name", - firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - includeMuted: "include_muted", - integrationName: "integration_name", - lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - linkedAccountId: "linked_account_id", - pageSize: 1, - startDate: "start_date", - status: "ONGOING", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - errorDescription: "Missing Permissions", - endUser: { - key: "value", - }, - firstIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - lastIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - isMuted: true, - errorDetails: ["Missing employee permissions.", "Missing time off permissions."], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - error_description: "Missing Permissions", - end_user: { key: "value" }, - first_incident_time: "2022-12-05T16:19:15Z", - last_incident_time: "2022-12-05T16:19:15Z", - is_muted: true, - error_details: ["Missing employee permissions.", "Missing time off permissions."], - }; - server.mockEndpoint().get("/crm/v1/issues/id").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.crm.issues.retrieve("id"); - expect(response).toEqual({ - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - errorDescription: "Missing Permissions", - endUser: { - key: "value", - }, - firstIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - lastIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - isMuted: true, - errorDetails: ["Missing employee permissions.", "Missing time off permissions."], - }); - }); -}); diff --git a/tests/wire/crm/linkedAccounts.test.ts b/tests/wire/crm/linkedAccounts.test.ts deleted file mode 100644 index 70f57a465..000000000 --- a/tests/wire/crm/linkedAccounts.test.ts +++ /dev/null @@ -1,110 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("LinkedAccountsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "e59b1821-f85c-4e28-a6b3-1804156f3563", - category: "hris", - status: "COMPLETE", - status_detail: "Invalid login credentials", - end_user_origin_id: "3ac95cde-6c7f-4eef-afec-be710b42308d", - end_user_organization_name: "Foo Bar, LLC", - end_user_email_address: "hradmin@foobar.dev", - subdomain: "foobar", - webhook_listener_url: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", - is_duplicate: true, - integration: { - name: "name", - categories: ["hris"], - color: "color", - slug: "slug", - passthrough_available: true, - available_model_operations: [ - { - model_name: "Candidate", - available_operations: ["FETCH", "CREATE"], - required_post_parameters: ["remote_user_id"], - supported_fields: ["first_name", "last_name", "company", "title"], - }, - ], - }, - account_type: "PRODUCTION", - completed_at: "2024-08-26T20:11:19Z", - }, - ], - }; - server - .mockEndpoint() - .get("/crm/v1/linked-accounts") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.linkedAccounts.list({ - category: "accounting", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endUserEmailAddress: "end_user_email_address", - endUserOrganizationName: "end_user_organization_name", - endUserOriginId: "end_user_origin_id", - endUserOriginIds: "end_user_origin_ids", - id: "id", - ids: "ids", - includeDuplicates: true, - integrationName: "integration_name", - isTestAccount: "is_test_account", - pageSize: 1, - status: "status", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "e59b1821-f85c-4e28-a6b3-1804156f3563", - category: "hris", - status: "COMPLETE", - statusDetail: "Invalid login credentials", - endUserOriginId: "3ac95cde-6c7f-4eef-afec-be710b42308d", - endUserOrganizationName: "Foo Bar, LLC", - endUserEmailAddress: "hradmin@foobar.dev", - subdomain: "foobar", - webhookListenerUrl: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", - isDuplicate: true, - integration: { - name: "name", - categories: ["hris"], - color: "color", - slug: "slug", - passthroughAvailable: true, - availableModelOperations: [ - { - modelName: "Candidate", - availableOperations: ["FETCH", "CREATE"], - requiredPostParameters: ["remote_user_id"], - supportedFields: ["first_name", "last_name", "company", "title"], - }, - ], - }, - accountType: "PRODUCTION", - completedAt: new Date("2024-08-26T20:11:19.000Z"), - }, - ], - }); - }); -}); diff --git a/tests/wire/crm/syncStatus.test.ts b/tests/wire/crm/syncStatus.test.ts deleted file mode 100644 index f282a3b24..000000000 --- a/tests/wire/crm/syncStatus.test.ts +++ /dev/null @@ -1,63 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("SyncStatusClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - model_name: "Account", - model_id: "crm.Account", - last_sync_start: "2021-03-30T19:44:18Z", - next_sync_start: "2021-03-30T20:44:18Z", - last_sync_result: "SYNCING", - last_sync_finished: "2021-03-30T19:55:18Z", - status: "SYNCING", - is_initial_sync: true, - selective_sync_configurations_usage: "IN_NEXT_SYNC", - }, - ], - }; - server - .mockEndpoint() - .get("/crm/v1/sync-status") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.syncStatus.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - modelName: "Account", - modelId: "crm.Account", - lastSyncStart: new Date("2021-03-30T19:44:18.000Z"), - nextSyncStart: new Date("2021-03-30T20:44:18.000Z"), - lastSyncResult: "SYNCING", - lastSyncFinished: new Date("2021-03-30T19:55:18.000Z"), - status: "SYNCING", - isInitialSync: true, - selectiveSyncConfigurationsUsage: "IN_NEXT_SYNC", - }, - ], - }); - }); -}); diff --git a/tests/wire/crm/users.test.ts b/tests/wire/crm/users.test.ts deleted file mode 100644 index d9c314ef7..000000000 --- a/tests/wire/crm/users.test.ts +++ /dev/null @@ -1,244 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("UsersClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "0358cbc6-2040-430a-848e-aafacbadf3aa", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Gil Feig", - email: "merge_is_hiring@merge.dev", - is_active: true, - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/users", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }, - ], - }; - server.mockEndpoint().get("/crm/v1/users").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.crm.users.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - email: "email", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "0358cbc6-2040-430a-848e-aafacbadf3aa", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Gil Feig", - email: "merge_is_hiring@merge.dev", - isActive: true, - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/users", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "0358cbc6-2040-430a-848e-aafacbadf3aa", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Gil Feig", - email: "merge_is_hiring@merge.dev", - is_active: true, - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/users", data: ["Varies by platform"] }], - remote_fields: [{ remote_field_class: "remote_field_class", value: "string" }], - }; - server.mockEndpoint().get("/crm/v1/users/id").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.crm.users.retrieve("id", { - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "0358cbc6-2040-430a-848e-aafacbadf3aa", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Gil Feig", - email: "merge_is_hiring@merge.dev", - isActive: true, - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/users", - data: ["Varies by platform"], - }, - ], - remoteFields: [ - { - remoteFieldClass: "remote_field_class", - value: "string", - }, - ], - }); - }); - - test("ignoreCreate", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { reason: "GENERAL_CUSTOMER_REQUEST" }; - - server - .mockEndpoint() - .post("/crm/v1/users/ignore/model_id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .build(); - - const response = await client.crm.users.ignoreCreate("model_id", { - reason: "GENERAL_CUSTOMER_REQUEST", - }); - expect(response).toEqual(undefined); - }); - - test("remoteFieldClassesList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - display_name: "display_name", - remote_key_name: "remote_key_name", - description: "description", - is_custom: true, - is_common_model_field: true, - is_required: true, - field_type: "string", - field_format: "string", - field_choices: [{}], - }, - ], - }; - server - .mockEndpoint() - .get("/crm/v1/users/remote-field-classes") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.crm.users.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeRemoteFields: true, - includeShellData: true, - isCommonModelField: true, - isCustom: true, - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "id", - displayName: "display_name", - remoteKeyName: "remote_key_name", - description: "description", - isCustom: true, - isCommonModelField: true, - isRequired: true, - fieldType: "string", - fieldFormat: "string", - fieldChoices: [{}], - }, - ], - }); - }); -}); diff --git a/tests/wire/filestorage/accountToken.test.ts b/tests/wire/filestorage/accountToken.test.ts index 557a582d2..975372bf3 100644 --- a/tests/wire/filestorage/accountToken.test.ts +++ b/tests/wire/filestorage/accountToken.test.ts @@ -59,4 +59,32 @@ describe("AccountTokenClient", () => { id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", }); }); + + test("regenerateCreate", async () => { + const server = mockServerPool.createServer(); + const client = new MergeClient({ + maxRetries: 0, + apiKey: "test", + accountToken: "test", + environment: server.baseUrl, + }); + + const rawResponseBody = { + linked_account_id: "e59b1821-f85c-4e28-a6b3-1804156f3563", + account_token: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", + }; + server + .mockEndpoint() + .post("/filestorage/v1/account-token/regenerate") + .respondWith() + .statusCode(200) + .jsonBody(rawResponseBody) + .build(); + + const response = await client.filestorage.accountToken.regenerateCreate(); + expect(response).toEqual({ + linkedAccountId: "e59b1821-f85c-4e28-a6b3-1804156f3563", + accountToken: "hXY57W0g0WkdRHjCaPvwijK63fwfN-o_Wh7f30SLTq_uPCOLo-WFcA", + }); + }); }); diff --git a/tests/wire/filestorage/auditTrail.test.ts b/tests/wire/filestorage/auditTrail.test.ts index c0f7b1aee..4668b1d72 100644 --- a/tests/wire/filestorage/auditTrail.test.ts +++ b/tests/wire/filestorage/auditTrail.test.ts @@ -31,22 +31,14 @@ describe("AuditTrailClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/filestorage/v1/audit-trail") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.filestorage.auditTrail.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - eventType: "event_type", - pageSize: 1, - startDate: "start_date", - userEmail: "user_email", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -62,6 +54,19 @@ describe("AuditTrailClient", () => { createdAt: new Date("2024-01-15T09:30:00.000Z"), }, ], + }; + const page = await client.filestorage.auditTrail.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endDate: "end_date", + eventType: "event_type", + pageSize: 1, + startDate: "start_date", + userEmail: "user_email", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); }); diff --git a/tests/wire/filestorage/drives.test.ts b/tests/wire/filestorage/drives.test.ts index 559d61e6c..492607265 100644 --- a/tests/wire/filestorage/drives.test.ts +++ b/tests/wire/filestorage/drives.test.ts @@ -35,27 +35,14 @@ describe("DrivesClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/filestorage/v1/drives") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.filestorage.drives.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - name: "name", - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -84,7 +71,25 @@ describe("DrivesClient", () => { ], }, ], + }; + const page = await client.filestorage.drives.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { diff --git a/tests/wire/filestorage/fieldMapping.test.ts b/tests/wire/filestorage/fieldMapping.test.ts index 2b8379099..54f3d1109 100644 --- a/tests/wire/filestorage/fieldMapping.test.ts +++ b/tests/wire/filestorage/fieldMapping.test.ts @@ -32,6 +32,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], Folder: [ @@ -52,6 +53,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], Drive: [ @@ -72,6 +74,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], Group: [ @@ -92,6 +95,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], User: [ @@ -112,6 +116,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, ], }; @@ -147,6 +152,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], folder: [ @@ -169,6 +175,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], drive: [ @@ -191,6 +198,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], group: [ @@ -213,6 +221,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], user: [ @@ -235,6 +244,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, ], }); @@ -274,6 +284,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, warnings: [ { @@ -314,6 +325,7 @@ describe("FieldMappingClient", () => { const response = await client.filestorage.fieldMapping.fieldMappingsCreate({ excludeRemoteFieldMetadata: true, + remoteDataIterationCount: 1, targetFieldName: "example_target_field_name", targetFieldDescription: "this is a example description of the target field", remoteFieldTraversalPath: ["example_remote_field"], @@ -341,6 +353,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, warnings: [ { @@ -403,6 +416,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, warnings: [ { @@ -461,6 +475,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, warnings: [ { @@ -523,6 +538,7 @@ describe("FieldMappingClient", () => { field_traversal_path: ["example_remote_field_key"], }, }, + jmes_path: "[0].example_jmes_path", }, warnings: [ { @@ -561,7 +577,9 @@ describe("FieldMappingClient", () => { .jsonBody(rawResponseBody) .build(); - const response = await client.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); + const response = await client.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { + remoteDataIterationCount: 1, + }); expect(response).toEqual({ model: { id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", @@ -582,6 +600,7 @@ describe("FieldMappingClient", () => { fieldTraversalPath: ["example_remote_field_key"], }, }, + jmesPath: "[0].example_jmes_path", }, warnings: [ { diff --git a/tests/wire/filestorage/files.test.ts b/tests/wire/filestorage/files.test.ts index 1362c37c3..246e3b300 100644 --- a/tests/wire/filestorage/files.test.ts +++ b/tests/wire/filestorage/files.test.ts @@ -47,34 +47,14 @@ describe("FilesClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/filestorage/v1/files") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.filestorage.files.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - driveId: "drive_id", - expand: "drive", - folderId: "folder_id", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - mimeType: "mime_type", - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - name: "name", - orderBy: "-created_at", - pageSize: 1, - remoteCreatedAfter: new Date("2024-01-15T09:30:00.000Z"), - remoteCreatedBefore: new Date("2024-01-15T09:30:00.000Z"), - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -115,7 +95,31 @@ describe("FilesClient", () => { ], }, ], + }; + const page = await client.filestorage.files.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + driveId: "drive_id", + folderId: "folder_id", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + mimeType: "mime_type", + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + orderBy: "-created_at", + pageSize: 1, + remoteCreatedAfter: new Date("2024-01-15T09:30:00.000Z"), + remoteCreatedBefore: new Date("2024-01-15T09:30:00.000Z"), + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("create", async () => { @@ -313,7 +317,6 @@ describe("FilesClient", () => { .build(); const response = await client.filestorage.files.retrieve("id", { - expand: "drive", includeRemoteData: true, includeShellData: true, }); @@ -413,25 +416,14 @@ describe("FilesClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/filestorage/v1/files/download/request-meta") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.filestorage.files.downloadRequestMetaList({ - createdAfter: "created_after", - createdBefore: "created_before", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - mimeTypes: "mime_types", - modifiedAfter: "modified_after", - modifiedBefore: "modified_before", - orderBy: "-created_at", - pageSize: 1, - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -444,7 +436,23 @@ describe("FilesClient", () => { }, }, ], + }; + const page = await client.filestorage.files.downloadRequestMetaList({ + createdAfter: "created_after", + createdBefore: "created_before", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + mimeTypes: "mime_types", + modifiedAfter: "modified_after", + modifiedBefore: "modified_before", + orderBy: "-created_at", + pageSize: 1, }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("metaPostRetrieve", async () => { diff --git a/tests/wire/filestorage/folders.test.ts b/tests/wire/filestorage/folders.test.ts index da8103572..ba9770022 100644 --- a/tests/wire/filestorage/folders.test.ts +++ b/tests/wire/filestorage/folders.test.ts @@ -41,30 +41,14 @@ describe("FoldersClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/filestorage/v1/folders") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.filestorage.folders.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - driveId: "drive_id", - expand: "drive", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - name: "name", - pageSize: 1, - parentFolderId: "parent_folder_id", - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -99,7 +83,27 @@ describe("FoldersClient", () => { ], }, ], + }; + const page = await client.filestorage.folders.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + driveId: "drive_id", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + name: "name", + pageSize: 1, + parentFolderId: "parent_folder_id", + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("create", async () => { @@ -279,7 +283,6 @@ describe("FoldersClient", () => { .build(); const response = await client.filestorage.folders.retrieve("id", { - expand: "drive", includeRemoteData: true, includeShellData: true, }); diff --git a/tests/wire/filestorage/groups.test.ts b/tests/wire/filestorage/groups.test.ts index 8b3b67768..dddca0b25 100644 --- a/tests/wire/filestorage/groups.test.ts +++ b/tests/wire/filestorage/groups.test.ts @@ -35,27 +35,14 @@ describe("GroupsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/filestorage/v1/groups") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.filestorage.groups.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "child_groups", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -84,7 +71,24 @@ describe("GroupsClient", () => { ], }, ], + }; + const page = await client.filestorage.groups.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { @@ -120,7 +124,6 @@ describe("GroupsClient", () => { .build(); const response = await client.filestorage.groups.retrieve("id", { - expand: "child_groups", includeRemoteData: true, includeShellData: true, }); diff --git a/tests/wire/filestorage/issues.test.ts b/tests/wire/filestorage/issues.test.ts index c6ea7c562..5c1eebe70 100644 --- a/tests/wire/filestorage/issues.test.ts +++ b/tests/wire/filestorage/issues.test.ts @@ -30,30 +30,14 @@ describe("IssuesClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/filestorage/v1/issues") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.filestorage.issues.list({ - accountToken: "account_token", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - endUserOrganizationName: "end_user_organization_name", - firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - includeMuted: "include_muted", - integrationName: "integration_name", - lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - linkedAccountId: "linked_account_id", - pageSize: 1, - startDate: "start_date", - status: "ONGOING", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -70,7 +54,28 @@ describe("IssuesClient", () => { errorDetails: ["Missing employee permissions.", "Missing time off permissions."], }, ], + }; + const page = await client.filestorage.issues.list({ + accountToken: "account_token", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endDate: "end_date", + endUserOrganizationName: "end_user_organization_name", + firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + includeMuted: "include_muted", + integrationName: "integration_name", + lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), + lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), + linkedAccountId: "linked_account_id", + pageSize: 1, + startDate: "start_date", + status: "ONGOING", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { diff --git a/tests/wire/filestorage/linkedAccounts.test.ts b/tests/wire/filestorage/linkedAccounts.test.ts index b0f4b4940..09cbeca0b 100644 --- a/tests/wire/filestorage/linkedAccounts.test.ts +++ b/tests/wire/filestorage/linkedAccounts.test.ts @@ -50,29 +50,14 @@ describe("LinkedAccountsClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/filestorage/v1/linked-accounts") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.filestorage.linkedAccounts.list({ - category: "accounting", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endUserEmailAddress: "end_user_email_address", - endUserOrganizationName: "end_user_organization_name", - endUserOriginId: "end_user_origin_id", - endUserOriginIds: "end_user_origin_ids", - id: "id", - ids: "ids", - includeDuplicates: true, - integrationName: "integration_name", - isTestAccount: "is_test_account", - pageSize: 1, - status: "status", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -109,6 +94,26 @@ describe("LinkedAccountsClient", () => { }, }, ], + }; + const page = await client.filestorage.linkedAccounts.list({ + category: "accounting", + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + endUserEmailAddress: "end_user_email_address", + endUserOrganizationName: "end_user_organization_name", + endUserOriginId: "end_user_origin_id", + endUserOriginIds: "end_user_origin_ids", + id: "id", + ids: "ids", + includeDuplicates: true, + integrationName: "integration_name", + isTestAccount: "is_test_account", + pageSize: 1, + status: "status", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); }); diff --git a/tests/wire/filestorage/syncStatus.test.ts b/tests/wire/filestorage/syncStatus.test.ts index 03ab6b4a1..cf27e2089 100644 --- a/tests/wire/filestorage/syncStatus.test.ts +++ b/tests/wire/filestorage/syncStatus.test.ts @@ -31,18 +31,14 @@ describe("SyncStatusClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/filestorage/v1/sync-status") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.filestorage.syncStatus.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - pageSize: 1, - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -58,6 +54,15 @@ describe("SyncStatusClient", () => { selectiveSyncConfigurationsUsage: "IN_NEXT_SYNC", }, ], + }; + const page = await client.filestorage.syncStatus.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + pageSize: 1, }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); }); diff --git a/tests/wire/filestorage/users.test.ts b/tests/wire/filestorage/users.test.ts index b053f6f20..0d42ff7dc 100644 --- a/tests/wire/filestorage/users.test.ts +++ b/tests/wire/filestorage/users.test.ts @@ -35,27 +35,14 @@ describe("UsersClient", () => { ], }; server - .mockEndpoint() + .mockEndpoint({ once: false }) .get("/filestorage/v1/users") .respondWith() .statusCode(200) .jsonBody(rawResponseBody) .build(); - const response = await client.filestorage.users.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - isMe: "is_me", - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ + const expected = { next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", results: [ @@ -84,7 +71,26 @@ describe("UsersClient", () => { ], }, ], + }; + const page = await client.filestorage.users.list({ + createdAfter: new Date("2024-01-15T09:30:00.000Z"), + createdBefore: new Date("2024-01-15T09:30:00.000Z"), + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", + emailAddress: "email_address", + includeDeletedData: true, + includeRemoteData: true, + includeShellData: true, + isMe: "is_me", + modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), + modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), + pageSize: 1, + remoteId: "remote_id", }); + + expect(expected.results).toEqual(page.data); + expect(page.hasNextPage()).toBe(true); + const nextPage = await page.getNextPage(); + expect(expected.results).toEqual(nextPage.data); }); test("retrieve", async () => { diff --git a/tests/wire/hris/accountToken.test.ts b/tests/wire/hris/accountToken.test.ts deleted file mode 100644 index a79f3e109..000000000 --- a/tests/wire/hris/accountToken.test.ts +++ /dev/null @@ -1,62 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AccountTokenClient", () => { - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - account_token: "T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB", - integration: { - name: "name", - abbreviated_name: "abbreviated_name", - categories: ["hris"], - image: "image", - square_image: "square_image", - color: "color", - slug: "slug", - api_endpoints_to_documentation_urls: { key: "value" }, - webhook_setup_guide_url: "webhook_setup_guide_url", - category_beta_status: { key: "value" }, - }, - id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", - }; - server - .mockEndpoint() - .get("/hris/v1/account-token/public_token") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.accountToken.retrieve("public_token"); - expect(response).toEqual({ - accountToken: "T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB", - integration: { - name: "name", - abbreviatedName: "abbreviated_name", - categories: ["hris"], - image: "image", - squareImage: "square_image", - color: "color", - slug: "slug", - apiEndpointsToDocumentationUrls: { - key: "value", - }, - webhookSetupGuideUrl: "webhook_setup_guide_url", - categoryBetaStatus: { - key: "value", - }, - }, - id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", - }); - }); -}); diff --git a/tests/wire/hris/auditTrail.test.ts b/tests/wire/hris/auditTrail.test.ts deleted file mode 100644 index 6ba0bd44e..000000000 --- a/tests/wire/hris/auditTrail.test.ts +++ /dev/null @@ -1,67 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AuditTrailClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "b5ceea2a-7171-47ce-8090-165cfce5572c", - user_name: "Gil Feig", - user_email: "hello@merge.dev", - role: "ADMIN", - ip_address: "192.0.2.123", - event_type: "CREATED_REMOTE_PRODUCTION_API_KEY", - event_description: - "Organization-wide Scopes for model hris.Employee updated from Read to Read+Write", - created_at: "2024-01-15T09:30:00Z", - }, - ], - }; - server - .mockEndpoint() - .get("/hris/v1/audit-trail") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.auditTrail.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - eventType: "event_type", - pageSize: 1, - startDate: "start_date", - userEmail: "user_email", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "b5ceea2a-7171-47ce-8090-165cfce5572c", - userName: "Gil Feig", - userEmail: "hello@merge.dev", - role: "ADMIN", - ipAddress: "192.0.2.123", - eventType: "CREATED_REMOTE_PRODUCTION_API_KEY", - eventDescription: - "Organization-wide Scopes for model hris.Employee updated from Read to Read+Write", - createdAt: new Date("2024-01-15T09:30:00.000Z"), - }, - ], - }); - }); -}); diff --git a/tests/wire/hris/employees.test.ts b/tests/wire/hris/employees.test.ts deleted file mode 100644 index a41441cc1..000000000 --- a/tests/wire/hris/employees.test.ts +++ /dev/null @@ -1,893 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("EmployeesClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - employee_number: "2", - company: "company", - first_name: "Greg", - last_name: "Hirsch", - preferred_name: "Greg the egg", - display_full_name: "Cousin Greg Hirsch", - username: "cousingreg", - groups: ["21a54124-397f-494d-985e-3c5b330b8a68"], - work_email: "greg@merge.dev", - personal_email: "greg@gmail.com", - mobile_phone_number: "+1234567890", - employments: ["17a54124-287f-494d-965e-3c5b330c9a68"], - home_location: "home_location", - work_location: "work_location", - manager: "manager", - pay_group: "pay_group", - ssn: "1234567890", - gender: "MALE", - ethnicity: "AMERICAN_INDIAN_OR_ALASKA_NATIVE", - marital_status: "SINGLE", - date_of_birth: "1990-11-10T00:00:00Z", - start_date: "2020-10-11T00:00:00Z", - remote_created_at: "2020-10-11T00:00:00Z", - employment_status: "ACTIVE", - termination_date: "2021-10-12T00:00:00Z", - avatar: "http://alturl.com/h2h8m", - custom_fields: { key: "value" }, - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/people", data: ["Varies by platform"] }], - }, - ], - }; - server.mockEndpoint().get("/hris/v1/employees").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.hris.employees.list({ - companyId: "company_id", - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - displayFullName: "display_full_name", - employeeNumber: "employee_number", - employmentStatus: "ACTIVE", - employmentType: "employment_type", - expand: "company", - firstName: "first_name", - groups: "groups", - homeLocationId: "home_location_id", - includeDeletedData: true, - includeRemoteData: true, - includeSensitiveFields: true, - includeShellData: true, - jobTitle: "job_title", - lastName: "last_name", - managerId: "manager_id", - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - payGroupId: "pay_group_id", - personalEmail: "personal_email", - remoteFields: "employment_status", - remoteId: "remote_id", - showEnumOrigins: "employment_status", - startedAfter: new Date("2024-01-15T09:30:00.000Z"), - startedBefore: new Date("2024-01-15T09:30:00.000Z"), - teamId: "team_id", - terminatedAfter: new Date("2024-01-15T09:30:00.000Z"), - terminatedBefore: new Date("2024-01-15T09:30:00.000Z"), - workEmail: "work_email", - workLocationId: "work_location_id", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - employeeNumber: "2", - company: "company", - firstName: "Greg", - lastName: "Hirsch", - preferredName: "Greg the egg", - displayFullName: "Cousin Greg Hirsch", - username: "cousingreg", - groups: ["21a54124-397f-494d-985e-3c5b330b8a68"], - workEmail: "greg@merge.dev", - personalEmail: "greg@gmail.com", - mobilePhoneNumber: "+1234567890", - employments: ["17a54124-287f-494d-965e-3c5b330c9a68"], - homeLocation: "home_location", - workLocation: "work_location", - manager: "manager", - payGroup: "pay_group", - ssn: "1234567890", - gender: "MALE", - ethnicity: "AMERICAN_INDIAN_OR_ALASKA_NATIVE", - maritalStatus: "SINGLE", - dateOfBirth: new Date("1990-11-10T00:00:00.000Z"), - startDate: new Date("2020-10-11T00:00:00.000Z"), - remoteCreatedAt: new Date("2020-10-11T00:00:00.000Z"), - employmentStatus: "ACTIVE", - terminationDate: new Date("2021-10-12T00:00:00.000Z"), - avatar: "http://alturl.com/h2h8m", - customFields: { - key: "value", - }, - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/people", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - employee_number: "2", - company: "company", - first_name: "Greg", - last_name: "Hirsch", - preferred_name: "Greg the egg", - display_full_name: "Cousin Greg Hirsch", - username: "cousingreg", - groups: ["21a54124-397f-494d-985e-3c5b330b8a68"], - work_email: "greg@merge.dev", - personal_email: "greg@gmail.com", - mobile_phone_number: "+1234567890", - employments: ["17a54124-287f-494d-965e-3c5b330c9a68"], - home_location: "home_location", - work_location: "work_location", - manager: "manager", - pay_group: "pay_group", - ssn: "1234567890", - gender: "MALE", - ethnicity: "AMERICAN_INDIAN_OR_ALASKA_NATIVE", - marital_status: "SINGLE", - date_of_birth: "1990-11-10T00:00:00Z", - start_date: "2020-10-11T00:00:00Z", - remote_created_at: "2020-10-11T00:00:00Z", - employment_status: "ACTIVE", - termination_date: "2021-10-12T00:00:00Z", - avatar: "http://alturl.com/h2h8m", - custom_fields: { key: "value" }, - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/people", data: ["Varies by platform"] }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/hris/v1/employees") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.employees.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - employeeNumber: "2", - company: "company", - firstName: "Greg", - lastName: "Hirsch", - preferredName: "Greg the egg", - displayFullName: "Cousin Greg Hirsch", - username: "cousingreg", - groups: ["21a54124-397f-494d-985e-3c5b330b8a68"], - workEmail: "greg@merge.dev", - personalEmail: "greg@gmail.com", - mobilePhoneNumber: "+1234567890", - employments: ["17a54124-287f-494d-965e-3c5b330c9a68"], - homeLocation: "home_location", - workLocation: "work_location", - manager: "manager", - payGroup: "pay_group", - ssn: "1234567890", - gender: "MALE", - ethnicity: "AMERICAN_INDIAN_OR_ALASKA_NATIVE", - maritalStatus: "SINGLE", - dateOfBirth: new Date("1990-11-10T00:00:00.000Z"), - startDate: new Date("2020-10-11T00:00:00.000Z"), - remoteCreatedAt: new Date("2020-10-11T00:00:00.000Z"), - employmentStatus: "ACTIVE", - terminationDate: new Date("2021-10-12T00:00:00.000Z"), - avatar: "http://alturl.com/h2h8m", - customFields: { - key: "value", - }, - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/people", - data: ["Varies by platform"], - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - employee_number: "2", - company: "company", - first_name: "Greg", - last_name: "Hirsch", - preferred_name: "Greg the egg", - display_full_name: "Cousin Greg Hirsch", - username: "cousingreg", - groups: ["21a54124-397f-494d-985e-3c5b330b8a68"], - work_email: "greg@merge.dev", - personal_email: "greg@gmail.com", - mobile_phone_number: "+1234567890", - employments: ["17a54124-287f-494d-965e-3c5b330c9a68"], - home_location: "home_location", - work_location: "work_location", - manager: "manager", - pay_group: "pay_group", - ssn: "1234567890", - gender: "MALE", - ethnicity: "AMERICAN_INDIAN_OR_ALASKA_NATIVE", - marital_status: "SINGLE", - date_of_birth: "1990-11-10T00:00:00Z", - start_date: "2020-10-11T00:00:00Z", - remote_created_at: "2020-10-11T00:00:00Z", - employment_status: "ACTIVE", - termination_date: "2021-10-12T00:00:00Z", - avatar: "http://alturl.com/h2h8m", - custom_fields: { key: "value" }, - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/people", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/hris/v1/employees/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.employees.retrieve("id", { - expand: "company", - includeRemoteData: true, - includeSensitiveFields: true, - includeShellData: true, - remoteFields: "employment_status", - showEnumOrigins: "employment_status", - }); - expect(response).toEqual({ - id: "0958cbc6-6040-430a-848e-aafacbadf4ae", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - employeeNumber: "2", - company: "company", - firstName: "Greg", - lastName: "Hirsch", - preferredName: "Greg the egg", - displayFullName: "Cousin Greg Hirsch", - username: "cousingreg", - groups: ["21a54124-397f-494d-985e-3c5b330b8a68"], - workEmail: "greg@merge.dev", - personalEmail: "greg@gmail.com", - mobilePhoneNumber: "+1234567890", - employments: ["17a54124-287f-494d-965e-3c5b330c9a68"], - homeLocation: "home_location", - workLocation: "work_location", - manager: "manager", - payGroup: "pay_group", - ssn: "1234567890", - gender: "MALE", - ethnicity: "AMERICAN_INDIAN_OR_ALASKA_NATIVE", - maritalStatus: "SINGLE", - dateOfBirth: new Date("1990-11-10T00:00:00.000Z"), - startDate: new Date("2020-10-11T00:00:00.000Z"), - remoteCreatedAt: new Date("2020-10-11T00:00:00.000Z"), - employmentStatus: "ACTIVE", - terminationDate: new Date("2021-10-12T00:00:00.000Z"), - avatar: "http://alturl.com/h2h8m", - customFields: { - key: "value", - }, - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/people", - data: ["Varies by platform"], - }, - ], - }); - }); - - test("ignoreCreate", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { reason: "GENERAL_CUSTOMER_REQUEST" }; - - server - .mockEndpoint() - .post("/hris/v1/employees/ignore/model_id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .build(); - - const response = await client.hris.employees.ignoreCreate("model_id", { - reason: "GENERAL_CUSTOMER_REQUEST", - }); - expect(response).toEqual(undefined); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/hris/v1/employees/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.employees.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); -}); diff --git a/tests/wire/hris/fieldMapping.test.ts b/tests/wire/hris/fieldMapping.test.ts deleted file mode 100644 index df1ba9eb3..000000000 --- a/tests/wire/hris/fieldMapping.test.ts +++ /dev/null @@ -1,1906 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("FieldMappingClient", () => { - test("field_mappings_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - Benefit: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - EmployerBenefit: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - Company: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - EmployeePayrollRun: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - Employee: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - Employment: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - Location: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - PayrollRun: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - Team: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - TimeOff: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - TimeOffBalance: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - BankInfo: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - PayGroup: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - Group: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - Dependent: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - TimesheetEntry: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - }; - server - .mockEndpoint() - .get("/hris/v1/field-mappings") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.fieldMapping.fieldMappingsRetrieve({ - excludeRemoteFieldMetadata: true, - }); - expect(response).toEqual({ - benefit: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - employerBenefit: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - company: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - employeePayrollRun: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - employee: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - employment: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - location: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - payrollRun: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - team: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - timeOff: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - timeOffBalance: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - bankInfo: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - payGroup: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - group: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - dependent: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - timesheetEntry: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - }); - }); - - test("field_mappings_create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { - target_field_name: "example_target_field_name", - target_field_description: "this is a example description of the target field", - remote_field_traversal_path: ["example_remote_field"], - remote_method: "GET", - remote_url_path: "/example-url-path", - common_model_name: "ExampleCommonModel", - }; - const rawResponseBody = { - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/hris/v1/field-mappings") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.fieldMapping.fieldMappingsCreate({ - excludeRemoteFieldMetadata: true, - targetFieldName: "example_target_field_name", - targetFieldDescription: "this is a example description of the target field", - remoteFieldTraversalPath: ["example_remote_field"], - remoteMethod: "GET", - remoteUrlPath: "/example-url-path", - commonModelName: "ExampleCommonModel", - }); - expect(response).toEqual({ - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("field_mappings_destroy", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .delete("/hris/v1/field-mappings/field_mapping_id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.fieldMapping.fieldMappingsDestroy("field_mapping_id"); - expect(response).toEqual({ - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("field_mappings_partial_update", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = {}; - const rawResponseBody = { - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .patch("/hris/v1/field-mappings/field_mapping_id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); - expect(response).toEqual({ - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("remote_fields_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - Benefit: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - EmployerBenefit: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Company: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - EmployeePayrollRun: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Employee: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Employment: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Location: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - PayrollRun: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Team: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - TimeOff: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - TimeOffBalance: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - BankInfo: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - PayGroup: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Group: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Dependent: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - TimesheetEntry: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - }; - server - .mockEndpoint() - .get("/hris/v1/remote-fields") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.fieldMapping.remoteFieldsRetrieve({ - commonModels: "common_models", - includeExampleValues: "include_example_values", - }); - expect(response).toEqual({ - benefit: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - employerBenefit: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - company: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - employeePayrollRun: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - employee: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - employment: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - location: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - payrollRun: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - team: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - timeOff: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - timeOffBalance: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - bankInfo: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - payGroup: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - group: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - dependent: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - timesheetEntry: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - }); - }); - - test("target_fields_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - Benefit: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - EmployerBenefit: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Company: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - EmployeePayrollRun: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Employee: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Employment: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Location: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - PayrollRun: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Team: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - TimeOff: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - TimeOffBalance: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - BankInfo: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - PayGroup: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Group: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Dependent: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - TimesheetEntry: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - }; - server - .mockEndpoint() - .get("/hris/v1/target-fields") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.fieldMapping.targetFieldsRetrieve(); - expect(response).toEqual({ - benefit: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - employerBenefit: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - company: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - employeePayrollRun: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - employee: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - employment: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - location: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - payrollRun: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - team: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - timeOff: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - timeOffBalance: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - bankInfo: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - payGroup: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - group: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - dependent: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - timesheetEntry: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - }); - }); -}); diff --git a/tests/wire/hris/issues.test.ts b/tests/wire/hris/issues.test.ts deleted file mode 100644 index d4b850c3a..000000000 --- a/tests/wire/hris/issues.test.ts +++ /dev/null @@ -1,105 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("IssuesClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - error_description: "Missing Permissions", - end_user: { key: "value" }, - first_incident_time: "2022-12-05T16:19:15Z", - last_incident_time: "2022-12-05T16:19:15Z", - is_muted: true, - error_details: ["Missing employee permissions.", "Missing time off permissions."], - }, - ], - }; - server.mockEndpoint().get("/hris/v1/issues").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.hris.issues.list({ - accountToken: "account_token", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - endUserOrganizationName: "end_user_organization_name", - firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - includeMuted: "include_muted", - integrationName: "integration_name", - lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - linkedAccountId: "linked_account_id", - pageSize: 1, - startDate: "start_date", - status: "ONGOING", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - errorDescription: "Missing Permissions", - endUser: { - key: "value", - }, - firstIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - lastIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - isMuted: true, - errorDetails: ["Missing employee permissions.", "Missing time off permissions."], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - error_description: "Missing Permissions", - end_user: { key: "value" }, - first_incident_time: "2022-12-05T16:19:15Z", - last_incident_time: "2022-12-05T16:19:15Z", - is_muted: true, - error_details: ["Missing employee permissions.", "Missing time off permissions."], - }; - server.mockEndpoint().get("/hris/v1/issues/id").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.hris.issues.retrieve("id"); - expect(response).toEqual({ - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - errorDescription: "Missing Permissions", - endUser: { - key: "value", - }, - firstIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - lastIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - isMuted: true, - errorDetails: ["Missing employee permissions.", "Missing time off permissions."], - }); - }); -}); diff --git a/tests/wire/hris/linkedAccounts.test.ts b/tests/wire/hris/linkedAccounts.test.ts deleted file mode 100644 index 779d8a6f0..000000000 --- a/tests/wire/hris/linkedAccounts.test.ts +++ /dev/null @@ -1,114 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("LinkedAccountsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "e59b1821-f85c-4e28-a6b3-1804156f3563", - category: "hris", - status: "COMPLETE", - status_detail: "Invalid login credentials", - end_user_origin_id: "3ac95cde-6c7f-4eef-afec-be710b42308d", - end_user_organization_name: "Foo Bar, LLC", - end_user_email_address: "hradmin@foobar.dev", - subdomain: "foobar", - webhook_listener_url: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", - is_duplicate: true, - integration: { - name: "name", - categories: ["hris"], - color: "color", - slug: "slug", - passthrough_available: true, - available_model_operations: [ - { - model_name: "Candidate", - available_operations: ["FETCH", "CREATE"], - required_post_parameters: ["remote_user_id"], - supported_fields: ["first_name", "last_name", "company", "title"], - }, - ], - }, - account_type: "PRODUCTION", - completed_at: "2024-08-26T20:11:19Z", - integration_specific_fields: { integration_specific_field: "Varies by platform" }, - }, - ], - }; - server - .mockEndpoint() - .get("/hris/v1/linked-accounts") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.linkedAccounts.list({ - category: "accounting", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endUserEmailAddress: "end_user_email_address", - endUserOrganizationName: "end_user_organization_name", - endUserOriginId: "end_user_origin_id", - endUserOriginIds: "end_user_origin_ids", - id: "id", - ids: "ids", - includeDuplicates: true, - integrationName: "integration_name", - isTestAccount: "is_test_account", - pageSize: 1, - status: "status", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "e59b1821-f85c-4e28-a6b3-1804156f3563", - category: "hris", - status: "COMPLETE", - statusDetail: "Invalid login credentials", - endUserOriginId: "3ac95cde-6c7f-4eef-afec-be710b42308d", - endUserOrganizationName: "Foo Bar, LLC", - endUserEmailAddress: "hradmin@foobar.dev", - subdomain: "foobar", - webhookListenerUrl: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", - isDuplicate: true, - integration: { - name: "name", - categories: ["hris"], - color: "color", - slug: "slug", - passthroughAvailable: true, - availableModelOperations: [ - { - modelName: "Candidate", - availableOperations: ["FETCH", "CREATE"], - requiredPostParameters: ["remote_user_id"], - supportedFields: ["first_name", "last_name", "company", "title"], - }, - ], - }, - accountType: "PRODUCTION", - completedAt: new Date("2024-08-26T20:11:19.000Z"), - integrationSpecificFields: { - integration_specific_field: "Varies by platform", - }, - }, - ], - }); - }); -}); diff --git a/tests/wire/hris/syncStatus.test.ts b/tests/wire/hris/syncStatus.test.ts deleted file mode 100644 index 6b5715d63..000000000 --- a/tests/wire/hris/syncStatus.test.ts +++ /dev/null @@ -1,63 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("SyncStatusClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - model_name: "Employee", - model_id: "hris.Employee", - last_sync_start: "2021-03-30T19:44:18Z", - next_sync_start: "2021-03-30T20:44:18Z", - last_sync_result: "SYNCING", - last_sync_finished: "2021-03-30T19:55:18Z", - status: "SYNCING", - is_initial_sync: true, - selective_sync_configurations_usage: "IN_NEXT_SYNC", - }, - ], - }; - server - .mockEndpoint() - .get("/hris/v1/sync-status") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.hris.syncStatus.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - modelName: "Employee", - modelId: "hris.Employee", - lastSyncStart: new Date("2021-03-30T19:44:18.000Z"), - nextSyncStart: new Date("2021-03-30T20:44:18.000Z"), - lastSyncResult: "SYNCING", - lastSyncFinished: new Date("2021-03-30T19:55:18.000Z"), - status: "SYNCING", - isInitialSync: true, - selectiveSyncConfigurationsUsage: "IN_NEXT_SYNC", - }, - ], - }); - }); -}); diff --git a/tests/wire/hris/teams.test.ts b/tests/wire/hris/teams.test.ts deleted file mode 100644 index 287f1ce0e..000000000 --- a/tests/wire/hris/teams.test.ts +++ /dev/null @@ -1,137 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("TeamsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "13a72919-9fae-4f54-81ca-ddfd8712a1ba", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Engineering", - parent_team: "parent_team", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/teams", data: ["Varies by platform"] }], - }, - ], - }; - server.mockEndpoint().get("/hris/v1/teams").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.hris.teams.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "parent_team", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - parentTeamId: "parent_team_id", - remoteId: "remote_id", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "13a72919-9fae-4f54-81ca-ddfd8712a1ba", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Engineering", - parentTeam: "parent_team", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/teams", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "13a72919-9fae-4f54-81ca-ddfd8712a1ba", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Engineering", - parent_team: "parent_team", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/teams", data: ["Varies by platform"] }], - }; - server.mockEndpoint().get("/hris/v1/teams/id").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.hris.teams.retrieve("id", { - expand: "parent_team", - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "13a72919-9fae-4f54-81ca-ddfd8712a1ba", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Engineering", - parentTeam: "parent_team", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/teams", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/ticketing/accountToken.test.ts b/tests/wire/ticketing/accountToken.test.ts deleted file mode 100644 index ba4d2af27..000000000 --- a/tests/wire/ticketing/accountToken.test.ts +++ /dev/null @@ -1,62 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AccountTokenClient", () => { - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - account_token: "T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB", - integration: { - name: "name", - abbreviated_name: "abbreviated_name", - categories: ["hris"], - image: "image", - square_image: "square_image", - color: "color", - slug: "slug", - api_endpoints_to_documentation_urls: { key: "value" }, - webhook_setup_guide_url: "webhook_setup_guide_url", - category_beta_status: { key: "value" }, - }, - id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", - }; - server - .mockEndpoint() - .get("/ticketing/v1/account-token/public_token") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.accountToken.retrieve("public_token"); - expect(response).toEqual({ - accountToken: "T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB", - integration: { - name: "name", - abbreviatedName: "abbreviated_name", - categories: ["hris"], - image: "image", - squareImage: "square_image", - color: "color", - slug: "slug", - apiEndpointsToDocumentationUrls: { - key: "value", - }, - webhookSetupGuideUrl: "webhook_setup_guide_url", - categoryBetaStatus: { - key: "value", - }, - }, - id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", - }); - }); -}); diff --git a/tests/wire/ticketing/accounts.test.ts b/tests/wire/ticketing/accounts.test.ts deleted file mode 100644 index 011262b99..000000000 --- a/tests/wire/ticketing/accounts.test.ts +++ /dev/null @@ -1,146 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AccountsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Waystar Royco", - domains: ["waystar-royco.com", "royco.com"], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/accounts") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.accounts.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Waystar Royco", - domains: ["waystar-royco.com", "royco.com"], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Waystar Royco", - domains: ["waystar-royco.com", "royco.com"], - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/actions", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/ticketing/v1/accounts/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.accounts.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Waystar Royco", - domains: ["waystar-royco.com", "royco.com"], - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/actions", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/ticketing/attachments.test.ts b/tests/wire/ticketing/attachments.test.ts deleted file mode 100644 index 811624dc8..000000000 --- a/tests/wire/ticketing/attachments.test.ts +++ /dev/null @@ -1,719 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AttachmentsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - file_name: "Screenshot.png", - ticket: "ticket", - file_url: "http://alturl.com/p749b", - content_type: "jpeg", - uploaded_by: "28b54125-287f-494d-965e-3c5b330c9a68", - remote_created_at: "2022-11-10T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/attachments") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.attachments.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "ticket", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteCreatedAfter: new Date("2024-01-15T09:30:00.000Z"), - remoteId: "remote_id", - ticketId: "ticket_id", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - fileName: "Screenshot.png", - ticket: "ticket", - fileUrl: "http://alturl.com/p749b", - contentType: "jpeg", - uploadedBy: "28b54125-287f-494d-965e-3c5b330c9a68", - remoteCreatedAt: new Date("2022-11-10T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - file_name: "Screenshot.png", - ticket: "ticket", - file_url: "http://alturl.com/p749b", - content_type: "jpeg", - uploaded_by: "28b54125-287f-494d-965e-3c5b330c9a68", - remote_created_at: "2022-11-10T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/ticketing/v1/attachments") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.attachments.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - fileName: "Screenshot.png", - ticket: "ticket", - fileUrl: "http://alturl.com/p749b", - contentType: "jpeg", - uploadedBy: "28b54125-287f-494d-965e-3c5b330c9a68", - remoteCreatedAt: new Date("2022-11-10T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - file_name: "Screenshot.png", - ticket: "ticket", - file_url: "http://alturl.com/p749b", - content_type: "jpeg", - uploaded_by: "28b54125-287f-494d-965e-3c5b330c9a68", - remote_created_at: "2022-11-10T00:00:00Z", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/ticketing/v1/attachments/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.attachments.retrieve("id", { - expand: "ticket", - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - fileName: "Screenshot.png", - ticket: "ticket", - fileUrl: "http://alturl.com/p749b", - contentType: "jpeg", - uploadedBy: "28b54125-287f-494d-965e-3c5b330c9a68", - remoteCreatedAt: new Date("2022-11-10T00:00:00.000Z"), - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/ticketing/v1/attachments/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.attachments.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); -}); diff --git a/tests/wire/ticketing/auditTrail.test.ts b/tests/wire/ticketing/auditTrail.test.ts deleted file mode 100644 index d9e1553c3..000000000 --- a/tests/wire/ticketing/auditTrail.test.ts +++ /dev/null @@ -1,67 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("AuditTrailClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "b5ceea2a-7171-47ce-8090-165cfce5572c", - user_name: "Gil Feig", - user_email: "hello@merge.dev", - role: "ADMIN", - ip_address: "192.0.2.123", - event_type: "CREATED_REMOTE_PRODUCTION_API_KEY", - event_description: - "Organization-wide Scopes for model hris.Employee updated from Read to Read+Write", - created_at: "2024-01-15T09:30:00Z", - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/audit-trail") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.auditTrail.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - eventType: "event_type", - pageSize: 1, - startDate: "start_date", - userEmail: "user_email", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "b5ceea2a-7171-47ce-8090-165cfce5572c", - userName: "Gil Feig", - userEmail: "hello@merge.dev", - role: "ADMIN", - ipAddress: "192.0.2.123", - eventType: "CREATED_REMOTE_PRODUCTION_API_KEY", - eventDescription: - "Organization-wide Scopes for model hris.Employee updated from Read to Read+Write", - createdAt: new Date("2024-01-15T09:30:00.000Z"), - }, - ], - }); - }); -}); diff --git a/tests/wire/ticketing/contacts.test.ts b/tests/wire/ticketing/contacts.test.ts deleted file mode 100644 index 5694f277e..000000000 --- a/tests/wire/ticketing/contacts.test.ts +++ /dev/null @@ -1,712 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("ContactsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Cousin Greg", - email_address: "greg@waystar-royco.com", - phone_number: "5108890293", - details: "Executive Assistant to Tom Wambsgans", - account: "account", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/contacts") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.contacts.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - emailAddress: "email_address", - expand: "account", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Cousin Greg", - emailAddress: "greg@waystar-royco.com", - phoneNumber: "5108890293", - details: "Executive Assistant to Tom Wambsgans", - account: "account", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { model: {} }; - const rawResponseBody = { - model: { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Cousin Greg", - email_address: "greg@waystar-royco.com", - phone_number: "5108890293", - details: "Executive Assistant to Tom Wambsgans", - account: "account", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/ticketing/v1/contacts") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.contacts.create({ - isDebugMode: true, - runAsync: true, - model: {}, - }); - expect(response).toEqual({ - model: { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Cousin Greg", - emailAddress: "greg@waystar-royco.com", - phoneNumber: "5108890293", - details: "Executive Assistant to Tom Wambsgans", - account: "account", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Cousin Greg", - email_address: "greg@waystar-royco.com", - phone_number: "5108890293", - details: "Executive Assistant to Tom Wambsgans", - account: "account", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/ticketing/v1/contacts/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.contacts.retrieve("id", { - expand: "account", - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Cousin Greg", - emailAddress: "greg@waystar-royco.com", - phoneNumber: "5108890293", - details: "Executive Assistant to Tom Wambsgans", - account: "account", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }); - }); - - test("metaPostRetrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - request_schema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - email_address_type: { type: "string", title: "email_address_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - url_type: { type: "string", title: "url_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { type: "string", title: "first_name", description: "The first name." }, - last_name: { type: "string", title: "last_name", description: "The last name." }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { type: "string", title: "value" }, - phone_number_type: { type: "string", title: "phone_number_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { type: "string", title: "id" }, - file_url: { type: "string", title: "file_url" }, - file_name: { type: "string", title: "file_name" }, - attachment_type: { type: "string", title: "attachment_type" }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { value: "HRIS", description: "Merge HRIS Category" }, - { value: "ATS", description: "Merge ATS Category" }, - { value: "Accounting", description: "Merge Accounting Category" }, - { value: "Ticketing", description: "Merge Ticketing Category" }, - { value: "File Storage", description: "Merge File Storage Category" }, - { value: "CRM", description: "Merge CRM Category" }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { type: "string", format: "uuid" }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remote_field_classes: { key: "value" }, - status: { linked_account_status: "linked_account_status", can_make_request: true }, - has_conditional_params: true, - has_required_linked_account_params: true, - }; - server - .mockEndpoint() - .get("/ticketing/v1/contacts/meta/post") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.contacts.metaPostRetrieve(); - expect(response).toEqual({ - requestSchema: { - type: "object", - properties: { - model: { - type: "object", - required: [ - "last_name", - "first_name", - "merge_categories", - "new_york_city_neighborhood", - "favorite_tv_shows", - "favorite_watch", - ], - properties: { - email_addresses: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - email_address_type: { - type: "string", - title: "email_address_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "email_addresses", - description: "Array of email_addresses objects", - }, - urls: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - url_type: { - type: "string", - title: "url_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "urls", - description: "Array of urls objects", - }, - first_name: { - type: "string", - title: "first_name", - description: "The first name.", - }, - last_name: { - type: "string", - title: "last_name", - description: "The last name.", - }, - phone_numbers: { - type: "array", - items: { - type: "object", - properties: { - value: { - type: "string", - title: "value", - }, - phone_number_type: { - type: "string", - title: "phone_number_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "phone_numbers", - description: "Array of phone_numbers objects", - }, - tags: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "tags", - description: "Array of tags names", - }, - attachments: { - type: "array", - items: { - type: "object", - properties: { - id: { - type: "string", - title: "id", - }, - file_url: { - type: "string", - title: "file_url", - }, - file_name: { - type: "string", - title: "file_name", - }, - attachment_type: { - type: "string", - title: "attachment_type", - }, - integration_params: { - type: "object", - title: "integration_params", - properties: {}, - }, - linked_account_params: { - type: "object", - title: "linked_account_params", - properties: {}, - }, - }, - }, - title: "attachments", - description: "Array of attachments objects ", - }, - merge_categories: { - type: "array", - categories: { - type: "string", - enum: [ - "HRIS", - "ATS", - "Accounting", - "Ticketing", - "File Storage", - "CRM", - "Marketing Automation", - ], - enum_information: [ - { - value: "HRIS", - description: "Merge HRIS Category", - }, - { - value: "ATS", - description: "Merge ATS Category", - }, - { - value: "Accounting", - description: "Merge Accounting Category", - }, - { - value: "Ticketing", - description: "Merge Ticketing Category", - }, - { - value: "File Storage", - description: "Merge File Storage Category", - }, - { - value: "CRM", - description: "Merge CRM Category", - }, - { - value: "Marketing Automation", - description: "Merge Marketing Automation Category", - }, - ], - }, - title: "Merge Categories", - description: "Array of Merge's Unified API Categories", - }, - new_york_city_neighborhood: { - type: "string", - title: "Borough", - description: "One of the 5 Boroughs of New York City", - }, - favorite_tv_shows: { - type: "array", - items: { - type: "string", - format: "uuid", - }, - title: "Favorite TV Shows", - description: "Array of TV Show objects on merge.tv_shows", - }, - favorite_watch: { - type: "string", - title: "Favorite Watch", - description: "Favorite watch of all time", - }, - }, - }, - }, - }, - remoteFieldClasses: { - key: "value", - }, - status: { - linkedAccountStatus: "linked_account_status", - canMakeRequest: true, - }, - hasConditionalParams: true, - hasRequiredLinkedAccountParams: true, - }); - }); -}); diff --git a/tests/wire/ticketing/fieldMapping.test.ts b/tests/wire/ticketing/fieldMapping.test.ts deleted file mode 100644 index bb4f64225..000000000 --- a/tests/wire/ticketing/fieldMapping.test.ts +++ /dev/null @@ -1,1456 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("FieldMappingClient", () => { - test("field_mappings_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - Ticket: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - Comment: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - Project: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - Collection: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - User: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - Role: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - Account: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - Team: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - Attachment: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - Tag: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - Contact: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/field-mappings") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.fieldMapping.fieldMappingsRetrieve({ - excludeRemoteFieldMetadata: true, - }); - expect(response).toEqual({ - ticket: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - comment: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - project: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - collection: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - user: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - role: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - account: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - team: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - attachment: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - tag: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - contact: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - ], - }); - }); - - test("field_mappings_create", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = { - target_field_name: "example_target_field_name", - target_field_description: "this is a example description of the target field", - remote_field_traversal_path: ["example_remote_field"], - remote_method: "GET", - remote_url_path: "/example-url-path", - common_model_name: "ExampleCommonModel", - }; - const rawResponseBody = { - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .post("/ticketing/v1/field-mappings") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.fieldMapping.fieldMappingsCreate({ - excludeRemoteFieldMetadata: true, - targetFieldName: "example_target_field_name", - targetFieldDescription: "this is a example description of the target field", - remoteFieldTraversalPath: ["example_remote_field"], - remoteMethod: "GET", - remoteUrlPath: "/example-url-path", - commonModelName: "ExampleCommonModel", - }); - expect(response).toEqual({ - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("field_mappings_destroy", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .delete("/ticketing/v1/field-mappings/field_mapping_id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.fieldMapping.fieldMappingsDestroy("field_mapping_id"); - expect(response).toEqual({ - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("field_mappings_partial_update", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - const rawRequestBody = {}; - const rawResponseBody = { - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - is_integration_wide: true, - target_field: { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_organization_wide: true, - }, - remote_field: { - remote_key_name: "example_remote_field_key", - schema: { type: "string" }, - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_remote_field_key"], - }, - }, - jmes_path: "[0].example_jmes_path", - }, - warnings: [ - { - source: { pointer: "pointer" }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problem_type: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { pointer: "pointer" }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problem_type: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - log_id: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboard_view: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - log_summary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - status_code: 200, - }, - }, - ], - }; - server - .mockEndpoint() - .patch("/ticketing/v1/field-mappings/field_mapping_id") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); - expect(response).toEqual({ - model: { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - isIntegrationWide: true, - targetField: { - name: "example_target_field_name", - description: "this is a example description of a target field", - isOrganizationWide: true, - }, - remoteField: { - remoteKeyName: "example_remote_field_key", - schema: { - type: "string", - }, - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_remote_field_key"], - }, - }, - jmesPath: "[0].example_jmes_path", - }, - warnings: [ - { - source: { - pointer: "pointer", - }, - title: "Unrecognized Field", - detail: "An unrecognized field, age, was passed in with request data.", - problemType: "UNRECOGNIZED_FIELD", - }, - ], - errors: [ - { - source: { - pointer: "pointer", - }, - title: "Missing Required Field", - detail: "custom_fields is a required field on model.", - problemType: "MISSING_REQUIRED_FIELD", - }, - ], - logs: [ - { - logId: "99433219-8017-4acd-bb3c-ceb23d663832", - dashboardView: "https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832", - logSummary: { - url: "www.exampleintegration.com/api/v1/exampleapi", - method: "POST", - statusCode: 200, - }, - }, - ], - }); - }); - - test("remote_fields_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - Ticket: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Comment: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Project: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Collection: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - User: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Role: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Account: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Team: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Attachment: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Tag: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - Contact: [ - { - schema: { type: "string" }, - remote_key_name: "example_remote_key_name", - remote_endpoint_info: { - method: "GET", - url_path: "/example-url-path", - field_traversal_path: ["example_key_name"], - }, - example_values: ["example"], - advanced_metadata: { id: "id" }, - coverage: 1, - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/remote-fields") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.fieldMapping.remoteFieldsRetrieve({ - commonModels: "common_models", - includeExampleValues: "include_example_values", - }); - expect(response).toEqual({ - ticket: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - comment: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - project: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - collection: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - user: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - role: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - account: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - team: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - attachment: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - tag: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - contact: [ - { - schema: { - type: "string", - }, - remoteKeyName: "example_remote_key_name", - remoteEndpointInfo: { - method: "GET", - urlPath: "/example-url-path", - fieldTraversalPath: ["example_key_name"], - }, - exampleValues: ["example"], - advancedMetadata: { - id: "id", - }, - coverage: 1, - }, - ], - }); - }); - - test("target_fields_retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - Ticket: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Comment: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Project: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Collection: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - User: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Role: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Account: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Team: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Attachment: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Tag: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - Contact: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - is_mapped: "is_mapped", - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/target-fields") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.fieldMapping.targetFieldsRetrieve(); - expect(response).toEqual({ - ticket: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - comment: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - project: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - collection: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - user: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - role: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - account: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - team: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - attachment: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - tag: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - contact: [ - { - name: "example_target_field_name", - description: "this is a example description of a target field", - isMapped: "is_mapped", - }, - ], - }); - }); -}); diff --git a/tests/wire/ticketing/issues.test.ts b/tests/wire/ticketing/issues.test.ts deleted file mode 100644 index b8334c5e7..000000000 --- a/tests/wire/ticketing/issues.test.ts +++ /dev/null @@ -1,117 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("IssuesClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - error_description: "Missing Permissions", - end_user: { key: "value" }, - first_incident_time: "2022-12-05T16:19:15Z", - last_incident_time: "2022-12-05T16:19:15Z", - is_muted: true, - error_details: ["Missing employee permissions.", "Missing time off permissions."], - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/issues") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.issues.list({ - accountToken: "account_token", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endDate: "end_date", - endUserOrganizationName: "end_user_organization_name", - firstIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - firstIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - includeMuted: "include_muted", - integrationName: "integration_name", - lastIncidentTimeAfter: new Date("2024-01-15T09:30:00.000Z"), - lastIncidentTimeBefore: new Date("2024-01-15T09:30:00.000Z"), - linkedAccountId: "linked_account_id", - pageSize: 1, - startDate: "start_date", - status: "ONGOING", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - errorDescription: "Missing Permissions", - endUser: { - key: "value", - }, - firstIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - lastIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - isMuted: true, - errorDetails: ["Missing employee permissions.", "Missing time off permissions."], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - error_description: "Missing Permissions", - end_user: { key: "value" }, - first_incident_time: "2022-12-05T16:19:15Z", - last_incident_time: "2022-12-05T16:19:15Z", - is_muted: true, - error_details: ["Missing employee permissions.", "Missing time off permissions."], - }; - server - .mockEndpoint() - .get("/ticketing/v1/issues/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.issues.retrieve("id"); - expect(response).toEqual({ - id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", - errorDescription: "Missing Permissions", - endUser: { - key: "value", - }, - firstIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - lastIncidentTime: new Date("2022-12-05T16:19:15.000Z"), - isMuted: true, - errorDetails: ["Missing employee permissions.", "Missing time off permissions."], - }); - }); -}); diff --git a/tests/wire/ticketing/linkedAccounts.test.ts b/tests/wire/ticketing/linkedAccounts.test.ts deleted file mode 100644 index d5185a037..000000000 --- a/tests/wire/ticketing/linkedAccounts.test.ts +++ /dev/null @@ -1,114 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("LinkedAccountsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "e59b1821-f85c-4e28-a6b3-1804156f3563", - category: "hris", - status: "COMPLETE", - status_detail: "Invalid login credentials", - end_user_origin_id: "3ac95cde-6c7f-4eef-afec-be710b42308d", - end_user_organization_name: "Foo Bar, LLC", - end_user_email_address: "hradmin@foobar.dev", - subdomain: "foobar", - webhook_listener_url: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", - is_duplicate: true, - integration: { - name: "name", - categories: ["hris"], - color: "color", - slug: "slug", - passthrough_available: true, - available_model_operations: [ - { - model_name: "Candidate", - available_operations: ["FETCH", "CREATE"], - required_post_parameters: ["remote_user_id"], - supported_fields: ["first_name", "last_name", "company", "title"], - }, - ], - }, - account_type: "PRODUCTION", - completed_at: "2024-08-26T20:11:19Z", - integration_specific_fields: { integration_specific_field: "Varies by platform" }, - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/linked-accounts") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.linkedAccounts.list({ - category: "accounting", - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - endUserEmailAddress: "end_user_email_address", - endUserOrganizationName: "end_user_organization_name", - endUserOriginId: "end_user_origin_id", - endUserOriginIds: "end_user_origin_ids", - id: "id", - ids: "ids", - includeDuplicates: true, - integrationName: "integration_name", - isTestAccount: "is_test_account", - pageSize: 1, - status: "status", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "e59b1821-f85c-4e28-a6b3-1804156f3563", - category: "hris", - status: "COMPLETE", - statusDetail: "Invalid login credentials", - endUserOriginId: "3ac95cde-6c7f-4eef-afec-be710b42308d", - endUserOrganizationName: "Foo Bar, LLC", - endUserEmailAddress: "hradmin@foobar.dev", - subdomain: "foobar", - webhookListenerUrl: "https://api.merge.dev/api/integrations/webhook-listener/7fc3mee0UW8ecV4", - isDuplicate: true, - integration: { - name: "name", - categories: ["hris"], - color: "color", - slug: "slug", - passthroughAvailable: true, - availableModelOperations: [ - { - modelName: "Candidate", - availableOperations: ["FETCH", "CREATE"], - requiredPostParameters: ["remote_user_id"], - supportedFields: ["first_name", "last_name", "company", "title"], - }, - ], - }, - accountType: "PRODUCTION", - completedAt: new Date("2024-08-26T20:11:19.000Z"), - integrationSpecificFields: { - integration_specific_field: "Varies by platform", - }, - }, - ], - }); - }); -}); diff --git a/tests/wire/ticketing/projects.test.ts b/tests/wire/ticketing/projects.test.ts deleted file mode 100644 index 4ae21389f..000000000 --- a/tests/wire/ticketing/projects.test.ts +++ /dev/null @@ -1,230 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("ProjectsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "fb8c55b6-1cb8-4b4c-9fb6-17924231619d", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Q1 Platform", - description: "For tracking all tasks related to Platform for Q1", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/projects") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.projects.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "fb8c55b6-1cb8-4b4c-9fb6-17924231619d", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Q1 Platform", - description: "For tracking all tasks related to Platform for Q1", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "fb8c55b6-1cb8-4b4c-9fb6-17924231619d", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Q1 Platform", - description: "For tracking all tasks related to Platform for Q1", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/ticketing/v1/projects/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.projects.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "fb8c55b6-1cb8-4b4c-9fb6-17924231619d", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Q1 Platform", - description: "For tracking all tasks related to Platform for Q1", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }); - }); - - test("usersList", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Gil Feig", - email_address: "help@merge.dev", - is_active: true, - teams: ["28b54125-287f-494d-965e-3c5b330c9a68", "17a54124-287f-494d-965e-3c5b330c9a68"], - roles: ["23454124-387f-494d-265e-345b330c9123"], - avatar: "https://merge.dev/user_profile_pic.png", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/projects/parent_id/users") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.projects.usersList("parent_id", { - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - expand: "roles", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Gil Feig", - emailAddress: "help@merge.dev", - isActive: true, - teams: ["28b54125-287f-494d-965e-3c5b330c9a68", "17a54124-287f-494d-965e-3c5b330c9a68"], - roles: ["23454124-387f-494d-265e-345b330c9123"], - avatar: "https://merge.dev/user_profile_pic.png", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); -}); diff --git a/tests/wire/ticketing/syncStatus.test.ts b/tests/wire/ticketing/syncStatus.test.ts deleted file mode 100644 index f3f691f8f..000000000 --- a/tests/wire/ticketing/syncStatus.test.ts +++ /dev/null @@ -1,63 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("SyncStatusClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - model_name: "Ticket", - model_id: "ticketing.Ticket", - last_sync_start: "2021-03-30T19:44:18Z", - next_sync_start: "2021-03-30T20:44:18Z", - last_sync_result: "SYNCING", - last_sync_finished: "2021-03-30T19:55:18Z", - status: "SYNCING", - is_initial_sync: true, - selective_sync_configurations_usage: "IN_NEXT_SYNC", - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/sync-status") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.syncStatus.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - pageSize: 1, - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - modelName: "Ticket", - modelId: "ticketing.Ticket", - lastSyncStart: new Date("2021-03-30T19:44:18.000Z"), - nextSyncStart: new Date("2021-03-30T20:44:18.000Z"), - lastSyncResult: "SYNCING", - lastSyncFinished: new Date("2021-03-30T19:55:18.000Z"), - status: "SYNCING", - isInitialSync: true, - selectiveSyncConfigurationsUsage: "IN_NEXT_SYNC", - }, - ], - }); - }); -}); diff --git a/tests/wire/ticketing/tags.test.ts b/tests/wire/ticketing/tags.test.ts deleted file mode 100644 index 2cc65a082..000000000 --- a/tests/wire/ticketing/tags.test.ts +++ /dev/null @@ -1,136 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("TagsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - id: "17a54124-287f-494d-965e-3c5b330c9a68", - name: "Ticketing API", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }, - ], - }; - server.mockEndpoint().get("/ticketing/v1/tags").respondWith().statusCode(200).jsonBody(rawResponseBody).build(); - - const response = await client.ticketing.tags.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - id: "17a54124-287f-494d-965e-3c5b330c9a68", - name: "Ticketing API", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - id: "17a54124-287f-494d-965e-3c5b330c9a68", - name: "Ticketing API", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/ticketing/v1/tags/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.tags.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - id: "17a54124-287f-494d-965e-3c5b330c9a68", - name: "Ticketing API", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/ticketing/teams.test.ts b/tests/wire/ticketing/teams.test.ts deleted file mode 100644 index 9fc07959d..000000000 --- a/tests/wire/ticketing/teams.test.ts +++ /dev/null @@ -1,146 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("TeamsClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Platform", - description: "Platform and Integrations Team", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/teams") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.teams.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Platform", - description: "Platform and Integrations Team", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Platform", - description: "Platform and Integrations Team", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/ticketing/v1/teams/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.teams.retrieve("id", { - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Platform", - description: "Platform and Integrations Team", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }); - }); -}); diff --git a/tests/wire/ticketing/users.test.ts b/tests/wire/ticketing/users.test.ts deleted file mode 100644 index 50dbf5c94..000000000 --- a/tests/wire/ticketing/users.test.ts +++ /dev/null @@ -1,166 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -import { MergeClient } from "../../../src/Client"; -import { mockServerPool } from "../../mock-server/MockServerPool"; - -describe("UsersClient", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Gil Feig", - email_address: "help@merge.dev", - is_active: true, - teams: ["28b54125-287f-494d-965e-3c5b330c9a68", "17a54124-287f-494d-965e-3c5b330c9a68"], - roles: ["23454124-387f-494d-265e-345b330c9123"], - avatar: "https://merge.dev/user_profile_pic.png", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }, - ], - }; - server - .mockEndpoint() - .get("/ticketing/v1/users") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.users.list({ - createdAfter: new Date("2024-01-15T09:30:00.000Z"), - createdBefore: new Date("2024-01-15T09:30:00.000Z"), - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - emailAddress: "email_address", - expand: "roles", - includeDeletedData: true, - includeRemoteData: true, - includeShellData: true, - modifiedAfter: new Date("2024-01-15T09:30:00.000Z"), - modifiedBefore: new Date("2024-01-15T09:30:00.000Z"), - pageSize: 1, - remoteId: "remote_id", - team: "team", - }); - expect(response).toEqual({ - next: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", - previous: "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ", - results: [ - { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Gil Feig", - emailAddress: "help@merge.dev", - isActive: true, - teams: ["28b54125-287f-494d-965e-3c5b330c9a68", "17a54124-287f-494d-965e-3c5b330c9a68"], - roles: ["23454124-387f-494d-265e-345b330c9123"], - avatar: "https://merge.dev/user_profile_pic.png", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }, - ], - }); - }); - - test("retrieve", async () => { - const server = mockServerPool.createServer(); - const client = new MergeClient({ - maxRetries: 0, - apiKey: "test", - accountToken: "test", - environment: server.baseUrl, - }); - - const rawResponseBody = { - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remote_id: "19202938", - created_at: "2021-09-15T00:00:00Z", - modified_at: "2021-10-16T00:00:00Z", - name: "Gil Feig", - email_address: "help@merge.dev", - is_active: true, - teams: ["28b54125-287f-494d-965e-3c5b330c9a68", "17a54124-287f-494d-965e-3c5b330c9a68"], - roles: ["23454124-387f-494d-265e-345b330c9123"], - avatar: "https://merge.dev/user_profile_pic.png", - remote_was_deleted: true, - field_mappings: { - organization_defined_targets: { custom_key: "custom_value" }, - linked_account_defined_targets: { custom_key: "custom_value" }, - }, - remote_data: [{ path: "/platform-endpoint", data: ["Varies by platform"] }], - }; - server - .mockEndpoint() - .get("/ticketing/v1/users/id") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.ticketing.users.retrieve("id", { - expand: "roles", - includeRemoteData: true, - includeShellData: true, - }); - expect(response).toEqual({ - id: "17a54124-287f-494d-965e-3c5b330c9a68", - remoteId: "19202938", - createdAt: new Date("2021-09-15T00:00:00.000Z"), - modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - name: "Gil Feig", - emailAddress: "help@merge.dev", - isActive: true, - teams: ["28b54125-287f-494d-965e-3c5b330c9a68", "17a54124-287f-494d-965e-3c5b330c9a68"], - roles: ["23454124-387f-494d-265e-345b330c9123"], - avatar: "https://merge.dev/user_profile_pic.png", - remoteWasDeleted: true, - fieldMappings: { - organization_defined_targets: { - custom_key: "custom_value", - }, - linked_account_defined_targets: { - custom_key: "custom_value", - }, - }, - remoteData: [ - { - path: "/platform-endpoint", - data: ["Varies by platform"], - }, - ], - }); - }); -});